package keymon.lat.medicomed;

import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.pc.*;

public class c_principal_subs_0 {


public static RemoteObject  _addtitle(RemoteObject __ref,RemoteObject _title) throws Exception{
try {
		Debug.PushSubsStack("AddTitle (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,2335);
if (RapidSub.canDelegate("addtitle")) { return __ref.runUserSub(false, "c_principal","addtitle", __ref, _title);}
RemoteObject _p_marcas = RemoteObject.declareNull("anywheresoftware.b4a.objects.B4XViewWrapper");
RemoteObject _td = RemoteObject.declareNull("keymon.lat.medicomed.c_principal._titledata");
Debug.locals.put("Title", _title);
 BA.debugLineNum = 2335;BA.debugLine="Sub AddTitle (Title As String)";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 2336;BA.debugLine="Dim p_MARCAS As B4XView = xui.CreatePanel(\"\")";
Debug.ShouldStop(-2147483648);
_p_marcas = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");
_p_marcas = __ref.getField(false,"_xui" /*RemoteObject*/ ).runMethod(false,"CreatePanel",__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("")));Debug.locals.put("p_MARCAS", _p_marcas);Debug.locals.put("p_MARCAS", _p_marcas);
 BA.debugLineNum = 2337;BA.debugLine="p_MARCAS.SetLayoutAnimated(0, 0, 0, CLV1.AsView.W";
Debug.ShouldStop(1);
_p_marcas.runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(false,"_clv1" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(__ref.getField(true,"_titleheight" /*RemoteObject*/ )));
 BA.debugLineNum = 2338;BA.debugLine="p_MARCAS.LoadLayout(\"CellTitle\")";
Debug.ShouldStop(2);
_p_marcas.runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("CellTitle")),__ref.getField(false, "ba"));
 BA.debugLineNum = 2339;BA.debugLine="lblTitle.Text = Title";
Debug.ShouldStop(4);
__ref.getField(false,"_lbltitle" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(_title));
 BA.debugLineNum = 2340;BA.debugLine="Dim td As TitleData";
Debug.ShouldStop(8);
_td = RemoteObject.createNew ("keymon.lat.medicomed.c_principal._titledata");Debug.locals.put("td", _td);
 BA.debugLineNum = 2341;BA.debugLine="td.Title = Title";
Debug.ShouldStop(16);
_td.setField ("Title" /*RemoteObject*/ ,_title);
 BA.debugLineNum = 2342;BA.debugLine="CLV1.Add(p_MARCAS, td)";
Debug.ShouldStop(32);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_add",(Object)(_p_marcas),(Object)((_td)));
 BA.debugLineNum = 2343;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_comm_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B_COMM_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,2186);
if (RapidSub.canDelegate("b_comm_click")) { return __ref.runUserSub(false, "c_principal","b_comm_click", __ref);}
int _i = 0;
 BA.debugLineNum = 2186;BA.debugLine="Sub B_COMM_Click";
Debug.ShouldStop(512);
 BA.debugLineNum = 2189;BA.debugLine="SCROLL_RESDIA.Visible = False";
Debug.ShouldStop(4096);
__ref.getField(false,"_scroll_resdia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2190;BA.debugLine="Panel5.Visible = True";
Debug.ShouldStop(8192);
__ref.getField(false,"_panel5" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2191;BA.debugLine="pnlTitle.Visible = False";
Debug.ShouldStop(16384);
__ref.getField(false,"_pnltitle" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2192;BA.debugLine="pnlTitle.SetLayoutAnimated(0, 0, 0, CLV1.AsView.W";
Debug.ShouldStop(32768);
__ref.getField(false,"_pnltitle" /*RemoteObject*/ ).runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(false,"_clv1" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_titleheight" /*RemoteObject*/ ),__ref.getField(true,"_dividerheight" /*RemoteObject*/ )}, "+",1, 1)));
 BA.debugLineNum = 2193;BA.debugLine="pnlTitle.LoadLayout(\"CellTitle\")";
Debug.ShouldStop(65536);
__ref.getField(false,"_pnltitle" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("CellTitle")),__ref.getField(false, "ba"));
 BA.debugLineNum = 2194;BA.debugLine="CLV1.Clear";
Debug.ShouldStop(131072);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 2196;BA.debugLine="dd=B4XPages.MainPage.skmt.ExecQuery(\"SELECT SUM(P";
Debug.ShouldStop(524288);
__ref.getField(false,"_dd" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT SUM(PE_CANT) AS CUANTOS, PE_PRONOMBRE FROM PEDIDO GROUP BY PE_PRONOMBRE"))));
 BA.debugLineNum = 2197;BA.debugLine="If dd.RowCount>0 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_dd" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2198;BA.debugLine="For i=0 To dd.RowCount -1";
Debug.ShouldStop(2097152);
{
final int step9 = 1;
final int limit9 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_dd" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step9 > 0 && _i <= limit9) || (step9 < 0 && _i >= limit9) ;_i = ((int)(0 + _i + step9))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2199;BA.debugLine="dd.Position = i";
Debug.ShouldStop(4194304);
__ref.getField(false,"_dd" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2200;BA.debugLine="CLV1.AddTextItem(dd.GetString(\"PE_PRONOMBRE\"),\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_addtextitem",(Object)((__ref.getField(false,"_dd" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE"))))),(Object)((RemoteObject.createImmutable("1"))));
 BA.debugLineNum = 2201;BA.debugLine="CLV1.AddTextItem(\"CANTIDAD  = \" & dd.GetString(";
Debug.ShouldStop(16777216);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_addtextitem",(Object)((RemoteObject.concat(RemoteObject.createImmutable("CANTIDAD  = "),__ref.getField(false,"_dd" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))))),(Object)((RemoteObject.createImmutable("1"))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 2204;BA.debugLine="dd.Close";
Debug.ShouldStop(134217728);
__ref.getField(false,"_dd" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2232;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_mapa_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("b_mapa_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,1767);
if (RapidSub.canDelegate("b_mapa_click")) { return __ref.runUserSub(false, "c_principal","b_mapa_click", __ref);}
 BA.debugLineNum = 1767;BA.debugLine="Sub b_mapa_Click";
Debug.ShouldStop(64);
 BA.debugLineNum = 1768;BA.debugLine="Log(\"mapClic\")";
Debug.ShouldStop(128);
c_principal.__c.runVoidMethod ("LogImpl","33670017",RemoteObject.createImmutable("mapClic"),0);
 BA.debugLineNum = 1769;BA.debugLine="B4XPages.GetPage(\"Mapas\")";
Debug.ShouldStop(256);
c_principal._b4xpages.runVoidMethod ("_getpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Mapas")));
 BA.debugLineNum = 1770;BA.debugLine="End Sub";
Debug.ShouldStop(512);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_marcas_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B_MARCAS_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,2246);
if (RapidSub.canDelegate("b_marcas_click")) { return __ref.runUserSub(false, "c_principal","b_marcas_click", __ref);}
int _i = 0;
 BA.debugLineNum = 2246;BA.debugLine="Sub B_MARCAS_Click";
Debug.ShouldStop(32);
 BA.debugLineNum = 2271;BA.debugLine="SCROLL_RESDIA.Visible = False";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_scroll_resdia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2272;BA.debugLine="Panel5.Visible = True";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_panel5" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2273;BA.debugLine="pnlTitle.Visible = False";
Debug.ShouldStop(1);
__ref.getField(false,"_pnltitle" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2274;BA.debugLine="pnlTitle.SetLayoutAnimated(0, 0, 0, CLV1.AsView.W";
Debug.ShouldStop(2);
__ref.getField(false,"_pnltitle" /*RemoteObject*/ ).runVoidMethod ("SetLayoutAnimated",(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)),(Object)(__ref.getField(false,"_clv1" /*RemoteObject*/ ).runMethod(false,"_asview").runMethod(true,"getWidth")),(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_titleheight" /*RemoteObject*/ ),__ref.getField(true,"_dividerheight" /*RemoteObject*/ )}, "+",1, 1)));
 BA.debugLineNum = 2275;BA.debugLine="pnlTitle.LoadLayout(\"CellTitle\")";
Debug.ShouldStop(4);
__ref.getField(false,"_pnltitle" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("CellTitle")),__ref.getField(false, "ba"));
 BA.debugLineNum = 2276;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select CAT_GP";
Debug.ShouldStop(8);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select CAT_GP_CLASIF, SUM(TOTAL) AS TOTAL FROM TOTAL_MARCAS GROUP BY CAT_GP_CLASIF"))));
 BA.debugLineNum = 2277;BA.debugLine="CLV1.Clear";
Debug.ShouldStop(16);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_clear");
 BA.debugLineNum = 2278;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2279;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(64);
{
final int step9 = 1;
final int limit9 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step9 > 0 && _i <= limit9) || (step9 < 0 && _i >= limit9) ;_i = ((int)(0 + _i + step9))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2280;BA.debugLine="c.Position=i";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2281;BA.debugLine="AddTitle(c.GetString(\"CAT_GP_CLASIF\"))";
Debug.ShouldStop(256);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_addtitle" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_CLASIF")))));
 BA.debugLineNum = 2282;BA.debugLine="If c.GetString(\"CAT_GP_CLASIF\") = \"PROMOS\" Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_CLASIF"))),BA.ObjectToString("PROMOS"))) { 
 BA.debugLineNum = 2283;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"SELECT SUM";
Debug.ShouldStop(1024);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT SUM(PE_CANT) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID"))));
 BA.debugLineNum = 2284;BA.debugLine="d.Position=0";
Debug.ShouldStop(2048);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2285;BA.debugLine="CLV1.AddTextItem(\"CANTIDAD DE PROMOS = \" & d.G";
Debug.ShouldStop(4096);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_addtextitem",(Object)((RemoteObject.concat(RemoteObject.createImmutable("CANTIDAD DE PROMOS = "),__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))))),(Object)((RemoteObject.createImmutable("1"))));
 BA.debugLineNum = 2286;BA.debugLine="d.Close";
Debug.ShouldStop(8192);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 2288;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery2(\"select CO";
Debug.ShouldStop(32768);
__ref.getField(false,"_f" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select COUNT(*) AS CUANTOS from HIST_MARCAS_CUOTAS where HMC_MARCA = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_CLASIF")))}))));
 BA.debugLineNum = 2289;BA.debugLine="f.Position=0";
Debug.ShouldStop(65536);
__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2290;BA.debugLine="If f.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2291;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery2(\"select H";
Debug.ShouldStop(262144);
__ref.getField(false,"_e" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select HMC_MARCA, HMC_TOTAL from HIST_MARCAS_CUOTAS where HMC_MARCA = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_CLASIF")))}))));
 BA.debugLineNum = 2292;BA.debugLine="e.Position=0";
Debug.ShouldStop(524288);
__ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2293;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT c";
Debug.ShouldStop(1048576);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT count(distinct(PE_CLIENTE)) AS CUANTOS FROM PEDIDO WHERE PE_PROID in (select CAT_GP_ID from cat_gunaprod WHERE CAT_GP_CLASIF =?)")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_CLASIF")))}))));
 BA.debugLineNum = 2294;BA.debugLine="d.Position=0";
Debug.ShouldStop(2097152);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2295;BA.debugLine="CLV1.AddTextItem(\"TOTAL  PREVENTA = $\" & c.Ge";
Debug.ShouldStop(4194304);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_addtextitem",(Object)((RemoteObject.concat(RemoteObject.createImmutable("TOTAL  PREVENTA = $"),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL")))))),(Object)((RemoteObject.createImmutable("1"))));
 BA.debugLineNum = 2296;BA.debugLine="CLV1.AddTextItem(\"M E T A  = $\" & e.GetString";
Debug.ShouldStop(8388608);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_addtextitem",(Object)((RemoteObject.concat(RemoteObject.createImmutable("M E T A  = $"),__ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HMC_TOTAL")))))),(Object)((RemoteObject.createImmutable("1"))));
 BA.debugLineNum = 2297;BA.debugLine="CLV1.AddTextItem(\"FALTA  = $\" & (e.GetString(";
Debug.ShouldStop(16777216);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_addtextitem",(Object)((RemoteObject.concat(RemoteObject.createImmutable("FALTA  = $"),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HMC_TOTAL")))),BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL"))))}, "-",1, 0))))),(Object)((RemoteObject.createImmutable("1"))));
 BA.debugLineNum = 2298;BA.debugLine="CLV1.AddTextItem(\"CLIENTES  = \" & d.GetString";
Debug.ShouldStop(33554432);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_addtextitem",(Object)((RemoteObject.concat(RemoteObject.createImmutable("CLIENTES  = "),__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))))),(Object)((RemoteObject.createImmutable("1"))));
 BA.debugLineNum = 2299;BA.debugLine="d.Close";
Debug.ShouldStop(67108864);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2300;BA.debugLine="e.Close";
Debug.ShouldStop(134217728);
__ref.getField(false,"_e" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 2302;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"SELECT c";
Debug.ShouldStop(536870912);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("SELECT count(distinct(pe_cliente)) AS CUANTOS FROM PEDIDO WHERE PE_PROID in (select CAT_GP_ID from cat_gunaprod WHERE CAT_GP_CLASIF =?)")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_GP_CLASIF")))}))));
 BA.debugLineNum = 2303;BA.debugLine="d.Position=0";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2304;BA.debugLine="CLV1.AddTextItem(\"TOTAL  PREVENTA = $\" & c.Ge";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_addtextitem",(Object)((RemoteObject.concat(RemoteObject.createImmutable("TOTAL  PREVENTA = $"),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL")))))),(Object)((RemoteObject.createImmutable("1"))));
 BA.debugLineNum = 2305;BA.debugLine="CLV1.AddTextItem(\"M E T A  = $\" & \"1000\",\"1\")";
Debug.ShouldStop(1);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_addtextitem",(Object)((RemoteObject.concat(RemoteObject.createImmutable("M E T A  = $"),RemoteObject.createImmutable("1000")))),(Object)((RemoteObject.createImmutable("1"))));
 BA.debugLineNum = 2306;BA.debugLine="CLV1.AddTextItem(\"FALTA  = $\" & (1000 - c.Get";
Debug.ShouldStop(2);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_addtextitem",(Object)((RemoteObject.concat(RemoteObject.createImmutable("FALTA  = $"),(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(1000),BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL"))))}, "-",1, 0))))),(Object)((RemoteObject.createImmutable("1"))));
 BA.debugLineNum = 2307;BA.debugLine="CLV1.AddTextItem(\"CLIENTES  = \" & d.GetString";
Debug.ShouldStop(4);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_addtextitem",(Object)((RemoteObject.concat(RemoteObject.createImmutable("CLIENTES  = "),__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))))),(Object)((RemoteObject.createImmutable("1"))));
 BA.debugLineNum = 2308;BA.debugLine="d.Close";
Debug.ShouldStop(8);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 2313;BA.debugLine="f.Close";
Debug.ShouldStop(256);
__ref.getField(false,"_f" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 2317;BA.debugLine="c.Close";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2318;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select HMC_MA";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select HMC_MARCA,  HMC_TOTAL from HIST_MARCAS_CUOTAS where HMC_MARCA  not in (SELECT  CAT_GP_CLASIF FROM TOTAL_MARCAS )"))));
 BA.debugLineNum = 2319;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2320;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(32768);
{
final int step47 = 1;
final int limit47 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step47 > 0 && _i <= limit47) || (step47 < 0 && _i >= limit47) ;_i = ((int)(0 + _i + step47))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2321;BA.debugLine="c.Position=i";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2322;BA.debugLine="AddTitle(c.GetString(\"HMC_MARCA\"))";
Debug.ShouldStop(131072);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_addtitle" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HMC_MARCA")))));
 BA.debugLineNum = 2323;BA.debugLine="CLV1.AddTextItem(\"TOTAL  PREVENTA = $ 0.00\",\"1\"";
Debug.ShouldStop(262144);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_addtextitem",(Object)(RemoteObject.createImmutable(("TOTAL  PREVENTA = $ 0.00"))),(Object)((RemoteObject.createImmutable("1"))));
 BA.debugLineNum = 2324;BA.debugLine="CLV1.AddTextItem(\"M E T A  = $\" & C.GetString(\"";
Debug.ShouldStop(524288);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_addtextitem",(Object)((RemoteObject.concat(RemoteObject.createImmutable("M E T A  = $"),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HMC_TOTAL")))))),(Object)((RemoteObject.createImmutable("1"))));
 BA.debugLineNum = 2325;BA.debugLine="CLV1.AddTextItem(\"CLIENTES  = 0\",\"1\")";
Debug.ShouldStop(1048576);
__ref.getField(false,"_clv1" /*RemoteObject*/ ).runVoidMethod ("_addtextitem",(Object)(RemoteObject.createImmutable(("CLIENTES  = 0"))),(Object)((RemoteObject.createImmutable("1"))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 2328;BA.debugLine="c.Close";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2331;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_ok_comiss_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B_OK_COMISS_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,2234);
if (RapidSub.canDelegate("b_ok_comiss_click")) { return __ref.runUserSub(false, "c_principal","b_ok_comiss_click", __ref);}
 BA.debugLineNum = 2234;BA.debugLine="Sub B_OK_COMISS_Click";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 2235;BA.debugLine="NUEVO.Visible =True";
Debug.ShouldStop(67108864);
__ref.getField(false,"_nuevo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2236;BA.debugLine="BUSCA.Visible=True";
Debug.ShouldStop(134217728);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2237;BA.debugLine="connecta.Visible=True";
Debug.ShouldStop(268435456);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2238;BA.debugLine="Resumen.Visible= True";
Debug.ShouldStop(536870912);
__ref.getField(false,"_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2239;BA.debugLine="P_RESUMEN.Visible=False";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_p_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2240;BA.debugLine="Panel_C.Visible = False";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_panel_c" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2241;BA.debugLine="SCROLL_RESDIA.Visible = False";
Debug.ShouldStop(1);
__ref.getField(false,"_scroll_resdia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2242;BA.debugLine="Btn_Ubicar.Visible=True";
Debug.ShouldStop(2);
__ref.getField(false,"_btn_ubicar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2243;BA.debugLine="End Sub";
Debug.ShouldStop(4);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_ok_panel5_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B_OK_PANEL5_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,2345);
if (RapidSub.canDelegate("b_ok_panel5_click")) { return __ref.runUserSub(false, "c_principal","b_ok_panel5_click", __ref);}
 BA.debugLineNum = 2345;BA.debugLine="Sub B_OK_PANEL5_Click";
Debug.ShouldStop(256);
 BA.debugLineNum = 2346;BA.debugLine="Panel5.Visible = False";
Debug.ShouldStop(512);
__ref.getField(false,"_panel5" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2347;BA.debugLine="NUEVO.Visible =True";
Debug.ShouldStop(1024);
__ref.getField(false,"_nuevo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2348;BA.debugLine="BUSCA.Visible=True";
Debug.ShouldStop(2048);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2349;BA.debugLine="connecta.Visible=True";
Debug.ShouldStop(4096);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2350;BA.debugLine="Resumen.Visible= True";
Debug.ShouldStop(8192);
__ref.getField(false,"_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2351;BA.debugLine="P_RESUMEN.Visible=False";
Debug.ShouldStop(16384);
__ref.getField(false,"_p_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2352;BA.debugLine="Panel4.Visible = False";
Debug.ShouldStop(32768);
__ref.getField(false,"_panel4" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2353;BA.debugLine="SCROLL_RESDIA.Visible = False";
Debug.ShouldStop(65536);
__ref.getField(false,"_scroll_resdia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 2354;BA.debugLine="Btn_Ubicar.Visible=True";
Debug.ShouldStop(131072);
__ref.getField(false,"_btn_ubicar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2355;BA.debugLine="p_principal.Visible = True";
Debug.ShouldStop(262144);
__ref.getField(false,"_p_principal" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 2357;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_ok_pas_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B_OK_PAS_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,1868);
if (RapidSub.canDelegate("b_ok_pas_click")) { return __ref.runUserSub(false, "c_principal","b_ok_pas_click", __ref);}
 BA.debugLineNum = 1868;BA.debugLine="Sub B_OK_PAS_Click";
Debug.ShouldStop(2048);
 BA.debugLineNum = 1869;BA.debugLine="If CARGA = \"SUBIR\" And S_CP.Text = \"INFO OK\" Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_carga" /*RemoteObject*/ ),BA.ObjectToString("SUBIR")) && RemoteObject.solveBoolean("=",__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("INFO OK"))) { 
 BA.debugLineNum = 1870;BA.debugLine="P1.Visible = False";
Debug.ShouldStop(8192);
__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1871;BA.debugLine="p_mandaInfo.Visible = False";
Debug.ShouldStop(16384);
__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1872;BA.debugLine="Btn_Ubicar.Visible=True";
Debug.ShouldStop(32768);
__ref.getField(false,"_btn_ubicar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1874;BA.debugLine="NUEVO.Visible =True";
Debug.ShouldStop(131072);
__ref.getField(false,"_nuevo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1875;BA.debugLine="BUSCA.Visible=True";
Debug.ShouldStop(262144);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1876;BA.debugLine="connecta.Visible=True";
Debug.ShouldStop(524288);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1877;BA.debugLine="Resumen.Visible= True";
Debug.ShouldStop(1048576);
__ref.getField(false,"_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1878;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1879;BA.debugLine="Subs.panelVisible(p_principal, 0, 0)";
Debug.ShouldStop(4194304);
c_principal._subs.runVoidMethod ("_panelvisible" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_principal" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
 }else 
{ BA.debugLineNum = 1880;BA.debugLine="Else If CARGA = \"SUBIR\" And S_CP.Text = \"ERROR\" T";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_carga" /*RemoteObject*/ ),BA.ObjectToString("SUBIR")) && RemoteObject.solveBoolean("=",__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("ERROR"))) { 
 BA.debugLineNum = 1881;BA.debugLine="Msgbox(\"Tiene que subir de nuevo la información\"";
Debug.ShouldStop(16777216);
c_principal.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Tiene que subir de nuevo la información")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("Atención"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 1882;BA.debugLine="P1.Visible = False";
Debug.ShouldStop(33554432);
__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1883;BA.debugLine="p_mandaInfo.Visible = False";
Debug.ShouldStop(67108864);
__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1885;BA.debugLine="NUEVO.Visible =True";
Debug.ShouldStop(268435456);
__ref.getField(false,"_nuevo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1886;BA.debugLine="BUSCA.Visible=True";
Debug.ShouldStop(536870912);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1887;BA.debugLine="connecta.Visible=True";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1888;BA.debugLine="Resumen.Visible= True";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1889;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(1);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1890;BA.debugLine="Subs.panelVisible(p_principal, 0, 0)";
Debug.ShouldStop(2);
c_principal._subs.runVoidMethod ("_panelvisible" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_principal" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
 }else 
{ BA.debugLineNum = 1891;BA.debugLine="Else if CARGA = \"SUBIR\" And S_CP.Text <> \"INFO OK";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_carga" /*RemoteObject*/ ),BA.ObjectToString("SUBIR")) && RemoteObject.solveBoolean("!",__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("INFO OK"))) { 
 BA.debugLineNum = 1892;BA.debugLine="RES =  Msgbox2(\"Seguro que desea abortar el proc";
Debug.ShouldStop(8);
__ref.setField ("_res" /*RemoteObject*/ ,BA.NumberToString(c_principal.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Seguro que desea abortar el proceso")),(Object)(BA.ObjectToCharSequence("Cierre")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_principal.__c.runMethod(false,"LoadBitmap",(Object)(c_principal.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 1893;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_res" /*RemoteObject*/ ),BA.NumberToString(c_principal.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 1894;BA.debugLine="P1.Visible = False";
Debug.ShouldStop(32);
__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1896;BA.debugLine="NUEVO.Visible =True";
Debug.ShouldStop(128);
__ref.getField(false,"_nuevo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1897;BA.debugLine="BUSCA.Visible=True";
Debug.ShouldStop(256);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1898;BA.debugLine="connecta.Visible=True";
Debug.ShouldStop(512);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1899;BA.debugLine="Resumen.Visible= True";
Debug.ShouldStop(1024);
__ref.getField(false,"_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1900;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(2048);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1901;BA.debugLine="Subs.panelVisible(p_principal, 0, 0)";
Debug.ShouldStop(4096);
c_principal._subs.runVoidMethod ("_panelvisible" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_principal" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 1902;BA.debugLine="ExitApplication";
Debug.ShouldStop(8192);
c_principal.__c.runVoidMethod ("ExitApplication");
 };
 }}}
;
 BA.debugLineNum = 1905;BA.debugLine="If CARGA = \"CARGAR\" And S_CP.Text = \"LISTO\" And S";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_carga" /*RemoteObject*/ ),BA.ObjectToString("CARGAR")) && RemoteObject.solveBoolean("=",__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("LISTO")) && RemoteObject.solveBoolean("=",__ref.getField(false,"_s_cc" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("LISTO")) && RemoteObject.solveBoolean("=",__ref.getField(false,"_s_ch" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("LISTO"))) { 
 BA.debugLineNum = 1906;BA.debugLine="P1.Visible = False";
Debug.ShouldStop(131072);
__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1907;BA.debugLine="p_mandaInfo.Visible = False";
Debug.ShouldStop(262144);
__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1908;BA.debugLine="p_mandaInfo.Visible = False";
Debug.ShouldStop(524288);
__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1909;BA.debugLine="Btn_Ubicar.Visible=True";
Debug.ShouldStop(1048576);
__ref.getField(false,"_btn_ubicar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1911;BA.debugLine="NUEVO.Visible =True";
Debug.ShouldStop(4194304);
__ref.getField(false,"_nuevo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1912;BA.debugLine="BUSCA.Visible=True";
Debug.ShouldStop(8388608);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1913;BA.debugLine="connecta.Visible=True";
Debug.ShouldStop(16777216);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1914;BA.debugLine="Resumen.Visible= True";
Debug.ShouldStop(33554432);
__ref.getField(false,"_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1915;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(67108864);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1916;BA.debugLine="Subs.panelVisible(p_principal, 0, 0)";
Debug.ShouldStop(134217728);
c_principal._subs.runVoidMethod ("_panelvisible" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_principal" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 1917;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(268435456);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_b4xpage_appear" /*void*/ );
 BA.debugLineNum = 1918;BA.debugLine="Subs.bitacora(Subs.fechanormal(DateTime.Now),usu";
Debug.ShouldStop(536870912);
c_principal._subs.runVoidMethod ("_bitacora" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_principal._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(Object)(BA.ObjectToString("Carga día")),(Object)(BA.ObjectToString("")),(Object)(c_principal._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(c_principal._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),(Object)(c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(Object)(BA.ObjectToString("2")),(Object)(BA.ObjectToString("")),(Object)(RemoteObject.createImmutable("")));
 }else 
{ BA.debugLineNum = 1919;BA.debugLine="Else if CARGA = \"CARGAR\" And (S_CP.Text <> \"LISTO";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_carga" /*RemoteObject*/ ),BA.ObjectToString("CARGAR")) && RemoteObject.solveBoolean(".",BA.ObjectToBoolean((RemoteObject.solveBoolean("!",__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("LISTO")) || RemoteObject.solveBoolean("!",__ref.getField(false,"_s_cc" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("LISTO")) || RemoteObject.solveBoolean("!",__ref.getField(false,"_s_ch" /*RemoteObject*/ ).runMethod(true,"getText"),RemoteObject.createImmutable("LISTO")))))) { 
 BA.debugLineNum = 1920;BA.debugLine="RES =  Msgbox2(\"Seguro que desea abortar el proc";
Debug.ShouldStop(-2147483648);
__ref.setField ("_res" /*RemoteObject*/ ,BA.NumberToString(c_principal.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Seguro que desea abortar el proceso")),(Object)(BA.ObjectToCharSequence("Cierre")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_principal.__c.runMethod(false,"LoadBitmap",(Object)(c_principal.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 1921;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_res" /*RemoteObject*/ ),BA.NumberToString(c_principal.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 1922;BA.debugLine="P1.Visible = False";
Debug.ShouldStop(2);
__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1923;BA.debugLine="p_mandaInfo.Visible = False";
Debug.ShouldStop(4);
__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1925;BA.debugLine="NUEVO.Visible =True";
Debug.ShouldStop(16);
__ref.getField(false,"_nuevo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1926;BA.debugLine="BUSCA.Visible=True";
Debug.ShouldStop(32);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1927;BA.debugLine="connecta.Visible=True";
Debug.ShouldStop(64);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1928;BA.debugLine="Resumen.Visible= True";
Debug.ShouldStop(128);
__ref.getField(false,"_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1929;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(256);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1930;BA.debugLine="Subs.panelVisible(p_principal, 0, 0)";
Debug.ShouldStop(512);
c_principal._subs.runVoidMethod ("_panelvisible" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p_principal" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 1931;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(1024);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from kmt_info")));
 BA.debugLineNum = 1932;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(2048);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cod_result")));
 BA.debugLineNum = 1933;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(4096);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from hist_gest")));
 BA.debugLineNum = 1934;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(8192);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_gunaprod")));
 BA.debugLineNum = 1935;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(16384);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CAT_DETALLES_PAQ")));
 BA.debugLineNum = 1936;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(32768);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from telefonos")));
 BA.debugLineNum = 1937;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(65536);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from HIST_VENTAS")));
 BA.debugLineNum = 1938;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(131072);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from HIST_PROMOS")));
 BA.debugLineNum = 1939;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(262144);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from HIST_CLIENTE_CANT_PROMOS")));
 BA.debugLineNum = 1940;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(524288);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from PROMOS_COMP")));
 BA.debugLineNum = 1941;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(1048576);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CAT_VERIFICACION")));
 BA.debugLineNum = 1942;BA.debugLine="ExitApplication";
Debug.ShouldStop(2097152);
c_principal.__c.runVoidMethod ("ExitApplication");
 };
 }}
;
 BA.debugLineNum = 1945;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _b_ok_res_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B_OK_RES_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,1951);
if (RapidSub.canDelegate("b_ok_res_click")) { return __ref.runUserSub(false, "c_principal","b_ok_res_click", __ref);}
 BA.debugLineNum = 1951;BA.debugLine="Sub B_OK_RES_Click";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 1953;BA.debugLine="NUEVO.Visible =True";
Debug.ShouldStop(1);
__ref.getField(false,"_nuevo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1954;BA.debugLine="BUSCA.Visible=True";
Debug.ShouldStop(2);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1955;BA.debugLine="connecta.Visible=True";
Debug.ShouldStop(4);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1956;BA.debugLine="Resumen.Visible= True";
Debug.ShouldStop(8);
__ref.getField(false,"_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1957;BA.debugLine="P_RESUMEN.Visible=False";
Debug.ShouldStop(16);
__ref.getField(false,"_p_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1958;BA.debugLine="Panel4.Visible = False";
Debug.ShouldStop(32);
__ref.getField(false,"_panel4" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1959;BA.debugLine="SCROLL_RESDIA.Visible = False";
Debug.ShouldStop(64);
__ref.getField(false,"_scroll_resdia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1960;BA.debugLine="Btn_Ubicar.Visible=True";
Debug.ShouldStop(128);
__ref.getField(false,"_btn_ubicar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1961;BA.debugLine="p_principal.Visible = True";
Debug.ShouldStop(256);
__ref.getField(false,"_p_principal" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1962;BA.debugLine="End Sub";
Debug.ShouldStop(512);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static void  _b4xpage_appear(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Appear (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,301);
if (RapidSub.canDelegate("b4xpage_appear")) { __ref.runUserSub(false, "c_principal","b4xpage_appear", __ref); return;}
ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(null,__ref);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub {
public ResumableSub_B4XPage_Appear(keymon.lat.medicomed.c_principal parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
keymon.lat.medicomed.c_principal parent;
RemoteObject _permission = RemoteObject.createImmutable("");
RemoteObject _result = RemoteObject.createImmutable(false);

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Appear (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,301);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

    while (true) {
        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
Debug.locals.put("_ref", __ref);
 BA.debugLineNum = 303;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
Debug.ShouldStop(16384);
parent._starter._rp /*RemoteObject*/ .runVoidMethod ("CheckAndRequest",__ref.getField(false, "ba"),(Object)(parent._starter._rp /*RemoteObject*/ .getField(true,"PERMISSION_ACCESS_FINE_LOCATION")));
 BA.debugLineNum = 304;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
Debug.ShouldStop(32768);
parent.__c.runVoidMethod ("WaitFor","b4xpage_permissionresult", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_principal", "b4xpage_appear"), null);
this.state = 68;
return;
case 68:
//C
this.state = 1;
_permission = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("Permission", _permission);
_result = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(2));Debug.locals.put("Result", _result);
;
 BA.debugLineNum = 305;BA.debugLine="If Result Then";
Debug.ShouldStop(65536);
if (true) break;

case 1:
//if
this.state = 6;
if (_result.<Boolean>get().booleanValue()) { 
this.state = 3;
}else {
this.state = 5;
}if (true) break;

case 3:
//C
this.state = 6;
 if (true) break;

case 5:
//C
this.state = 6;
 BA.debugLineNum = 308;BA.debugLine="Log(\"SIN permisos de ubicacion\")";
Debug.ShouldStop(524288);
parent.__c.runVoidMethod ("LogImpl","33211271",RemoteObject.createImmutable("SIN permisos de ubicacion"),0);
 if (true) break;

case 6:
//C
this.state = 7;
;
 BA.debugLineNum = 310;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_";
Debug.ShouldStop(2097152);
parent._starter._rp /*RemoteObject*/ .runVoidMethod ("CheckAndRequest",__ref.getField(false, "ba"),(Object)(parent._starter._rp /*RemoteObject*/ .getField(true,"PERMISSION_READ_PHONE_STATE")));
 BA.debugLineNum = 311;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
Debug.ShouldStop(4194304);
parent.__c.runVoidMethod ("WaitFor","b4xpage_permissionresult", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_principal", "b4xpage_appear"), null);
this.state = 69;
return;
case 69:
//C
this.state = 7;
_permission = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("Permission", _permission);
_result = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(2));Debug.locals.put("Result", _result);
;
 BA.debugLineNum = 312;BA.debugLine="If Result Then";
Debug.ShouldStop(8388608);
if (true) break;

case 7:
//if
this.state = 10;
if (_result.<Boolean>get().booleanValue()) { 
this.state = 9;
}if (true) break;

case 9:
//C
this.state = 10;
 if (true) break;

case 10:
//C
this.state = 11;
;
 BA.debugLineNum = 318;BA.debugLine="HORAINGRESO =\"000000\"";
Debug.ShouldStop(536870912);
__ref.setField ("_horaingreso" /*RemoteObject*/ ,BA.ObjectToString("000000"));
 BA.debugLineNum = 319;BA.debugLine="Btn_Ubicar.Left = (Root.Width/2) - (Btn_Ubicar.Wi";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_btn_ubicar" /*RemoteObject*/ ).runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0)),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_btn_ubicar" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 321;BA.debugLine="PASO =0";
Debug.ShouldStop(1);
__ref.setField ("_paso" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 322;BA.debugLine="If Not(Starter.gps.GPSEnabled) Then";
Debug.ShouldStop(2);
if (true) break;

case 11:
//if
this.state = 20;
if (parent.__c.runMethod(true,"Not",(Object)(parent._starter._gps /*RemoteObject*/ .runMethod(true,"getGPSEnabled"))).<Boolean>get().booleanValue()) { 
this.state = 13;
}if (true) break;

case 13:
//C
this.state = 14;
 BA.debugLineNum = 323;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageS";
Debug.ShouldStop(4);
if (true) break;

case 14:
//if
this.state = 19;
if (RemoteObject.solveBoolean("!",parent._starter._marcacel /*RemoteObject*/ ,BA.ObjectToString("Sony"))) { 
this.state = 16;
;}if (true) break;

case 16:
//C
this.state = 19;
parent.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Es necesario tener el GPS encendido")),(Object)(parent.__c.getField(true,"True")));
if (true) break;

case 19:
//C
this.state = 20;
;
 BA.debugLineNum = 324;BA.debugLine="StartActivity(Starter.gps.LocationSettingsIntent";
Debug.ShouldStop(8);
parent.__c.runVoidMethod ("StartActivity",__ref.getField(false, "ba"),(Object)((parent._starter._gps /*RemoteObject*/ .runMethod(false,"getLocationSettingsIntent"))));
 if (true) break;

case 20:
//C
this.state = 21;
;
 BA.debugLineNum = 326;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"select count";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select count(*) as CUANTOS from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("FECHA")}))));
 BA.debugLineNum = 327;BA.debugLine="c.Position =0";
Debug.ShouldStop(64);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 328;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then";
Debug.ShouldStop(128);
if (true) break;

case 21:
//if
this.state = 30;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))),BA.NumberToString(0))) { 
this.state = 23;
}else {
this.state = 25;
}if (true) break;

case 23:
//C
this.state = 30;
 BA.debugLineNum = 329;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(256);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 330;BA.debugLine="cmd.Name = \"select_fecha\"";
Debug.ShouldStop(512);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_fecha"));
 BA.debugLineNum = 331;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
Debug.ShouldStop(1024);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("fecha"))));
 BA.debugLineNum = 332;BA.debugLine="Msgbox(\"AJUSTAR FECHA\",\"AVISO\") 'ignore";
Debug.ShouldStop(2048);
parent.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("AJUSTAR FECHA")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("AVISO"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 333;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(4096);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_b4xpage_appear" /*void*/ );
 if (true) break;

case 25:
//C
this.state = 26;
 BA.debugLineNum = 335;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"select CAT_";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("FECHA")}))));
 BA.debugLineNum = 336;BA.debugLine="c.Position=0";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 337;BA.debugLine="Dim sDate,sTime As String";
Debug.ShouldStop(65536);
parent._sdate = RemoteObject.createImmutable("");__ref.setField("_sdate",parent._sdate);
parent._stime = RemoteObject.createImmutable("");__ref.setField("_stime",parent._stime);
 BA.debugLineNum = 338;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\"";
Debug.ShouldStop(131072);
parent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("yyyyMMdd"));
 BA.debugLineNum = 339;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(262144);
__ref.setField ("_sdate" /*RemoteObject*/ ,parent.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(parent.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 340;BA.debugLine="If c.GetString(\"CAT_VA_VALOR\") > sDate Then";
Debug.ShouldStop(524288);
if (true) break;

case 26:
//if
this.state = 29;
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_VA_VALOR")))),BA.numberCast(double.class, __ref.getField(true,"_sdate" /*RemoteObject*/ )))) { 
this.state = 28;
}if (true) break;

case 28:
//C
this.state = 29;
 BA.debugLineNum = 341;BA.debugLine="Msgbox(\"AJUSTAR LA FECHA YA QUE ES MENOR AL SIS";
Debug.ShouldStop(1048576);
parent.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("AJUSTAR LA FECHA YA QUE ES MENOR AL SISTEMA")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable("AVISO"))),__ref.getField(false, "ba"));
 BA.debugLineNum = 342;BA.debugLine="c.Close";
Debug.ShouldStop(2097152);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 343;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(4194304);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_b4xpage_appear" /*void*/ );
 if (true) break;

case 29:
//C
this.state = 30;
;
 BA.debugLineNum = 345;BA.debugLine="c.Close";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 if (true) break;

case 30:
//C
this.state = 31;
;
 BA.debugLineNum = 347;BA.debugLine="c.Close";
Debug.ShouldStop(67108864);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 348;BA.debugLine="If EJECUTANDO =0 Then";
Debug.ShouldStop(134217728);
if (true) break;

case 31:
//if
this.state = 34;
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_ejecutando" /*RemoteObject*/ ),BA.NumberToString(0))) { 
this.state = 33;
}if (true) break;

case 33:
//C
this.state = 34;
 BA.debugLineNum = 349;BA.debugLine="Listo1 = 0";
Debug.ShouldStop(268435456);
__ref.setField ("_listo1" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 350;BA.debugLine="Listo2 = 0";
Debug.ShouldStop(536870912);
__ref.setField ("_listo2" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 351;BA.debugLine="Listo3 = 0";
Debug.ShouldStop(1073741824);
__ref.setField ("_listo3" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 352;BA.debugLine="Listo4 = 0";
Debug.ShouldStop(-2147483648);
__ref.setField ("_listo4" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 353;BA.debugLine="Listo5 = 0";
Debug.ShouldStop(1);
__ref.setField ("_listo5" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 354;BA.debugLine="inve = 0";
Debug.ShouldStop(2);
__ref.setField ("_inve" /*RemoteObject*/ ,BA.NumberToString(0));
 BA.debugLineNum = 355;BA.debugLine="img2.Visible =False";
Debug.ShouldStop(4);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 if (true) break;

case 34:
//C
this.state = 35;
;
 BA.debugLineNum = 357;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(16);
parent.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 358;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(32);
__ref.setField ("_fecha" /*RemoteObject*/ ,parent.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(parent.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 359;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"Select count(";
Debug.ShouldStop(64);
__ref.getField(false,"_b" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select count(*) as CUANTOS from pedido_cliente"))));
 BA.debugLineNum = 360;BA.debugLine="b.Position=0";
Debug.ShouldStop(128);
__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 361;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")";
Debug.ShouldStop(256);
__ref.setField ("_cuantos" /*RemoteObject*/ ,__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))));
 BA.debugLineNum = 362;BA.debugLine="b.Close";
Debug.ShouldStop(512);
__ref.getField(false,"_b" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 364;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
Debug.ShouldStop(2048);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0"))));
 BA.debugLineNum = 365;BA.debugLine="d.Position=0";
Debug.ShouldStop(4096);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 366;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
Debug.ShouldStop(8192);
__ref.getField(false,"_e" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as POR_VISITAR from kmt_info"))));
 BA.debugLineNum = 367;BA.debugLine="e.Position=0";
Debug.ShouldStop(16384);
__ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 368;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
Debug.ShouldStop(32768);
__ref.getField(false,"_f" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as CAT_CL_RUTA from kmt_info"))));
 BA.debugLineNum = 369;BA.debugLine="f.Position=0";
Debug.ShouldStop(65536);
__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 370;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
Debug.ShouldStop(131072);
__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA")))));
 BA.debugLineNum = 371;BA.debugLine="f.Close";
Debug.ShouldStop(262144);
__ref.getField(false,"_f" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 372;BA.debugLine="If l_ruta.Text = 0 Then";
Debug.ShouldStop(524288);
if (true) break;

case 35:
//if
this.state = 40;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.NumberToString(0))) { 
this.state = 37;
}else {
this.state = 39;
}if (true) break;

case 37:
//C
this.state = 40;
 BA.debugLineNum = 373;BA.debugLine="l_ruta.Text =0";
Debug.ShouldStop(1048576);
__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 if (true) break;

case 39:
//C
this.state = 40;
 BA.debugLineNum = 375;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_C";
Debug.ShouldStop(4194304);
__ref.getField(false,"_f" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select CAT_CL_RUTA from kmt_info"))));
 BA.debugLineNum = 376;BA.debugLine="f.Position=0";
Debug.ShouldStop(8388608);
__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 377;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
Debug.ShouldStop(16777216);
__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA")))));
 BA.debugLineNum = 378;BA.debugLine="f.Close";
Debug.ShouldStop(33554432);
__ref.getField(false,"_f" /*RemoteObject*/ ).runVoidMethod ("Close");
 if (true) break;
;
 BA.debugLineNum = 380;BA.debugLine="If Cuantos  = 0 Then";
Debug.ShouldStop(134217728);

case 40:
//if
this.state = 61;
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_cuantos" /*RemoteObject*/ ),BA.NumberToString(0))) { 
this.state = 42;
}else {
this.state = 44;
}if (true) break;

case 42:
//C
this.state = 61;
 BA.debugLineNum = 381;BA.debugLine="L_MONTOD.Text =0";
Debug.ShouldStop(268435456);
__ref.getField(false,"_l_montod" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 382;BA.debugLine="l_cuantosc.Text = 0";
Debug.ShouldStop(536870912);
__ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 383;BA.debugLine="l_cuantosn.Text = 0";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_l_cuantosn" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 384;BA.debugLine="L_CUANTOST.Text = 0";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_l_cuantost" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 385;BA.debugLine="drop = 0";
Debug.ShouldStop(1);
__ref.setField ("_drop" /*RemoteObject*/ ,BA.numberCast(double.class, 0));
 BA.debugLineNum = 386;BA.debugLine="l_drop.Text = 0";
Debug.ShouldStop(2);
__ref.getField(false,"_l_drop" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 387;BA.debugLine="efectiva = 0";
Debug.ShouldStop(4);
__ref.setField ("_efectiva" /*RemoteObject*/ ,BA.numberCast(double.class, 0));
 BA.debugLineNum = 388;BA.debugLine="l_efectiva.text =0";
Debug.ShouldStop(8);
__ref.getField(false,"_l_efectiva" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 389;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
Debug.ShouldStop(16);
__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_VISITAR")))));
 BA.debugLineNum = 390;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
Debug.ShouldStop(32);
__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("POR_VISITAR")))));
 BA.debugLineNum = 391;BA.debugLine="d.Close";
Debug.ShouldStop(64);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 392;BA.debugLine="e.Close";
Debug.ShouldStop(128);
__ref.getField(false,"_e" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 393;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"select count";
Debug.ShouldStop(256);
__ref.getField(false,"_b" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as CUANTOS from noventa"))));
 BA.debugLineNum = 394;BA.debugLine="b.Position=0";
Debug.ShouldStop(512);
__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 395;BA.debugLine="l_cuantosn.Text = b.GetString(\"CUANTOS\")";
Debug.ShouldStop(1024);
__ref.getField(false,"_l_cuantosn" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))));
 BA.debugLineNum = 396;BA.debugLine="b.close";
Debug.ShouldStop(2048);
__ref.getField(false,"_b" /*RemoteObject*/ ).runVoidMethod ("Close");
 if (true) break;

case 44:
//C
this.state = 45;
 BA.debugLineNum = 398;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select  SUM(";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select  SUM(PE_COSTO_TOT) as MONTO_DIA, COUNT(DISTINCT(PE_CLIENTE)) AS CLIENTES_DIA  from PEDIDO "))));
 BA.debugLineNum = 399;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"select count";
Debug.ShouldStop(16384);
__ref.getField(false,"_b" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as CUANTOS from noventa"))));
 BA.debugLineNum = 400;BA.debugLine="c.Position=0";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 401;BA.debugLine="b.Position=0";
Debug.ShouldStop(65536);
__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 402;BA.debugLine="L_MONTOD.Text = c.GetString(\"MONTO_DIA\")";
Debug.ShouldStop(131072);
__ref.getField(false,"_l_montod" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_DIA")))));
 BA.debugLineNum = 403;BA.debugLine="l_cuantosc.Text = c.GetString(\"CLIENTES_DIA\")";
Debug.ShouldStop(262144);
__ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CLIENTES_DIA")))));
 BA.debugLineNum = 405;BA.debugLine="D2=B4XPages.MainPage.skmt.ExecQuery(\"select  COU";
Debug.ShouldStop(1048576);
__ref.getField(false,"_d2" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select  COUNT(*) AS CUANTOS   from PEDIDO "))));
 BA.debugLineNum = 406;BA.debugLine="D2.Position = 0";
Debug.ShouldStop(2097152);
__ref.getField(false,"_d2" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 407;BA.debugLine="LPT = D2.GetString(\"CUANTOS\") / l_cuantosc.Text";
Debug.ShouldStop(4194304);
__ref.setField ("_lpt" /*RemoteObject*/ ,BA.NumberToString(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_d2" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, __ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"getText"))}, "/",0, 0)));
 BA.debugLineNum = 408;BA.debugLine="D2.Close";
Debug.ShouldStop(8388608);
__ref.getField(false,"_d2" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 410;BA.debugLine="l_cuantosn.Text = b.GetString(\"CUANTOS\")";
Debug.ShouldStop(33554432);
__ref.getField(false,"_l_cuantosn" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))));
 BA.debugLineNum = 411;BA.debugLine="efectiva = c.GetString(\"CLIENTES_DIA\") / e.GetSt";
Debug.ShouldStop(67108864);
__ref.setField ("_efectiva" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CLIENTES_DIA")))),BA.numberCast(double.class, __ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("POR_VISITAR"))))}, "/",0, 0));
 BA.debugLineNum = 412;BA.debugLine="l_efectiva.text = Round2(efectiva*100,2)";
Debug.ShouldStop(134217728);
__ref.getField(false,"_l_efectiva" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(parent.__c.runMethod(true,"Round2",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_efectiva" /*RemoteObject*/ ),RemoteObject.createImmutable(100)}, "*",0, 0)),(Object)(BA.numberCast(int.class, 2)))));
 BA.debugLineNum = 413;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
Debug.ShouldStop(268435456);
__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_VISITAR")))));
 BA.debugLineNum = 414;BA.debugLine="d.Close";
Debug.ShouldStop(536870912);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 415;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("POR_VISITAR")))));
 BA.debugLineNum = 416;BA.debugLine="L_CUANTOST.Text = l_cuantosc.Text + l_cuantosn.T";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_l_cuantost" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, __ref.getField(false,"_l_cuantosn" /*RemoteObject*/ ).runMethod(true,"getText"))}, "+",1, 0)));
 BA.debugLineNum = 417;BA.debugLine="drop = L_CUANTOST.Text / l_porvisitar.Text";
Debug.ShouldStop(1);
__ref.setField ("_drop" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_l_cuantost" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, __ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"getText"))}, "/",0, 0));
 BA.debugLineNum = 418;BA.debugLine="l_drop.Text = Round(drop * 100)";
Debug.ShouldStop(2);
__ref.getField(false,"_l_drop" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(parent.__c.runMethod(true,"Round",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_drop" /*RemoteObject*/ ),RemoteObject.createImmutable(100)}, "*",0, 0)))));
 BA.debugLineNum = 419;BA.debugLine="If L_CUANTOST.Text < 40 Then";
Debug.ShouldStop(4);
if (true) break;

case 45:
//if
this.state = 52;
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, __ref.getField(false,"_l_cuantost" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, 40))) { 
this.state = 47;
}else 
{ BA.debugLineNum = 421;BA.debugLine="Else If L_CUANTOST.Text > =  40  And L_CUANTOST.";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("g",BA.numberCast(double.class, __ref.getField(false,"_l_cuantost" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, 40)) && RemoteObject.solveBoolean("<",BA.numberCast(double.class, __ref.getField(false,"_l_cuantost" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, 50))) { 
this.state = 49;
}else {
this.state = 51;
}}
if (true) break;

case 47:
//C
this.state = 52;
 BA.debugLineNum = 420;BA.debugLine="ImageView3.Bitmap = LoadBitmap(File.DirAssets,";
Debug.ShouldStop(8);
__ref.getField(false,"_imageview3" /*RemoteObject*/ ).runMethod(false,"setBitmap",(parent.__c.runMethod(false,"LoadBitmap",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("tache_rojo.png"))).getObject()));
 if (true) break;

case 49:
//C
this.state = 52;
 BA.debugLineNum = 422;BA.debugLine="ImageView3.bitmap = LoadBitmap(File.DirAssets,";
Debug.ShouldStop(32);
__ref.getField(false,"_imageview3" /*RemoteObject*/ ).runMethod(false,"setBitmap",(parent.__c.runMethod(false,"LoadBitmap",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alerta_amarilla.png"))).getObject()));
 if (true) break;

case 51:
//C
this.state = 52;
 BA.debugLineNum = 424;BA.debugLine="ImageView3.Bitmap = LoadBitmap(File.DirAssets,";
Debug.ShouldStop(128);
__ref.getField(false,"_imageview3" /*RemoteObject*/ ).runMethod(false,"setBitmap",(parent.__c.runMethod(false,"LoadBitmap",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("palomita_verde.png"))).getObject()));
 if (true) break;

case 52:
//C
this.state = 53;
;
 BA.debugLineNum = 426;BA.debugLine="L_TICKPROM.Text =  Round2((c.GetString(\"MONTO_DI";
Debug.ShouldStop(512);
__ref.getField(false,"_l_tickprom" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(parent.__c.runMethod(true,"Round2",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_DIA")))),BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CLIENTES_DIA"))))}, "/",0, 0))),(Object)(BA.numberCast(int.class, 2)))));
 BA.debugLineNum = 427;BA.debugLine="If c.GetString(\"MONTO_DIA\") < 4000 Then";
Debug.ShouldStop(1024);
if (true) break;

case 53:
//if
this.state = 60;
if (RemoteObject.solveBoolean("<",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_DIA")))),BA.numberCast(double.class, 4000))) { 
this.state = 55;
}else 
{ BA.debugLineNum = 429;BA.debugLine="Else if c.GetString(\"MONTO_DIA\") > =  4000  And";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("g",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_DIA")))),BA.numberCast(double.class, 4000)) && RemoteObject.solveBoolean("<",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_DIA")))),BA.numberCast(double.class, 6250))) { 
this.state = 57;
}else {
this.state = 59;
}}
if (true) break;

case 55:
//C
this.state = 60;
 BA.debugLineNum = 428;BA.debugLine="ImageView5.Bitmap = LoadBitmap(File.DirAssets,";
Debug.ShouldStop(2048);
__ref.getField(false,"_imageview5" /*RemoteObject*/ ).runMethod(false,"setBitmap",(parent.__c.runMethod(false,"LoadBitmap",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("tache_rojo.png"))).getObject()));
 if (true) break;

case 57:
//C
this.state = 60;
 BA.debugLineNum = 430;BA.debugLine="ImageView5.bitmap = LoadBitmap(File.DirAssets,";
Debug.ShouldStop(8192);
__ref.getField(false,"_imageview5" /*RemoteObject*/ ).runMethod(false,"setBitmap",(parent.__c.runMethod(false,"LoadBitmap",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alerta_amarilla.png"))).getObject()));
 if (true) break;

case 59:
//C
this.state = 60;
 BA.debugLineNum = 432;BA.debugLine="ImageView5.Bitmap = LoadBitmap(File.DirAssets,";
Debug.ShouldStop(32768);
__ref.getField(false,"_imageview5" /*RemoteObject*/ ).runMethod(false,"setBitmap",(parent.__c.runMethod(false,"LoadBitmap",(Object)(parent.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("palomita_verde.png"))).getObject()));
 if (true) break;

case 60:
//C
this.state = 61;
;
 BA.debugLineNum = 434;BA.debugLine="b.Close";
Debug.ShouldStop(131072);
__ref.getField(false,"_b" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 435;BA.debugLine="c.Close";
Debug.ShouldStop(262144);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 if (true) break;

case 61:
//C
this.state = 62;
;
 BA.debugLineNum = 437;BA.debugLine="c.Close";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 438;BA.debugLine="b.Close";
Debug.ShouldStop(2097152);
__ref.getField(false,"_b" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 439;BA.debugLine="e.Close";
Debug.ShouldStop(4194304);
__ref.getField(false,"_e" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 440;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select  ID_AL";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select  ID_ALMACEN from CAT_ALMACEN"))));
 BA.debugLineNum = 441;BA.debugLine="C.Position =0";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 442;BA.debugLine="ALMACEN = C.GetString(\"ID_ALMACEN\")";
Debug.ShouldStop(33554432);
__ref.setField ("_almacen" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("ID_ALMACEN"))));
 BA.debugLineNum = 443;BA.debugLine="c.Close";
Debug.ShouldStop(67108864);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 444;BA.debugLine="bu.Initialize";
Debug.ShouldStop(134217728);
__ref.getField(false,"_bu" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.batteryutilities.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"));
 BA.debugLineNum = 445;BA.debugLine="batterystatus = bu.BatteryInformation";
Debug.ShouldStop(268435456);
__ref.setField ("_batterystatus" /*RemoteObject*/ ,__ref.getField(false,"_bu" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.batteryutilities.class, "_getbatteryinformation" /*RemoteObject*/ ));
 BA.debugLineNum = 448;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select usuario from usuarioa"))));
 BA.debugLineNum = 449;BA.debugLine="c.Position = 0";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 450;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(2);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 451;BA.debugLine="c.Close";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 452;BA.debugLine="B4XPages.MainPage.batt = batterystatus(0)";
Debug.ShouldStop(8);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_batt" /*RemoteObject*/ ,__ref.getField(false,"_batterystatus" /*RemoteObject*/ ).getArrayElement(true,BA.numberCast(int.class, 0)));
 BA.debugLineNum = 453;BA.debugLine="B4XPages.MainPage.montoActual = L_MONTOD.Text";
Debug.ShouldStop(16);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_montoactual" /*RemoteObject*/ ,__ref.getField(false,"_l_montod" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 454;BA.debugLine="B4XPages.MainPage.clientestotal = L_CUANTOST.Text";
Debug.ShouldStop(32);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_clientestotal" /*RemoteObject*/ ,__ref.getField(false,"_l_cuantost" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 455;BA.debugLine="B4XPages.MainPage.clientesventa =  l_cuantosc.Tex";
Debug.ShouldStop(64);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_clientesventa" /*RemoteObject*/ ,__ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 456;BA.debugLine="B4XPages.MainPage.clientesvisitados = l_porvisita";
Debug.ShouldStop(128);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_clientesvisitados" /*RemoteObject*/ ,__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 457;BA.debugLine="B4XPages.MainPage.ALMACEN = ALMACEN";
Debug.ShouldStop(256);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_almacen" /*RemoteObject*/ ,__ref.getField(true,"_almacen" /*RemoteObject*/ ));
 BA.debugLineNum = 458;BA.debugLine="B4XPages.MainPage.rutapreventa =  l_ruta.text";
Debug.ShouldStop(512);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_rutapreventa" /*RemoteObject*/ ,__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"));
 BA.debugLineNum = 461;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select usuario from usuarioa"))));
 BA.debugLineNum = 462;BA.debugLine="c.Position = 0";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 463;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(16384);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 464;BA.debugLine="B4XPages.MainPage.usuario = usuario";
Debug.ShouldStop(32768);
parent._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).setField ("_usuario" /*RemoteObject*/ ,__ref.getField(true,"_usuario" /*RemoteObject*/ ));
 BA.debugLineNum = 465;BA.debugLine="c.Close";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 467;BA.debugLine="CallSub(Starter, \"ENVIA_ULTIMA_GPS\")";
Debug.ShouldStop(262144);
parent.__c.runMethodAndSync(false,"CallSubNew",__ref.getField(false, "ba"),(Object)((parent._starter.getObject())),(Object)(RemoteObject.createImmutable("ENVIA_ULTIMA_GPS")));
 BA.debugLineNum = 469;BA.debugLine="If l_ruta.Text = 0 Then";
Debug.ShouldStop(1048576);
if (true) break;

case 62:
//if
this.state = 67;
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.NumberToString(0))) { 
this.state = 64;
}else {
this.state = 66;
}if (true) break;

case 64:
//C
this.state = 67;
 BA.debugLineNum = 470;BA.debugLine="resdia.Enabled = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_resdia" /*RemoteObject*/ ).runMethod(true,"setEnabled",parent.__c.getField(true,"False"));
 BA.debugLineNum = 471;BA.debugLine="hacer_ped.Enabled = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_hacer_ped" /*RemoteObject*/ ).runMethod(true,"setEnabled",parent.__c.getField(true,"False"));
 BA.debugLineNum = 472;BA.debugLine="nvo_cliente.Enabled = False";
Debug.ShouldStop(8388608);
__ref.getField(false,"_nvo_cliente" /*RemoteObject*/ ).runMethod(true,"setEnabled",parent.__c.getField(true,"False"));
 BA.debugLineNum = 473;BA.debugLine="Btn_Ubicar.Enabled = False";
Debug.ShouldStop(16777216);
__ref.getField(false,"_btn_ubicar" /*RemoteObject*/ ).runMethod(true,"setEnabled",parent.__c.getField(true,"False"));
 BA.debugLineNum = 474;BA.debugLine="tickets_dia.Enabled = False";
Debug.ShouldStop(33554432);
__ref.getField(false,"_tickets_dia" /*RemoteObject*/ ).runMethod(true,"setEnabled",parent.__c.getField(true,"False"));
 if (true) break;

case 66:
//C
this.state = 67;
 BA.debugLineNum = 476;BA.debugLine="resdia.Enabled = True";
Debug.ShouldStop(134217728);
__ref.getField(false,"_resdia" /*RemoteObject*/ ).runMethod(true,"setEnabled",parent.__c.getField(true,"True"));
 BA.debugLineNum = 477;BA.debugLine="hacer_ped.Enabled = True";
Debug.ShouldStop(268435456);
__ref.getField(false,"_hacer_ped" /*RemoteObject*/ ).runMethod(true,"setEnabled",parent.__c.getField(true,"True"));
 BA.debugLineNum = 478;BA.debugLine="nvo_cliente.Enabled = True";
Debug.ShouldStop(536870912);
__ref.getField(false,"_nvo_cliente" /*RemoteObject*/ ).runMethod(true,"setEnabled",parent.__c.getField(true,"True"));
 BA.debugLineNum = 479;BA.debugLine="Btn_Ubicar.Enabled = True";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_btn_ubicar" /*RemoteObject*/ ).runMethod(true,"setEnabled",parent.__c.getField(true,"True"));
 BA.debugLineNum = 480;BA.debugLine="tickets_dia.Enabled = True";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_tickets_dia" /*RemoteObject*/ ).runMethod(true,"setEnabled",parent.__c.getField(true,"True"));
 if (true) break;

case 67:
//C
this.state = -1;
;
 BA.debugLineNum = 482;BA.debugLine="End Sub";
Debug.ShouldStop(2);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static void  _b4xpage_permissionresult(RemoteObject __ref,RemoteObject _permission,RemoteObject _result) throws Exception{
}
public static RemoteObject  _b4xpage_closerequest(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_CloseRequest (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,1686);
if (RapidSub.canDelegate("b4xpage_closerequest")) { return __ref.runUserSub(false, "c_principal","b4xpage_closerequest", __ref);}
ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(null,__ref);
rsub.remoteResumableSub = anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSubForFilter();
rsub.resume(null, null);
return RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.keywords.Common.ResumableSubWrapper"), rsub.remoteResumableSub);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub {
public ResumableSub_B4XPage_CloseRequest(keymon.lat.medicomed.c_principal parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
keymon.lat.medicomed.c_principal parent;

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_CloseRequest (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,1686);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

    while (true) {
        switch (state) {
            case -1:
{
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,RemoteObject.createImmutable(null));return;}
case 0:
//C
this.state = 1;
Debug.locals.put("_ref", __ref);
 BA.debugLineNum = 1688;BA.debugLine="If SCROLL_RESDIA.Visible Then";
Debug.ShouldStop(8388608);
if (true) break;

case 1:
//if
this.state = 8;
if (__ref.getField(false,"_scroll_resdia" /*RemoteObject*/ ).runMethod(true,"getVisible").<Boolean>get().booleanValue()) { 
this.state = 3;
}else 
{ BA.debugLineNum = 1692;BA.debugLine="Else if Panel5.Visible Then";
Debug.ShouldStop(134217728);
if (__ref.getField(false,"_panel5" /*RemoteObject*/ ).runMethod(true,"getVisible").<Boolean>get().booleanValue()) { 
this.state = 5;
}else {
this.state = 7;
}}
if (true) break;

case 3:
//C
this.state = 8;
 BA.debugLineNum = 1689;BA.debugLine="SCROLL_RESDIA.Visible = False";
Debug.ShouldStop(16777216);
__ref.getField(false,"_scroll_resdia" /*RemoteObject*/ ).runMethod(true,"setVisible",parent.__c.getField(true,"False"));
 BA.debugLineNum = 1690;BA.debugLine="B_OK_RES_Click";
Debug.ShouldStop(33554432);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_b_ok_res_click" /*RemoteObject*/ );
 BA.debugLineNum = 1691;BA.debugLine="Return False";
Debug.ShouldStop(67108864);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 if (true) break;

case 5:
//C
this.state = 8;
 BA.debugLineNum = 1693;BA.debugLine="B_OK_PANEL5_Click";
Debug.ShouldStop(268435456);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_b_ok_panel5_click" /*RemoteObject*/ );
 BA.debugLineNum = 1694;BA.debugLine="Return False";
Debug.ShouldStop(536870912);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 if (true) break;

case 7:
//C
this.state = 8;
 BA.debugLineNum = 1696;BA.debugLine="B4XPages.ShowPage(\"login\")";
Debug.ShouldStop(-2147483648);
parent._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("login")));
 if (true) break;

case 8:
//C
this.state = -1;
;
 BA.debugLineNum = 1698;BA.debugLine="Return False";
Debug.ShouldStop(2);
if (true) {
parent.__c.runVoidMethod ("ReturnFromResumableSub",this.remoteResumableSub,(parent.__c.getField(true,"False")));return;};
 BA.debugLineNum = 1699;BA.debugLine="End Sub";
Debug.ShouldStop(4);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static RemoteObject  _b4xpage_created(RemoteObject __ref,RemoteObject _root1) throws Exception{
try {
		Debug.PushSubsStack("B4XPage_Created (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,227);
if (RapidSub.canDelegate("b4xpage_created")) { return __ref.runUserSub(false, "c_principal","b4xpage_created", __ref, _root1);}
RemoteObject _ruta = RemoteObject.createImmutable("");
RemoteObject _ds = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.CursorWrapper");
Debug.locals.put("Root1", _root1);
 BA.debugLineNum = 227;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)";
Debug.ShouldStop(4);
 BA.debugLineNum = 228;BA.debugLine="Root = Root1";
Debug.ShouldStop(8);
__ref.setField ("_root" /*RemoteObject*/ ,_root1);
 BA.debugLineNum = 230;BA.debugLine="Root.LoadLayout(\"principal\")";
Debug.ShouldStop(32);
__ref.getField(false,"_root" /*RemoteObject*/ ).runVoidMethodAndSync ("LoadLayout",(Object)(RemoteObject.createImmutable("principal")),__ref.getField(false, "ba"));
 BA.debugLineNum = 231;BA.debugLine="EJECUTANDO=1";
Debug.ShouldStop(64);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 232;BA.debugLine="Dim ruta As String";
Debug.ShouldStop(128);
_ruta = RemoteObject.createImmutable("");Debug.locals.put("ruta", _ruta);
 BA.debugLineNum = 233;BA.debugLine="img2.Visible =False";
Debug.ShouldStop(256);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 234;BA.debugLine="ruta = File.DirInternal";
Debug.ShouldStop(512);
_ruta = c_principal.__c.getField(false,"File").runMethod(true,"getDirInternal");Debug.locals.put("ruta", _ruta);
 BA.debugLineNum = 235;BA.debugLine="If File.Exists(ruta, \"kmt.db\") = False Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",c_principal.__c.getField(false,"File").runMethod(true,"Exists",(Object)(_ruta),(Object)(RemoteObject.createImmutable("kmt.db"))),c_principal.__c.getField(true,"False"))) { 
 BA.debugLineNum = 236;BA.debugLine="File.Copy(File.DirAssets, \"kmt.db\", ruta, \"kmt.d";
Debug.ShouldStop(2048);
c_principal.__c.getField(false,"File").runVoidMethod ("Copy",(Object)(c_principal.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(BA.ObjectToString("kmt.db")),(Object)(_ruta),(Object)(RemoteObject.createImmutable("kmt.db")));
 };
 BA.debugLineNum = 238;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(8192);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 239;BA.debugLine="fecha=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(16384);
__ref.setField ("_fecha" /*RemoteObject*/ ,c_principal.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 240;BA.debugLine="B4XPages.MainPage.skmt.Initialize(ruta,\"kmt.db\",";
Debug.ShouldStop(32768);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(_ruta),(Object)(BA.ObjectToString("kmt.db")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 241;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"Select count(";
Debug.ShouldStop(65536);
__ref.getField(false,"_b" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select count(*) as CUANTOS from pedido_cliente"))));
 BA.debugLineNum = 242;BA.debugLine="b.Position=0";
Debug.ShouldStop(131072);
__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 243;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")";
Debug.ShouldStop(262144);
__ref.setField ("_cuantos" /*RemoteObject*/ ,__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))));
 BA.debugLineNum = 244;BA.debugLine="b.Close";
Debug.ShouldStop(524288);
__ref.getField(false,"_b" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 245;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
Debug.ShouldStop(1048576);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0"))));
 BA.debugLineNum = 246;BA.debugLine="d.Position=0";
Debug.ShouldStop(2097152);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 247;BA.debugLine="e=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
Debug.ShouldStop(4194304);
__ref.getField(false,"_e" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as POR_VISITAR from kmt_info"))));
 BA.debugLineNum = 248;BA.debugLine="e.Position=0";
Debug.ShouldStop(8388608);
__ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 249;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select count(";
Debug.ShouldStop(16777216);
__ref.getField(false,"_f" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as CAT_CL_RUTA from kmt_info"))));
 BA.debugLineNum = 250;BA.debugLine="f.Position=0";
Debug.ShouldStop(33554432);
__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 251;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
Debug.ShouldStop(67108864);
__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA")))));
 BA.debugLineNum = 252;BA.debugLine="f.Close";
Debug.ShouldStop(134217728);
__ref.getField(false,"_f" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 253;BA.debugLine="If l_ruta.Text = 0 Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.NumberToString(0))) { 
 BA.debugLineNum = 254;BA.debugLine="l_ruta.Text =0";
Debug.ShouldStop(536870912);
__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 }else {
 BA.debugLineNum = 256;BA.debugLine="f=B4XPages.MainPage.skmt.ExecQuery(\"select CAT_C";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_f" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select CAT_CL_RUTA from kmt_info"))));
 BA.debugLineNum = 257;BA.debugLine="f.Position=0";
Debug.ShouldStop(1);
__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 258;BA.debugLine="l_ruta.Text = f.GetString(\"CAT_CL_RUTA\")";
Debug.ShouldStop(2);
__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_f" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_RUTA")))));
 BA.debugLineNum = 259;BA.debugLine="f.Close";
Debug.ShouldStop(4);
__ref.getField(false,"_f" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 261;BA.debugLine="If Cuantos  = 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_cuantos" /*RemoteObject*/ ),BA.NumberToString(0))) { 
 BA.debugLineNum = 262;BA.debugLine="L_MONTOD.Text =0";
Debug.ShouldStop(32);
__ref.getField(false,"_l_montod" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 263;BA.debugLine="l_cuantosc.Text = 0";
Debug.ShouldStop(64);
__ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 264;BA.debugLine="l_cuantosn.Text = 0";
Debug.ShouldStop(128);
__ref.getField(false,"_l_cuantosn" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 265;BA.debugLine="drop = 0";
Debug.ShouldStop(256);
__ref.setField ("_drop" /*RemoteObject*/ ,BA.numberCast(double.class, 0));
 BA.debugLineNum = 266;BA.debugLine="l_drop.Text = 0";
Debug.ShouldStop(512);
__ref.getField(false,"_l_drop" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 267;BA.debugLine="efectiva = 0";
Debug.ShouldStop(1024);
__ref.setField ("_efectiva" /*RemoteObject*/ ,BA.numberCast(double.class, 0));
 BA.debugLineNum = 268;BA.debugLine="l_efectiva.text =0";
Debug.ShouldStop(2048);
__ref.getField(false,"_l_efectiva" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 269;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_VISITAR")))));
 BA.debugLineNum = 270;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
Debug.ShouldStop(8192);
__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("POR_VISITAR")))));
 }else {
 BA.debugLineNum = 272;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select sum(p";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select sum(pc_monto) as MONTO_DIA, count(pc_cliente) AS CLIENTES_DIA  from pedido_cliente "))));
 BA.debugLineNum = 273;BA.debugLine="b=B4XPages.MainPage.skmt.ExecQuery(\"select count";
Debug.ShouldStop(65536);
__ref.getField(false,"_b" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select count(*) as CUANTOS from noventa"))));
 BA.debugLineNum = 275;BA.debugLine="c.Position=0";
Debug.ShouldStop(262144);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 276;BA.debugLine="b.Position=0";
Debug.ShouldStop(524288);
__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 277;BA.debugLine="L_MONTOD.Text = c.GetString(\"MONTO_DIA\")";
Debug.ShouldStop(1048576);
__ref.getField(false,"_l_montod" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_DIA")))));
 BA.debugLineNum = 278;BA.debugLine="l_cuantosc.Text = c.GetString(\"CLIENTES_DIA\")";
Debug.ShouldStop(2097152);
__ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CLIENTES_DIA")))));
 BA.debugLineNum = 279;BA.debugLine="l_cuantosn.Text = b.GetString(\"CUANTOS\")";
Debug.ShouldStop(4194304);
__ref.getField(false,"_l_cuantosn" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_b" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))));
 BA.debugLineNum = 280;BA.debugLine="drop = c.GetString(\"MONTO_DIA\") / c.GetString(\"C";
Debug.ShouldStop(8388608);
__ref.setField ("_drop" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_DIA")))),BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CLIENTES_DIA"))))}, "/",0, 0));
 BA.debugLineNum = 281;BA.debugLine="l_drop.Text = Round2(drop,2)";
Debug.ShouldStop(16777216);
__ref.getField(false,"_l_drop" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_principal.__c.runMethod(true,"Round2",(Object)(__ref.getField(true,"_drop" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 2)))));
 BA.debugLineNum = 282;BA.debugLine="efectiva = c.GetString(\"CLIENTES_DIA\") / e.GetSt";
Debug.ShouldStop(33554432);
__ref.setField ("_efectiva" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CLIENTES_DIA")))),BA.numberCast(double.class, __ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("POR_VISITAR"))))}, "/",0, 0));
 BA.debugLineNum = 283;BA.debugLine="l_efectiva.text = Round2(efectiva*100,2)";
Debug.ShouldStop(67108864);
__ref.getField(false,"_l_efectiva" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_principal.__c.runMethod(true,"Round2",(Object)(RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_efectiva" /*RemoteObject*/ ),RemoteObject.createImmutable(100)}, "*",0, 0)),(Object)(BA.numberCast(int.class, 2)))));
 BA.debugLineNum = 284;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")";
Debug.ShouldStop(134217728);
__ref.getField(false,"_l_ctast" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL_VISITAR")))));
 BA.debugLineNum = 285;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")";
Debug.ShouldStop(268435456);
__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_e" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("POR_VISITAR")))));
 BA.debugLineNum = 286;BA.debugLine="b.Close";
Debug.ShouldStop(536870912);
__ref.getField(false,"_b" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 287;BA.debugLine="c.Close";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 289;BA.debugLine="d.Close";
Debug.ShouldStop(1);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 290;BA.debugLine="e.Close";
Debug.ShouldStop(2);
__ref.getField(false,"_e" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 291;BA.debugLine="Private ds As Cursor = B4XPages.MainPage.skmt.Exe";
Debug.ShouldStop(4);
_ds = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");
_ds = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.CursorWrapper"), c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select cat_cl_diasemana from kmt_info"))));Debug.locals.put("ds", _ds);Debug.locals.put("ds", _ds);
 BA.debugLineNum = 292;BA.debugLine="If ds.RowCount > 0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean(">",_ds.runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 293;BA.debugLine="ds.Position = 0";
Debug.ShouldStop(16);
_ds.runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 294;BA.debugLine="Starter.dia_semana = ds.GetString(\"CAT_CL_DIASEM";
Debug.ShouldStop(32);
c_principal._starter._dia_semana /*RemoteObject*/  = _ds.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CAT_CL_DIASEMANA")));
 };
 BA.debugLineNum = 299;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static void  _btn_ubicar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Btn_Ubicar_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,2161);
if (RapidSub.canDelegate("btn_ubicar_click")) { __ref.runUserSub(false, "c_principal","btn_ubicar_click", __ref); return;}
ResumableSub_Btn_Ubicar_Click rsub = new ResumableSub_Btn_Ubicar_Click(null,__ref);
rsub.resume(null, null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static class ResumableSub_Btn_Ubicar_Click extends BA.ResumableSub {
public ResumableSub_Btn_Ubicar_Click(keymon.lat.medicomed.c_principal parent,RemoteObject __ref) {
this.parent = parent;
this.__ref = __ref;
}
java.util.LinkedHashMap<String, Object> rsLocals = new java.util.LinkedHashMap<String, Object>();
RemoteObject __ref;
keymon.lat.medicomed.c_principal parent;
RemoteObject _permission = RemoteObject.createImmutable("");
RemoteObject _result = RemoteObject.createImmutable(false);

@Override
public void resume(BA ba, RemoteObject result) throws Exception{
try {
		Debug.PushSubsStack("Btn_Ubicar_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,2161);
Debug.locals = rsLocals;Debug.currentSubFrame.locals = rsLocals;

    while (true) {
        switch (state) {
            case -1:
return;

case 0:
//C
this.state = 1;
Debug.locals.put("_ref", __ref);
 BA.debugLineNum = 2162;BA.debugLine="rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCA";
Debug.ShouldStop(131072);
__ref.getField(false,"_rp" /*RemoteObject*/ ).runVoidMethod ("CheckAndRequest",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_rp" /*RemoteObject*/ ).getField(true,"PERMISSION_ACCESS_FINE_LOCATION")));
 BA.debugLineNum = 2163;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As";
Debug.ShouldStop(262144);
parent.__c.runVoidMethod ("WaitFor","b4xpage_permissionresult", __ref.getField(false, "ba"), anywheresoftware.b4a.pc.PCResumableSub.createDebugResumeSub(this, "c_principal", "btn_ubicar_click"), null);
this.state = 5;
return;
case 5:
//C
this.state = 1;
_permission = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(1));Debug.locals.put("Permission", _permission);
_result = (RemoteObject) result.getArrayElement(true,RemoteObject.createImmutable(2));Debug.locals.put("Result", _result);
;
 BA.debugLineNum = 2164;BA.debugLine="If Result Then";
Debug.ShouldStop(524288);
if (true) break;

case 1:
//if
this.state = 4;
if (_result.<Boolean>get().booleanValue()) { 
this.state = 3;
}if (true) break;

case 3:
//C
this.state = 4;
 BA.debugLineNum = 2165;BA.debugLine="StartActivity(MAPA_RUTAS)";
Debug.ShouldStop(1048576);
parent.__c.runVoidMethod ("StartActivity",__ref.getField(false, "ba"),(Object)((parent._mapa_rutas.getObject())));
 if (true) break;

case 4:
//C
this.state = -1;
;
 BA.debugLineNum = 2167;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
if (true) break;

            }
        }
    }
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}
public static RemoteObject  _busca_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("BUSCA_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,1763);
if (RapidSub.canDelegate("busca_click")) { return __ref.runUserSub(false, "c_principal","busca_click", __ref);}
 BA.debugLineNum = 1763;BA.debugLine="Sub BUSCA_Click";
Debug.ShouldStop(4);
 BA.debugLineNum = 1764;BA.debugLine="B4XPages.ShowPage(\"TicketsDia\")";
Debug.ShouldStop(8);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("TicketsDia")));
 BA.debugLineNum = 1765;BA.debugLine="End Sub";
Debug.ShouldStop(16);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _carga_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("CARGA_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,1979);
if (RapidSub.canDelegate("carga_click")) { return __ref.runUserSub(false, "c_principal","carga_click", __ref);}
 BA.debugLineNum = 1979;BA.debugLine="Sub CARGA_Click";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 1980;BA.debugLine="B4XPages.ShowPage(\"Productos\")";
Debug.ShouldStop(134217728);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Productos")));
 BA.debugLineNum = 1981;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _cargar_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("cargar_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,777);
if (RapidSub.canDelegate("cargar_click")) { return __ref.runUserSub(false, "c_principal","cargar_click", __ref);}
 BA.debugLineNum = 777;BA.debugLine="Sub cargar_Click";
Debug.ShouldStop(256);
 BA.debugLineNum = 778;BA.debugLine="CARGA = \"CARGAR\"";
Debug.ShouldStop(512);
__ref.setField ("_carga" /*RemoteObject*/ ,BA.ObjectToString("CARGAR"));
 BA.debugLineNum = 779;BA.debugLine="p_mandaInfo.Width = Root.Width";
Debug.ShouldStop(1024);
__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 780;BA.debugLine="p_mandaInfo.Height = Root.Height";
Debug.ShouldStop(2048);
__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 781;BA.debugLine="P1.Left = (p_mandaInfo.Width/2) - (P1.Width/2)";
Debug.ShouldStop(4096);
__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0)),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 782;BA.debugLine="P1.top = (p_mandaInfo.Height/2) - (P1.Height/2)";
Debug.ShouldStop(8192);
__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"setTop",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(2)}, "/",0, 0)),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 783;BA.debugLine="img2.Visible =True";
Debug.ShouldStop(16384);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 784;BA.debugLine="L_P_1.Visible = True";
Debug.ShouldStop(32768);
__ref.getField(false,"_l_p_1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 785;BA.debugLine="S_CC.Visible = True";
Debug.ShouldStop(65536);
__ref.getField(false,"_s_cc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 786;BA.debugLine="Btn_Ubicar.Visible=False";
Debug.ShouldStop(131072);
__ref.getField(false,"_btn_ubicar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 787;BA.debugLine="P1.Visible = True";
Debug.ShouldStop(262144);
__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 788;BA.debugLine="p_mandaInfo.Visible = True";
Debug.ShouldStop(524288);
__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 789;BA.debugLine="p_principal.Visible = False";
Debug.ShouldStop(1048576);
__ref.getField(false,"_p_principal" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 790;BA.debugLine="Subs.panelVisible(P1, 0, 0)";
Debug.ShouldStop(2097152);
c_principal._subs.runVoidMethod ("_panelvisible" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p1" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)(BA.numberCast(int.class, 0)));
 BA.debugLineNum = 791;BA.debugLine="Subs.centraPanel(P1, Root.Width)";
Debug.ShouldStop(4194304);
c_principal._subs.runVoidMethod ("_centrapanel" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p1" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth")));
 BA.debugLineNum = 792;BA.debugLine="Subs.centraPanelV(P1, Root.Height)";
Debug.ShouldStop(8388608);
c_principal._subs.runVoidMethod ("_centrapanelv" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_p1" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight")));
 BA.debugLineNum = 794;BA.debugLine="NUEVO.Visible =False";
Debug.ShouldStop(33554432);
__ref.getField(false,"_nuevo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 795;BA.debugLine="BUSCA.Visible=False";
Debug.ShouldStop(67108864);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 796;BA.debugLine="connecta.Visible=False";
Debug.ShouldStop(134217728);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 797;BA.debugLine="L_P_3.Visible = True";
Debug.ShouldStop(268435456);
__ref.getField(false,"_l_p_3" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 798;BA.debugLine="S_CH.Visible = True";
Debug.ShouldStop(536870912);
__ref.getField(false,"_s_ch" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 799;BA.debugLine="PB1.Visible = True";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 800;BA.debugLine="Resumen.Visible= False";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 802;BA.debugLine="L_P_1.Text = \"Catalogo de Clientes\"";
Debug.ShouldStop(2);
__ref.getField(false,"_l_p_1" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Catalogo de Clientes"));
 BA.debugLineNum = 803;BA.debugLine="L_P_2.Text = \"Catalogos de Productos\"";
Debug.ShouldStop(4);
__ref.getField(false,"_l_p_2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Catalogos de Productos"));
 BA.debugLineNum = 804;BA.debugLine="L_P_3.Text = \"Catalogos Historicos\"";
Debug.ShouldStop(8);
__ref.getField(false,"_l_p_3" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Catalogos Historicos"));
 BA.debugLineNum = 805;BA.debugLine="S_CC.Text = \"EN PROCESO\"";
Debug.ShouldStop(16);
__ref.getField(false,"_s_cc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("EN PROCESO"));
 BA.debugLineNum = 806;BA.debugLine="S_CH.Text = \"EN PROCESO\"";
Debug.ShouldStop(32);
__ref.getField(false,"_s_ch" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("EN PROCESO"));
 BA.debugLineNum = 807;BA.debugLine="S_CP.Text = \"EN PROCESO\"";
Debug.ShouldStop(64);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("EN PROCESO"));
 BA.debugLineNum = 808;BA.debugLine="PB1.Progress = 0";
Debug.ShouldStop(128);
__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 0));
 BA.debugLineNum = 809;BA.debugLine="PB2.Progress = 0";
Debug.ShouldStop(256);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 0));
 BA.debugLineNum = 810;BA.debugLine="EJECUTANDO = 1";
Debug.ShouldStop(512);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 813;BA.debugLine="TOPE = 0";
Debug.ShouldStop(4096);
__ref.setField ("_tope" /*RemoteObject*/ ,BA.numberCast(int.class, 0));
 BA.debugLineNum = 816;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(32768);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from kmt_info")));
 BA.debugLineNum = 817;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(65536);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cod_result")));
 BA.debugLineNum = 818;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(131072);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from hist_gest")));
 BA.debugLineNum = 819;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(262144);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_gunaprod")));
 BA.debugLineNum = 820;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(524288);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CAT_DETALLES_PAQ")));
 BA.debugLineNum = 821;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(1048576);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from telefonos")));
 BA.debugLineNum = 822;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(2097152);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from HIST_VENTAS")));
 BA.debugLineNum = 823;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(4194304);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from HIST_PROMOS")));
 BA.debugLineNum = 824;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(8388608);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from HIST_CLIENTE_CANT_PROMOS")));
 BA.debugLineNum = 825;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(16777216);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from PROMOS_COMP")));
 BA.debugLineNum = 826;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(33554432);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CAT_VERIFICACION")));
 BA.debugLineNum = 827;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
Debug.ShouldStop(67108864);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM MARCAS_RUTAS")));
 BA.debugLineNum = 828;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
Debug.ShouldStop(134217728);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM HIST_STAY_STORE")));
 BA.debugLineNum = 829;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
Debug.ShouldStop(268435456);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM HIST_GEOCERCA")));
 BA.debugLineNum = 830;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
Debug.ShouldStop(536870912);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM HIST_MARCAS_CUOTAS")));
 BA.debugLineNum = 831;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FROM";
Debug.ShouldStop(1073741824);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM HIST_AVANCE")));
 BA.debugLineNum = 833;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery2(\"select cou";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select count(CAT_VA_DESCRIPCION) as HoraIngreso from cat_variables where CAT_VA_DESCRIPCION = ? ")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("HoraIngreso")}))));
 BA.debugLineNum = 834;BA.debugLine="c.Position = 0";
Debug.ShouldStop(2);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 835;BA.debugLine="DateTime.TimeFormat = \"HHmmss\"";
Debug.ShouldStop(4);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HHmmss"));
 BA.debugLineNum = 837;BA.debugLine="If c.GetString(\"HoraIngreso\") > 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HoraIngreso")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 838;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"Update cat";
Debug.ShouldStop(32);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("Update cat_variables set CAT_VA_VALOR = ?  WHERE CAT_VA_DESCRIPCION = ?")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {c_principal.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow"))),RemoteObject.createImmutable("HoraIngreso")})))));
 }else {
 BA.debugLineNum = 840;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT INT";
Debug.ShouldStop(128);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_VALOR,CAT_VA_DESCRIPCION)  VALUES (?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {c_principal.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow"))),RemoteObject.createImmutable("HoraIngreso")})))));
 };
 BA.debugLineNum = 842;BA.debugLine="c.Close";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 843;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\"";
Debug.ShouldStop(1024);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setTimeFormat",BA.ObjectToString("HH:mm:ss"));
 BA.debugLineNum = 844;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari";
Debug.ShouldStop(2048);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select usuario from usuarioa"))));
 BA.debugLineNum = 845;BA.debugLine="c.Position = 0";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 846;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(8192);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 847;BA.debugLine="c.Close";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 849;BA.debugLine="Dim sDate,sTime As String";
Debug.ShouldStop(65536);
c_principal._sdate = RemoteObject.createImmutable("");__ref.setField("_sdate",c_principal._sdate);
c_principal._stime = RemoteObject.createImmutable("");__ref.setField("_stime",c_principal._stime);
 BA.debugLineNum = 850;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(131072);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 851;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(262144);
__ref.setField ("_sdate" /*RemoteObject*/ ,c_principal.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 852;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(524288);
__ref.setField ("_stime" /*RemoteObject*/ ,c_principal.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 854;BA.debugLine="Dim P As PhoneId";
Debug.ShouldStop(2097152);
c_principal._p = RemoteObject.createNew ("anywheresoftware.b4a.phone.Phone.PhoneId");__ref.setField("_p",c_principal._p);
 BA.debugLineNum = 856;BA.debugLine="imei = \"yyyy\"";
Debug.ShouldStop(8388608);
__ref.setField ("_imei" /*RemoteObject*/ ,BA.ObjectToString("yyyy"));
 BA.debugLineNum = 857;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 858;BA.debugLine="cmd.Name =\"insert_drop_MEDI_2\"";
Debug.ShouldStop(33554432);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_drop_MEDI_2"));
 BA.debugLineNum = 859;BA.debugLine="cmd.Parameters = Array As Object(usuario,l_ruta.T";
Debug.ShouldStop(67108864);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {11},new Object[] {(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_l_drop" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_l_efectiva" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_l_cuantosn" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_l_montod" /*RemoteObject*/ ).runMethod(true,"getText")),RemoteObject.createImmutable(("CARGA")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 860;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd ,";
Debug.ShouldStop(134217728);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("inst_noventa"))));
 BA.debugLineNum = 862;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(536870912);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 863;BA.debugLine="cmd.Name = \"select_cat_gunaprod_MEDI\"";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cat_gunaprod_MEDI"));
 BA.debugLineNum = 864;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 865;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(1);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("gunaprod"))));
 BA.debugLineNum = 872;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(128);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 873;BA.debugLine="cmd.Name = \"select_cat_paquetes_MEDI3\"";
Debug.ShouldStop(256);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cat_paquetes_MEDI3"));
 BA.debugLineNum = 874;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
Debug.ShouldStop(512);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 875;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(1024);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("gunaprodp"))));
 BA.debugLineNum = 877;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(4096);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 878;BA.debugLine="cmd.Name = \"select_cat_paquetess_MEDI\"";
Debug.ShouldStop(8192);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cat_paquetess_MEDI"));
 BA.debugLineNum = 879;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
Debug.ShouldStop(16384);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 880;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(32768);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("gunaprodp"))));
 BA.debugLineNum = 882;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(131072);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 883;BA.debugLine="cmd.Name = \"select_cat_detallepa_MEDI\"";
Debug.ShouldStop(262144);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cat_detallepa_MEDI"));
 BA.debugLineNum = 884;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
Debug.ShouldStop(524288);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 885;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(1048576);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("detallepaq"))));
 BA.debugLineNum = 887;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 888;BA.debugLine="cmd.Name = \"select_cat_clientes_MEDI\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cat_clientes_MEDI"));
 BA.debugLineNum = 889;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 890;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(33554432);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("kmt_datos"))));
 BA.debugLineNum = 892;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(134217728);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 893;BA.debugLine="cmd.Name = \"select_hist_datos_MEDI_2\"";
Debug.ShouldStop(268435456);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_hist_datos_MEDI_2"));
 BA.debugLineNum = 894;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM";
Debug.ShouldStop(536870912);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {4},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 895;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(1073741824);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("hist_datos"))));
 BA.debugLineNum = 897;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(1);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 898;BA.debugLine="cmd.Name = \"select_hist_promos_MEDI\"";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_hist_promos_MEDI"));
 BA.debugLineNum = 899;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM";
Debug.ShouldStop(4);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 900;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(8);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("hist_promos"))));
 BA.debugLineNum = 902;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(32);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 903;BA.debugLine="cmd.Name = \"select_hist_cliente_promos_MEDI\"";
Debug.ShouldStop(64);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_hist_cliente_promos_MEDI"));
 BA.debugLineNum = 904;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM";
Debug.ShouldStop(128);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 905;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(256);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("hist_cliente_promos"))));
 BA.debugLineNum = 912;BA.debugLine="If E_RUTA2.text <> \"\" Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_e_ruta2" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString(""))) { 
 BA.debugLineNum = 913;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(65536);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 914;BA.debugLine="cmd.Name = \"select_cat_clientes_MEDI\"";
Debug.ShouldStop(131072);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cat_clientes_MEDI"));
 BA.debugLineNum = 915;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text, A";
Debug.ShouldStop(262144);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_e_ruta2" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 916;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
Debug.ShouldStop(524288);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("kmt_datos"))));
 BA.debugLineNum = 918;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(2097152);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 919;BA.debugLine="cmd.Name = \"select_hist_datos_MEDI\"";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_hist_datos_MEDI"));
 BA.debugLineNum = 920;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text, A";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_e_ruta2" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 921;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
Debug.ShouldStop(16777216);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("hist_datos"))));
 BA.debugLineNum = 923;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(67108864);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 924;BA.debugLine="cmd.Name = \"select_hist_promos_MEDI\"";
Debug.ShouldStop(134217728);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_hist_promos_MEDI"));
 BA.debugLineNum = 925;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text, A";
Debug.ShouldStop(268435456);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_e_ruta2" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 926;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
Debug.ShouldStop(536870912);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("hist_promos"))));
 BA.debugLineNum = 928;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 929;BA.debugLine="cmd.Name = \"select_hist_cliente_promos_MEDI\"";
Debug.ShouldStop(1);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_hist_cliente_promos_MEDI"));
 BA.debugLineNum = 930;BA.debugLine="cmd.Parameters = Array As Object(E_RUTA2.text, A";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_e_ruta2" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 931;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
Debug.ShouldStop(4);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("hist_cliente_promos"))));
 };
 BA.debugLineNum = 934;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(32);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 935;BA.debugLine="cmd.Name = \"select_promo_comp_MEDI\"";
Debug.ShouldStop(64);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_promo_comp_MEDI"));
 BA.debugLineNum = 936;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
Debug.ShouldStop(128);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 937;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(256);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("hist_comp_promos"))));
 BA.debugLineNum = 944;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(32768);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 945;BA.debugLine="cmd.Name = \"select_fecha\"";
Debug.ShouldStop(65536);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_fecha"));
 BA.debugLineNum = 946;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM";
Debug.ShouldStop(131072);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 947;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(262144);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("fecha"))));
 BA.debugLineNum = 949;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(1048576);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 950;BA.debugLine="cmd.Name = \"select_folio_MEDI\"";
Debug.ShouldStop(2097152);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_folio_MEDI"));
 BA.debugLineNum = 951;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 952;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(8388608);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("folio"))));
 BA.debugLineNum = 954;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(33554432);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 955;BA.debugLine="cmd.Name = \"select_marcas_rutas_MEDI\"";
Debug.ShouldStop(67108864);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_marcas_rutas_MEDI"));
 BA.debugLineNum = 956;BA.debugLine="cmd.Parameters = Array As Object( ALMACEN, e_ruta";
Debug.ShouldStop(134217728);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText"))}));
 BA.debugLineNum = 957;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(268435456);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("marcas_rutas"))));
 BA.debugLineNum = 980;BA.debugLine="cargar.Visible = False";
Debug.ShouldStop(524288);
__ref.getField(false,"_cargar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 981;BA.debugLine="Subir.Visible = False";
Debug.ShouldStop(1048576);
__ref.getField(false,"_subir" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 982;BA.debugLine="inv.Visible = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_inv" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 983;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageSh";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("!",c_principal._starter._marcacel /*RemoteObject*/ ,BA.ObjectToString("Sony"))) { 
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias")),(Object)(c_principal.__c.getField(true,"True")));};
 BA.debugLineNum = 984;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _class_globals(RemoteObject __ref) throws Exception{
 //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 2;BA.debugLine="Public rp As RuntimePermissions";
c_principal._rp = RemoteObject.createNew ("anywheresoftware.b4a.objects.RuntimePermissions");__ref.setField("_rp",c_principal._rp);
 //BA.debugLineNum = 3;BA.debugLine="Private Root As B4XView 'ignore";
c_principal._root = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_root",c_principal._root);
 //BA.debugLineNum = 4;BA.debugLine="Private xui As XUI 'ignore";
c_principal._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",c_principal._xui);
 //BA.debugLineNum = 5;BA.debugLine="Dim reqManager As DBRequestManager";
c_principal._reqmanager = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager");__ref.setField("_reqmanager",c_principal._reqmanager);
 //BA.debugLineNum = 6;BA.debugLine="Dim conectado As String";
c_principal._conectado = RemoteObject.createImmutable("");__ref.setField("_conectado",c_principal._conectado);
 //BA.debugLineNum = 7;BA.debugLine="Dim t1 As Timer";
c_principal._t1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.Timer");__ref.setField("_t1",c_principal._t1);
 //BA.debugLineNum = 8;BA.debugLine="Dim sb As StringBuilder";
c_principal._sb = RemoteObject.createNew ("anywheresoftware.b4a.keywords.StringBuilderWrapper");__ref.setField("_sb",c_principal._sb);
 //BA.debugLineNum = 9;BA.debugLine="Dim PHONE As Phone";
c_principal._phone = RemoteObject.createNew ("anywheresoftware.b4a.phone.Phone");__ref.setField("_phone",c_principal._phone);
 //BA.debugLineNum = 10;BA.debugLine="Dim g As GPS";
c_principal._g = RemoteObject.createNew ("anywheresoftware.b4a.gps.GPS");__ref.setField("_g",c_principal._g);
 //BA.debugLineNum = 11;BA.debugLine="Dim trabajar As Button";
c_principal._trabajar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_trabajar",c_principal._trabajar);
 //BA.debugLineNum = 13;BA.debugLine="Dim c As Cursor";
c_principal._c = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_c",c_principal._c);
 //BA.debugLineNum = 14;BA.debugLine="Dim d As Cursor";
c_principal._d = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_d",c_principal._d);
 //BA.debugLineNum = 15;BA.debugLine="Dim b As Cursor";
c_principal._b = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_b",c_principal._b);
 //BA.debugLineNum = 16;BA.debugLine="Dim e As Cursor";
c_principal._e = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_e",c_principal._e);
 //BA.debugLineNum = 17;BA.debugLine="Dim f As Cursor";
c_principal._f = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_f",c_principal._f);
 //BA.debugLineNum = 18;BA.debugLine="Dim D2 As Cursor";
c_principal._d2 = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_d2",c_principal._d2);
 //BA.debugLineNum = 19;BA.debugLine="Dim dd As Cursor";
c_principal._dd = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.CursorWrapper");__ref.setField("_dd",c_principal._dd);
 //BA.debugLineNum = 20;BA.debugLine="Dim lv As ListView";
c_principal._lv = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_lv",c_principal._lv);
 //BA.debugLineNum = 21;BA.debugLine="Dim cargar As Button";
c_principal._cargar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_cargar",c_principal._cargar);
 //BA.debugLineNum = 22;BA.debugLine="Dim pendiente As Button";
c_principal._pendiente = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_pendiente",c_principal._pendiente);
 //BA.debugLineNum = 23;BA.debugLine="Dim foto1() As Byte";
c_principal._foto1 = RemoteObject.createNewArray ("byte", new int[] {0}, new Object[]{});__ref.setField("_foto1",c_principal._foto1);
 //BA.debugLineNum = 24;BA.debugLine="Dim usuario As String";
c_principal._usuario = RemoteObject.createImmutable("");__ref.setField("_usuario",c_principal._usuario);
 //BA.debugLineNum = 25;BA.debugLine="Dim connecta As Button";
c_principal._connecta = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_connecta",c_principal._connecta);
 //BA.debugLineNum = 26;BA.debugLine="Dim conn As String";
c_principal._conn = RemoteObject.createImmutable("");__ref.setField("_conn",c_principal._conn);
 //BA.debugLineNum = 27;BA.debugLine="Dim Subir As Button";
c_principal._subir = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_subir",c_principal._subir);
 //BA.debugLineNum = 28;BA.debugLine="Dim cmd As DBCommand";
c_principal._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 //BA.debugLineNum = 29;BA.debugLine="Dim TOPE As Int";
c_principal._tope = RemoteObject.createImmutable(0);__ref.setField("_tope",c_principal._tope);
 //BA.debugLineNum = 30;BA.debugLine="Dim COUNT_CLIE As Int";
c_principal._count_clie = RemoteObject.createImmutable(0);__ref.setField("_count_clie",c_principal._count_clie);
 //BA.debugLineNum = 31;BA.debugLine="Dim fecha As String";
c_principal._fecha = RemoteObject.createImmutable("");__ref.setField("_fecha",c_principal._fecha);
 //BA.debugLineNum = 32;BA.debugLine="Dim drop As Double";
c_principal._drop = RemoteObject.createImmutable(0);__ref.setField("_drop",c_principal._drop);
 //BA.debugLineNum = 33;BA.debugLine="Dim efectiva As Double";
c_principal._efectiva = RemoteObject.createImmutable(0);__ref.setField("_efectiva",c_principal._efectiva);
 //BA.debugLineNum = 34;BA.debugLine="Dim L_MONTOD As Label";
c_principal._l_montod = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_montod",c_principal._l_montod);
 //BA.debugLineNum = 35;BA.debugLine="Dim l_cuantosc As Label";
c_principal._l_cuantosc = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cuantosc",c_principal._l_cuantosc);
 //BA.debugLineNum = 36;BA.debugLine="Dim l_drop As Label";
c_principal._l_drop = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_drop",c_principal._l_drop);
 //BA.debugLineNum = 37;BA.debugLine="Dim l_efectiva As Label";
c_principal._l_efectiva = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_efectiva",c_principal._l_efectiva);
 //BA.debugLineNum = 38;BA.debugLine="Dim l_ctast As Label";
c_principal._l_ctast = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_ctast",c_principal._l_ctast);
 //BA.debugLineNum = 39;BA.debugLine="Dim BUSCA As Button";
c_principal._busca = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_busca",c_principal._busca);
 //BA.debugLineNum = 40;BA.debugLine="Dim Cuantos As String";
c_principal._cuantos = RemoteObject.createImmutable("");__ref.setField("_cuantos",c_principal._cuantos);
 //BA.debugLineNum = 41;BA.debugLine="Dim l_cuantosn As Label";
c_principal._l_cuantosn = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cuantosn",c_principal._l_cuantosn);
 //BA.debugLineNum = 42;BA.debugLine="Dim e_ruta As EditText";
c_principal._e_ruta = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_e_ruta",c_principal._e_ruta);
 //BA.debugLineNum = 43;BA.debugLine="Dim l_porvisitar As Label";
c_principal._l_porvisitar = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_porvisitar",c_principal._l_porvisitar);
 //BA.debugLineNum = 44;BA.debugLine="Dim b_mapa As Button";
c_principal._b_mapa = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_mapa",c_principal._b_mapa);
 //BA.debugLineNum = 45;BA.debugLine="Dim l_ruta As Label";
c_principal._l_ruta = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_ruta",c_principal._l_ruta);
 //BA.debugLineNum = 46;BA.debugLine="Dim ALMACEN As String";
c_principal._almacen = RemoteObject.createImmutable("");__ref.setField("_almacen",c_principal._almacen);
 //BA.debugLineNum = 47;BA.debugLine="Private img2 As ImageView";
c_principal._img2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_img2",c_principal._img2);
 //BA.debugLineNum = 48;BA.debugLine="Dim Listo1 As String";
c_principal._listo1 = RemoteObject.createImmutable("");__ref.setField("_listo1",c_principal._listo1);
 //BA.debugLineNum = 49;BA.debugLine="Dim Listo2 As String";
c_principal._listo2 = RemoteObject.createImmutable("");__ref.setField("_listo2",c_principal._listo2);
 //BA.debugLineNum = 50;BA.debugLine="Dim Listo3 As String";
c_principal._listo3 = RemoteObject.createImmutable("");__ref.setField("_listo3",c_principal._listo3);
 //BA.debugLineNum = 51;BA.debugLine="Dim Listo4 As String";
c_principal._listo4 = RemoteObject.createImmutable("");__ref.setField("_listo4",c_principal._listo4);
 //BA.debugLineNum = 52;BA.debugLine="Dim Listo5 As String";
c_principal._listo5 = RemoteObject.createImmutable("");__ref.setField("_listo5",c_principal._listo5);
 //BA.debugLineNum = 53;BA.debugLine="Dim EJECUTANDO As String";
c_principal._ejecutando = RemoteObject.createImmutable("");__ref.setField("_ejecutando",c_principal._ejecutando);
 //BA.debugLineNum = 54;BA.debugLine="Dim RES As String";
c_principal._res = RemoteObject.createImmutable("");__ref.setField("_res",c_principal._res);
 //BA.debugLineNum = 55;BA.debugLine="Dim inve As String";
c_principal._inve = RemoteObject.createImmutable("");__ref.setField("_inve",c_principal._inve);
 //BA.debugLineNum = 56;BA.debugLine="Dim cuantos_pedidosc As String";
c_principal._cuantos_pedidosc = RemoteObject.createImmutable("");__ref.setField("_cuantos_pedidosc",c_principal._cuantos_pedidosc);
 //BA.debugLineNum = 57;BA.debugLine="Dim cuantos_pedido As String";
c_principal._cuantos_pedido = RemoteObject.createImmutable("");__ref.setField("_cuantos_pedido",c_principal._cuantos_pedido);
 //BA.debugLineNum = 58;BA.debugLine="Dim cuantos_noventa As String";
c_principal._cuantos_noventa = RemoteObject.createImmutable("");__ref.setField("_cuantos_noventa",c_principal._cuantos_noventa);
 //BA.debugLineNum = 59;BA.debugLine="Dim datos_iguales As String";
c_principal._datos_iguales = RemoteObject.createImmutable("");__ref.setField("_datos_iguales",c_principal._datos_iguales);
 //BA.debugLineNum = 60;BA.debugLine="Dim p As PhoneId";
c_principal._p = RemoteObject.createNew ("anywheresoftware.b4a.phone.Phone.PhoneId");__ref.setField("_p",c_principal._p);
 //BA.debugLineNum = 61;BA.debugLine="Dim imei As String";
c_principal._imei = RemoteObject.createImmutable("");__ref.setField("_imei",c_principal._imei);
 //BA.debugLineNum = 64;BA.debugLine="Private inv As Button";
c_principal._inv = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_inv",c_principal._inv);
 //BA.debugLineNum = 65;BA.debugLine="Private P1 As Panel";
c_principal._p1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p1",c_principal._p1);
 //BA.debugLineNum = 66;BA.debugLine="Private CLAVE As EditText";
c_principal._clave = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_clave",c_principal._clave);
 //BA.debugLineNum = 67;BA.debugLine="Private B_OK_PAS As Button";
c_principal._b_ok_pas = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_ok_pas",c_principal._b_ok_pas);
 //BA.debugLineNum = 68;BA.debugLine="Dim PASO As String";
c_principal._paso = RemoteObject.createImmutable("");__ref.setField("_paso",c_principal._paso);
 //BA.debugLineNum = 69;BA.debugLine="Private USUARIO1 As EditText";
c_principal._usuario1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_usuario1",c_principal._usuario1);
 //BA.debugLineNum = 70;BA.debugLine="Dim connecta1 As Double";
c_principal._connecta1 = RemoteObject.createImmutable(0);__ref.setField("_connecta1",c_principal._connecta1);
 //BA.debugLineNum = 71;BA.debugLine="Dim armafolio As String";
c_principal._armafolio = RemoteObject.createImmutable("");__ref.setField("_armafolio",c_principal._armafolio);
 //BA.debugLineNum = 72;BA.debugLine="Private NUEVO As Button";
c_principal._nuevo = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_nuevo",c_principal._nuevo);
 //BA.debugLineNum = 73;BA.debugLine="Private S_CC As Label";
c_principal._s_cc = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_s_cc",c_principal._s_cc);
 //BA.debugLineNum = 74;BA.debugLine="Private S_CP As Label";
c_principal._s_cp = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_s_cp",c_principal._s_cp);
 //BA.debugLineNum = 75;BA.debugLine="Private S_CH As Label";
c_principal._s_ch = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_s_ch",c_principal._s_ch);
 //BA.debugLineNum = 76;BA.debugLine="Private PB2 As ProgressBar";
c_principal._pb2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ProgressBarWrapper");__ref.setField("_pb2",c_principal._pb2);
 //BA.debugLineNum = 77;BA.debugLine="Private PB1 As ProgressBar";
c_principal._pb1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ProgressBarWrapper");__ref.setField("_pb1",c_principal._pb1);
 //BA.debugLineNum = 78;BA.debugLine="Private L_P_1 As Label";
c_principal._l_p_1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_p_1",c_principal._l_p_1);
 //BA.debugLineNum = 79;BA.debugLine="Private L_P_2 As Label";
c_principal._l_p_2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_p_2",c_principal._l_p_2);
 //BA.debugLineNum = 80;BA.debugLine="Private L_P_3 As Label";
c_principal._l_p_3 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_p_3",c_principal._l_p_3);
 //BA.debugLineNum = 81;BA.debugLine="Private CARGA As String";
c_principal._carga = RemoteObject.createImmutable("");__ref.setField("_carga",c_principal._carga);
 //BA.debugLineNum = 82;BA.debugLine="Private PORCENTAJE As String";
c_principal._porcentaje = RemoteObject.createImmutable("");__ref.setField("_porcentaje",c_principal._porcentaje);
 //BA.debugLineNum = 83;BA.debugLine="Private P_RESUMEN As Panel";
c_principal._p_resumen = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_resumen",c_principal._p_resumen);
 //BA.debugLineNum = 84;BA.debugLine="Private B_OK_RES As Button";
c_principal._b_ok_res = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_ok_res",c_principal._b_ok_res);
 //BA.debugLineNum = 85;BA.debugLine="Private Resumen As Button";
c_principal._resumen = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_resumen",c_principal._resumen);
 //BA.debugLineNum = 86;BA.debugLine="Private L_CUANTOST As Label";
c_principal._l_cuantost = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cuantost",c_principal._l_cuantost);
 //BA.debugLineNum = 87;BA.debugLine="Private img3 As ImageView";
c_principal._img3 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_img3",c_principal._img3);
 //BA.debugLineNum = 89;BA.debugLine="Private ImageView3 As ImageView";
c_principal._imageview3 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_imageview3",c_principal._imageview3);
 //BA.debugLineNum = 90;BA.debugLine="Private ImageView5 As ImageView";
c_principal._imageview5 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_imageview5",c_principal._imageview5);
 //BA.debugLineNum = 91;BA.debugLine="Private L_TICKPROM As Label";
c_principal._l_tickprom = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_tickprom",c_principal._l_tickprom);
 //BA.debugLineNum = 92;BA.debugLine="Private L_MARCAS As ListView";
c_principal._l_marcas = RemoteObject.createNew ("anywheresoftware.b4a.objects.ListViewWrapper");__ref.setField("_l_marcas",c_principal._l_marcas);
 //BA.debugLineNum = 93;BA.debugLine="Private ImageView9 As ImageView";
c_principal._imageview9 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_imageview9",c_principal._imageview9);
 //BA.debugLineNum = 94;BA.debugLine="Private E_RUTA2 As EditText";
c_principal._e_ruta2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.EditTextWrapper");__ref.setField("_e_ruta2",c_principal._e_ruta2);
 //BA.debugLineNum = 95;BA.debugLine="Private resdia As ImageView";
c_principal._resdia = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_resdia",c_principal._resdia);
 //BA.debugLineNum = 96;BA.debugLine="Private hacer_ped As ImageView";
c_principal._hacer_ped = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_hacer_ped",c_principal._hacer_ped);
 //BA.debugLineNum = 97;BA.debugLine="Private nvo_cliente As ImageView";
c_principal._nvo_cliente = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_nvo_cliente",c_principal._nvo_cliente);
 //BA.debugLineNum = 98;BA.debugLine="Private tickets_dia As ImageView";
c_principal._tickets_dia = RemoteObject.createNew ("anywheresoftware.b4a.objects.ImageViewWrapper");__ref.setField("_tickets_dia",c_principal._tickets_dia);
 //BA.debugLineNum = 100;BA.debugLine="Private l_monto_ks As Label";
c_principal._l_monto_ks = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_monto_ks",c_principal._l_monto_ks);
 //BA.debugLineNum = 101;BA.debugLine="Private l_monto_kp As Label";
c_principal._l_monto_kp = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_monto_kp",c_principal._l_monto_kp);
 //BA.debugLineNum = 102;BA.debugLine="Private l_monto_k As Label";
c_principal._l_monto_k = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_monto_k",c_principal._l_monto_k);
 //BA.debugLineNum = 104;BA.debugLine="Private l_monto_c1 As Label";
c_principal._l_monto_c1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_monto_c1",c_principal._l_monto_c1);
 //BA.debugLineNum = 105;BA.debugLine="Private l_monto_c2 As Label";
c_principal._l_monto_c2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_monto_c2",c_principal._l_monto_c2);
 //BA.debugLineNum = 106;BA.debugLine="Private l_monto_c3 As Label";
c_principal._l_monto_c3 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_monto_c3",c_principal._l_monto_c3);
 //BA.debugLineNum = 108;BA.debugLine="Private l_encuesta As Label";
c_principal._l_encuesta = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_encuesta",c_principal._l_encuesta);
 //BA.debugLineNum = 111;BA.debugLine="Private bpv1 As BatteryProgressView";
c_principal._bpv1 = RemoteObject.createNew ("batteryprogressviewwrapper.batteryprogressviewWrapper");__ref.setField("_bpv1",c_principal._bpv1);
 //BA.debugLineNum = 112;BA.debugLine="Dim batterystatus(11) As Int";
c_principal._batterystatus = RemoteObject.createNewArray ("int", new int[] {11}, new Object[]{});__ref.setField("_batterystatus",c_principal._batterystatus);
 //BA.debugLineNum = 113;BA.debugLine="Private bu As BatteryUtilities";
c_principal._bu = RemoteObject.createNew ("keymon.lat.medicomed.batteryutilities");__ref.setField("_bu",c_principal._bu);
 //BA.debugLineNum = 116;BA.debugLine="Private Panel4 As Panel";
c_principal._panel4 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_panel4",c_principal._panel4);
 //BA.debugLineNum = 117;BA.debugLine="Private L_NES As Label";
c_principal._l_nes = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_nes",c_principal._l_nes);
 //BA.debugLineNum = 118;BA.debugLine="Private L_REAL As Label";
c_principal._l_real = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_real",c_principal._l_real);
 //BA.debugLineNum = 119;BA.debugLine="Private L_ALCANCE As Label";
c_principal._l_alcance = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_alcance",c_principal._l_alcance);
 //BA.debugLineNum = 120;BA.debugLine="Private L_VPLAN As Label";
c_principal._l_vplan = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_vplan",c_principal._l_vplan);
 //BA.debugLineNum = 121;BA.debugLine="Private L_VREAL As Label";
c_principal._l_vreal = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_vreal",c_principal._l_vreal);
 //BA.debugLineNum = 122;BA.debugLine="Private L_EFEC_VIS As Label";
c_principal._l_efec_vis = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_efec_vis",c_principal._l_efec_vis);
 //BA.debugLineNum = 123;BA.debugLine="Private L_VISITCC As Label";
c_principal._l_visitcc = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_visitcc",c_principal._l_visitcc);
 //BA.debugLineNum = 124;BA.debugLine="Private L_EFEC_PV As Label";
c_principal._l_efec_pv = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_efec_pv",c_principal._l_efec_pv);
 //BA.debugLineNum = 125;BA.debugLine="Private L_EFEC_PURA As Label";
c_principal._l_efec_pura = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_efec_pura",c_principal._l_efec_pura);
 //BA.debugLineNum = 126;BA.debugLine="Private L_CTE_PROMO As Label";
c_principal._l_cte_promo = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cte_promo",c_principal._l_cte_promo);
 //BA.debugLineNum = 127;BA.debugLine="Private L_REDEN_PROMO As Label";
c_principal._l_reden_promo = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_reden_promo",c_principal._l_reden_promo);
 //BA.debugLineNum = 128;BA.debugLine="Private L_LIN_TICK As Label";
c_principal._l_lin_tick = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_lin_tick",c_principal._l_lin_tick);
 //BA.debugLineNum = 129;BA.debugLine="Private SCROLL_RESDIA As ScrollView";
c_principal._scroll_resdia = RemoteObject.createNew ("anywheresoftware.b4a.objects.ScrollViewWrapper");__ref.setField("_scroll_resdia",c_principal._scroll_resdia);
 //BA.debugLineNum = 130;BA.debugLine="Private L_ACUMULADO As Label";
c_principal._l_acumulado = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_acumulado",c_principal._l_acumulado);
 //BA.debugLineNum = 131;BA.debugLine="Private L_UNILEVER As Label";
c_principal._l_unilever = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_unilever",c_principal._l_unilever);
 //BA.debugLineNum = 132;BA.debugLine="Private L_RECHAZOP As Label";
c_principal._l_rechazop = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_rechazop",c_principal._l_rechazop);
 //BA.debugLineNum = 133;BA.debugLine="Private L_RECHAZOM As Label";
c_principal._l_rechazom = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_rechazom",c_principal._l_rechazom);
 //BA.debugLineNum = 134;BA.debugLine="Private L_VTA_3MES As Label";
c_principal._l_vta_3mes = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_vta_3mes",c_principal._l_vta_3mes);
 //BA.debugLineNum = 135;BA.debugLine="Private L_VTA_2MES As Label";
c_principal._l_vta_2mes = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_vta_2mes",c_principal._l_vta_2mes);
 //BA.debugLineNum = 136;BA.debugLine="Private L_VTA_1MES As Label";
c_principal._l_vta_1mes = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_vta_1mes",c_principal._l_vta_1mes);
 //BA.debugLineNum = 137;BA.debugLine="Private L_MES_PY As Label";
c_principal._l_mes_py = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_mes_py",c_principal._l_mes_py);
 //BA.debugLineNum = 138;BA.debugLine="Private L_FREC_DE_CREAL As Label";
c_principal._l_frec_de_creal = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_frec_de_creal",c_principal._l_frec_de_creal);
 //BA.debugLineNum = 139;BA.debugLine="Private L_FREC_DE_COBJ As Label";
c_principal._l_frec_de_cobj = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_frec_de_cobj",c_principal._l_frec_de_cobj);
 //BA.debugLineNum = 140;BA.debugLine="Private L_COB_VISIT As Label";
c_principal._l_cob_visit = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cob_visit",c_principal._l_cob_visit);
 //BA.debugLineNum = 141;BA.debugLine="Private L_VISIT_REAL As Label";
c_principal._l_visit_real = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_visit_real",c_principal._l_visit_real);
 //BA.debugLineNum = 142;BA.debugLine="Private L_VISIT_PLAN As Label";
c_principal._l_visit_plan = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_visit_plan",c_principal._l_visit_plan);
 //BA.debugLineNum = 143;BA.debugLine="Private L_ECO As Label";
c_principal._l_eco = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_eco",c_principal._l_eco);
 //BA.debugLineNum = 144;BA.debugLine="Private L_COB_CCC As Label";
c_principal._l_cob_ccc = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_cob_ccc",c_principal._l_cob_ccc);
 //BA.debugLineNum = 145;BA.debugLine="Private L_CTES As Label";
c_principal._l_ctes = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_ctes",c_principal._l_ctes);
 //BA.debugLineNum = 146;BA.debugLine="Private L_VPO_VTA As Label";
c_principal._l_vpo_vta = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_vpo_vta",c_principal._l_vpo_vta);
 //BA.debugLineNum = 147;BA.debugLine="Private L_VPO_OBJ As Label";
c_principal._l_vpo_obj = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_vpo_obj",c_principal._l_vpo_obj);
 //BA.debugLineNum = 148;BA.debugLine="Private L_DS_VTA As Label";
c_principal._l_ds_vta = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_ds_vta",c_principal._l_ds_vta);
 //BA.debugLineNum = 149;BA.debugLine="Private L_DS_OBJ As Label";
c_principal._l_ds_obj = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_ds_obj",c_principal._l_ds_obj);
 //BA.debugLineNum = 150;BA.debugLine="Private L_DRA_VTA As Label";
c_principal._l_dra_vta = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_dra_vta",c_principal._l_dra_vta);
 //BA.debugLineNum = 151;BA.debugLine="Private L_DRA_OBJ As Label";
c_principal._l_dra_obj = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_dra_obj",c_principal._l_dra_obj);
 //BA.debugLineNum = 152;BA.debugLine="Private L_ALCANCEM As Label";
c_principal._l_alcancem = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_alcancem",c_principal._l_alcancem);
 //BA.debugLineNum = 153;BA.debugLine="Private L_TENDENCIA As Label";
c_principal._l_tendencia = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_tendencia",c_principal._l_tendencia);
 //BA.debugLineNum = 154;BA.debugLine="Private L_VTA_ACUM As Label";
c_principal._l_vta_acum = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_vta_acum",c_principal._l_vta_acum);
 //BA.debugLineNum = 155;BA.debugLine="Private L_OBJ_MES As Label";
c_principal._l_obj_mes = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_obj_mes",c_principal._l_obj_mes);
 //BA.debugLineNum = 156;BA.debugLine="Private L_DS_OBJD As Label";
c_principal._l_ds_objd = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_ds_objd",c_principal._l_ds_objd);
 //BA.debugLineNum = 157;BA.debugLine="Private L_DS_VTAD As Label";
c_principal._l_ds_vtad = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_ds_vtad",c_principal._l_ds_vtad);
 //BA.debugLineNum = 158;BA.debugLine="Private LPT As String";
c_principal._lpt = RemoteObject.createImmutable("");__ref.setField("_lpt",c_principal._lpt);
 //BA.debugLineNum = 159;BA.debugLine="Private STEYIN As String";
c_principal._steyin = RemoteObject.createImmutable("");__ref.setField("_steyin",c_principal._steyin);
 //BA.debugLineNum = 160;BA.debugLine="Private STEYOUT As String";
c_principal._steyout = RemoteObject.createImmutable("");__ref.setField("_steyout",c_principal._steyout);
 //BA.debugLineNum = 162;BA.debugLine="Private L_PRIO As Label";
c_principal._l_prio = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_prio",c_principal._l_prio);
 //BA.debugLineNum = 163;BA.debugLine="Private L_SECUND As Label";
c_principal._l_secund = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_secund",c_principal._l_secund);
 //BA.debugLineNum = 164;BA.debugLine="Private L_COMP As Label";
c_principal._l_comp = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_comp",c_principal._l_comp);
 //BA.debugLineNum = 167;BA.debugLine="Private stay_hh As String";
c_principal._stay_hh = RemoteObject.createImmutable("");__ref.setField("_stay_hh",c_principal._stay_hh);
 //BA.debugLineNum = 168;BA.debugLine="Private stay_mi As String";
c_principal._stay_mi = RemoteObject.createImmutable("");__ref.setField("_stay_mi",c_principal._stay_mi);
 //BA.debugLineNum = 169;BA.debugLine="Private stay_ss As String";
c_principal._stay_ss = RemoteObject.createImmutable("");__ref.setField("_stay_ss",c_principal._stay_ss);
 //BA.debugLineNum = 171;BA.debugLine="Dim sDate,sTime As String";
c_principal._sdate = RemoteObject.createImmutable("");__ref.setField("_sdate",c_principal._sdate);
c_principal._stime = RemoteObject.createImmutable("");__ref.setField("_stime",c_principal._stime);
 //BA.debugLineNum = 172;BA.debugLine="Dim HORAINGRESO As String";
c_principal._horaingreso = RemoteObject.createImmutable("");__ref.setField("_horaingreso",c_principal._horaingreso);
 //BA.debugLineNum = 174;BA.debugLine="Private L_QUALA As Label";
c_principal._l_quala = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_quala",c_principal._l_quala);
 //BA.debugLineNum = 175;BA.debugLine="Private L_FERRERO As Label";
c_principal._l_ferrero = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_ferrero",c_principal._l_ferrero);
 //BA.debugLineNum = 176;BA.debugLine="Private L_SANMARCOS As Label";
c_principal._l_sanmarcos = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_sanmarcos",c_principal._l_sanmarcos);
 //BA.debugLineNum = 177;BA.debugLine="Private L_CAMPARI As Label";
c_principal._l_campari = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_campari",c_principal._l_campari);
 //BA.debugLineNum = 178;BA.debugLine="Private L_IBERIA As Label";
c_principal._l_iberia = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_iberia",c_principal._l_iberia);
 //BA.debugLineNum = 179;BA.debugLine="Private L_BEPENSA As Label";
c_principal._l_bepensa = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_bepensa",c_principal._l_bepensa);
 //BA.debugLineNum = 180;BA.debugLine="Private L_SCJ As Label";
c_principal._l_scj = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_scj",c_principal._l_scj);
 //BA.debugLineNum = 181;BA.debugLine="Private L_MEDJ As Label";
c_principal._l_medj = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_medj",c_principal._l_medj);
 //BA.debugLineNum = 182;BA.debugLine="Private L_DURACELL As Label";
c_principal._l_duracell = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_duracell",c_principal._l_duracell);
 //BA.debugLineNum = 183;BA.debugLine="Private L_GUNA As Label";
c_principal._l_guna = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_guna",c_principal._l_guna);
 //BA.debugLineNum = 184;BA.debugLine="Private L_KIMB As Label";
c_principal._l_kimb = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_kimb",c_principal._l_kimb);
 //BA.debugLineNum = 185;BA.debugLine="Private L_TRESM As Label";
c_principal._l_tresm = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_tresm",c_principal._l_tresm);
 //BA.debugLineNum = 186;BA.debugLine="Private L_REDB As Label";
c_principal._l_redb = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_redb",c_principal._l_redb);
 //BA.debugLineNum = 187;BA.debugLine="Private Btn_Ubicar As Button";
c_principal._btn_ubicar = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_btn_ubicar",c_principal._btn_ubicar);
 //BA.debugLineNum = 188;BA.debugLine="Private B_COMM As Button";
c_principal._b_comm = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_comm",c_principal._b_comm);
 //BA.debugLineNum = 189;BA.debugLine="Private L_TOTAL_MM As Label";
c_principal._l_total_mm = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total_mm",c_principal._l_total_mm);
 //BA.debugLineNum = 190;BA.debugLine="Private L_TOTAL_VIVE As Label";
c_principal._l_total_vive = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total_vive",c_principal._l_total_vive);
 //BA.debugLineNum = 191;BA.debugLine="Private L_TOTAL_GUNA As Label";
c_principal._l_total_guna = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total_guna",c_principal._l_total_guna);
 //BA.debugLineNum = 192;BA.debugLine="Private L_TOTAL_BA As Label";
c_principal._l_total_ba = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total_ba",c_principal._l_total_ba);
 //BA.debugLineNum = 193;BA.debugLine="Private L_TOTAL_COMIS As Label";
c_principal._l_total_comis = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total_comis",c_principal._l_total_comis);
 //BA.debugLineNum = 194;BA.debugLine="Private L_TOTAL_MM_1 As Label";
c_principal._l_total_mm_1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total_mm_1",c_principal._l_total_mm_1);
 //BA.debugLineNum = 195;BA.debugLine="Private L_TOTAL_VIVE_1 As Label";
c_principal._l_total_vive_1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total_vive_1",c_principal._l_total_vive_1);
 //BA.debugLineNum = 196;BA.debugLine="Private L_TOTAL_GUNA_1 As Label";
c_principal._l_total_guna_1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total_guna_1",c_principal._l_total_guna_1);
 //BA.debugLineNum = 197;BA.debugLine="Private L_TOTAL_BA_1 As Label";
c_principal._l_total_ba_1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total_ba_1",c_principal._l_total_ba_1);
 //BA.debugLineNum = 198;BA.debugLine="Private L_TOTAL_COMIS_1 As Label";
c_principal._l_total_comis_1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_l_total_comis_1",c_principal._l_total_comis_1);
 //BA.debugLineNum = 199;BA.debugLine="Private B_OK_COMISS As Button";
c_principal._b_ok_comiss = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_ok_comiss",c_principal._b_ok_comiss);
 //BA.debugLineNum = 200;BA.debugLine="Private Panel_C As Panel";
c_principal._panel_c = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_panel_c",c_principal._panel_c);
 //BA.debugLineNum = 202;BA.debugLine="Private TitleHeight As Int = 50dip";
c_principal._titleheight = c_principal.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 50)));__ref.setField("_titleheight",c_principal._titleheight);
 //BA.debugLineNum = 203;BA.debugLine="Private Title2Height As Int = 100dip";
c_principal._title2height = c_principal.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 100)));__ref.setField("_title2height",c_principal._title2height);
 //BA.debugLineNum = 205;BA.debugLine="Private DividerHeight As Int = 5dip";
c_principal._dividerheight = c_principal.__c.runMethod(true,"DipToCurrent",(Object)(BA.numberCast(int.class, 5)));__ref.setField("_dividerheight",c_principal._dividerheight);
 //BA.debugLineNum = 206;BA.debugLine="Private CLV1 As CustomListView";
c_principal._clv1 = RemoteObject.createNew ("b4a.example3.customlistview");__ref.setField("_clv1",c_principal._clv1);
 //BA.debugLineNum = 207;BA.debugLine="Private pnlTitle As B4XView";
c_principal._pnltitle = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper");__ref.setField("_pnltitle",c_principal._pnltitle);
 //BA.debugLineNum = 208;BA.debugLine="Private xui As XUI";
c_principal._xui = RemoteObject.createNew ("anywheresoftware.b4a.objects.B4XViewWrapper.XUI");__ref.setField("_xui",c_principal._xui);
 //BA.debugLineNum = 209;BA.debugLine="Type TitleData (Title As String)";
;
 //BA.debugLineNum = 211;BA.debugLine="Private B_MARCAS As Button";
c_principal._b_marcas = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_marcas",c_principal._b_marcas);
 //BA.debugLineNum = 212;BA.debugLine="Private Panel5 As Panel";
c_principal._panel5 = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_panel5",c_principal._panel5);
 //BA.debugLineNum = 213;BA.debugLine="Private lblTitle As Label";
c_principal._lbltitle = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");__ref.setField("_lbltitle",c_principal._lbltitle);
 //BA.debugLineNum = 214;BA.debugLine="Private B_OK_PANEL5 As Button";
c_principal._b_ok_panel5 = RemoteObject.createNew ("anywheresoftware.b4a.objects.ButtonWrapper");__ref.setField("_b_ok_panel5",c_principal._b_ok_panel5);
 //BA.debugLineNum = 217;BA.debugLine="Private p_principal As Panel";
c_principal._p_principal = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_principal",c_principal._p_principal);
 //BA.debugLineNum = 218;BA.debugLine="Private p_mandaInfo As Panel";
c_principal._p_mandainfo = RemoteObject.createNew ("anywheresoftware.b4a.objects.PanelWrapper");__ref.setField("_p_mandainfo",c_principal._p_mandainfo);
 //BA.debugLineNum = 219;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _connecta_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("connecta_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,1701);
if (RapidSub.canDelegate("connecta_click")) { return __ref.runUserSub(false, "c_principal","connecta_click", __ref);}
RemoteObject _usrt = RemoteObject.createImmutable("");
RemoteObject _passt = RemoteObject.createImmutable("");
 BA.debugLineNum = 1701;BA.debugLine="Sub connecta_Click";
Debug.ShouldStop(16);
 BA.debugLineNum = 1702;BA.debugLine="B4XPages.MainPage.reqManager.Initialize(Me, Start";
Debug.ShouldStop(32);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_initialize" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(__ref),(Object)(c_principal._starter._server /*RemoteObject*/ ));
 BA.debugLineNum = 1703;BA.debugLine="Log(Starter.server)";
Debug.ShouldStop(64);
c_principal.__c.runVoidMethod ("LogImpl","33538946",c_principal._starter._server /*RemoteObject*/ ,0);
 BA.debugLineNum = 1704;BA.debugLine="connecta1 = connecta1 + 1";
Debug.ShouldStop(128);
__ref.setField ("_connecta1" /*RemoteObject*/ ,RemoteObject.solve(new RemoteObject[] {__ref.getField(true,"_connecta1" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "+",1, 0));
 BA.debugLineNum = 1706;BA.debugLine="imei = \"\"";
Debug.ShouldStop(512);
__ref.setField ("_imei" /*RemoteObject*/ ,BA.ObjectToString(""));
 BA.debugLineNum = 1707;BA.debugLine="conn = \"1\"";
Debug.ShouldStop(1024);
__ref.setField ("_conn" /*RemoteObject*/ ,BA.ObjectToString("1"));
 BA.debugLineNum = 1708;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(2048);
c_principal._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 1709;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(4096);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1710;BA.debugLine="cmd.Name = \"select_version_MEDI\"";
Debug.ShouldStop(8192);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_version_MEDI"));
 BA.debugLineNum = 1711;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(16384);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("version"))));
 BA.debugLineNum = 1714;BA.debugLine="c = B4XPages.MainPage.skmt.ExecQuery(\"select USUA";
Debug.ShouldStop(131072);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select USUARIO, PASS from usuarioa"))));
 BA.debugLineNum = 1715;BA.debugLine="c.Position=0";
Debug.ShouldStop(262144);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1716;BA.debugLine="If c.RowCount > 0  And c.GetString(\"USUARIO\") <>";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0)) && RemoteObject.solveBoolean("!",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))),BA.ObjectToString("KMTS1"))) { 
 BA.debugLineNum = 1717;BA.debugLine="Private usrT As String = c.GetString(\"USUARIO\")";
Debug.ShouldStop(1048576);
_usrt = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO")));Debug.locals.put("usrT", _usrt);Debug.locals.put("usrT", _usrt);
 BA.debugLineNum = 1718;BA.debugLine="Private passT As String = c.GetString(\"PASS\")";
Debug.ShouldStop(2097152);
_passt = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PASS")));Debug.locals.put("passT", _passt);Debug.locals.put("passT", _passt);
 BA.debugLineNum = 1719;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1720;BA.debugLine="cmd.Name = \"select_usuario_guna_MEDI_1\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_usuario_guna_MEDI_1"));
 BA.debugLineNum = 1721;BA.debugLine="cmd.Parameters = Array As Object(usrT, passT)";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_usrt),(_passt)}));
 BA.debugLineNum = 1722;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd ,";
Debug.ShouldStop(33554432);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("usuarioA"))));
 };
 BA.debugLineNum = 1724;BA.debugLine="c.Close";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1727;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(1073741824);
c_principal._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 1728;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1729;BA.debugLine="cmd.Name = \"select_ruta_MEDI_6\"";
Debug.ShouldStop(1);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_ruta_MEDI_6"));
 BA.debugLineNum = 1730;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,e_ruta.t";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText"))}));
 BA.debugLineNum = 1731;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(4);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("ruta"))));
 BA.debugLineNum = 1733;BA.debugLine="If e_ruta.Text = \"KMTS1\" Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("KMTS1"))) { 
 BA.debugLineNum = 1734;BA.debugLine="cargar.Visible = True";
Debug.ShouldStop(32);
__ref.getField(false,"_cargar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1735;BA.debugLine="Subir.Visible = True";
Debug.ShouldStop(64);
__ref.getField(false,"_subir" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1736;BA.debugLine="e_ruta.Text = \"\"";
Debug.ShouldStop(128);
__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 };
 BA.debugLineNum = 1739;BA.debugLine="If e_ruta.Text = \"BERNA1\" Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("BERNA1"))) { 
 BA.debugLineNum = 1740;BA.debugLine="cargar.Visible = True";
Debug.ShouldStop(2048);
__ref.getField(false,"_cargar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1741;BA.debugLine="Subir.Visible = True";
Debug.ShouldStop(4096);
__ref.getField(false,"_subir" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1742;BA.debugLine="e_ruta.Text = \"\"";
Debug.ShouldStop(8192);
__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 };
 BA.debugLineNum = 1745;BA.debugLine="ToastMessageShow(\"Validando Conexión.\" , True)";
Debug.ShouldStop(65536);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Validando Conexión.")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 1761;BA.debugLine="End Sub";
Debug.ShouldStop(1);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _e_ruta_enterpressed(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("e_ruta_EnterPressed (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,1772);
if (RapidSub.canDelegate("e_ruta_enterpressed")) { return __ref.runUserSub(false, "c_principal","e_ruta_enterpressed", __ref);}
 BA.debugLineNum = 1772;BA.debugLine="Sub e_ruta_EnterPressed";
Debug.ShouldStop(2048);
 BA.debugLineNum = 1773;BA.debugLine="If e_ruta.Text = \"FIN DIA\" Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("FIN DIA"))) { 
 BA.debugLineNum = 1774;BA.debugLine="RES =  Msgbox2(\"Seguro que desea hacer el cierre";
Debug.ShouldStop(8192);
__ref.setField ("_res" /*RemoteObject*/ ,BA.NumberToString(c_principal.__c.runMethodAndSync(true,"Msgbox2",(Object)(BA.ObjectToCharSequence("Seguro que desea hacer el cierre todos los datos se borraran?")),(Object)(BA.ObjectToCharSequence("Cierre")),(Object)(BA.ObjectToString("Si")),(Object)(BA.ObjectToString("")),(Object)(BA.ObjectToString("No")),(Object)((c_principal.__c.runMethod(false,"LoadBitmap",(Object)(c_principal.__c.getField(false,"File").runMethod(true,"getDirAssets")),(Object)(RemoteObject.createImmutable("alert2.png"))).getObject())),__ref.getField(false, "ba"))));
 BA.debugLineNum = 1775;BA.debugLine="If RES = DialogResponse.POSITIVE Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_res" /*RemoteObject*/ ),BA.NumberToString(c_principal.__c.getField(false,"DialogResponse").getField(true,"POSITIVE")))) { 
 BA.debugLineNum = 1776;BA.debugLine="e_ruta.Text = \"\"";
Debug.ShouldStop(32768);
__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(""));
 BA.debugLineNum = 1777;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(65536);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente")));
 BA.debugLineNum = 1778;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(131072);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido")));
 BA.debugLineNum = 1779;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(262144);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from noventa")));
 BA.debugLineNum = 1780;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(524288);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from clie_act")));
 BA.debugLineNum = 1781;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(1048576);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from kmt_info")));
 BA.debugLineNum = 1782;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(2097152);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_gunaprod")));
 BA.debugLineNum = 1783;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(4194304);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CAT_DETALLES_PAQ")));
 BA.debugLineNum = 1784;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(8388608);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from HIST_VENTAS")));
 BA.debugLineNum = 1785;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete fro";
Debug.ShouldStop(16777216);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from HIST_VERIFICACION")));
 BA.debugLineNum = 1786;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
Debug.ShouldStop(33554432);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM HIST_ENCUESTA")));
 BA.debugLineNum = 1787;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
Debug.ShouldStop(67108864);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM HIST_STAY_OUT")));
 BA.debugLineNum = 1788;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
Debug.ShouldStop(134217728);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM HIST_GPS")));
 BA.debugLineNum = 1789;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
Debug.ShouldStop(268435456);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM HIST_FACE")));
 BA.debugLineNum = 1790;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"INSERT INT";
Debug.ShouldStop(536870912);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("INSERT INTO HIST_STAY_OUT(HSO_INI, HSO_FIN) VALUES (0,0)")));
 BA.debugLineNum = 1791;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
Debug.ShouldStop(1073741824);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM HIST_CODIGO_BARRAS")));
 BA.debugLineNum = 1792;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
Debug.ShouldStop(-2147483648);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM HIST_FOTO_CLIENTE")));
 BA.debugLineNum = 1793;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
Debug.ShouldStop(1);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM CLIENTES_NUEVOS")));
 BA.debugLineNum = 1794;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
Debug.ShouldStop(2);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM BITACORAGPS")));
 BA.debugLineNum = 1795;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"DELETE FRO";
Debug.ShouldStop(4);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("DELETE FROM VENTA_No_VENTA")));
 BA.debugLineNum = 1796;BA.debugLine="Subs.bitacora(Subs.fechanormal(DateTime.Now),us";
Debug.ShouldStop(8);
c_principal._subs.runVoidMethod ("_bitacora" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(c_principal._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(Object)(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(Object)(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(Object)(BA.ObjectToString("Fin Día")),(Object)(BA.ObjectToString("")),(Object)(c_principal._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(c_principal._subs.runMethod(true,"_fechanormal" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(BA.NumberToString(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow"))))),(Object)(c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lat_gps" /*RemoteObject*/ )),(Object)(c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(true,"_lon_gps" /*RemoteObject*/ )),(Object)(BA.ObjectToString("2")),(Object)(BA.ObjectToString("")),(Object)(RemoteObject.createImmutable("")));
 BA.debugLineNum = 1797;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(16);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_b4xpage_appear" /*void*/ );
 };
 };
 BA.debugLineNum = 1800;BA.debugLine="If e_ruta.Text = \"IWL\" Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("IWL"))) { 
 BA.debugLineNum = 1802;BA.debugLine="NUEVO.Visible =False";
Debug.ShouldStop(512);
__ref.getField(false,"_nuevo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1803;BA.debugLine="BUSCA.Visible=False";
Debug.ShouldStop(1024);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1804;BA.debugLine="connecta.Visible=False";
Debug.ShouldStop(2048);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1805;BA.debugLine="img3.Visible =True";
Debug.ShouldStop(4096);
__ref.getField(false,"_img3" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1806;BA.debugLine="Resumen.Visible= False";
Debug.ShouldStop(8192);
__ref.getField(false,"_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 };
 BA.debugLineNum = 1808;BA.debugLine="If e_ruta.Text = \"SUPLENCIA\" Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("SUPLENCIA"))) { 
 BA.debugLineNum = 1809;BA.debugLine="E_RUTA2.Visible = True";
Debug.ShouldStop(65536);
__ref.getField(false,"_e_ruta2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1810;BA.debugLine="ImageView9.Visible = True";
Debug.ShouldStop(131072);
__ref.getField(false,"_imageview9" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 };
 BA.debugLineNum = 1812;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _e_ruta_textchanged(RemoteObject __ref,RemoteObject _old,RemoteObject _new) throws Exception{
try {
		Debug.PushSubsStack("e_ruta_TextChanged (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,2170);
if (RapidSub.canDelegate("e_ruta_textchanged")) { return __ref.runUserSub(false, "c_principal","e_ruta_textchanged", __ref, _old, _new);}
RemoteObject _validchars = RemoteObject.createImmutable("");
Debug.locals.put("Old", _old);
Debug.locals.put("New", _new);
 BA.debugLineNum = 2170;BA.debugLine="Sub e_ruta_TextChanged (Old As String, New As Stri";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 2171;BA.debugLine="Dim validChars As String =\"ABCDEFGHIJKLMNOPQRSTUV";
Debug.ShouldStop(67108864);
_validchars = BA.ObjectToString("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ");Debug.locals.put("validChars", _validchars);Debug.locals.put("validChars", _validchars);
 BA.debugLineNum = 2173;BA.debugLine="If Old <> \"KMTS1\" Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("!",_old,BA.ObjectToString("KMTS1"))) { 
 BA.debugLineNum = 2175;BA.debugLine="Try";
Debug.ShouldStop(1073741824);
try { BA.debugLineNum = 2176;BA.debugLine="If validChars.Contains(New.SubString(New.Length";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",_validchars.runMethod(true,"contains",(Object)(_new.runMethod(true,"substring",(Object)(RemoteObject.solve(new RemoteObject[] {_new.runMethod(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1))))),c_principal.__c.getField(true,"False"))) { 
 BA.debugLineNum = 2177;BA.debugLine="e_ruta.Text = New.SubString2(0, New.Length-1)";
Debug.ShouldStop(1);
__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethodAndSync(true,"setText",BA.ObjectToCharSequence(_new.runMethod(true,"substring",(Object)(BA.numberCast(int.class, 0)),(Object)(RemoteObject.solve(new RemoteObject[] {_new.runMethod(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1)))));
 BA.debugLineNum = 2178;BA.debugLine="e_ruta.SelectionStart = e_ruta.Text.Length";
Debug.ShouldStop(2);
__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"setSelectionStart",__ref.getField(false,"_e_ruta" /*RemoteObject*/ ).runMethod(true,"getText").runMethod(true,"length"));
 };
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e9) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e9.toString()); BA.debugLineNum = 2181;BA.debugLine="Log(LastException)";
Debug.ShouldStop(16);
c_principal.__c.runVoidMethod ("LogImpl","34718603",BA.ObjectToString(c_principal.__c.runMethod(false,"LastException",__ref.getField(false, "ba"))),0);
 };
 };
 BA.debugLineNum = 2184;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _gps_locationchanged(RemoteObject __ref,RemoteObject _location1) throws Exception{
try {
		Debug.PushSubsStack("GPS_LocationChanged (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,2157);
if (RapidSub.canDelegate("gps_locationchanged")) { return __ref.runUserSub(false, "c_principal","gps_locationchanged", __ref, _location1);}
Debug.locals.put("Location1", _location1);
 BA.debugLineNum = 2157;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)";
Debug.ShouldStop(4096);
 BA.debugLineNum = 2159;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _hacer_ped_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("hacer_ped_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,2145);
if (RapidSub.canDelegate("hacer_ped_click")) { return __ref.runUserSub(false, "c_principal","hacer_ped_click", __ref);}
 BA.debugLineNum = 2145;BA.debugLine="Sub hacer_ped_Click";
Debug.ShouldStop(1);
 BA.debugLineNum = 2146;BA.debugLine="B4XPages.ShowPage(\"Clientes\")";
Debug.ShouldStop(2);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("Clientes")));
 BA.debugLineNum = 2147;BA.debugLine="End Sub";
Debug.ShouldStop(4);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _initialize(RemoteObject __ref,RemoteObject _ba) throws Exception{
try {
		Debug.PushSubsStack("Initialize (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,222);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "c_principal","initialize", __ref, _ba);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
 BA.debugLineNum = 222;BA.debugLine="Public Sub Initialize As Object";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 223;BA.debugLine="Return Me";
Debug.ShouldStop(1073741824);
if (true) return __ref;
 BA.debugLineNum = 224;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _inv_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("inv_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,1814);
if (RapidSub.canDelegate("inv_click")) { return __ref.runUserSub(false, "c_principal","inv_click", __ref);}
 BA.debugLineNum = 1814;BA.debugLine="Sub inv_Click";
Debug.ShouldStop(2097152);
 BA.debugLineNum = 1815;BA.debugLine="img2.Visible =True";
Debug.ShouldStop(4194304);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1816;BA.debugLine="EJECUTANDO = 1";
Debug.ShouldStop(8388608);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1817;BA.debugLine="inve = 1";
Debug.ShouldStop(16777216);
__ref.setField ("_inve" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1818;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(33554432);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from cat_gunaprod")));
 BA.debugLineNum = 1819;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(67108864);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from CAT_DETALLES_PAQ")));
 BA.debugLineNum = 1820;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuari";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select usuario from usuarioa"))));
 BA.debugLineNum = 1821;BA.debugLine="c.Position = 0";
Debug.ShouldStop(268435456);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1822;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(536870912);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 1823;BA.debugLine="c.Close";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1824;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1825;BA.debugLine="cmd.Name = \"select_cat_gunaprod_MEDI\"";
Debug.ShouldStop(1);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cat_gunaprod_MEDI"));
 BA.debugLineNum = 1826;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1827;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(4);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("gunaprod"))));
 BA.debugLineNum = 1828;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(8);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1829;BA.debugLine="cmd.Name = \"select_cat_paquetes_MARDS\"";
Debug.ShouldStop(16);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cat_paquetes_MARDS"));
 BA.debugLineNum = 1830;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
Debug.ShouldStop(32);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1831;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(64);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("gunaprodp"))));
 BA.debugLineNum = 1833;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(256);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1834;BA.debugLine="cmd.Name = \"select_cat_detallepa_MEDI\"";
Debug.ShouldStop(512);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cat_detallepa_MEDI"));
 BA.debugLineNum = 1835;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)";
Debug.ShouldStop(1024);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 1836;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(2048);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("detallepaq"))));
 BA.debugLineNum = 1838;BA.debugLine="cargar.Visible = False";
Debug.ShouldStop(8192);
__ref.getField(false,"_cargar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1839;BA.debugLine="Subir.Visible = False";
Debug.ShouldStop(16384);
__ref.getField(false,"_subir" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1840;BA.debugLine="connecta.Visible = True";
Debug.ShouldStop(32768);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1841;BA.debugLine="inv.Visible = False";
Debug.ShouldStop(65536);
__ref.getField(false,"_inv" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1842;BA.debugLine="ToastMessageShow(\"Se Actualizaran los datos, Este";
Debug.ShouldStop(131072);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias")),(Object)(c_principal.__c.getField(true,"True")));
 BA.debugLineNum = 1843;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _jobdone(RemoteObject __ref,RemoteObject _job) throws Exception{
try {
		Debug.PushSubsStack("JobDone (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,986);
if (RapidSub.canDelegate("jobdone")) { return __ref.runUserSub(false, "c_principal","jobdone", __ref, _job);}
RemoteObject _result = RemoteObject.declareNull("keymon.lat.medicomed.dbrequestmanager._dbresult");
RemoteObject _records = null;
RemoteObject _k = RemoteObject.createImmutable("");
RemoteObject _n = RemoteObject.createImmutable("");
RemoteObject _cat_cl_codigo = RemoteObject.createImmutable("");
RemoteObject _cat_cl_ruta = RemoteObject.createImmutable("");
RemoteObject _cat_cl_nombre = RemoteObject.createImmutable("");
RemoteObject _cat_cl_atiende1 = RemoteObject.createImmutable("");
RemoteObject _cat_cl_atiente2 = RemoteObject.createImmutable("");
RemoteObject _cat_cl_telefono = RemoteObject.createImmutable("");
RemoteObject _cat_cl_email = RemoteObject.createImmutable("");
RemoteObject _cat_cl_calle = RemoteObject.createImmutable("");
RemoteObject _cat_cl_noext = RemoteObject.createImmutable("");
RemoteObject _cat_cl_noint = RemoteObject.createImmutable("");
RemoteObject _cat_cl_calle1 = RemoteObject.createImmutable("");
RemoteObject _cat_cl_calle2 = RemoteObject.createImmutable("");
RemoteObject _cat_cl_colonia = RemoteObject.createImmutable("");
RemoteObject _cat_cl_muni = RemoteObject.createImmutable("");
RemoteObject _cat_cl_edo = RemoteObject.createImmutable("");
RemoteObject _cat_cl_cp = RemoteObject.createImmutable("");
RemoteObject _cat_cl_long = RemoteObject.createImmutable("");
RemoteObject _cat_cl_lat = RemoteObject.createImmutable("");
RemoteObject _cat_cl_mtocompra = RemoteObject.createImmutable("");
RemoteObject _cat_cl_num_seriefisico = RemoteObject.createImmutable("");
RemoteObject _cat_cl_diasemana = RemoteObject.createImmutable("");
RemoteObject _cat_cl_secuencia = RemoteObject.createImmutable(0);
RemoteObject _hist_ra_objmes = RemoteObject.createImmutable("");
RemoteObject _hist_ra_venta = RemoteObject.createImmutable("");
RemoteObject _hist_ra_tendencia = RemoteObject.createImmutable("");
RemoteObject _hist_ra_alcance = RemoteObject.createImmutable("");
RemoteObject _hisr_ra_draobj = RemoteObject.createImmutable("");
RemoteObject _hist_ra_dravta = RemoteObject.createImmutable("");
RemoteObject _hist_ra_dsobj = RemoteObject.createImmutable("");
RemoteObject _hist_ra_dsvta = RemoteObject.createImmutable("");
RemoteObject _hist_ra_vpoobj = RemoteObject.createImmutable("");
RemoteObject _hist_ra_vpovta = RemoteObject.createImmutable("");
RemoteObject _hist_ra_ctes = RemoteObject.createImmutable("");
RemoteObject _hist_ra_cobccc = RemoteObject.createImmutable("");
RemoteObject _hist_ra_eco = RemoteObject.createImmutable("");
RemoteObject _hist_ra_visitplan = RemoteObject.createImmutable("");
RemoteObject _hist_ra_visireal = RemoteObject.createImmutable("");
RemoteObject _hist_ra_cobvisit = RemoteObject.createImmutable("");
RemoteObject _hist_ra_freccompobj = RemoteObject.createImmutable("");
RemoteObject _hist_ra_freccomreal = RemoteObject.createImmutable("");
RemoteObject _hist_ra_ventames1 = RemoteObject.createImmutable("");
RemoteObject _hist_ra_ventames2 = RemoteObject.createImmutable("");
RemoteObject _hist_ra_ventames3 = RemoteObject.createImmutable("");
RemoteObject _hist_ra_ventames4 = RemoteObject.createImmutable("");
RemoteObject _hist_ra_rechazo = RemoteObject.createImmutable("");
RemoteObject _hist_ra_rechazoporcen = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana1 = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana1_dias = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana1_dra = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana2 = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana2_dias = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana2_dra = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana3 = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana3_dias = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana3_dra = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana4 = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana4_dias = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana4_dra = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana5 = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana5_dias = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana5_dra = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana1_lpt = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana2_lpt = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana3_lpt = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana4_lpt = RemoteObject.createImmutable("");
RemoteObject _hist_ra_semana5_lpt = RemoteObject.createImmutable("");
RemoteObject _hist_ra_ruta = RemoteObject.createImmutable("");
RemoteObject _hist_ra_idalmacen = RemoteObject.createImmutable("");
RemoteObject _hp_cliente = RemoteObject.createImmutable("");
RemoteObject _hp_codigo_promocion = RemoteObject.createImmutable("");
RemoteObject _hccp_cliente = RemoteObject.createImmutable("");
RemoteObject _hccp_promo = RemoteObject.createImmutable("");
RemoteObject _hccp_cant = RemoteObject.createImmutable("");
RemoteObject _hmc_marca = RemoteObject.createImmutable("");
RemoteObject _hmc_total = RemoteObject.createImmutable("");
RemoteObject _cat_pa_id = RemoteObject.createImmutable("");
RemoteObject _cat_pa_maxprom = RemoteObject.createImmutable("");
RemoteObject _cat_pa_maxpromrec = RemoteObject.createImmutable("");
RemoteObject _cat_pa_maxpromclie = RemoteObject.createImmutable("");
RemoteObject _cat_ve_idprod = RemoteObject.createImmutable("");
RemoteObject _cat_ve_nombre = RemoteObject.createImmutable("");
RemoteObject _cat_ve_orden = RemoteObject.createImmutable("");
RemoteObject _hvd_marca = RemoteObject.createImmutable("");
RemoteObject _clientes = RemoteObject.createImmutable("");
RemoteObject _hc_ruta = RemoteObject.createImmutable("");
RemoteObject _hc_cuota1 = RemoteObject.createImmutable("");
RemoteObject _hc_cuota2 = RemoteObject.createImmutable("");
RemoteObject _hc_cuota3 = RemoteObject.createImmutable("");
RemoteObject _hc_cuota4 = RemoteObject.createImmutable("");
RemoteObject _hc_cuota5 = RemoteObject.createImmutable("");
RemoteObject _hc_cuota6 = RemoteObject.createImmutable("");
RemoteObject _hc_meta1 = RemoteObject.createImmutable("");
RemoteObject _hc_meta2 = RemoteObject.createImmutable("");
RemoteObject _hc_meta3 = RemoteObject.createImmutable("");
RemoteObject _hc_meta4 = RemoteObject.createImmutable("");
RemoteObject _hc_meta5 = RemoteObject.createImmutable("");
RemoteObject _hc_meta6 = RemoteObject.createImmutable("");
RemoteObject _hcm_total_v = RemoteObject.createImmutable("");
RemoteObject _hcm_total_vive = RemoteObject.createImmutable("");
RemoteObject _hcm_total_guna = RemoteObject.createImmutable("");
RemoteObject _hcm_total_beb = RemoteObject.createImmutable("");
RemoteObject _cat_gp_id = RemoteObject.createImmutable("");
RemoteObject _cat_gp_nombre = RemoteObject.createImmutable("");
RemoteObject _cat_gp_imp1 = RemoteObject.createImmutable("");
RemoteObject _cat_gp_imp2 = RemoteObject.createImmutable("");
RemoteObject _cat_gp_precio = RemoteObject.createImmutable("");
RemoteObject _cat_gp_clasif = RemoteObject.createImmutable("");
RemoteObject _cat_gp_sts = RemoteObject.createImmutable("");
RemoteObject _cat_gp_tipo = RemoteObject.createImmutable("");
RemoteObject _cat_gp_subtipo = RemoteObject.createImmutable("");
RemoteObject _cat_gp_img = null;
RemoteObject _cat_gp_almacen = RemoteObject.createImmutable(0);
RemoteObject _cat_gp_tipoprod = RemoteObject.createImmutable(0);
RemoteObject _cat_gp_iniciativa = RemoteObject.createImmutable(0);
RemoteObject _cat_gp_tipoprod2 = RemoteObject.createImmutable("");
int _i = 0;
RemoteObject _cat_dp_almacen = RemoteObject.createImmutable("");
RemoteObject _cat_dp_id = RemoteObject.createImmutable("");
RemoteObject _cat_dp_idprod = RemoteObject.createImmutable("");
RemoteObject _cat_dp_tipo = RemoteObject.createImmutable("");
RemoteObject _cat_dp_pzas = RemoteObject.createImmutable("");
RemoteObject _cat_dp_usuario = RemoteObject.createImmutable("");
RemoteObject _cat_dp_fecha = RemoteObject.createImmutable("");
RemoteObject _cat_dp_regalo = RemoteObject.createImmutable("");
RemoteObject _cat_dp_clasif = RemoteObject.createImmutable("");
RemoteObject _cat_dp_precio = RemoteObject.createImmutable("");
RemoteObject _cat_dp_precio_simptos = RemoteObject.createImmutable("");
RemoteObject _hvd_cliente = RemoteObject.createImmutable("");
RemoteObject _hvd_pronombre = RemoteObject.createImmutable("");
RemoteObject _hvd_cant = RemoteObject.createImmutable("");
RemoteObject _hvd_costo_tot = RemoteObject.createImmutable("");
RemoteObject _cat_va_descripcion = RemoteObject.createImmutable("");
RemoteObject _cat_va_valor = RemoteObject.createImmutable("");
RemoteObject _cuantosp = RemoteObject.createImmutable(0);
RemoteObject _cuantosc = RemoteObject.createImmutable(0);
RemoteObject _cuantosn = RemoteObject.createImmutable(0);
RemoteObject _cat_ve_version = RemoteObject.createImmutable("");
RemoteObject _valido = RemoteObject.createImmutable("");
RemoteObject _name2 = RemoteObject.createImmutable("");
RemoteObject _fecha_hoy = RemoteObject.createImmutable("");
RemoteObject _folio = RemoteObject.createImmutable("");
RemoteObject _marca = RemoteObject.createImmutable("");
RemoteObject _avance = RemoteObject.createImmutable("");
RemoteObject _objetivo = RemoteObject.createImmutable("");
RemoteObject _porcentaje1 = RemoteObject.createImmutable("");
Debug.locals.put("Job", _job);
 BA.debugLineNum = 986;BA.debugLine="Sub JobDone(Job As HttpJob)";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 992;BA.debugLine="If Job.Success = False Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_success" /*RemoteObject*/ ),c_principal.__c.getField(true,"False"))) { 
 BA.debugLineNum = 994;BA.debugLine="If Job.ErrorMessage = \"STREAM\" Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_errormessage" /*RemoteObject*/ ),BA.ObjectToString("STREAM"))) { 
 BA.debugLineNum = 995;BA.debugLine="If CARGA = \"SUBIR\" Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_carga" /*RemoteObject*/ ),BA.ObjectToString("SUBIR"))) { 
 BA.debugLineNum = 996;BA.debugLine="PB2.Progress = PB2.Progress + PORCENTAJE";
Debug.ShouldStop(8);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, __ref.getField(true,"_porcentaje" /*RemoteObject*/ ))}, "+",1, 0)));
 BA.debugLineNum = 997;BA.debugLine="S_CP.Text = \"SUBIENDO\"";
Debug.ShouldStop(16);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("SUBIENDO"));
 BA.debugLineNum = 998;BA.debugLine="If PB2.Progress > 99 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 99))) { 
 BA.debugLineNum = 999;BA.debugLine="S_CP.Text = \"VALIDANDO\"";
Debug.ShouldStop(64);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("VALIDANDO"));
 };
 };
 };
 }else {
 BA.debugLineNum = 1004;BA.debugLine="LogColor(\"JobDone: '\" & B4XPages.MainPage.reqMan";
Debug.ShouldStop(2048);
c_principal.__c.runVoidMethod ("LogImpl","33407890",RemoteObject.concat(RemoteObject.createImmutable("JobDone: '"),c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job)).getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable("' - Registros: "),c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job)).getField(false,"Rows" /*RemoteObject*/ ).runMethod(true,"getSize")),c_principal.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 1006;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1007;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(16384);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1009;BA.debugLine="If RESULT.Tag = \"update_gps\" Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("update_gps")))) { 
 BA.debugLineNum = 1010;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(131072);
{
final RemoteObject group16 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen16 = group16.runMethod(true,"getSize").<Integer>get()
;int index16 = 0;
;
for (; index16 < groupLen16;index16++){
_records = (group16.runMethod(false,"Get",index16));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1011;BA.debugLine="Log(\"==========================REGISTROS=\"&RE";
Debug.ShouldStop(262144);
c_principal.__c.runVoidMethod ("LogImpl","33407897",RemoteObject.concat(RemoteObject.createImmutable("==========================REGISTROS="),_result.getField(false,"Rows" /*RemoteObject*/ )),0);
 BA.debugLineNum = 1012;BA.debugLine="For Each k As String In RESULT.Columns.Keys";
Debug.ShouldStop(524288);
{
final RemoteObject group18 = _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen18 = group18.runMethod(true,"getSize").<Integer>get()
;int index18 = 0;
;
for (; index18 < groupLen18;index18++){
_k = BA.ObjectToString(group18.runMethod(false,"Get",index18));Debug.locals.put("k", _k);
Debug.locals.put("k", _k);
 BA.debugLineNum = 1013;BA.debugLine="Log(RESULT.Tag & \": \" & k & \": \" & records(R";
Debug.ShouldStop(1048576);
c_principal.__c.runVoidMethod ("LogImpl","33407899",RemoteObject.concat(_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(": "),_k,RemoteObject.createImmutable(": "),_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((_k)))))),0);
 }
}Debug.locals.put("k", _k);
;
 }
}Debug.locals.put("records", _records);
;
 };
 BA.debugLineNum = 1017;BA.debugLine="If RESULT.Tag = \"ins_pedidos\" Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("ins_pedidos")))) { 
 BA.debugLineNum = 1018;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(33554432);
{
final RemoteObject group24 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen24 = group24.runMethod(true,"getSize").<Integer>get()
;int index24 = 0;
;
for (; index24 < groupLen24;index24++){
_records = (group24.runMethod(false,"Get",index24));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1019;BA.debugLine="Log(\"==========================REGISTROS=\"&RE";
Debug.ShouldStop(67108864);
c_principal.__c.runVoidMethod ("LogImpl","33407905",RemoteObject.concat(RemoteObject.createImmutable("==========================REGISTROS="),_result.getField(false,"Rows" /*RemoteObject*/ )),0);
 BA.debugLineNum = 1020;BA.debugLine="For Each k As String In RESULT.Columns.Keys";
Debug.ShouldStop(134217728);
{
final RemoteObject group26 = _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Keys");
final int groupLen26 = group26.runMethod(true,"getSize").<Integer>get()
;int index26 = 0;
;
for (; index26 < groupLen26;index26++){
_k = BA.ObjectToString(group26.runMethod(false,"Get",index26));Debug.locals.put("k", _k);
Debug.locals.put("k", _k);
 BA.debugLineNum = 1021;BA.debugLine="Log(RESULT.Tag & \": \" & k & \": \" & records(R";
Debug.ShouldStop(268435456);
c_principal.__c.runVoidMethod ("LogImpl","33407907",RemoteObject.concat(_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(": "),_k,RemoteObject.createImmutable(": "),_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((_k)))))),0);
 }
}Debug.locals.put("k", _k);
;
 }
}Debug.locals.put("records", _records);
;
 };
 BA.debugLineNum = 1025;BA.debugLine="If RESULT.Tag = \"usuarioA\" Then 'query tag";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("usuarioA")))) { 
 BA.debugLineNum = 1026;BA.debugLine="Private n As String = \"Sin Usuario\"";
Debug.ShouldStop(2);
_n = BA.ObjectToString("Sin Usuario");Debug.locals.put("n", _n);Debug.locals.put("n", _n);
 BA.debugLineNum = 1027;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(4);
{
final RemoteObject group33 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen33 = group33.runMethod(true,"getSize").<Integer>get()
;int index33 = 0;
;
for (; index33 < groupLen33;index33++){
_records = (group33.runMethod(false,"Get",index33));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1028;BA.debugLine="n = records(RESULT.Columns.Get(\"USUARIO\"))";
Debug.ShouldStop(8);
_n = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("USUARIO")))))));Debug.locals.put("n", _n);
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1030;BA.debugLine="LogColor(\"**************************\"&n, Color";
Debug.ShouldStop(32);
c_principal.__c.runVoidMethod ("LogImpl","33407916",RemoteObject.concat(RemoteObject.createImmutable("**************************"),_n),c_principal.__c.getField(false,"Colors").getField(true,"Green"));
 BA.debugLineNum = 1031;BA.debugLine="If n = \"OKActivo\"  Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",_n,BA.ObjectToString("OKActivo"))) { 
 BA.debugLineNum = 1032;BA.debugLine="Log(\"Usuario guardado en BD es 'Valido'\")";
Debug.ShouldStop(128);
c_principal.__c.runVoidMethod ("LogImpl","33407918",RemoteObject.createImmutable("Usuario guardado en BD es 'Valido'"),0);
 }else 
{ BA.debugLineNum = 1033;BA.debugLine="Else If n  = \"OKExpirado\" Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",_n,BA.ObjectToString("OKExpirado"))) { 
 BA.debugLineNum = 1034;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administra";
Debug.ShouldStop(512);
c_principal.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable(""))),__ref.getField(false, "ba"));
 BA.debugLineNum = 1035;BA.debugLine="B4XPages.ShowPage(\"B4XMainPage\")";
Debug.ShouldStop(1024);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("B4XMainPage")));
 }else 
{ BA.debugLineNum = 1036;BA.debugLine="Else If n = \"OKCancelado\" Then";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("=",_n,BA.ObjectToString("OKCancelado"))) { 
 BA.debugLineNum = 1037;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administr";
Debug.ShouldStop(4096);
c_principal.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Usuario Cancelado llamar al administrador")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable(""))),__ref.getField(false, "ba"));
 BA.debugLineNum = 1038;BA.debugLine="B4XPages.ShowPage(\"B4XMainPage\")";
Debug.ShouldStop(8192);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("B4XMainPage")));
 }else {
 BA.debugLineNum = 1040;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'i";
Debug.ShouldStop(32768);
c_principal.__c.runVoidMethodAndSync ("Msgbox",(Object)(BA.ObjectToCharSequence("Usuario o password No validos")),(Object)(BA.ObjectToCharSequence(RemoteObject.createImmutable(""))),__ref.getField(false, "ba"));
 BA.debugLineNum = 1041;BA.debugLine="B4XPages.ShowPage(\"B4XMainPage\")";
Debug.ShouldStop(65536);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("B4XMainPage")));
 }}}
;
 BA.debugLineNum = 1043;BA.debugLine="Log(\"*****************  \"&n)";
Debug.ShouldStop(262144);
c_principal.__c.runVoidMethod ("LogImpl","33407929",RemoteObject.concat(RemoteObject.createImmutable("*****************  "),_n),0);
 };
 };
 BA.debugLineNum = 1047;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1048;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(8388608);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1049;BA.debugLine="If RESULT.Tag = \"kmt_datos\" Then 'query tag";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("kmt_datos")))) { 
 BA.debugLineNum = 1050;BA.debugLine="S_CC.TEXT = \"CARGANDO\"";
Debug.ShouldStop(33554432);
__ref.getField(false,"_s_cc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CARGANDO"));
 BA.debugLineNum = 1051;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(67108864);
{
final RemoteObject group56 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen56 = group56.runMethod(true,"getSize").<Integer>get()
;int index56 = 0;
;
for (; index56 < groupLen56;index56++){
_records = (group56.runMethod(false,"Get",index56));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1052;BA.debugLine="Dim CAT_CL_CODIGO As String = records(RESULT.";
Debug.ShouldStop(134217728);
_cat_cl_codigo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_CODIGO")))))));Debug.locals.put("CAT_CL_CODIGO", _cat_cl_codigo);Debug.locals.put("CAT_CL_CODIGO", _cat_cl_codigo);
 BA.debugLineNum = 1053;BA.debugLine="Dim CAT_CL_RUTA As String = records(RESULT.Co";
Debug.ShouldStop(268435456);
_cat_cl_ruta = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_RUTA")))))));Debug.locals.put("CAT_CL_RUTA", _cat_cl_ruta);Debug.locals.put("CAT_CL_RUTA", _cat_cl_ruta);
 BA.debugLineNum = 1054;BA.debugLine="Dim CAT_CL_NOMBRE As String = records(RESULT.";
Debug.ShouldStop(536870912);
_cat_cl_nombre = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_NOMBRE")))))));Debug.locals.put("CAT_CL_NOMBRE", _cat_cl_nombre);Debug.locals.put("CAT_CL_NOMBRE", _cat_cl_nombre);
 BA.debugLineNum = 1055;BA.debugLine="Dim CAT_CL_ATIENDE1 As String = records(RESUL";
Debug.ShouldStop(1073741824);
_cat_cl_atiende1 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_ATIENDE1")))))));Debug.locals.put("CAT_CL_ATIENDE1", _cat_cl_atiende1);Debug.locals.put("CAT_CL_ATIENDE1", _cat_cl_atiende1);
 BA.debugLineNum = 1056;BA.debugLine="Dim CAT_CL_ATIENTE2 As String = records(RESUL";
Debug.ShouldStop(-2147483648);
_cat_cl_atiente2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_ATIENTE2")))))));Debug.locals.put("CAT_CL_ATIENTE2", _cat_cl_atiente2);Debug.locals.put("CAT_CL_ATIENTE2", _cat_cl_atiente2);
 BA.debugLineNum = 1057;BA.debugLine="Dim CAT_CL_TELEFONO As String = records(RESUL";
Debug.ShouldStop(1);
_cat_cl_telefono = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_TELEFONO")))))));Debug.locals.put("CAT_CL_TELEFONO", _cat_cl_telefono);Debug.locals.put("CAT_CL_TELEFONO", _cat_cl_telefono);
 BA.debugLineNum = 1058;BA.debugLine="Dim CAT_CL_EMAIL As String = records(RESULT.C";
Debug.ShouldStop(2);
_cat_cl_email = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_EMAIL")))))));Debug.locals.put("CAT_CL_EMAIL", _cat_cl_email);Debug.locals.put("CAT_CL_EMAIL", _cat_cl_email);
 BA.debugLineNum = 1059;BA.debugLine="Dim CAT_CL_CALLE As String = records(RESULT.C";
Debug.ShouldStop(4);
_cat_cl_calle = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_CALLE")))))));Debug.locals.put("CAT_CL_CALLE", _cat_cl_calle);Debug.locals.put("CAT_CL_CALLE", _cat_cl_calle);
 BA.debugLineNum = 1060;BA.debugLine="Dim CAT_CL_NOEXT As String = records(RESULT.C";
Debug.ShouldStop(8);
_cat_cl_noext = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_NOEXT")))))));Debug.locals.put("CAT_CL_NOEXT", _cat_cl_noext);Debug.locals.put("CAT_CL_NOEXT", _cat_cl_noext);
 BA.debugLineNum = 1061;BA.debugLine="Dim CAT_CL_NOINT As String = records(RESULT.C";
Debug.ShouldStop(16);
_cat_cl_noint = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_NOINT")))))));Debug.locals.put("CAT_CL_NOINT", _cat_cl_noint);Debug.locals.put("CAT_CL_NOINT", _cat_cl_noint);
 BA.debugLineNum = 1062;BA.debugLine="Dim CAT_CL_CALLE1 As String = records(RESULT.";
Debug.ShouldStop(32);
_cat_cl_calle1 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_CALLE1")))))));Debug.locals.put("CAT_CL_CALLE1", _cat_cl_calle1);Debug.locals.put("CAT_CL_CALLE1", _cat_cl_calle1);
 BA.debugLineNum = 1063;BA.debugLine="Dim CAT_CL_CALLE2 As String = records(RESULT.";
Debug.ShouldStop(64);
_cat_cl_calle2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_CALLE2")))))));Debug.locals.put("CAT_CL_CALLE2", _cat_cl_calle2);Debug.locals.put("CAT_CL_CALLE2", _cat_cl_calle2);
 BA.debugLineNum = 1064;BA.debugLine="Dim CAT_CL_COLONIA As String = records(RESULT";
Debug.ShouldStop(128);
_cat_cl_colonia = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_COLONIA")))))));Debug.locals.put("CAT_CL_COLONIA", _cat_cl_colonia);Debug.locals.put("CAT_CL_COLONIA", _cat_cl_colonia);
 BA.debugLineNum = 1065;BA.debugLine="Dim CAT_CL_MUNI As String = records(RESULT.Co";
Debug.ShouldStop(256);
_cat_cl_muni = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_MUNI")))))));Debug.locals.put("CAT_CL_MUNI", _cat_cl_muni);Debug.locals.put("CAT_CL_MUNI", _cat_cl_muni);
 BA.debugLineNum = 1066;BA.debugLine="Dim CAT_CL_EDO As String = records(RESULT.Col";
Debug.ShouldStop(512);
_cat_cl_edo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_EDO")))))));Debug.locals.put("CAT_CL_EDO", _cat_cl_edo);Debug.locals.put("CAT_CL_EDO", _cat_cl_edo);
 BA.debugLineNum = 1067;BA.debugLine="Dim CAT_CL_CP As String = records(RESULT.Colu";
Debug.ShouldStop(1024);
_cat_cl_cp = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_CP")))))));Debug.locals.put("CAT_CL_CP", _cat_cl_cp);Debug.locals.put("CAT_CL_CP", _cat_cl_cp);
 BA.debugLineNum = 1068;BA.debugLine="Dim CAT_CL_LONG As String = records(RESULT.Co";
Debug.ShouldStop(2048);
_cat_cl_long = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_LONG")))))));Debug.locals.put("CAT_CL_LONG", _cat_cl_long);Debug.locals.put("CAT_CL_LONG", _cat_cl_long);
 BA.debugLineNum = 1069;BA.debugLine="Dim CAT_CL_LAT As String = records(RESULT.Col";
Debug.ShouldStop(4096);
_cat_cl_lat = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_LAT")))))));Debug.locals.put("CAT_CL_LAT", _cat_cl_lat);Debug.locals.put("CAT_CL_LAT", _cat_cl_lat);
 BA.debugLineNum = 1070;BA.debugLine="Dim CAT_CL_MTOCOMPRA As String = records(RESU";
Debug.ShouldStop(8192);
_cat_cl_mtocompra = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_MTOCOMPRA")))))));Debug.locals.put("CAT_CL_MTOCOMPRA", _cat_cl_mtocompra);Debug.locals.put("CAT_CL_MTOCOMPRA", _cat_cl_mtocompra);
 BA.debugLineNum = 1071;BA.debugLine="Dim CAT_CL_NUM_SERIEFISICO As String = record";
Debug.ShouldStop(16384);
_cat_cl_num_seriefisico = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_NUM_SERIEFISICO")))))));Debug.locals.put("CAT_CL_NUM_SERIEFISICO", _cat_cl_num_seriefisico);Debug.locals.put("CAT_CL_NUM_SERIEFISICO", _cat_cl_num_seriefisico);
 BA.debugLineNum = 1072;BA.debugLine="Dim CAT_CL_DIASEMANA As String = records(RESU";
Debug.ShouldStop(32768);
_cat_cl_diasemana = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_DIAS_VISITA")))))));Debug.locals.put("CAT_CL_DIASEMANA", _cat_cl_diasemana);Debug.locals.put("CAT_CL_DIASEMANA", _cat_cl_diasemana);
 BA.debugLineNum = 1073;BA.debugLine="Dim CAT_CL_SECUENCIA As Int = records(RESULT.";
Debug.ShouldStop(65536);
_cat_cl_secuencia = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_CL_SECUENCIA")))))));Debug.locals.put("CAT_CL_SECUENCIA", _cat_cl_secuencia);Debug.locals.put("CAT_CL_SECUENCIA", _cat_cl_secuencia);
 BA.debugLineNum = 1074;BA.debugLine="Starter.dia_semana = CAT_CL_DIASEMANA";
Debug.ShouldStop(131072);
c_principal._starter._dia_semana /*RemoteObject*/  = _cat_cl_diasemana;
 BA.debugLineNum = 1075;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(262144);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("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_MTOCOMPRA,CAT_CL_NUM_SERIEFISICO, gestion, CAT_CL_DIASEMANA, CAT_CL_SECUENCIA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {22},new Object[] {(_cat_cl_codigo),(_cat_cl_ruta),(_cat_cl_nombre),(_cat_cl_atiende1),(_cat_cl_atiente2),(_cat_cl_telefono),(_cat_cl_email),(_cat_cl_calle),(_cat_cl_noext),(_cat_cl_noint),(_cat_cl_calle1),(_cat_cl_calle2),(_cat_cl_colonia),(_cat_cl_muni),(_cat_cl_edo),(_cat_cl_cp),(_cat_cl_long),(_cat_cl_lat),(_cat_cl_mtocompra),(_cat_cl_num_seriefisico),(_cat_cl_diasemana),(_cat_cl_secuencia)})))));
 BA.debugLineNum = 1076;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(524288);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_STAY_STORE(HSS_CODIGO,  HSS_IN , HSS_OUT , HSS_TOT) VALUES (?,0,0,0)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(_cat_cl_codigo)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1078;BA.debugLine="Listo1 = 1";
Debug.ShouldStop(2097152);
__ref.setField ("_listo1" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1079;BA.debugLine="S_CC.Text = \"LISTO\"";
Debug.ShouldStop(4194304);
__ref.getField(false,"_s_cc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("LISTO"));
 BA.debugLineNum = 1080;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("!",c_principal._starter._marcacel /*RemoteObject*/ ,BA.ObjectToString("Sony"))) { 
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Catalogo Clientes Actualizados.")),(Object)(c_principal.__c.getField(true,"True")));};
 BA.debugLineNum = 1081;BA.debugLine="If Listo1 = 1 And Listo2 = 1 And Listo3 = 1 An";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo1" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo2" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo4" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1082;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(33554432);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_b4xpage_appear" /*void*/ );
 BA.debugLineNum = 1083;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(67108864);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1084;BA.debugLine="EJECUTANDO = 0";
Debug.ShouldStop(134217728);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 };
 };
 };
 BA.debugLineNum = 1089;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1090;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(2);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1091;BA.debugLine="If RESULT.Tag = \"resum_apk\" Then 'query tag";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("resum_apk")))) { 
 BA.debugLineNum = 1092;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(8);
{
final RemoteObject group96 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen96 = group96.runMethod(true,"getSize").<Integer>get()
;int index96 = 0;
;
for (; index96 < groupLen96;index96++){
_records = (group96.runMethod(false,"Get",index96));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1093;BA.debugLine="Dim HIST_RA_OBJMES As String = records(RESULT";
Debug.ShouldStop(16);
_hist_ra_objmes = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_OBJMES")))))));Debug.locals.put("HIST_RA_OBJMES", _hist_ra_objmes);Debug.locals.put("HIST_RA_OBJMES", _hist_ra_objmes);
 BA.debugLineNum = 1094;BA.debugLine="Dim HIST_RA_VENTA As String = records(RESULT.";
Debug.ShouldStop(32);
_hist_ra_venta = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_VENTA")))))));Debug.locals.put("HIST_RA_VENTA", _hist_ra_venta);Debug.locals.put("HIST_RA_VENTA", _hist_ra_venta);
 BA.debugLineNum = 1095;BA.debugLine="Dim HIST_RA_TENDENCIA As String = records(RES";
Debug.ShouldStop(64);
_hist_ra_tendencia = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_TENDENCIA")))))));Debug.locals.put("HIST_RA_TENDENCIA", _hist_ra_tendencia);Debug.locals.put("HIST_RA_TENDENCIA", _hist_ra_tendencia);
 BA.debugLineNum = 1096;BA.debugLine="Dim HIST_RA_ALCANCE As String = records(RESUL";
Debug.ShouldStop(128);
_hist_ra_alcance = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_ALCANCE")))))));Debug.locals.put("HIST_RA_ALCANCE", _hist_ra_alcance);Debug.locals.put("HIST_RA_ALCANCE", _hist_ra_alcance);
 BA.debugLineNum = 1097;BA.debugLine="Dim HISR_RA_DRAOBJ As String = records(RESULT";
Debug.ShouldStop(256);
_hisr_ra_draobj = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HISR_RA_DRAOBJ")))))));Debug.locals.put("HISR_RA_DRAOBJ", _hisr_ra_draobj);Debug.locals.put("HISR_RA_DRAOBJ", _hisr_ra_draobj);
 BA.debugLineNum = 1098;BA.debugLine="Dim HIST_RA_DRAVTA As String = records(RESULT";
Debug.ShouldStop(512);
_hist_ra_dravta = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_DRAVTA")))))));Debug.locals.put("HIST_RA_DRAVTA", _hist_ra_dravta);Debug.locals.put("HIST_RA_DRAVTA", _hist_ra_dravta);
 BA.debugLineNum = 1099;BA.debugLine="Dim HIST_RA_DSOBJ As String = records(RESULT.";
Debug.ShouldStop(1024);
_hist_ra_dsobj = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_DSOBJ")))))));Debug.locals.put("HIST_RA_DSOBJ", _hist_ra_dsobj);Debug.locals.put("HIST_RA_DSOBJ", _hist_ra_dsobj);
 BA.debugLineNum = 1100;BA.debugLine="Dim HIST_RA_DSVTA As String = records(RESULT.";
Debug.ShouldStop(2048);
_hist_ra_dsvta = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_DSVTA")))))));Debug.locals.put("HIST_RA_DSVTA", _hist_ra_dsvta);Debug.locals.put("HIST_RA_DSVTA", _hist_ra_dsvta);
 BA.debugLineNum = 1101;BA.debugLine="Dim HIST_RA_VPOOBJ As String = records(RESULT";
Debug.ShouldStop(4096);
_hist_ra_vpoobj = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_VPOOBJ")))))));Debug.locals.put("HIST_RA_VPOOBJ", _hist_ra_vpoobj);Debug.locals.put("HIST_RA_VPOOBJ", _hist_ra_vpoobj);
 BA.debugLineNum = 1102;BA.debugLine="Dim HIST_RA_VPOVTA As String = records(RESULT";
Debug.ShouldStop(8192);
_hist_ra_vpovta = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_VPOVTA")))))));Debug.locals.put("HIST_RA_VPOVTA", _hist_ra_vpovta);Debug.locals.put("HIST_RA_VPOVTA", _hist_ra_vpovta);
 BA.debugLineNum = 1103;BA.debugLine="Dim HIST_RA_CTES As String = records(RESULT.C";
Debug.ShouldStop(16384);
_hist_ra_ctes = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_CTES")))))));Debug.locals.put("HIST_RA_CTES", _hist_ra_ctes);Debug.locals.put("HIST_RA_CTES", _hist_ra_ctes);
 BA.debugLineNum = 1104;BA.debugLine="Dim HIST_RA_COBCCC As String = records(RESULT";
Debug.ShouldStop(32768);
_hist_ra_cobccc = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_COBCCC")))))));Debug.locals.put("HIST_RA_COBCCC", _hist_ra_cobccc);Debug.locals.put("HIST_RA_COBCCC", _hist_ra_cobccc);
 BA.debugLineNum = 1105;BA.debugLine="Dim HIST_RA_ECO As String = records(RESULT.Co";
Debug.ShouldStop(65536);
_hist_ra_eco = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_ECO")))))));Debug.locals.put("HIST_RA_ECO", _hist_ra_eco);Debug.locals.put("HIST_RA_ECO", _hist_ra_eco);
 BA.debugLineNum = 1106;BA.debugLine="Dim HIST_RA_VISITPLAN As String = records(RES";
Debug.ShouldStop(131072);
_hist_ra_visitplan = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_VISITPLAN")))))));Debug.locals.put("HIST_RA_VISITPLAN", _hist_ra_visitplan);Debug.locals.put("HIST_RA_VISITPLAN", _hist_ra_visitplan);
 BA.debugLineNum = 1107;BA.debugLine="Dim HIST_RA_VISIREAL As String = records(RESU";
Debug.ShouldStop(262144);
_hist_ra_visireal = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_VISIREAL")))))));Debug.locals.put("HIST_RA_VISIREAL", _hist_ra_visireal);Debug.locals.put("HIST_RA_VISIREAL", _hist_ra_visireal);
 BA.debugLineNum = 1108;BA.debugLine="Dim HIST_RA_COBVISIT As String = records(RESU";
Debug.ShouldStop(524288);
_hist_ra_cobvisit = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_COBVISIT")))))));Debug.locals.put("HIST_RA_COBVISIT", _hist_ra_cobvisit);Debug.locals.put("HIST_RA_COBVISIT", _hist_ra_cobvisit);
 BA.debugLineNum = 1109;BA.debugLine="Dim HIST_RA_FRECCOMPOBJ As String = records(R";
Debug.ShouldStop(1048576);
_hist_ra_freccompobj = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_FRECCOMPOBJ")))))));Debug.locals.put("HIST_RA_FRECCOMPOBJ", _hist_ra_freccompobj);Debug.locals.put("HIST_RA_FRECCOMPOBJ", _hist_ra_freccompobj);
 BA.debugLineNum = 1110;BA.debugLine="Dim HIST_RA_FRECCOMREAL As String = records(R";
Debug.ShouldStop(2097152);
_hist_ra_freccomreal = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_FRECCOMREAL")))))));Debug.locals.put("HIST_RA_FRECCOMREAL", _hist_ra_freccomreal);Debug.locals.put("HIST_RA_FRECCOMREAL", _hist_ra_freccomreal);
 BA.debugLineNum = 1111;BA.debugLine="Dim HIST_RA_VENTAMES1 As String = records(RES";
Debug.ShouldStop(4194304);
_hist_ra_ventames1 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_VENTAMES1")))))));Debug.locals.put("HIST_RA_VENTAMES1", _hist_ra_ventames1);Debug.locals.put("HIST_RA_VENTAMES1", _hist_ra_ventames1);
 BA.debugLineNum = 1112;BA.debugLine="Dim HIST_RA_VENTAMES2 As String = records(RES";
Debug.ShouldStop(8388608);
_hist_ra_ventames2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_VENTAMES2")))))));Debug.locals.put("HIST_RA_VENTAMES2", _hist_ra_ventames2);Debug.locals.put("HIST_RA_VENTAMES2", _hist_ra_ventames2);
 BA.debugLineNum = 1113;BA.debugLine="Dim HIST_RA_VENTAMES3 As String = records(RES";
Debug.ShouldStop(16777216);
_hist_ra_ventames3 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_VENTAMES3")))))));Debug.locals.put("HIST_RA_VENTAMES3", _hist_ra_ventames3);Debug.locals.put("HIST_RA_VENTAMES3", _hist_ra_ventames3);
 BA.debugLineNum = 1114;BA.debugLine="Dim HIST_RA_VENTAMES4 As String = records(RES";
Debug.ShouldStop(33554432);
_hist_ra_ventames4 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_VENTAMES4")))))));Debug.locals.put("HIST_RA_VENTAMES4", _hist_ra_ventames4);Debug.locals.put("HIST_RA_VENTAMES4", _hist_ra_ventames4);
 BA.debugLineNum = 1115;BA.debugLine="Dim HIST_RA_RECHAZO As String = records(RESUL";
Debug.ShouldStop(67108864);
_hist_ra_rechazo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_RECHAZO")))))));Debug.locals.put("HIST_RA_RECHAZO", _hist_ra_rechazo);Debug.locals.put("HIST_RA_RECHAZO", _hist_ra_rechazo);
 BA.debugLineNum = 1116;BA.debugLine="Dim HIST_RA_RECHAZOPORCEN As String = records";
Debug.ShouldStop(134217728);
_hist_ra_rechazoporcen = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_RECHAZOPORCEN")))))));Debug.locals.put("HIST_RA_RECHAZOPORCEN", _hist_ra_rechazoporcen);Debug.locals.put("HIST_RA_RECHAZOPORCEN", _hist_ra_rechazoporcen);
 BA.debugLineNum = 1117;BA.debugLine="Dim HIST_RA_SEMANA1 As String = records(RESUL";
Debug.ShouldStop(268435456);
_hist_ra_semana1 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA1")))))));Debug.locals.put("HIST_RA_SEMANA1", _hist_ra_semana1);Debug.locals.put("HIST_RA_SEMANA1", _hist_ra_semana1);
 BA.debugLineNum = 1118;BA.debugLine="Dim HIST_RA_SEMANA1_DIAS As String = records(";
Debug.ShouldStop(536870912);
_hist_ra_semana1_dias = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA1_DIAS")))))));Debug.locals.put("HIST_RA_SEMANA1_DIAS", _hist_ra_semana1_dias);Debug.locals.put("HIST_RA_SEMANA1_DIAS", _hist_ra_semana1_dias);
 BA.debugLineNum = 1119;BA.debugLine="Dim HIST_RA_SEMANA1_DRA As String = records(R";
Debug.ShouldStop(1073741824);
_hist_ra_semana1_dra = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA1_DRA")))))));Debug.locals.put("HIST_RA_SEMANA1_DRA", _hist_ra_semana1_dra);Debug.locals.put("HIST_RA_SEMANA1_DRA", _hist_ra_semana1_dra);
 BA.debugLineNum = 1120;BA.debugLine="Dim HIST_RA_SEMANA2 As String = records(RESUL";
Debug.ShouldStop(-2147483648);
_hist_ra_semana2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA2")))))));Debug.locals.put("HIST_RA_SEMANA2", _hist_ra_semana2);Debug.locals.put("HIST_RA_SEMANA2", _hist_ra_semana2);
 BA.debugLineNum = 1121;BA.debugLine="Dim HIST_RA_SEMANA2_DIAS As String = records(";
Debug.ShouldStop(1);
_hist_ra_semana2_dias = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA2_DIAS")))))));Debug.locals.put("HIST_RA_SEMANA2_DIAS", _hist_ra_semana2_dias);Debug.locals.put("HIST_RA_SEMANA2_DIAS", _hist_ra_semana2_dias);
 BA.debugLineNum = 1122;BA.debugLine="Dim HIST_RA_SEMANA2_DRA As String = records(R";
Debug.ShouldStop(2);
_hist_ra_semana2_dra = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA2_DRA")))))));Debug.locals.put("HIST_RA_SEMANA2_DRA", _hist_ra_semana2_dra);Debug.locals.put("HIST_RA_SEMANA2_DRA", _hist_ra_semana2_dra);
 BA.debugLineNum = 1123;BA.debugLine="Dim HIST_RA_SEMANA3 As String = records(RESUL";
Debug.ShouldStop(4);
_hist_ra_semana3 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA3")))))));Debug.locals.put("HIST_RA_SEMANA3", _hist_ra_semana3);Debug.locals.put("HIST_RA_SEMANA3", _hist_ra_semana3);
 BA.debugLineNum = 1124;BA.debugLine="Dim HIST_RA_SEMANA3_DIAS As String = records(";
Debug.ShouldStop(8);
_hist_ra_semana3_dias = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA3_DIAS")))))));Debug.locals.put("HIST_RA_SEMANA3_DIAS", _hist_ra_semana3_dias);Debug.locals.put("HIST_RA_SEMANA3_DIAS", _hist_ra_semana3_dias);
 BA.debugLineNum = 1125;BA.debugLine="Dim HIST_RA_SEMANA3_DRA As String = records(R";
Debug.ShouldStop(16);
_hist_ra_semana3_dra = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA3_DRA")))))));Debug.locals.put("HIST_RA_SEMANA3_DRA", _hist_ra_semana3_dra);Debug.locals.put("HIST_RA_SEMANA3_DRA", _hist_ra_semana3_dra);
 BA.debugLineNum = 1126;BA.debugLine="Dim HIST_RA_SEMANA4 As String = records(RESUL";
Debug.ShouldStop(32);
_hist_ra_semana4 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA4")))))));Debug.locals.put("HIST_RA_SEMANA4", _hist_ra_semana4);Debug.locals.put("HIST_RA_SEMANA4", _hist_ra_semana4);
 BA.debugLineNum = 1127;BA.debugLine="Dim HIST_RA_SEMANA4_DIAS As String = records(";
Debug.ShouldStop(64);
_hist_ra_semana4_dias = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA4_DIAS")))))));Debug.locals.put("HIST_RA_SEMANA4_DIAS", _hist_ra_semana4_dias);Debug.locals.put("HIST_RA_SEMANA4_DIAS", _hist_ra_semana4_dias);
 BA.debugLineNum = 1128;BA.debugLine="Dim HIST_RA_SEMANA4_DRA As String = records(R";
Debug.ShouldStop(128);
_hist_ra_semana4_dra = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA4_DRA")))))));Debug.locals.put("HIST_RA_SEMANA4_DRA", _hist_ra_semana4_dra);Debug.locals.put("HIST_RA_SEMANA4_DRA", _hist_ra_semana4_dra);
 BA.debugLineNum = 1129;BA.debugLine="Dim HIST_RA_SEMANA5 As String = records(RESUL";
Debug.ShouldStop(256);
_hist_ra_semana5 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA5")))))));Debug.locals.put("HIST_RA_SEMANA5", _hist_ra_semana5);Debug.locals.put("HIST_RA_SEMANA5", _hist_ra_semana5);
 BA.debugLineNum = 1130;BA.debugLine="Dim HIST_RA_SEMANA5_DIAS As String = records(";
Debug.ShouldStop(512);
_hist_ra_semana5_dias = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA5_DIAS")))))));Debug.locals.put("HIST_RA_SEMANA5_DIAS", _hist_ra_semana5_dias);Debug.locals.put("HIST_RA_SEMANA5_DIAS", _hist_ra_semana5_dias);
 BA.debugLineNum = 1131;BA.debugLine="Dim HIST_RA_SEMANA5_DRA As String = records(R";
Debug.ShouldStop(1024);
_hist_ra_semana5_dra = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA5_DRA")))))));Debug.locals.put("HIST_RA_SEMANA5_DRA", _hist_ra_semana5_dra);Debug.locals.put("HIST_RA_SEMANA5_DRA", _hist_ra_semana5_dra);
 BA.debugLineNum = 1132;BA.debugLine="Dim HIST_RA_SEMANA1_LPT As String = records(R";
Debug.ShouldStop(2048);
_hist_ra_semana1_lpt = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA1_LPT")))))));Debug.locals.put("HIST_RA_SEMANA1_LPT", _hist_ra_semana1_lpt);Debug.locals.put("HIST_RA_SEMANA1_LPT", _hist_ra_semana1_lpt);
 BA.debugLineNum = 1133;BA.debugLine="Dim HIST_RA_SEMANA2_LPT As String = records(R";
Debug.ShouldStop(4096);
_hist_ra_semana2_lpt = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA2_LPT")))))));Debug.locals.put("HIST_RA_SEMANA2_LPT", _hist_ra_semana2_lpt);Debug.locals.put("HIST_RA_SEMANA2_LPT", _hist_ra_semana2_lpt);
 BA.debugLineNum = 1134;BA.debugLine="Dim HIST_RA_SEMANA3_LPT As String = records(R";
Debug.ShouldStop(8192);
_hist_ra_semana3_lpt = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA3_LPT")))))));Debug.locals.put("HIST_RA_SEMANA3_LPT", _hist_ra_semana3_lpt);Debug.locals.put("HIST_RA_SEMANA3_LPT", _hist_ra_semana3_lpt);
 BA.debugLineNum = 1135;BA.debugLine="Dim HIST_RA_SEMANA4_LPT As String = records(R";
Debug.ShouldStop(16384);
_hist_ra_semana4_lpt = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA4_LPT")))))));Debug.locals.put("HIST_RA_SEMANA4_LPT", _hist_ra_semana4_lpt);Debug.locals.put("HIST_RA_SEMANA4_LPT", _hist_ra_semana4_lpt);
 BA.debugLineNum = 1136;BA.debugLine="Dim HIST_RA_SEMANA5_LPT As String = records(R";
Debug.ShouldStop(32768);
_hist_ra_semana5_lpt = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_SEMANA5_LPT")))))));Debug.locals.put("HIST_RA_SEMANA5_LPT", _hist_ra_semana5_lpt);Debug.locals.put("HIST_RA_SEMANA5_LPT", _hist_ra_semana5_lpt);
 BA.debugLineNum = 1137;BA.debugLine="Dim HIST_RA_RUTA As String = records(RESULT.C";
Debug.ShouldStop(65536);
_hist_ra_ruta = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_RUTA")))))));Debug.locals.put("HIST_RA_RUTA", _hist_ra_ruta);Debug.locals.put("HIST_RA_RUTA", _hist_ra_ruta);
 BA.debugLineNum = 1138;BA.debugLine="Dim HIST_RA_IDALMACEN As String = records(RES";
Debug.ShouldStop(131072);
_hist_ra_idalmacen = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_RA_IDALMACEN")))))));Debug.locals.put("HIST_RA_IDALMACEN", _hist_ra_idalmacen);Debug.locals.put("HIST_RA_IDALMACEN", _hist_ra_idalmacen);
 BA.debugLineNum = 1140;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(524288);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_RESUM_APK(HIST_RA_OBJMES,HIST_RA_VENTA,HIST_RA_TENDENCIA,HIST_RA_ALCANCE,HISR_RA_DRAOBJ,HIST_RA_DRAVTA,HIST_RA_DSOBJ,HIST_RA_DSVTA,HIST_RA_VPOOBJ,HIST_RA_VPOVTA,HIST_RA_CTES,HIST_RA_COBCCC,HIST_RA_ECO,HIST_RA_VISITPLAN,HIST_RA_VISIREAL,HIST_RA_COBVISIT,HIST_RA_FRECCOMPOBJ,HIST_RA_FRECCOMREAL,HIST_RA_VENTAMES1,HIST_RA_VENTAMES2,HIST_RA_VENTAMES3,HIST_RA_VENTAMES4,HIST_RA_RECHAZO,HIST_RA_RECHAZOPORCEN,HIST_RA_SEMANA1,HIST_RA_SEMANA1_DIAS,HIST_RA_SEMANA1_DRA,HIST_RA_SEMANA2,HIST_RA_SEMANA2_DIAS,HIST_RA_SEMANA2_DRA,HIST_RA_SEMANA3,HIST_RA_SEMANA3_DIAS,HIST_RA_SEMANA3_DRA,HIST_RA_SEMANA4,HIST_RA_SEMANA4_DIAS,HIST_RA_SEMANA4_DRA,HIST_RA_SEMANA5,HIST_RA_SEMANA5_DIAS,HIST_RA_SEMANA5_DRA,HIST_RA_SEMANA1_LPT,HIST_RA_SEMANA2_LPT,HIST_RA_SEMANA3_LPT,HIST_RA_SEMANA4_LPT,HIST_RA_SEMANA5_LPT,HIST_RA_RUTA,HIST_RA_IDALMACEN) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {46},new Object[] {(_hist_ra_objmes),(_hist_ra_venta),(_hist_ra_tendencia),(_hist_ra_alcance),(_hisr_ra_draobj),(_hist_ra_dravta),(_hist_ra_dsobj),(_hist_ra_dsvta),(_hist_ra_vpoobj),(_hist_ra_vpovta),(_hist_ra_ctes),(_hist_ra_cobccc),(_hist_ra_eco),(_hist_ra_visitplan),(_hist_ra_visireal),(_hist_ra_cobvisit),(_hist_ra_freccompobj),(_hist_ra_freccomreal),(_hist_ra_ventames1),(_hist_ra_ventames2),(_hist_ra_ventames3),(_hist_ra_ventames4),(_hist_ra_rechazo),(_hist_ra_rechazoporcen),(_hist_ra_semana1),(_hist_ra_semana1_dias),(_hist_ra_semana1_dra),(_hist_ra_semana2),(_hist_ra_semana2_dias),(_hist_ra_semana2_dra),(_hist_ra_semana3),(_hist_ra_semana3_dias),(_hist_ra_semana3_dra),(_hist_ra_semana4),(_hist_ra_semana4_dias),(_hist_ra_semana4_dra),(_hist_ra_semana5),(_hist_ra_semana5_dias),(_hist_ra_semana5_dra),(_hist_ra_semana1_lpt),(_hist_ra_semana2_lpt),(_hist_ra_semana3_lpt),(_hist_ra_semana4_lpt),(_hist_ra_semana5_lpt),(_hist_ra_ruta),(_hist_ra_idalmacen)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1143;BA.debugLine="Listo1 = 1";
Debug.ShouldStop(4194304);
__ref.setField ("_listo1" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1144;BA.debugLine="S_CC.Text = \"LISTO\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_s_cc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("LISTO"));
 BA.debugLineNum = 1145;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("!",c_principal._starter._marcacel /*RemoteObject*/ ,BA.ObjectToString("Sony"))) { 
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Catalogo Resumen Actualizado.")),(Object)(c_principal.__c.getField(true,"True")));};
 };
 };
 BA.debugLineNum = 1149;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1150;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(536870912);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1151;BA.debugLine="If RESULT.Tag = \"hist_promos\" Then 'query tag";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("hist_promos")))) { 
 BA.debugLineNum = 1152;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(-2147483648);
{
final RemoteObject group153 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen153 = group153.runMethod(true,"getSize").<Integer>get()
;int index153 = 0;
;
for (; index153 < groupLen153;index153++){
_records = (group153.runMethod(false,"Get",index153));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1153;BA.debugLine="Dim HP_CLIENTE As String = records(RESULT.Col";
Debug.ShouldStop(1);
_hp_cliente = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HP_CLIENTE")))))));Debug.locals.put("HP_CLIENTE", _hp_cliente);Debug.locals.put("HP_CLIENTE", _hp_cliente);
 BA.debugLineNum = 1154;BA.debugLine="Dim HP_CODIGO_PROMOCION As String = records(R";
Debug.ShouldStop(2);
_hp_codigo_promocion = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HP_CODIGO_PROMOCION")))))));Debug.locals.put("HP_CODIGO_PROMOCION", _hp_codigo_promocion);Debug.locals.put("HP_CODIGO_PROMOCION", _hp_codigo_promocion);
 BA.debugLineNum = 1155;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(4);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_PROMOS(HP_CLIENTE, HP_CODIGO_PROMOCION) VALUES (?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_hp_cliente),(_hp_codigo_promocion)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1157;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("!",c_principal._starter._marcacel /*RemoteObject*/ ,BA.ObjectToString("Sony"))) { 
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Historico Promociones Actualizado.")),(Object)(c_principal.__c.getField(true,"True")));};
 BA.debugLineNum = 1158;BA.debugLine="If PB1.Progress = 0 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1159;BA.debugLine="PB1.Progress = 30";
Debug.ShouldStop(64);
__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 30));
 BA.debugLineNum = 1160;BA.debugLine="S_CH.Text = \"CARGANDO\"";
Debug.ShouldStop(128);
__ref.getField(false,"_s_ch" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CARGANDO"));
 }else 
{ BA.debugLineNum = 1161;BA.debugLine="ELSE If PB1.Progress = 30 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 30))) { 
 BA.debugLineNum = 1162;BA.debugLine="PB1.Progress = 60";
Debug.ShouldStop(512);
__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 60));
 }else 
{ BA.debugLineNum = 1163;BA.debugLine="ELSE IF PB1.Progress = 60 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 60))) { 
 BA.debugLineNum = 1164;BA.debugLine="PB1.Progress = 100";
Debug.ShouldStop(2048);
__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 100));
 BA.debugLineNum = 1165;BA.debugLine="S_CH.Text = \"LISTO\"";
Debug.ShouldStop(4096);
__ref.getField(false,"_s_ch" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("LISTO"));
 }}}
;
 };
 };
 BA.debugLineNum = 1170;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1171;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(262144);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1172;BA.debugLine="If RESULT.Tag = \"hist_cliente_promos\" Then 'que";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("hist_cliente_promos")))) { 
 BA.debugLineNum = 1173;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(1048576);
{
final RemoteObject group173 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen173 = group173.runMethod(true,"getSize").<Integer>get()
;int index173 = 0;
;
for (; index173 < groupLen173;index173++){
_records = (group173.runMethod(false,"Get",index173));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1174;BA.debugLine="Dim HCCP_CLIENTE As String = records(RESULT.C";
Debug.ShouldStop(2097152);
_hccp_cliente = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HCCP_CLIENTE")))))));Debug.locals.put("HCCP_CLIENTE", _hccp_cliente);Debug.locals.put("HCCP_CLIENTE", _hccp_cliente);
 BA.debugLineNum = 1175;BA.debugLine="Dim HCCP_PROMO As String = records(RESULT.Col";
Debug.ShouldStop(4194304);
_hccp_promo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HCCP_PROMO")))))));Debug.locals.put("HCCP_PROMO", _hccp_promo);Debug.locals.put("HCCP_PROMO", _hccp_promo);
 BA.debugLineNum = 1176;BA.debugLine="Dim HCCP_CANT As String = records(RESULT.Colu";
Debug.ShouldStop(8388608);
_hccp_cant = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HCCP_CANT")))))));Debug.locals.put("HCCP_CANT", _hccp_cant);Debug.locals.put("HCCP_CANT", _hccp_cant);
 BA.debugLineNum = 1177;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(16777216);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_CLIENTE_CANT_PROMOS(HCCP_CLIENTE, HCCP_PROMO, HCCP_CANT) VALUES (?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(_hccp_cliente),(_hccp_promo),(_hccp_cant)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1179;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("!",c_principal._starter._marcacel /*RemoteObject*/ ,BA.ObjectToString("Sony"))) { 
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(" Historico Clientes Promociones Actualizado.")),(Object)(c_principal.__c.getField(true,"True")));};
 };
 };
 BA.debugLineNum = 1183;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1184;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(-2147483648);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1185;BA.debugLine="If RESULT.Tag = \"HIST_MARCAS_CUOTAS\" Then 'quer";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("HIST_MARCAS_CUOTAS")))) { 
 BA.debugLineNum = 1186;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(2);
{
final RemoteObject group185 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen185 = group185.runMethod(true,"getSize").<Integer>get()
;int index185 = 0;
;
for (; index185 < groupLen185;index185++){
_records = (group185.runMethod(false,"Get",index185));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1187;BA.debugLine="Dim HMC_MARCA As String = records(RESULT.Colu";
Debug.ShouldStop(4);
_hmc_marca = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HMC_MARCA")))))));Debug.locals.put("HMC_MARCA", _hmc_marca);Debug.locals.put("HMC_MARCA", _hmc_marca);
 BA.debugLineNum = 1188;BA.debugLine="Dim HMC_TOTAL As String = records(RESULT.Colu";
Debug.ShouldStop(8);
_hmc_total = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HMC_TOTAL")))))));Debug.locals.put("HMC_TOTAL", _hmc_total);Debug.locals.put("HMC_TOTAL", _hmc_total);
 BA.debugLineNum = 1189;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(16);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_MARCAS_CUOTAS(HMC_MARCA, HMC_TOTAL) VALUES (?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_hmc_marca),(_hmc_total)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1191;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("!",c_principal._starter._marcacel /*RemoteObject*/ ,BA.ObjectToString("Sony"))) { 
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(" Historico Marcas")),(Object)(c_principal.__c.getField(true,"True")));};
 };
 };
 BA.debugLineNum = 1195;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1196;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(2048);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1197;BA.debugLine="If RESULT.Tag = \"hist_comp_promos\" Then 'query";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("hist_comp_promos")))) { 
 BA.debugLineNum = 1198;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(8192);
{
final RemoteObject group196 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen196 = group196.runMethod(true,"getSize").<Integer>get()
;int index196 = 0;
;
for (; index196 < groupLen196;index196++){
_records = (group196.runMethod(false,"Get",index196));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1199;BA.debugLine="Dim CAT_PA_ID As String = records(RESULT.Colu";
Debug.ShouldStop(16384);
_cat_pa_id = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_PA_ID")))))));Debug.locals.put("CAT_PA_ID", _cat_pa_id);Debug.locals.put("CAT_PA_ID", _cat_pa_id);
 BA.debugLineNum = 1200;BA.debugLine="Dim CAT_PA_MAXPROM As String = records(RESULT";
Debug.ShouldStop(32768);
_cat_pa_maxprom = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_PA_MAXPROM")))))));Debug.locals.put("CAT_PA_MAXPROM", _cat_pa_maxprom);Debug.locals.put("CAT_PA_MAXPROM", _cat_pa_maxprom);
 BA.debugLineNum = 1201;BA.debugLine="Dim CAT_PA_MAXPROMREC As String = records(RES";
Debug.ShouldStop(65536);
_cat_pa_maxpromrec = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_PA_MAXPROMREC")))))));Debug.locals.put("CAT_PA_MAXPROMREC", _cat_pa_maxpromrec);Debug.locals.put("CAT_PA_MAXPROMREC", _cat_pa_maxpromrec);
 BA.debugLineNum = 1202;BA.debugLine="Dim CAT_PA_MAXPROMCLIE As String = records(RE";
Debug.ShouldStop(131072);
_cat_pa_maxpromclie = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_PA_MAXPROMCLIE")))))));Debug.locals.put("CAT_PA_MAXPROMCLIE", _cat_pa_maxpromclie);Debug.locals.put("CAT_PA_MAXPROMCLIE", _cat_pa_maxpromclie);
 BA.debugLineNum = 1203;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(262144);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO PROMOS_COMP(CAT_PA_ID, CAT_PA_MAXPROM, CAT_PA_MAXPROMREC, CAT_PA_MAXPROMCLIE) VALUES (?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {4},new Object[] {(_cat_pa_id),(_cat_pa_maxprom),(_cat_pa_maxpromrec),(_cat_pa_maxpromclie)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1205;BA.debugLine="If PB1.Progress = 0 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1206;BA.debugLine="PB1.Progress = 30";
Debug.ShouldStop(2097152);
__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 30));
 BA.debugLineNum = 1207;BA.debugLine="S_CH.Text = \"CARGANDO\"";
Debug.ShouldStop(4194304);
__ref.getField(false,"_s_ch" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CARGANDO"));
 }else 
{ BA.debugLineNum = 1208;BA.debugLine="ELSE If PB1.Progress = 30 Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 30))) { 
 BA.debugLineNum = 1209;BA.debugLine="PB1.Progress = 60";
Debug.ShouldStop(16777216);
__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 60));
 }else 
{ BA.debugLineNum = 1210;BA.debugLine="ELSE IF PB1.Progress = 60 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 60))) { 
 BA.debugLineNum = 1211;BA.debugLine="PB1.Progress = 100";
Debug.ShouldStop(67108864);
__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 100));
 BA.debugLineNum = 1212;BA.debugLine="S_CH.Text = \"LISTO\"";
Debug.ShouldStop(134217728);
__ref.getField(false,"_s_ch" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("LISTO"));
 }}}
;
 };
 };
 BA.debugLineNum = 1217;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1218;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(2);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1219;BA.debugLine="If RESULT.Tag = \"cat_verificacion\" Then 'query";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("cat_verificacion")))) { 
 BA.debugLineNum = 1220;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(8);
{
final RemoteObject group217 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen217 = group217.runMethod(true,"getSize").<Integer>get()
;int index217 = 0;
;
for (; index217 < groupLen217;index217++){
_records = (group217.runMethod(false,"Get",index217));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1221;BA.debugLine="Dim CAT_VE_IDPROD As String = records(RESULT.";
Debug.ShouldStop(16);
_cat_ve_idprod = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_VE_IDPROD")))))));Debug.locals.put("CAT_VE_IDPROD", _cat_ve_idprod);Debug.locals.put("CAT_VE_IDPROD", _cat_ve_idprod);
 BA.debugLineNum = 1222;BA.debugLine="Dim CAT_VE_NOMBRE As String = records(RESULT.";
Debug.ShouldStop(32);
_cat_ve_nombre = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_VE_NOMBRE")))))));Debug.locals.put("CAT_VE_NOMBRE", _cat_ve_nombre);Debug.locals.put("CAT_VE_NOMBRE", _cat_ve_nombre);
 BA.debugLineNum = 1223;BA.debugLine="Dim CAT_VE_ORDEN As String = records(RESULT.C";
Debug.ShouldStop(64);
_cat_ve_orden = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_VE_ORDEN")))))));Debug.locals.put("CAT_VE_ORDEN", _cat_ve_orden);Debug.locals.put("CAT_VE_ORDEN", _cat_ve_orden);
 BA.debugLineNum = 1224;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(128);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VERIFICACION(CAT_VE_IDPROD, CAT_VE_NOMBRE,CAT_VE_ORDEN) VALUES (?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {3},new Object[] {(_cat_ve_idprod),(_cat_ve_nombre),(_cat_ve_orden)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1229;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1230;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(8192);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1231;BA.debugLine="If RESULT.Tag = \"marcas_rutas\" Then 'query tag";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("marcas_rutas")))) { 
 BA.debugLineNum = 1232;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(32768);
{
final RemoteObject group228 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen228 = group228.runMethod(true,"getSize").<Integer>get()
;int index228 = 0;
;
for (; index228 < groupLen228;index228++){
_records = (group228.runMethod(false,"Get",index228));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1233;BA.debugLine="Dim HVD_MARCA As String = records(RESULT.Colu";
Debug.ShouldStop(65536);
_hvd_marca = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_MARCA")))))));Debug.locals.put("HVD_MARCA", _hvd_marca);Debug.locals.put("HVD_MARCA", _hvd_marca);
 BA.debugLineNum = 1234;BA.debugLine="Dim CLIENTES As String = records(RESULT.Colum";
Debug.ShouldStop(131072);
_clientes = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CLIENTES")))))));Debug.locals.put("CLIENTES", _clientes);Debug.locals.put("CLIENTES", _clientes);
 BA.debugLineNum = 1235;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(262144);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO MARCAS_RUTAS(HVD_MARCA, CLIENTES) VALUES (?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_hvd_marca),(_clientes)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1241;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1242;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(33554432);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1243;BA.debugLine="If RESULT.Tag = \"CUOTAS\" Then 'query tag";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("CUOTAS")))) { 
 BA.debugLineNum = 1244;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(134217728);
{
final RemoteObject group238 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen238 = group238.runMethod(true,"getSize").<Integer>get()
;int index238 = 0;
;
for (; index238 < groupLen238;index238++){
_records = (group238.runMethod(false,"Get",index238));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1245;BA.debugLine="Dim HC_RUTA As String = records(RESULT.Column";
Debug.ShouldStop(268435456);
_hc_ruta = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HC_RUTA")))))));Debug.locals.put("HC_RUTA", _hc_ruta);Debug.locals.put("HC_RUTA", _hc_ruta);
 BA.debugLineNum = 1246;BA.debugLine="Dim HC_CUOTA1 As String = records(RESULT.Colu";
Debug.ShouldStop(536870912);
_hc_cuota1 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HC_CUOTA1")))))));Debug.locals.put("HC_CUOTA1", _hc_cuota1);Debug.locals.put("HC_CUOTA1", _hc_cuota1);
 BA.debugLineNum = 1247;BA.debugLine="Dim HC_CUOTA2 As String = records(RESULT.Colu";
Debug.ShouldStop(1073741824);
_hc_cuota2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HC_CUOTA2")))))));Debug.locals.put("HC_CUOTA2", _hc_cuota2);Debug.locals.put("HC_CUOTA2", _hc_cuota2);
 BA.debugLineNum = 1248;BA.debugLine="Dim HC_CUOTA3 As String = records(RESULT.Colu";
Debug.ShouldStop(-2147483648);
_hc_cuota3 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HC_CUOTA3")))))));Debug.locals.put("HC_CUOTA3", _hc_cuota3);Debug.locals.put("HC_CUOTA3", _hc_cuota3);
 BA.debugLineNum = 1249;BA.debugLine="Dim HC_CUOTA4 As String = records(RESULT.Colu";
Debug.ShouldStop(1);
_hc_cuota4 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HC_CUOTA4")))))));Debug.locals.put("HC_CUOTA4", _hc_cuota4);Debug.locals.put("HC_CUOTA4", _hc_cuota4);
 BA.debugLineNum = 1250;BA.debugLine="Dim HC_CUOTA5 As String = records(RESULT.Colu";
Debug.ShouldStop(2);
_hc_cuota5 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HC_CUOTA5")))))));Debug.locals.put("HC_CUOTA5", _hc_cuota5);Debug.locals.put("HC_CUOTA5", _hc_cuota5);
 BA.debugLineNum = 1251;BA.debugLine="Dim HC_CUOTA6 As String = records(RESULT.Colu";
Debug.ShouldStop(4);
_hc_cuota6 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HC_CUOTA6")))))));Debug.locals.put("HC_CUOTA6", _hc_cuota6);Debug.locals.put("HC_CUOTA6", _hc_cuota6);
 BA.debugLineNum = 1252;BA.debugLine="Dim HC_META1 As String = records(RESULT.Colum";
Debug.ShouldStop(8);
_hc_meta1 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HC_META1")))))));Debug.locals.put("HC_META1", _hc_meta1);Debug.locals.put("HC_META1", _hc_meta1);
 BA.debugLineNum = 1253;BA.debugLine="Dim HC_META2 As String = records(RESULT.Colum";
Debug.ShouldStop(16);
_hc_meta2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HC_META2")))))));Debug.locals.put("HC_META2", _hc_meta2);Debug.locals.put("HC_META2", _hc_meta2);
 BA.debugLineNum = 1254;BA.debugLine="Dim HC_META3 As String = records(RESULT.Colum";
Debug.ShouldStop(32);
_hc_meta3 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HC_META3")))))));Debug.locals.put("HC_META3", _hc_meta3);Debug.locals.put("HC_META3", _hc_meta3);
 BA.debugLineNum = 1255;BA.debugLine="Dim HC_META4 As String = records(RESULT.Colum";
Debug.ShouldStop(64);
_hc_meta4 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HC_META4")))))));Debug.locals.put("HC_META4", _hc_meta4);Debug.locals.put("HC_META4", _hc_meta4);
 BA.debugLineNum = 1256;BA.debugLine="Dim HC_META5 As String = records(RESULT.Colum";
Debug.ShouldStop(128);
_hc_meta5 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HC_META5")))))));Debug.locals.put("HC_META5", _hc_meta5);Debug.locals.put("HC_META5", _hc_meta5);
 BA.debugLineNum = 1257;BA.debugLine="Dim HC_META6 As String = records(RESULT.Colum";
Debug.ShouldStop(256);
_hc_meta6 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HC_META6")))))));Debug.locals.put("HC_META6", _hc_meta6);Debug.locals.put("HC_META6", _hc_meta6);
 BA.debugLineNum = 1258;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(512);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_CUOTAS(HC_RUTA, HC_CUOTA1,HC_CUOTA2,HC_CUOTA3,HC_CUOTA4,HC_CUOTA5,HC_CUOTA6,HC_META1,HC_META2,HC_META3,HC_META4,HC_META5,HC_META6) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {13},new Object[] {(_hc_ruta),(_hc_cuota1),(_hc_cuota2),(_hc_cuota3),(_hc_cuota4),(_hc_cuota5),(_hc_cuota6),(_hc_meta1),(_hc_meta2),(_hc_meta3),(_hc_meta4),(_hc_meta5),(_hc_meta6)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1265;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1266;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(131072);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1267;BA.debugLine="If RESULT.Tag = \"COMISIONES\" Then 'query tag";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("COMISIONES")))) { 
 BA.debugLineNum = 1268;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(524288);
{
final RemoteObject group259 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen259 = group259.runMethod(true,"getSize").<Integer>get()
;int index259 = 0;
;
for (; index259 < groupLen259;index259++){
_records = (group259.runMethod(false,"Get",index259));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1269;BA.debugLine="Dim HCM_TOTAL_V As String = records(RESULT.Co";
Debug.ShouldStop(1048576);
_hcm_total_v = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HCM_TOTAL_V")))))));Debug.locals.put("HCM_TOTAL_V", _hcm_total_v);Debug.locals.put("HCM_TOTAL_V", _hcm_total_v);
 BA.debugLineNum = 1270;BA.debugLine="Dim HCM_TOTAL_VIVE As String = records(RESULT";
Debug.ShouldStop(2097152);
_hcm_total_vive = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HCM_TOTAL_VIVE")))))));Debug.locals.put("HCM_TOTAL_VIVE", _hcm_total_vive);Debug.locals.put("HCM_TOTAL_VIVE", _hcm_total_vive);
 BA.debugLineNum = 1271;BA.debugLine="Dim HCM_TOTAL_GUNA As String = records(RESULT";
Debug.ShouldStop(4194304);
_hcm_total_guna = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HCM_TOTAL_GUNA")))))));Debug.locals.put("HCM_TOTAL_GUNA", _hcm_total_guna);Debug.locals.put("HCM_TOTAL_GUNA", _hcm_total_guna);
 BA.debugLineNum = 1272;BA.debugLine="Dim HCM_TOTAL_BEB As String = records(RESULT.";
Debug.ShouldStop(8388608);
_hcm_total_beb = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HCM_TOTAL_BEB")))))));Debug.locals.put("HCM_TOTAL_BEB", _hcm_total_beb);Debug.locals.put("HCM_TOTAL_BEB", _hcm_total_beb);
 BA.debugLineNum = 1273;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(16777216);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_COMISIONES_MOVIL (HCM_TOTAL_V , HCM_TOTAL_VIVE , HCM_TOTAL_GUNA ,	HCM_TOTAL_BEB) VALUES (?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {4},new Object[] {(_hcm_total_v),(_hcm_total_vive),(_hcm_total_guna),(_hcm_total_beb)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1278;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1279;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(1073741824);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1280;BA.debugLine="If RESULT.Tag = \"gunaprod\" Then 'query tag";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("gunaprod")))) { 
 BA.debugLineNum = 1281;BA.debugLine="If PB2.Progress < 30 Then S_CP.Text = \"CARGAND";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("<",__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 30))) { 
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CARGANDO"));};
 BA.debugLineNum = 1282;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(2);
{
final RemoteObject group272 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen272 = group272.runMethod(true,"getSize").<Integer>get()
;int index272 = 0;
;
for (; index272 < groupLen272;index272++){
_records = (group272.runMethod(false,"Get",index272));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1283;BA.debugLine="Dim CAT_GP_ID As String = records(RESULT.Colu";
Debug.ShouldStop(4);
_cat_gp_id = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_ID")))))));Debug.locals.put("CAT_GP_ID", _cat_gp_id);Debug.locals.put("CAT_GP_ID", _cat_gp_id);
 BA.debugLineNum = 1284;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(RESULT.";
Debug.ShouldStop(8);
_cat_gp_nombre = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_NOMBRE")))))));Debug.locals.put("CAT_GP_NOMBRE", _cat_gp_nombre);Debug.locals.put("CAT_GP_NOMBRE", _cat_gp_nombre);
 BA.debugLineNum = 1285;BA.debugLine="Dim CAT_GP_IMP1 As String = records(RESULT.Co";
Debug.ShouldStop(16);
_cat_gp_imp1 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_IMP1")))))));Debug.locals.put("CAT_GP_IMP1", _cat_gp_imp1);Debug.locals.put("CAT_GP_IMP1", _cat_gp_imp1);
 BA.debugLineNum = 1286;BA.debugLine="Dim CAT_GP_IMP2 As String = records(RESULT.Co";
Debug.ShouldStop(32);
_cat_gp_imp2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_IMP2")))))));Debug.locals.put("CAT_GP_IMP2", _cat_gp_imp2);Debug.locals.put("CAT_GP_IMP2", _cat_gp_imp2);
 BA.debugLineNum = 1287;BA.debugLine="Dim CAT_GP_PRECIO As String = records(RESULT.";
Debug.ShouldStop(64);
_cat_gp_precio = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_PRECIO")))))));Debug.locals.put("CAT_GP_PRECIO", _cat_gp_precio);Debug.locals.put("CAT_GP_PRECIO", _cat_gp_precio);
 BA.debugLineNum = 1288;BA.debugLine="Dim CAT_GP_CLASIF As String = records(RESULT.";
Debug.ShouldStop(128);
_cat_gp_clasif = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_CLASIF")))))));Debug.locals.put("CAT_GP_CLASIF", _cat_gp_clasif);Debug.locals.put("CAT_GP_CLASIF", _cat_gp_clasif);
 BA.debugLineNum = 1289;BA.debugLine="Dim CAT_GP_STS As String = records(RESULT.Col";
Debug.ShouldStop(256);
_cat_gp_sts = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_STS")))))));Debug.locals.put("CAT_GP_STS", _cat_gp_sts);Debug.locals.put("CAT_GP_STS", _cat_gp_sts);
 BA.debugLineNum = 1290;BA.debugLine="Dim CAT_GP_TIPO As String = records(RESULT.Co";
Debug.ShouldStop(512);
_cat_gp_tipo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_TIPO")))))));Debug.locals.put("CAT_GP_TIPO", _cat_gp_tipo);Debug.locals.put("CAT_GP_TIPO", _cat_gp_tipo);
 BA.debugLineNum = 1291;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(RESULT";
Debug.ShouldStop(1024);
_cat_gp_subtipo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_SUBTIPO")))))));Debug.locals.put("CAT_GP_SUBTIPO", _cat_gp_subtipo);Debug.locals.put("CAT_GP_SUBTIPO", _cat_gp_subtipo);
 BA.debugLineNum = 1292;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(RESULT.Col";
Debug.ShouldStop(2048);
_cat_gp_img = (_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_IMG")))))));Debug.locals.put("CAT_GP_IMG", _cat_gp_img);Debug.locals.put("CAT_GP_IMG", _cat_gp_img);
 BA.debugLineNum = 1293;BA.debugLine="Dim CAT_GP_ALMACEN As Int = records(RESULT.Co";
Debug.ShouldStop(4096);
_cat_gp_almacen = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_ALMACEN")))))));Debug.locals.put("CAT_GP_ALMACEN", _cat_gp_almacen);Debug.locals.put("CAT_GP_ALMACEN", _cat_gp_almacen);
 BA.debugLineNum = 1295;BA.debugLine="Dim CAT_GP_TIPOPROD As Int = records(RESULT.C";
Debug.ShouldStop(16384);
_cat_gp_tipoprod = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_TIPOPROD")))))));Debug.locals.put("CAT_GP_TIPOPROD", _cat_gp_tipoprod);Debug.locals.put("CAT_GP_TIPOPROD", _cat_gp_tipoprod);
 BA.debugLineNum = 1296;BA.debugLine="Dim CAT_GP_INICIATIVA As Int = records(RESULT";
Debug.ShouldStop(32768);
_cat_gp_iniciativa = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_INICIATIVA")))))));Debug.locals.put("CAT_GP_INICIATIVA", _cat_gp_iniciativa);Debug.locals.put("CAT_GP_INICIATIVA", _cat_gp_iniciativa);
 BA.debugLineNum = 1299;BA.debugLine="Dim CAT_GP_TIPOPROD2 As String = records(RESU";
Debug.ShouldStop(262144);
_cat_gp_tipoprod2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_TIPOPROD2")))))));Debug.locals.put("CAT_GP_TIPOPROD2", _cat_gp_tipoprod2);Debug.locals.put("CAT_GP_TIPOPROD2", _cat_gp_tipoprod2);
 BA.debugLineNum = 1302;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(2097152);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD,CAT_GP_INICIATIVA,CAT_GP_TIPOPROD2) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {14},new Object[] {(_cat_gp_id),(_cat_gp_nombre),(_cat_gp_imp1),(_cat_gp_imp2),(_cat_gp_precio),(_cat_gp_clasif),(_cat_gp_sts),(_cat_gp_tipo),(_cat_gp_subtipo),(_cat_gp_img),(_cat_gp_almacen),(_cat_gp_tipoprod),(_cat_gp_iniciativa),(_cat_gp_tipoprod2)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1304;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQUERY(\"SELECT COU";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CLIENTE <> 0"))));
 BA.debugLineNum = 1305;BA.debugLine="c.Position = 0";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 1307;BA.debugLine="cuantos_pedidosc = c.GetString(\"CUANTOS\")";
Debug.ShouldStop(67108864);
__ref.setField ("_cuantos_pedidosc" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS"))));
 BA.debugLineNum = 1308;BA.debugLine="c.Close";
Debug.ShouldStop(134217728);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 1309;BA.debugLine="If cuantos_pedidosc > 0 Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(true,"_cuantos_pedidosc" /*RemoteObject*/ )),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1310;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQUERY(\"SELECT PE";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT PE_PROID, SUM(PE_CANT) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTE <> 0 GROUP BY PE_PROID"))));
 BA.debugLineNum = 1311;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1312;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(-2147483648);
{
final int step296 = 1;
final int limit296 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step296 > 0 && _i <= limit296) || (step296 < 0 && _i >= limit296) ;_i = ((int)(0 + _i + step296))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 1313;BA.debugLine="c.Position=i";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 1314;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"updat";
Debug.ShouldStop(2);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("update CAT_GUNAPROD set CAT_GP_ALMACEN = CAT_GP_ALMACEN - ? where CAT_GP_ID = ? ")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID"))))})))));
 }
}Debug.locals.put("i", _i);
;
 };
 };
 BA.debugLineNum = 1319;BA.debugLine="Listo2=1";
Debug.ShouldStop(64);
__ref.setField ("_listo2" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1320;BA.debugLine="If PB2.Progress = 0 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1321;BA.debugLine="PB2.Progress = 30";
Debug.ShouldStop(256);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 30));
 BA.debugLineNum = 1322;BA.debugLine="S_CP.Text = \"CARGANDO\"";
Debug.ShouldStop(512);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CARGANDO"));
 }else 
{ BA.debugLineNum = 1323;BA.debugLine="ELSE If PB2.Progress = 30 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 30))) { 
 BA.debugLineNum = 1324;BA.debugLine="PB2.Progress = 60";
Debug.ShouldStop(2048);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 60));
 }else 
{ BA.debugLineNum = 1325;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 60))) { 
 BA.debugLineNum = 1326;BA.debugLine="PB2.Progress = 100";
Debug.ShouldStop(8192);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 100));
 BA.debugLineNum = 1327;BA.debugLine="S_CP.Text = \"LISTO\"";
Debug.ShouldStop(16384);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("LISTO"));
 }}}
;
 BA.debugLineNum = 1329;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("!",c_principal._starter._marcacel /*RemoteObject*/ ,BA.ObjectToString("Sony"))) { 
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Productos Actualizados.")),(Object)(c_principal.__c.getField(true,"True")));};
 BA.debugLineNum = 1330;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo1" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo2" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo4" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1331;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(262144);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_b4xpage_appear" /*void*/ );
 BA.debugLineNum = 1332;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(524288);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1333;BA.debugLine="EJECUTANDO=0";
Debug.ShouldStop(1048576);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 };
 };
 };
 BA.debugLineNum = 1338;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1339;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(67108864);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1340;BA.debugLine="If RESULT.Tag = \"gunaprodp\" Then 'query tag";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("gunaprodp")))) { 
 BA.debugLineNum = 1341;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(268435456);
{
final RemoteObject group323 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen323 = group323.runMethod(true,"getSize").<Integer>get()
;int index323 = 0;
;
for (; index323 < groupLen323;index323++){
_records = (group323.runMethod(false,"Get",index323));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1342;BA.debugLine="Dim CAT_GP_ID As String = records(RESULT.Colu";
Debug.ShouldStop(536870912);
_cat_gp_id = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_ID")))))));Debug.locals.put("CAT_GP_ID", _cat_gp_id);Debug.locals.put("CAT_GP_ID", _cat_gp_id);
 BA.debugLineNum = 1343;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(RESULT.";
Debug.ShouldStop(1073741824);
_cat_gp_nombre = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_NOMBRE")))))));Debug.locals.put("CAT_GP_NOMBRE", _cat_gp_nombre);Debug.locals.put("CAT_GP_NOMBRE", _cat_gp_nombre);
 BA.debugLineNum = 1344;BA.debugLine="Dim CAT_GP_IMP1 As String = records(RESULT.Co";
Debug.ShouldStop(-2147483648);
_cat_gp_imp1 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_IMP1")))))));Debug.locals.put("CAT_GP_IMP1", _cat_gp_imp1);Debug.locals.put("CAT_GP_IMP1", _cat_gp_imp1);
 BA.debugLineNum = 1345;BA.debugLine="Dim CAT_GP_IMP2 As String = records(RESULT.Co";
Debug.ShouldStop(1);
_cat_gp_imp2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_IMP2")))))));Debug.locals.put("CAT_GP_IMP2", _cat_gp_imp2);Debug.locals.put("CAT_GP_IMP2", _cat_gp_imp2);
 BA.debugLineNum = 1346;BA.debugLine="Dim CAT_GP_PRECIO As String = records(RESULT.";
Debug.ShouldStop(2);
_cat_gp_precio = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_PRECIO")))))));Debug.locals.put("CAT_GP_PRECIO", _cat_gp_precio);Debug.locals.put("CAT_GP_PRECIO", _cat_gp_precio);
 BA.debugLineNum = 1347;BA.debugLine="Dim CAT_GP_CLASIF As String = records(RESULT.";
Debug.ShouldStop(4);
_cat_gp_clasif = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_CLASIF")))))));Debug.locals.put("CAT_GP_CLASIF", _cat_gp_clasif);Debug.locals.put("CAT_GP_CLASIF", _cat_gp_clasif);
 BA.debugLineNum = 1348;BA.debugLine="Dim CAT_GP_STS As String = records(RESULT.Col";
Debug.ShouldStop(8);
_cat_gp_sts = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_STS")))))));Debug.locals.put("CAT_GP_STS", _cat_gp_sts);Debug.locals.put("CAT_GP_STS", _cat_gp_sts);
 BA.debugLineNum = 1349;BA.debugLine="Dim CAT_GP_TIPO As String = records(RESULT.Co";
Debug.ShouldStop(16);
_cat_gp_tipo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_TIPO")))))));Debug.locals.put("CAT_GP_TIPO", _cat_gp_tipo);Debug.locals.put("CAT_GP_TIPO", _cat_gp_tipo);
 BA.debugLineNum = 1350;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(RESULT";
Debug.ShouldStop(32);
_cat_gp_subtipo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_SUBTIPO")))))));Debug.locals.put("CAT_GP_SUBTIPO", _cat_gp_subtipo);Debug.locals.put("CAT_GP_SUBTIPO", _cat_gp_subtipo);
 BA.debugLineNum = 1351;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(RESULT.Col";
Debug.ShouldStop(64);
_cat_gp_img = (_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_IMG")))))));Debug.locals.put("CAT_GP_IMG", _cat_gp_img);Debug.locals.put("CAT_GP_IMG", _cat_gp_img);
 BA.debugLineNum = 1352;BA.debugLine="Dim CAT_GP_ALMACEN As Int = records(RESULT.Co";
Debug.ShouldStop(128);
_cat_gp_almacen = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_ALMACEN")))))));Debug.locals.put("CAT_GP_ALMACEN", _cat_gp_almacen);Debug.locals.put("CAT_GP_ALMACEN", _cat_gp_almacen);
 BA.debugLineNum = 1353;BA.debugLine="Dim CAT_GP_TIPOPROD As Int = records(RESULT.C";
Debug.ShouldStop(256);
_cat_gp_tipoprod = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_TIPOPROD")))))));Debug.locals.put("CAT_GP_TIPOPROD", _cat_gp_tipoprod);Debug.locals.put("CAT_GP_TIPOPROD", _cat_gp_tipoprod);
 BA.debugLineNum = 1354;BA.debugLine="CAT_GP_TIPOPROD = \"5\"";
Debug.ShouldStop(512);
_cat_gp_tipoprod = BA.numberCast(int.class, "5");Debug.locals.put("CAT_GP_TIPOPROD", _cat_gp_tipoprod);
 BA.debugLineNum = 1355;BA.debugLine="If CAT_GP_ID = \"PAQUNI003\" Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",_cat_gp_id,BA.ObjectToString("PAQUNI003"))) { 
 BA.debugLineNum = 1356;BA.debugLine="CAT_GP_ALMACEN = 60";
Debug.ShouldStop(2048);
_cat_gp_almacen = BA.numberCast(int.class, 60);Debug.locals.put("CAT_GP_ALMACEN", _cat_gp_almacen);
 };
 BA.debugLineNum = 1358;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(8192);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {12},new Object[] {(_cat_gp_id),(_cat_gp_nombre),(_cat_gp_imp1),(_cat_gp_imp2),(_cat_gp_precio),(_cat_gp_clasif),(_cat_gp_sts),(_cat_gp_tipo),(_cat_gp_subtipo),(_cat_gp_img),(_cat_gp_almacen),(_cat_gp_tipoprod)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1360;BA.debugLine="If PB2.Progress = 0 Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1361;BA.debugLine="PB2.Progress = 30";
Debug.ShouldStop(65536);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 30));
 BA.debugLineNum = 1362;BA.debugLine="S_CP.Text = \"CARGANDO\"";
Debug.ShouldStop(131072);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CARGANDO"));
 }else 
{ BA.debugLineNum = 1363;BA.debugLine="ELSE If PB2.Progress = 30 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 30))) { 
 BA.debugLineNum = 1364;BA.debugLine="PB2.Progress = 60";
Debug.ShouldStop(524288);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 60));
 }else 
{ BA.debugLineNum = 1365;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 60))) { 
 BA.debugLineNum = 1366;BA.debugLine="PB2.Progress = 100";
Debug.ShouldStop(2097152);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 100));
 BA.debugLineNum = 1367;BA.debugLine="S_CP.Text = \"LISTO\"";
Debug.ShouldStop(4194304);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("LISTO"));
 }}}
;
 BA.debugLineNum = 1369;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean("!",c_principal._starter._marcacel /*RemoteObject*/ ,BA.ObjectToString("Sony"))) { 
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Promociones  Actualizados.")),(Object)(c_principal.__c.getField(true,"True")));};
 BA.debugLineNum = 1370;BA.debugLine="Listo4=1";
Debug.ShouldStop(33554432);
__ref.setField ("_listo4" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1371;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo1" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo2" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo4" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1372;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(134217728);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_b4xpage_appear" /*void*/ );
 BA.debugLineNum = 1373;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(268435456);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1374;BA.debugLine="EJECUTANDO=0";
Debug.ShouldStop(536870912);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 }else 
{ BA.debugLineNum = 1375;BA.debugLine="Else If Listo4 = 1 And Listo3 = 1 And inve = 1";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo4" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_inve" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1376;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(-2147483648);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_b4xpage_appear" /*void*/ );
 BA.debugLineNum = 1377;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(1);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1378;BA.debugLine="EJECUTANDO=0";
Debug.ShouldStop(2);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 }}
;
 };
 };
 BA.debugLineNum = 1383;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1384;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(128);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1385;BA.debugLine="If RESULT.Tag = \"gunaprodps\" Then 'query tag";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("gunaprodps")))) { 
 BA.debugLineNum = 1386;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(512);
{
final RemoteObject group367 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen367 = group367.runMethod(true,"getSize").<Integer>get()
;int index367 = 0;
;
for (; index367 < groupLen367;index367++){
_records = (group367.runMethod(false,"Get",index367));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1388;BA.debugLine="Dim CAT_GP_ID As String = records(RESULT.Colu";
Debug.ShouldStop(2048);
_cat_gp_id = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_ID")))))));Debug.locals.put("CAT_GP_ID", _cat_gp_id);Debug.locals.put("CAT_GP_ID", _cat_gp_id);
 BA.debugLineNum = 1389;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(RESULT.";
Debug.ShouldStop(4096);
_cat_gp_nombre = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_NOMBRE")))))));Debug.locals.put("CAT_GP_NOMBRE", _cat_gp_nombre);Debug.locals.put("CAT_GP_NOMBRE", _cat_gp_nombre);
 BA.debugLineNum = 1390;BA.debugLine="Dim CAT_GP_IMP1 As String = records(RESULT.Co";
Debug.ShouldStop(8192);
_cat_gp_imp1 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_IMP1")))))));Debug.locals.put("CAT_GP_IMP1", _cat_gp_imp1);Debug.locals.put("CAT_GP_IMP1", _cat_gp_imp1);
 BA.debugLineNum = 1391;BA.debugLine="Dim CAT_GP_IMP2 As String = records(RESULT.Co";
Debug.ShouldStop(16384);
_cat_gp_imp2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_IMP2")))))));Debug.locals.put("CAT_GP_IMP2", _cat_gp_imp2);Debug.locals.put("CAT_GP_IMP2", _cat_gp_imp2);
 BA.debugLineNum = 1392;BA.debugLine="Dim CAT_GP_PRECIO As String = records(RESULT.";
Debug.ShouldStop(32768);
_cat_gp_precio = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_PRECIO")))))));Debug.locals.put("CAT_GP_PRECIO", _cat_gp_precio);Debug.locals.put("CAT_GP_PRECIO", _cat_gp_precio);
 BA.debugLineNum = 1393;BA.debugLine="Dim CAT_GP_CLASIF As String = records(RESULT.";
Debug.ShouldStop(65536);
_cat_gp_clasif = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_CLASIF")))))));Debug.locals.put("CAT_GP_CLASIF", _cat_gp_clasif);Debug.locals.put("CAT_GP_CLASIF", _cat_gp_clasif);
 BA.debugLineNum = 1394;BA.debugLine="Dim CAT_GP_STS As String = records(RESULT.Col";
Debug.ShouldStop(131072);
_cat_gp_sts = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_STS")))))));Debug.locals.put("CAT_GP_STS", _cat_gp_sts);Debug.locals.put("CAT_GP_STS", _cat_gp_sts);
 BA.debugLineNum = 1395;BA.debugLine="Dim CAT_GP_TIPO As String = records(RESULT.Co";
Debug.ShouldStop(262144);
_cat_gp_tipo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_TIPO")))))));Debug.locals.put("CAT_GP_TIPO", _cat_gp_tipo);Debug.locals.put("CAT_GP_TIPO", _cat_gp_tipo);
 BA.debugLineNum = 1396;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(RESULT";
Debug.ShouldStop(524288);
_cat_gp_subtipo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_SUBTIPO")))))));Debug.locals.put("CAT_GP_SUBTIPO", _cat_gp_subtipo);Debug.locals.put("CAT_GP_SUBTIPO", _cat_gp_subtipo);
 BA.debugLineNum = 1397;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(RESULT.Col";
Debug.ShouldStop(1048576);
_cat_gp_img = (_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_IMG")))))));Debug.locals.put("CAT_GP_IMG", _cat_gp_img);Debug.locals.put("CAT_GP_IMG", _cat_gp_img);
 BA.debugLineNum = 1398;BA.debugLine="Dim CAT_GP_ALMACEN As Int = records(RESULT.Co";
Debug.ShouldStop(2097152);
_cat_gp_almacen = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_ALMACEN")))))));Debug.locals.put("CAT_GP_ALMACEN", _cat_gp_almacen);Debug.locals.put("CAT_GP_ALMACEN", _cat_gp_almacen);
 BA.debugLineNum = 1399;BA.debugLine="Dim CAT_GP_TIPOPROD As Int = records(RESULT.C";
Debug.ShouldStop(4194304);
_cat_gp_tipoprod = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_GP_TIPOPROD")))))));Debug.locals.put("CAT_GP_TIPOPROD", _cat_gp_tipoprod);Debug.locals.put("CAT_GP_TIPOPROD", _cat_gp_tipoprod);
 BA.debugLineNum = 1401;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(16777216);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {12},new Object[] {(_cat_gp_id),(_cat_gp_nombre),(_cat_gp_imp1),(_cat_gp_imp2),(_cat_gp_precio),(_cat_gp_clasif),(_cat_gp_sts),(_cat_gp_tipo),(_cat_gp_subtipo),(_cat_gp_img),(_cat_gp_almacen),(_cat_gp_tipoprod)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1403;BA.debugLine="If PB2.Progress = 0 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1404;BA.debugLine="PB2.Progress = 30";
Debug.ShouldStop(134217728);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 30));
 BA.debugLineNum = 1405;BA.debugLine="S_CP.Text = \"CARGANDO\"";
Debug.ShouldStop(268435456);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CARGANDO"));
 BA.debugLineNum = 1406;BA.debugLine="Log(\"C4\")";
Debug.ShouldStop(536870912);
c_principal.__c.runVoidMethod ("LogImpl","33408292",RemoteObject.createImmutable("C4"),0);
 }else 
{ BA.debugLineNum = 1407;BA.debugLine="ELSE If PB2.Progress = 30 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 30))) { 
 BA.debugLineNum = 1408;BA.debugLine="PB2.Progress = 60";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 60));
 }else 
{ BA.debugLineNum = 1409;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 60))) { 
 BA.debugLineNum = 1410;BA.debugLine="PB2.Progress = 100";
Debug.ShouldStop(2);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 100));
 BA.debugLineNum = 1411;BA.debugLine="S_CP.Text = \"LISTO\"";
Debug.ShouldStop(4);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("LISTO"));
 BA.debugLineNum = 1412;BA.debugLine="Log(\"3\")";
Debug.ShouldStop(8);
c_principal.__c.runVoidMethod ("LogImpl","33408298",RemoteObject.createImmutable("3"),0);
 }}}
;
 BA.debugLineNum = 1414;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("!",c_principal._starter._marcacel /*RemoteObject*/ ,BA.ObjectToString("Sony"))) { 
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Promociones especiales  Actualizados.")),(Object)(c_principal.__c.getField(true,"True")));};
 BA.debugLineNum = 1416;BA.debugLine="Listo4=1";
Debug.ShouldStop(128);
__ref.setField ("_listo4" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1417;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo1" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo2" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo4" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1418;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(512);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_b4xpage_appear" /*void*/ );
 BA.debugLineNum = 1419;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(1024);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1420;BA.debugLine="EJECUTANDO=0";
Debug.ShouldStop(2048);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 }else 
{ BA.debugLineNum = 1421;BA.debugLine="Else If Listo4 = 1 And Listo3 = 1 And inve = 1";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo4" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_inve" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1422;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(8192);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_b4xpage_appear" /*void*/ );
 BA.debugLineNum = 1423;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(16384);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1424;BA.debugLine="EJECUTANDO=0";
Debug.ShouldStop(32768);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 }}
;
 };
 };
 BA.debugLineNum = 1429;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1430;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(2097152);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1431;BA.debugLine="If RESULT.Tag = \"detallepaq\" Then 'query tag";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("detallepaq")))) { 
 BA.debugLineNum = 1432;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(8388608);
{
final RemoteObject group409 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen409 = group409.runMethod(true,"getSize").<Integer>get()
;int index409 = 0;
;
for (; index409 < groupLen409;index409++){
_records = (group409.runMethod(false,"Get",index409));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1433;BA.debugLine="Dim CAT_DP_ALMACEN  As String = records(RESUL";
Debug.ShouldStop(16777216);
_cat_dp_almacen = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_ALMACEN")))))));Debug.locals.put("CAT_DP_ALMACEN", _cat_dp_almacen);Debug.locals.put("CAT_DP_ALMACEN", _cat_dp_almacen);
 BA.debugLineNum = 1434;BA.debugLine="Dim CAT_DP_ID As String = records(RESULT.Colu";
Debug.ShouldStop(33554432);
_cat_dp_id = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_ID")))))));Debug.locals.put("CAT_DP_ID", _cat_dp_id);Debug.locals.put("CAT_DP_ID", _cat_dp_id);
 BA.debugLineNum = 1435;BA.debugLine="Dim CAT_DP_IDPROD As String = records(RESULT.";
Debug.ShouldStop(67108864);
_cat_dp_idprod = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_IDPROD")))))));Debug.locals.put("CAT_DP_IDPROD", _cat_dp_idprod);Debug.locals.put("CAT_DP_IDPROD", _cat_dp_idprod);
 BA.debugLineNum = 1436;BA.debugLine="Dim CAT_DP_TIPO As String = records(RESULT.Co";
Debug.ShouldStop(134217728);
_cat_dp_tipo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_TIPO")))))));Debug.locals.put("CAT_DP_TIPO", _cat_dp_tipo);Debug.locals.put("CAT_DP_TIPO", _cat_dp_tipo);
 BA.debugLineNum = 1437;BA.debugLine="Dim CAT_DP_PZAS As String = records(RESULT.Co";
Debug.ShouldStop(268435456);
_cat_dp_pzas = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_PZAS")))))));Debug.locals.put("CAT_DP_PZAS", _cat_dp_pzas);Debug.locals.put("CAT_DP_PZAS", _cat_dp_pzas);
 BA.debugLineNum = 1438;BA.debugLine="Dim CAT_DP_USUARIO  As String = records(RESUL";
Debug.ShouldStop(536870912);
_cat_dp_usuario = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_USUARIO")))))));Debug.locals.put("CAT_DP_USUARIO", _cat_dp_usuario);Debug.locals.put("CAT_DP_USUARIO", _cat_dp_usuario);
 BA.debugLineNum = 1439;BA.debugLine="Dim CAT_DP_FECHA As String = records(RESULT.C";
Debug.ShouldStop(1073741824);
_cat_dp_fecha = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_FECHA")))))));Debug.locals.put("CAT_DP_FECHA", _cat_dp_fecha);Debug.locals.put("CAT_DP_FECHA", _cat_dp_fecha);
 BA.debugLineNum = 1440;BA.debugLine="Dim CAT_DP_REGALO  As String = records(RESULT";
Debug.ShouldStop(-2147483648);
_cat_dp_regalo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_REGALO")))))));Debug.locals.put("CAT_DP_REGALO", _cat_dp_regalo);Debug.locals.put("CAT_DP_REGALO", _cat_dp_regalo);
 BA.debugLineNum = 1441;BA.debugLine="Dim CAT_DP_CLASIF  As String = records(RESULT";
Debug.ShouldStop(1);
_cat_dp_clasif = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_CLASIF")))))));Debug.locals.put("CAT_DP_CLASIF", _cat_dp_clasif);Debug.locals.put("CAT_DP_CLASIF", _cat_dp_clasif);
 BA.debugLineNum = 1442;BA.debugLine="Dim CAT_DP_PRECIO As String = records(RESULT.";
Debug.ShouldStop(2);
_cat_dp_precio = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_PRECIO")))))));Debug.locals.put("CAT_DP_PRECIO", _cat_dp_precio);Debug.locals.put("CAT_DP_PRECIO", _cat_dp_precio);
 BA.debugLineNum = 1443;BA.debugLine="Dim CAT_DP_PRECIO_SIMPTOS As String = records";
Debug.ShouldStop(4);
_cat_dp_precio_simptos = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_DP_PRECIO_SIMPTOS")))))));Debug.locals.put("CAT_DP_PRECIO_SIMPTOS", _cat_dp_precio_simptos);Debug.locals.put("CAT_DP_PRECIO_SIMPTOS", _cat_dp_precio_simptos);
 BA.debugLineNum = 1444;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(8);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("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 (?,?,?,?,?,?,?,?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {11},new Object[] {(_cat_dp_almacen),(_cat_dp_id),(_cat_dp_idprod),(_cat_dp_tipo),(_cat_dp_pzas),(_cat_dp_usuario),(_cat_dp_fecha),(_cat_dp_regalo),(_cat_dp_clasif),(_cat_dp_precio),(_cat_dp_precio_simptos)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1446;BA.debugLine="If PB2.Progress = 0 Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1447;BA.debugLine="PB2.Progress = 30";
Debug.ShouldStop(64);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 30));
 BA.debugLineNum = 1448;BA.debugLine="S_CP.Text = \"CARGANDO\"";
Debug.ShouldStop(128);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CARGANDO"));
 }else 
{ BA.debugLineNum = 1449;BA.debugLine="ELSE If PB2.Progress = 30 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 30))) { 
 BA.debugLineNum = 1450;BA.debugLine="PB2.Progress = 60";
Debug.ShouldStop(512);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 60));
 }else 
{ BA.debugLineNum = 1451;BA.debugLine="ELSE IF PB2.Progress = 60 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 60))) { 
 BA.debugLineNum = 1452;BA.debugLine="PB2.Progress = 100";
Debug.ShouldStop(2048);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 100));
 BA.debugLineNum = 1453;BA.debugLine="S_CP.Text = \"LISTO\"";
Debug.ShouldStop(4096);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("LISTO"));
 }}}
;
 BA.debugLineNum = 1455;BA.debugLine="Listo3 =1";
Debug.ShouldStop(16384);
__ref.setField ("_listo3" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1456;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo1" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo2" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo4" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1457;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(65536);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_b4xpage_appear" /*void*/ );
 BA.debugLineNum = 1458;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(131072);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1459;BA.debugLine="EJECUTANDO=0";
Debug.ShouldStop(262144);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 }else 
{ BA.debugLineNum = 1460;BA.debugLine="Else If Listo4 = 1 And Listo3 = 1 And inve = 1";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo4" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_inve" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1461;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(1048576);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_b4xpage_appear" /*void*/ );
 BA.debugLineNum = 1462;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1463;BA.debugLine="EJECUTANDO=0";
Debug.ShouldStop(4194304);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 }}
;
 };
 };
 BA.debugLineNum = 1469;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1470;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(536870912);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1471;BA.debugLine="If RESULT.Tag = \"hist_datos\" Then 'query tag";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("hist_datos")))) { 
 BA.debugLineNum = 1472;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(-2147483648);
{
final RemoteObject group447 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen447 = group447.runMethod(true,"getSize").<Integer>get()
;int index447 = 0;
;
for (; index447 < groupLen447;index447++){
_records = (group447.runMethod(false,"Get",index447));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1473;BA.debugLine="Dim HVD_CLIENTE As String = records(RESULT.Co";
Debug.ShouldStop(1);
_hvd_cliente = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_CLIENTE")))))));Debug.locals.put("HVD_CLIENTE", _hvd_cliente);Debug.locals.put("HVD_CLIENTE", _hvd_cliente);
 BA.debugLineNum = 1474;BA.debugLine="Dim HVD_PRONOMBRE As String = records(RESULT.";
Debug.ShouldStop(2);
_hvd_pronombre = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_PRONOMBRE")))))));Debug.locals.put("HVD_PRONOMBRE", _hvd_pronombre);Debug.locals.put("HVD_PRONOMBRE", _hvd_pronombre);
 BA.debugLineNum = 1475;BA.debugLine="Dim HVD_CANT As String = records(RESULT.Colum";
Debug.ShouldStop(4);
_hvd_cant = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_CANT")))))));Debug.locals.put("HVD_CANT", _hvd_cant);Debug.locals.put("HVD_CANT", _hvd_cant);
 BA.debugLineNum = 1476;BA.debugLine="Dim HVD_COSTO_TOT As String = records(RESULT.";
Debug.ShouldStop(8);
_hvd_costo_tot = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HVD_COSTO_TOT")))))));Debug.locals.put("HVD_COSTO_TOT", _hvd_costo_tot);Debug.locals.put("HVD_COSTO_TOT", _hvd_costo_tot);
 BA.debugLineNum = 1477;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(16);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_VENTAS(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT) VALUES (?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {4},new Object[] {(_hvd_cliente),(_hvd_pronombre),(_hvd_cant),(_hvd_costo_tot)})))));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1479;BA.debugLine="Listo3 =1";
Debug.ShouldStop(64);
__ref.setField ("_listo3" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 1480;BA.debugLine="If PB1.Progress = 0 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1481;BA.debugLine="PB1.Progress = 30";
Debug.ShouldStop(256);
__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 30));
 BA.debugLineNum = 1482;BA.debugLine="S_CH.Text = \"CARGANDO\"";
Debug.ShouldStop(512);
__ref.getField(false,"_s_ch" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("CARGANDO"));
 }else 
{ BA.debugLineNum = 1483;BA.debugLine="ELSE If PB1.Progress = 30 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 30))) { 
 BA.debugLineNum = 1484;BA.debugLine="PB1.Progress = 60";
Debug.ShouldStop(2048);
__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 60));
 }else 
{ BA.debugLineNum = 1485;BA.debugLine="ELSE IF PB1.Progress = 60 Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 60))) { 
 BA.debugLineNum = 1486;BA.debugLine="PB1.Progress = 100";
Debug.ShouldStop(8192);
__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 100));
 BA.debugLineNum = 1487;BA.debugLine="S_CH.Text = \"LISTO\"";
Debug.ShouldStop(16384);
__ref.getField(false,"_s_ch" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("LISTO"));
 }}}
;
 BA.debugLineNum = 1489;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessag";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("!",c_principal._starter._marcacel /*RemoteObject*/ ,BA.ObjectToString("Sony"))) { 
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Venta historico Actualizado.")),(Object)(c_principal.__c.getField(true,"True")));};
 BA.debugLineNum = 1490;BA.debugLine="If Listo1 =1 And Listo2 =1 And Listo3 = 1 And";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_listo1" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo2" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo3" /*RemoteObject*/ ),BA.NumberToString(1)) && RemoteObject.solveBoolean("=",__ref.getField(true,"_listo4" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 1491;BA.debugLine="B4XPage_Appear";
Debug.ShouldStop(262144);
__ref.runClassMethod (keymon.lat.medicomed.c_principal.class, "_b4xpage_appear" /*void*/ );
 BA.debugLineNum = 1492;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(524288);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1493;BA.debugLine="EJECUTANDO=0";
Debug.ShouldStop(1048576);
__ref.setField ("_ejecutando" /*RemoteObject*/ ,BA.NumberToString(0));
 };
 };
 };
 BA.debugLineNum = 1498;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1499;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(67108864);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1500;BA.debugLine="If RESULT.Tag = \"variables\" Then 'query tag";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("variables")))) { 
 BA.debugLineNum = 1501;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(268435456);
{
final RemoteObject group475 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen475 = group475.runMethod(true,"getSize").<Integer>get()
;int index475 = 0;
;
for (; index475 < groupLen475;index475++){
_records = (group475.runMethod(false,"Get",index475));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1502;BA.debugLine="Dim Cat_Va_Descripcion As String = records(RE";
Debug.ShouldStop(536870912);
_cat_va_descripcion = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_VA_DESCRIPCION")))))));Debug.locals.put("Cat_Va_Descripcion", _cat_va_descripcion);Debug.locals.put("Cat_Va_Descripcion", _cat_va_descripcion);
 BA.debugLineNum = 1503;BA.debugLine="Dim Cat_Va_Valor As String = records(RESULT.C";
Debug.ShouldStop(1073741824);
_cat_va_valor = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_VA_VALOR")))))));Debug.locals.put("Cat_Va_Valor", _cat_va_valor);Debug.locals.put("Cat_Va_Valor", _cat_va_valor);
 BA.debugLineNum = 1504;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(-2147483648);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(_cat_va_descripcion),(_cat_va_valor)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1509;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1510;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(32);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1511;BA.debugLine="If RESULT.Tag = \"CUESTIONARIO\" Then 'query tag";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("CUESTIONARIO")))) { 
 BA.debugLineNum = 1512;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(128);
{
final RemoteObject group485 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen485 = group485.runMethod(true,"getSize").<Integer>get()
;int index485 = 0;
;
for (; index485 < groupLen485;index485++){
_records = (group485.runMethod(false,"Get",index485));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1513;BA.debugLine="Dim Cat_Va_Valor As String = records(RESULT.C";
Debug.ShouldStop(256);
_cat_va_valor = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_VALOR")))))));Debug.locals.put("Cat_Va_Valor", _cat_va_valor);Debug.locals.put("Cat_Va_Valor", _cat_va_valor);
 BA.debugLineNum = 1514;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"DELETE";
Debug.ShouldStop(512);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("DELETE FROM CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("CUESTIONARIO"))})))));
 BA.debugLineNum = 1515;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(1024);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("CUESTIONARIO")),(_cat_va_valor)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1520;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1521;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(65536);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1522;BA.debugLine="If RESULT.Tag = \"valida_pedido\" Then 'query tag";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("valida_pedido")))) { 
 BA.debugLineNum = 1523;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(262144);
{
final RemoteObject group495 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen495 = group495.runMethod(true,"getSize").<Integer>get()
;int index495 = 0;
;
for (; index495 < groupLen495;index495++){
_records = (group495.runMethod(false,"Get",index495));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1525;BA.debugLine="Dim CUANTOSP As Int = records(RESULT.Columns.";
Debug.ShouldStop(1048576);
_cuantosp = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CUANTOSP")))))));Debug.locals.put("CUANTOSP", _cuantosp);Debug.locals.put("CUANTOSP", _cuantosp);
 BA.debugLineNum = 1527;BA.debugLine="If cuantos_pedido < = CUANTOSP Then";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("k",BA.numberCast(double.class, __ref.getField(true,"_cuantos_pedido" /*RemoteObject*/ )),BA.numberCast(double.class, _cuantosp))) { 
 BA.debugLineNum = 1529;BA.debugLine="datos_iguales = \"ok\"";
Debug.ShouldStop(16777216);
__ref.setField ("_datos_iguales" /*RemoteObject*/ ,BA.ObjectToString("ok"));
 BA.debugLineNum = 1530;BA.debugLine="S_CP.Text = \"INFO OK\"";
Debug.ShouldStop(33554432);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("INFO OK"));
 }else {
 BA.debugLineNum = 1532;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMess";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("!",c_principal._starter._marcacel /*RemoteObject*/ ,BA.ObjectToString("Sony"))) { 
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("No se cargo bien la info P. Sync Nuevamente"),_cuantosp,RemoteObject.createImmutable(" "),__ref.getField(true,"_cuantos_pedido" /*RemoteObject*/ )))),(Object)(c_principal.__c.getField(true,"True")));};
 BA.debugLineNum = 1533;BA.debugLine="S_CP.Text = \"ENVIAR DATOS (K-2)\"";
Debug.ShouldStop(268435456);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("ENVIAR DATOS (K-2)"));
 BA.debugLineNum = 1534;BA.debugLine="Log(\"No se cargo bien la info P. Sync Nuevam";
Debug.ShouldStop(536870912);
c_principal.__c.runVoidMethod ("LogImpl","33408420",RemoteObject.concat(RemoteObject.createImmutable("No se cargo bien la info P. Sync Nuevamente"),_cuantosp,RemoteObject.createImmutable(" "),__ref.getField(true,"_cuantos_pedido" /*RemoteObject*/ )),0);
 };
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1542;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1543;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(64);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1544;BA.debugLine="If RESULT.Tag = \"valida_pedidoc\" Then 'query ta";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("valida_pedidoc")))) { 
 BA.debugLineNum = 1545;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(256);
{
final RemoteObject group511 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen511 = group511.runMethod(true,"getSize").<Integer>get()
;int index511 = 0;
;
for (; index511 < groupLen511;index511++){
_records = (group511.runMethod(false,"Get",index511));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1547;BA.debugLine="Dim CUANTOSC As Int = records(RESULT.Columns.";
Debug.ShouldStop(1024);
_cuantosc = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CUANTOSC")))))));Debug.locals.put("CUANTOSC", _cuantosc);Debug.locals.put("CUANTOSC", _cuantosc);
 BA.debugLineNum = 1549;BA.debugLine="If cuantos_pedidosc = CUANTOSC Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_cuantos_pedidosc" /*RemoteObject*/ ),BA.NumberToString(_cuantosc))) { 
 BA.debugLineNum = 1551;BA.debugLine="datos_iguales = \"ok\"";
Debug.ShouldStop(16384);
__ref.setField ("_datos_iguales" /*RemoteObject*/ ,BA.ObjectToString("ok"));
 }else {
 BA.debugLineNum = 1553;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMess";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("!",c_principal._starter._marcacel /*RemoteObject*/ ,BA.ObjectToString("Sony"))) { 
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("No se cargo bien la info C. Sync Nuevamente"),_cuantosc,RemoteObject.createImmutable(" "),__ref.getField(true,"_cuantos_pedidosc" /*RemoteObject*/ )))),(Object)(c_principal.__c.getField(true,"True")));};
 BA.debugLineNum = 1554;BA.debugLine="Log(\"No se cargo bien la info C. Sync Nuevam";
Debug.ShouldStop(131072);
c_principal.__c.runVoidMethod ("LogImpl","33408440",RemoteObject.concat(RemoteObject.createImmutable("No se cargo bien la info C. Sync Nuevamente "),_cuantosc,RemoteObject.createImmutable(" "),__ref.getField(true,"_cuantos_pedidosc" /*RemoteObject*/ )),0);
 };
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1560;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1561;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(16777216);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1562;BA.debugLine="If RESULT.Tag = \"valida_noventa\" Then 'query ta";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("valida_noventa")))) { 
 BA.debugLineNum = 1563;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(67108864);
{
final RemoteObject group525 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen525 = group525.runMethod(true,"getSize").<Integer>get()
;int index525 = 0;
;
for (; index525 < groupLen525;index525++){
_records = (group525.runMethod(false,"Get",index525));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1564;BA.debugLine="Dim CUANTOSN As Int = records(RESULT.Columns.";
Debug.ShouldStop(134217728);
_cuantosn = BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CUANTOSN")))))));Debug.locals.put("CUANTOSN", _cuantosn);Debug.locals.put("CUANTOSN", _cuantosn);
 BA.debugLineNum = 1565;BA.debugLine="If cuantos_noventa = CUANTOSN Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_cuantos_noventa" /*RemoteObject*/ ),BA.NumberToString(_cuantosn))) { 
 BA.debugLineNum = 1567;BA.debugLine="datos_iguales = \"ok\"";
Debug.ShouldStop(1073741824);
__ref.setField ("_datos_iguales" /*RemoteObject*/ ,BA.ObjectToString("ok"));
 }else {
 BA.debugLineNum = 1569;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMess";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("!",c_principal._starter._marcacel /*RemoteObject*/ ,BA.ObjectToString("Sony"))) { 
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("No se cargo bien la info N. Sync Nuevamente"),_cuantosn,RemoteObject.createImmutable(" "),__ref.getField(true,"_cuantos_noventa" /*RemoteObject*/ )))),(Object)(c_principal.__c.getField(true,"True")));};
 BA.debugLineNum = 1570;BA.debugLine="Log(\"No se cargo bien la info N. Sync Nuevam";
Debug.ShouldStop(2);
c_principal.__c.runVoidMethod ("LogImpl","33408456",RemoteObject.concat(RemoteObject.createImmutable("No se cargo bien la info N. Sync Nuevamente "),_cuantosn,RemoteObject.createImmutable(" "),__ref.getField(true,"_cuantos_noventa" /*RemoteObject*/ )),0);
 };
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1576;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1577;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(256);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1578;BA.debugLine="If RESULT.Tag = \"ins_pedido\" Then 'query tag";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("ins_pedido")))) { 
 BA.debugLineNum = 1579;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(1024);
{
final RemoteObject group539 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen539 = group539.runMethod(true,"getSize").<Integer>get()
;int index539 = 0;
;
for (; index539 < groupLen539;index539++){
_records = (group539.runMethod(false,"Get",index539));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1580;BA.debugLine="PB2.Progress = PB2.Progress + 5";
Debug.ShouldStop(2048);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),RemoteObject.createImmutable(5)}, "+",1, 1));
 BA.debugLineNum = 1581;BA.debugLine="S_CP.Text = \"SUBIENDO\"";
Debug.ShouldStop(4096);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("SUBIENDO"));
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1583;BA.debugLine="PB2.Progress = 100";
Debug.ShouldStop(16384);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 100));
 BA.debugLineNum = 1584;BA.debugLine="S_CP.Text = \"LISTO\"";
Debug.ShouldStop(32768);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("LISTO"));
 BA.debugLineNum = 1585;BA.debugLine="Log(\"5\")";
Debug.ShouldStop(65536);
c_principal.__c.runVoidMethod ("LogImpl","33408471",RemoteObject.createImmutable("5"),0);
 };
 };
 BA.debugLineNum = 1589;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1590;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(2097152);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1591;BA.debugLine="If RESULT.Tag = \"version\" Then 'query tag";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("version")))) { 
 BA.debugLineNum = 1592;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(8388608);
{
final RemoteObject group551 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen551 = group551.runMethod(true,"getSize").<Integer>get()
;int index551 = 0;
;
for (; index551 < groupLen551;index551++){
_records = (group551.runMethod(false,"Get",index551));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1593;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete f";
Debug.ShouldStop(16777216);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from VERSION")));
 BA.debugLineNum = 1594;BA.debugLine="Dim CAT_VE_VERSION As String = records(RESULT";
Debug.ShouldStop(33554432);
_cat_ve_version = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("CAT_VE_VERSION")))))));Debug.locals.put("CAT_VE_VERSION", _cat_ve_version);Debug.locals.put("CAT_VE_VERSION", _cat_ve_version);
 BA.debugLineNum = 1595;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(67108864);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO VERSION(NOVERSION) VALUES (?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(_cat_ve_version)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1600;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1601;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(1);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1602;BA.debugLine="If RESULT.Tag = \"count_cli\" Then 'query tag";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("count_cli")))) { 
 BA.debugLineNum = 1603;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(4);
{
final RemoteObject group561 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen561 = group561.runMethod(true,"getSize").<Integer>get()
;int index561 = 0;
;
for (; index561 < groupLen561;index561++){
_records = (group561.runMethod(false,"Get",index561));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1604;BA.debugLine="COUNT_CLIE = records(RESULT.Columns.Get(\"COUN";
Debug.ShouldStop(8);
__ref.setField ("_count_clie" /*RemoteObject*/ ,BA.numberCast(int.class, _records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("COUNT_CLIE"))))))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1609;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1610;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(512);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1611;BA.debugLine="If RESULT.Tag = \"ruta\" Then 'query tag";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("ruta")))) { 
 BA.debugLineNum = 1612;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(2048);
{
final RemoteObject group569 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen569 = group569.runMethod(true,"getSize").<Integer>get()
;int index569 = 0;
;
for (; index569 < groupLen569;index569++){
_records = (group569.runMethod(false,"Get",index569));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1613;BA.debugLine="Dim VALIDO As String = records(RESULT.Columns";
Debug.ShouldStop(4096);
_valido = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("VALIDO")))))));Debug.locals.put("VALIDO", _valido);Debug.locals.put("VALIDO", _valido);
 BA.debugLineNum = 1614;BA.debugLine="If VALIDO = \"OK\" Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("=",_valido,BA.ObjectToString("OK"))) { 
 BA.debugLineNum = 1615;BA.debugLine="cargar.Visible = True";
Debug.ShouldStop(16384);
__ref.getField(false,"_cargar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1616;BA.debugLine="Subir.Visible = True";
Debug.ShouldStop(32768);
__ref.getField(false,"_subir" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1617;BA.debugLine="inv.Visible = True";
Debug.ShouldStop(65536);
__ref.getField(false,"_inv" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1618;BA.debugLine="connecta.Visible = False";
Debug.ShouldStop(131072);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1619;BA.debugLine="If conn = \"1\" Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_conn" /*RemoteObject*/ ),BA.ObjectToString("1"))) { 
 BA.debugLineNum = 1620;BA.debugLine="ToastMessageShow(\"Existe Conexión con el Se";
Debug.ShouldStop(524288);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Existe Conexión con el Servidor.")),(Object)(c_principal.__c.getField(true,"True")));
 };
 }else {
 BA.debugLineNum = 1623;BA.debugLine="cargar.Visible = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cargar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1624;BA.debugLine="Subir.Visible = False";
Debug.ShouldStop(8388608);
__ref.getField(false,"_subir" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1625;BA.debugLine="inv.Visible = False";
Debug.ShouldStop(16777216);
__ref.getField(false,"_inv" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1626;BA.debugLine="connecta.Visible = False";
Debug.ShouldStop(33554432);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1627;BA.debugLine="ToastMessageShow(\"Ruta invalida.\" , True)";
Debug.ShouldStop(67108864);
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence("Ruta invalida.")),(Object)(c_principal.__c.getField(true,"True")));
 };
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1633;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1634;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(2);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1635;BA.debugLine="If RESULT.Tag = \"usuario\" Then 'query tag";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("usuario")))) { 
 BA.debugLineNum = 1636;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(8);
{
final RemoteObject group592 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen592 = group592.runMethod(true,"getSize").<Integer>get()
;int index592 = 0;
;
for (; index592 < groupLen592;index592++){
_records = (group592.runMethod(false,"Get",index592));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1637;BA.debugLine="Dim name2 As String = records(RESULT.Columns.";
Debug.ShouldStop(16);
_name2 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("VALIDO")))))));Debug.locals.put("name2", _name2);Debug.locals.put("name2", _name2);
 }
}Debug.locals.put("records", _records);
;
 BA.debugLineNum = 1639;BA.debugLine="If name2 = \"OK\" Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",_name2,BA.ObjectToString("OK"))) { 
 BA.debugLineNum = 1640;BA.debugLine="PASO = 1";
Debug.ShouldStop(128);
__ref.setField ("_paso" /*RemoteObject*/ ,BA.NumberToString(1));
 };
 BA.debugLineNum = 1642;BA.debugLine="P1.Visible = False";
Debug.ShouldStop(512);
__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1643;BA.debugLine="p_mandaInfo.Visible = False";
Debug.ShouldStop(1024);
__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 };
 };
 BA.debugLineNum = 1647;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1648;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(32768);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1649;BA.debugLine="If RESULT.Tag = \"fecha\" Then 'query tag";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("fecha")))) { 
 BA.debugLineNum = 1650;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(131072);
{
final RemoteObject group605 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen605 = group605.runMethod(true,"getSize").<Integer>get()
;int index605 = 0;
;
for (; index605 < groupLen605;index605++){
_records = (group605.runMethod(false,"Get",index605));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1651;BA.debugLine="Dim FECHA_HOY As String = records(RESULT.Colu";
Debug.ShouldStop(262144);
_fecha_hoy = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("FECHA")))))));Debug.locals.put("FECHA_HOY", _fecha_hoy);Debug.locals.put("FECHA_HOY", _fecha_hoy);
 BA.debugLineNum = 1652;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete";
Debug.ShouldStop(524288);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("FECHA"))})))));
 BA.debugLineNum = 1653;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(1048576);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("FECHA")),(_fecha_hoy)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1658;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1659;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(67108864);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1660;BA.debugLine="If RESULT.Tag = \"folio\" Then 'query tag";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("folio")))) { 
 BA.debugLineNum = 1661;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(268435456);
{
final RemoteObject group615 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen615 = group615.runMethod(true,"getSize").<Integer>get()
;int index615 = 0;
;
for (; index615 < groupLen615;index615++){
_records = (group615.runMethod(false,"Get",index615));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1662;BA.debugLine="Dim FOLIO As String = records(RESULT.Columns.";
Debug.ShouldStop(536870912);
_folio = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("FOLIO")))))));Debug.locals.put("FOLIO", _folio);Debug.locals.put("FOLIO", _folio);
 BA.debugLineNum = 1663;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete";
Debug.ShouldStop(1073741824);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("FOLIO"))})))));
 BA.debugLineNum = 1664;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(-2147483648);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {2},new Object[] {RemoteObject.createImmutable(("FOLIO")),(_folio)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 BA.debugLineNum = 1669;BA.debugLine="If Job.JobName = \"DBRequest\" Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",_job.getField(true,"_jobname" /*RemoteObject*/ ),BA.ObjectToString("DBRequest"))) { 
 BA.debugLineNum = 1670;BA.debugLine="Dim RESULT As DBResult = B4XPages.MainPage.reqM";
Debug.ShouldStop(32);
_result = c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_handlejob" /*RemoteObject*/ ,(Object)(_job));Debug.locals.put("RESULT", _result);Debug.locals.put("RESULT", _result);
 BA.debugLineNum = 1671;BA.debugLine="If RESULT.Tag = \"hist_avance\" Then 'query tag";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",_result.getField(false,"Tag" /*RemoteObject*/ ),RemoteObject.createImmutable(("hist_avance")))) { 
 BA.debugLineNum = 1672;BA.debugLine="For Each records() As Object In RESULT.Rows";
Debug.ShouldStop(128);
{
final RemoteObject group625 = _result.getField(false,"Rows" /*RemoteObject*/ );
final int groupLen625 = group625.runMethod(true,"getSize").<Integer>get()
;int index625 = 0;
;
for (; index625 < groupLen625;index625++){
_records = (group625.runMethod(false,"Get",index625));Debug.locals.put("records", _records);
Debug.locals.put("records", _records);
 BA.debugLineNum = 1673;BA.debugLine="Dim marca As String = records(RESULT.Columns.";
Debug.ShouldStop(256);
_marca = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_AM_MARCA")))))));Debug.locals.put("marca", _marca);Debug.locals.put("marca", _marca);
 BA.debugLineNum = 1674;BA.debugLine="Dim avance As String = records(RESULT.Columns";
Debug.ShouldStop(512);
_avance = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_AM_AVANCE")))))));Debug.locals.put("avance", _avance);Debug.locals.put("avance", _avance);
 BA.debugLineNum = 1675;BA.debugLine="Dim objetivo As String = records(RESULT.Colum";
Debug.ShouldStop(1024);
_objetivo = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_AM_OBJETIVO")))))));Debug.locals.put("objetivo", _objetivo);Debug.locals.put("objetivo", _objetivo);
 BA.debugLineNum = 1676;BA.debugLine="Dim porcentaje1 As String = records(RESULT.Co";
Debug.ShouldStop(2048);
_porcentaje1 = BA.ObjectToString(_records.getArrayElement(false,BA.numberCast(int.class, _result.getField(false,"Columns" /*RemoteObject*/ ).runMethod(false,"Get",(Object)((RemoteObject.createImmutable("HIST_AM_PORCENTAJE")))))));Debug.locals.put("porcentaje1", _porcentaje1);Debug.locals.put("porcentaje1", _porcentaje1);
 BA.debugLineNum = 1677;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"INSERT";
Debug.ShouldStop(4096);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("INSERT INTO HIST_AVANCE(HA_MARCA, HA_AVANCE, HA_OBJETIVO, HA_PORCENTAJE) VALUES (?,?,?,?)")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {4},new Object[] {(_marca),(_avance),(_objetivo),(_porcentaje1)})))));
 }
}Debug.locals.put("records", _records);
;
 };
 };
 };
 BA.debugLineNum = 1683;BA.debugLine="Job.Release";
Debug.ShouldStop(262144);
_job.runClassMethod (keymon.lat.medicomed.httpjob.class, "_release" /*RemoteObject*/ );
 BA.debugLineNum = 1684;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _nuevo_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("NUEVO_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,1947);
if (RapidSub.canDelegate("nuevo_click")) { return __ref.runUserSub(false, "c_principal","nuevo_click", __ref);}
 BA.debugLineNum = 1947;BA.debugLine="Sub NUEVO_Click";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 1948;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
Debug.ShouldStop(134217728);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("NuevoCliente")));
 BA.debugLineNum = 1949;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _nvo_cliente_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("nvo_cliente_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,2149);
if (RapidSub.canDelegate("nvo_cliente_click")) { return __ref.runUserSub(false, "c_principal","nvo_cliente_click", __ref);}
 BA.debugLineNum = 2149;BA.debugLine="Sub nvo_cliente_Click";
Debug.ShouldStop(16);
 BA.debugLineNum = 2150;BA.debugLine="B4XPages.ShowPage(\"NuevoCliente\")";
Debug.ShouldStop(32);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("NuevoCliente")));
 BA.debugLineNum = 2151;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_mandainfo_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("p_mandaInfo_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,2361);
if (RapidSub.canDelegate("p_mandainfo_click")) { return __ref.runUserSub(false, "c_principal","p_mandainfo_click", __ref);}
 BA.debugLineNum = 2361;BA.debugLine="Private Sub p_mandaInfo_Click";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 2363;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _p_resumen_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("P_RESUMEN_click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,1975);
if (RapidSub.canDelegate("p_resumen_click")) { return __ref.runUserSub(false, "c_principal","p_resumen_click", __ref);}
 BA.debugLineNum = 1975;BA.debugLine="Sub P_RESUMEN_click";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 1977;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _resdia_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("resdia_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,1983);
if (RapidSub.canDelegate("resdia_click")) { return __ref.runUserSub(false, "c_principal","resdia_click", __ref);}
int _i = 0;
RemoteObject _label1 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _label2 = RemoteObject.declareNull("anywheresoftware.b4a.objects.LabelWrapper");
RemoteObject _cuantos_obj = RemoteObject.createImmutable("");
 BA.debugLineNum = 1983;BA.debugLine="Sub resdia_Click";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 1984;BA.debugLine="p_principal.Visible = False";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_p_principal" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1985;BA.debugLine="Btn_Ubicar.Visible=False";
Debug.ShouldStop(1);
__ref.getField(false,"_btn_ubicar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1986;BA.debugLine="SCROLL_RESDIA.Visible = True";
Debug.ShouldStop(2);
__ref.getField(false,"_scroll_resdia" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1987;BA.debugLine="SCROLL_RESDIA.Panel.LoadLayout(\"RESDIA\")";
Debug.ShouldStop(4);
__ref.getField(false,"_scroll_resdia" /*RemoteObject*/ ).runMethod(false,"getPanel").runMethodAndSync(false,"LoadLayout",(Object)(RemoteObject.createImmutable("RESDIA")),__ref.getField(false, "ba"));
 BA.debugLineNum = 1988;BA.debugLine="SCROLL_RESDIA.Panel.Height = Panel4.Height";
Debug.ShouldStop(8);
__ref.getField(false,"_scroll_resdia" /*RemoteObject*/ ).runMethod(false,"getPanel").runMethod(true,"setHeight",__ref.getField(false,"_panel4" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 1989;BA.debugLine="Panel4.Visible = True";
Debug.ShouldStop(16);
__ref.getField(false,"_panel4" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1991;BA.debugLine="NUEVO.Visible =False";
Debug.ShouldStop(64);
__ref.getField(false,"_nuevo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1992;BA.debugLine="BUSCA.Visible=False";
Debug.ShouldStop(128);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1993;BA.debugLine="connecta.Visible=False";
Debug.ShouldStop(256);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1994;BA.debugLine="Subir.Visible=False";
Debug.ShouldStop(512);
__ref.getField(false,"_subir" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1995;BA.debugLine="cargar.Visible=False";
Debug.ShouldStop(1024);
__ref.getField(false,"_cargar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1996;BA.debugLine="Resumen.Visible= False";
Debug.ShouldStop(2048);
__ref.getField(false,"_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1998;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"select COUNT";
Debug.ShouldStop(8192);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select COUNT(*) AS CUANTOS FROM HIST_ENCUESTA WHERE  HE_TIPO = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("TELEFONO")}))));
 BA.debugLineNum = 1999;BA.debugLine="d.Position = 0";
Debug.ShouldStop(16384);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2000;BA.debugLine="l_encuesta.Text = d.GetString(\"CUANTOS\")";
Debug.ShouldStop(32768);
__ref.getField(false,"_l_encuesta" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))));
 BA.debugLineNum = 2001;BA.debugLine="d.Close";
Debug.ShouldStop(65536);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2003;BA.debugLine="L_MARCAS.CLEAR";
Debug.ShouldStop(262144);
__ref.getField(false,"_l_marcas" /*RemoteObject*/ ).runVoidMethod ("Clear");
 BA.debugLineNum = 2004;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"select disti";
Debug.ShouldStop(524288);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("select distinct HE_CLIE AS CLIENTE FROM HIST_ENCUESTA WHERE  HE_TIPO = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("TELEFONO")}))));
 BA.debugLineNum = 2005;BA.debugLine="If D.RowCount>0 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2006;BA.debugLine="For i=0 To D.RowCount -1";
Debug.ShouldStop(2097152);
{
final int step20 = 1;
final int limit20 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step20 > 0 && _i <= limit20) || (step20 < 0 && _i >= limit20) ;_i = ((int)(0 + _i + step20))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 2007;BA.debugLine="D.Position=i";
Debug.ShouldStop(4194304);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 2008;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select  HE";
Debug.ShouldStop(8388608);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("Select  HE_RES from HIST_ENCUESTA where  HE_CLIE = ?  AND HE_TIPO = ?")),(Object)(RemoteObject.createNewArray("String",new int[] {2},new Object[] {__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CLIENTE"))),RemoteObject.createImmutable("TELEFONO")}))));
 BA.debugLineNum = 2009;BA.debugLine="c.Position = 0";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2010;BA.debugLine="Dim label1 As Label";
Debug.ShouldStop(33554432);
_label1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 2011;BA.debugLine="label1 = L_MARCAS.TwoLinesLayout.Label";
Debug.ShouldStop(67108864);
_label1 = __ref.getField(false,"_l_marcas" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"Label");Debug.locals.put("label1", _label1);
 BA.debugLineNum = 2012;BA.debugLine="label1.TextSize = 13";
Debug.ShouldStop(134217728);
_label1.runMethod(true,"setTextSize",BA.numberCast(float.class, 13));
 BA.debugLineNum = 2013;BA.debugLine="label1.TextColor = Colors.Black";
Debug.ShouldStop(268435456);
_label1.runMethod(true,"setTextColor",c_principal.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 2014;BA.debugLine="Dim label2 As Label";
Debug.ShouldStop(536870912);
_label2 = RemoteObject.createNew ("anywheresoftware.b4a.objects.LabelWrapper");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 2015;BA.debugLine="label2 = L_MARCAS.TwoLinesLayout.SecondLabel";
Debug.ShouldStop(1073741824);
_label2 = __ref.getField(false,"_l_marcas" /*RemoteObject*/ ).runMethod(false,"getTwoLinesLayout").getField(false,"SecondLabel");Debug.locals.put("label2", _label2);
 BA.debugLineNum = 2016;BA.debugLine="label2.TextSize = 13";
Debug.ShouldStop(-2147483648);
_label2.runMethod(true,"setTextSize",BA.numberCast(float.class, 13));
 BA.debugLineNum = 2017;BA.debugLine="label2.TextColor = Colors.Black";
Debug.ShouldStop(1);
_label2.runMethod(true,"setTextColor",c_principal.__c.getField(false,"Colors").getField(true,"Black"));
 BA.debugLineNum = 2018;BA.debugLine="L_MARCAS.AddTwoLines(d.GetString(\"CLIENTE\"),\"TE";
Debug.ShouldStop(2);
__ref.getField(false,"_l_marcas" /*RemoteObject*/ ).runVoidMethod ("AddTwoLines",(Object)(BA.ObjectToCharSequence(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CLIENTE"))))),(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("TELEFONO :"),__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HE_RES")))))));
 BA.debugLineNum = 2019;BA.debugLine="c.Close";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 2022;BA.debugLine="d.Close";
Debug.ShouldStop(32);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2024;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select  sum(";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("Select  sum(PE_COSTO_TOT) As MONTO_DIA from pedido where PE_CLIENTE <> 0 and pe_proid in (Select CAT_GP_ID from cat_gunaprod where CAT_GP_TIPO = ? )")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("RTEC")}))));
 BA.debugLineNum = 2025;BA.debugLine="c.Position = 0";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2026;BA.debugLine="l_monto_k.Text = c.GetString(\"MONTO_DIA\")";
Debug.ShouldStop(512);
__ref.getField(false,"_l_monto_k" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_DIA")))));
 BA.debugLineNum = 2027;BA.debugLine="If l_monto_k.Text = \"null\" Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_l_monto_k" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("null"))) { 
 BA.debugLineNum = 2028;BA.debugLine="l_monto_k.Text = \"0\"";
Debug.ShouldStop(2048);
__ref.getField(false,"_l_monto_k" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("0"));
 };
 BA.debugLineNum = 2030;BA.debugLine="c.Close";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2032;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select  sum(";
Debug.ShouldStop(32768);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("Select  sum(PE_COSTO_TOT) As MONTO_DIA from pedido where PE_CLIENTE <> 0 and pe_proid in (Select CAT_GP_ID from cat_gunaprod where CAT_GP_TIPO = ? )")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("PING")}))));
 BA.debugLineNum = 2033;BA.debugLine="c.Position = 0";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2034;BA.debugLine="l_monto_kp.Text = c.GetString(\"MONTO_DIA\")";
Debug.ShouldStop(131072);
__ref.getField(false,"_l_monto_kp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_DIA")))));
 BA.debugLineNum = 2035;BA.debugLine="If l_monto_kp.Text = \"null\" Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_l_monto_kp" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("null"))) { 
 BA.debugLineNum = 2036;BA.debugLine="l_monto_kp.Text = \"0\"";
Debug.ShouldStop(524288);
__ref.getField(false,"_l_monto_kp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("0"));
 };
 BA.debugLineNum = 2038;BA.debugLine="c.Close";
Debug.ShouldStop(2097152);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2048;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  sum(P";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select  sum(PE_COSTO_TOT) As MONTO_DIA from pedido where PE_CLIENTE <> 0 "))));
 BA.debugLineNum = 2049;BA.debugLine="c.Position = 0";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2050;BA.debugLine="l_monto_ks.Text = c.GetString(\"MONTO_DIA\")";
Debug.ShouldStop(2);
__ref.getField(false,"_l_monto_ks" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_DIA")))));
 BA.debugLineNum = 2051;BA.debugLine="If l_monto_ks.Text = \"null\" Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_l_monto_ks" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("null"))) { 
 BA.debugLineNum = 2052;BA.debugLine="l_monto_ks.Text = \"0\"";
Debug.ShouldStop(8);
__ref.getField(false,"_l_monto_ks" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("0"));
 };
 BA.debugLineNum = 2054;BA.debugLine="c.Close";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2055;BA.debugLine="Dim cuantos_obj As String";
Debug.ShouldStop(64);
_cuantos_obj = RemoteObject.createImmutable("");Debug.locals.put("cuantos_obj", _cuantos_obj);
 BA.debugLineNum = 2056;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  count";
Debug.ShouldStop(128);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select  count(*) AS TOTAL from HIST_MARCAS_CUOTAS   "))));
 BA.debugLineNum = 2057;BA.debugLine="c.Position = 0";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2058;BA.debugLine="cuantos_obj = c.GetString(\"TOTAL\")";
Debug.ShouldStop(512);
_cuantos_obj = __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL")));Debug.locals.put("cuantos_obj", _cuantos_obj);
 BA.debugLineNum = 2059;BA.debugLine="c.Close";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2061;BA.debugLine="If cuantos_obj > 0 Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, _cuantos_obj),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2062;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  SUM(";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select  SUM( HMC_TOTAL) AS TOTAL from HIST_MARCAS_CUOTAS   "))));
 BA.debugLineNum = 2063;BA.debugLine="c.Position = 0";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2064;BA.debugLine="L_NES.Text = c.GetString(\"TOTAL\")";
Debug.ShouldStop(32768);
__ref.getField(false,"_l_nes" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("TOTAL")))));
 BA.debugLineNum = 2065;BA.debugLine="c.Close";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 };
 BA.debugLineNum = 2067;BA.debugLine="L_REAL.Text = l_monto_ks.Text";
Debug.ShouldStop(262144);
__ref.getField(false,"_l_real" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_l_monto_ks" /*RemoteObject*/ ).runMethod(true,"getText")));
 BA.debugLineNum = 2068;BA.debugLine="L_ALCANCE.Text = Round2((L_NES.Text / L_REAL.Text";
Debug.ShouldStop(524288);
__ref.getField(false,"_l_alcance" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_principal.__c.runMethod(true,"Round2",(Object)((RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_l_nes" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, __ref.getField(false,"_l_real" /*RemoteObject*/ ).runMethod(true,"getText")),RemoteObject.createImmutable(1)}, "/+",1, 0))),(Object)(BA.numberCast(int.class, 2)))));
 BA.debugLineNum = 2069;BA.debugLine="L_VPLAN.Text = l_porvisitar.Text";
Debug.ShouldStop(1048576);
__ref.getField(false,"_l_vplan" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"getText")));
 BA.debugLineNum = 2070;BA.debugLine="L_VREAL.Text = L_CUANTOST.text";
Debug.ShouldStop(2097152);
__ref.getField(false,"_l_vreal" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_l_cuantost" /*RemoteObject*/ ).runMethod(true,"getText")));
 BA.debugLineNum = 2071;BA.debugLine="L_EFEC_VIS.Text = Round2(L_VREAL.text / L_VPLAN.T";
Debug.ShouldStop(4194304);
__ref.getField(false,"_l_efec_vis" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_principal.__c.runMethod(true,"Round2",(Object)(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_l_vreal" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, __ref.getField(false,"_l_vplan" /*RemoteObject*/ ).runMethod(true,"getText"))}, "/",0, 0)),(Object)(BA.numberCast(int.class, 2)))));
 BA.debugLineNum = 2072;BA.debugLine="L_VISITCC.Text = l_cuantosc.text";
Debug.ShouldStop(8388608);
__ref.getField(false,"_l_visitcc" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"getText")));
 BA.debugLineNum = 2073;BA.debugLine="L_EFEC_PV.Text = Round2(L_VISITCC.Text / L_VREAL.";
Debug.ShouldStop(16777216);
__ref.getField(false,"_l_efec_pv" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_principal.__c.runMethod(true,"Round2",(Object)(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_l_visitcc" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, __ref.getField(false,"_l_vreal" /*RemoteObject*/ ).runMethod(true,"getText"))}, "/",0, 0)),(Object)(BA.numberCast(int.class, 2)))));
 BA.debugLineNum = 2074;BA.debugLine="L_EFEC_PURA.Text = Round2(L_VISITCC.Text / L_VPLA";
Debug.ShouldStop(33554432);
__ref.getField(false,"_l_efec_pura" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_principal.__c.runMethod(true,"Round2",(Object)(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_l_visitcc" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, __ref.getField(false,"_l_vplan" /*RemoteObject*/ ).runMethod(true,"getText"))}, "/",0, 0)),(Object)(BA.numberCast(int.class, 2)))));
 BA.debugLineNum = 2075;BA.debugLine="L_LIN_TICK.Text = LPT";
Debug.ShouldStop(67108864);
__ref.getField(false,"_l_lin_tick" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(true,"_lpt" /*RemoteObject*/ )));
 BA.debugLineNum = 2076;BA.debugLine="If l_monto_ks.Text <> \"0\" Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean("!",__ref.getField(false,"_l_monto_ks" /*RemoteObject*/ ).runMethod(true,"getText"),BA.ObjectToString("0"))) { 
 BA.debugLineNum = 2078;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery2(\"Select  COU";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("Select  COUNT(DISTINCT(PE_CLIENTE)) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS =  ? ")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {__ref.getField(true,"_almacen" /*RemoteObject*/ )}))));
 BA.debugLineNum = 2079;BA.debugLine="c.Position = 0";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2080;BA.debugLine="L_CTE_PROMO.Text = c.GetString(\"CUANTOS\")";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_l_cte_promo" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))));
 BA.debugLineNum = 2081;BA.debugLine="c.Close";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2082;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"Select sum(";
Debug.ShouldStop(2);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("Select sum(PE_COSTO_TOT) AS MONTO_DIA FROM PEDIDO WHERE PE_PROID IN (select CAT_GP_ID from cat_gunaprod where  CAT_GP_TIPOPROD = ?) ")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("PRIORITARIO")}))));
 BA.debugLineNum = 2083;BA.debugLine="d.Position = 0";
Debug.ShouldStop(4);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2090;BA.debugLine="Log(\"|\"&d.GetString(\"MONTO_DIA\")&\"|\")";
Debug.ShouldStop(512);
c_principal.__c.runVoidMethod ("LogImpl","34325483",RemoteObject.concat(RemoteObject.createImmutable("|"),__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_DIA"))),RemoteObject.createImmutable("|")),0);
 BA.debugLineNum = 2092;BA.debugLine="L_PRIO.Text = d.GetString(\"MONTO_DIA\")";
Debug.ShouldStop(2048);
__ref.getField(false,"_l_prio" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_DIA")))));
 BA.debugLineNum = 2093;BA.debugLine="d.Close";
Debug.ShouldStop(4096);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2095;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"Select sum(";
Debug.ShouldStop(16384);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("Select sum(PE_COSTO_TOT) AS MONTO_DIA FROM PEDIDO WHERE PE_PROID IN (select CAT_GP_ID from cat_gunaprod where  CAT_GP_TIPOPROD = ?) ")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("ESTRATEGICO")}))));
 BA.debugLineNum = 2096;BA.debugLine="d.Position = 0";
Debug.ShouldStop(32768);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2097;BA.debugLine="L_SECUND.Text =d.GetString(\"MONTO_DIA\")";
Debug.ShouldStop(65536);
__ref.getField(false,"_l_secund" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_DIA")))));
 BA.debugLineNum = 2098;BA.debugLine="d.Close";
Debug.ShouldStop(131072);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2100;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery2(\"Select sum(";
Debug.ShouldStop(524288);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery2",(Object)(BA.ObjectToString("Select sum(PE_COSTO_TOT) AS MONTO_DIA FROM PEDIDO WHERE PE_PROID IN (select CAT_GP_ID from cat_gunaprod where  CAT_GP_TIPOPROD = ?) ")),(Object)(RemoteObject.createNewArray("String",new int[] {1},new Object[] {RemoteObject.createImmutable("COMPLEMENTARIO")}))));
 BA.debugLineNum = 2101;BA.debugLine="d.Position = 0";
Debug.ShouldStop(1048576);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2102;BA.debugLine="L_COMP.Text =d.GetString(\"MONTO_DIA\")";
Debug.ShouldStop(2097152);
__ref.getField(false,"_l_comp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("MONTO_DIA")))));
 BA.debugLineNum = 2103;BA.debugLine="d.Close";
Debug.ShouldStop(4194304);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 }else {
 BA.debugLineNum = 2105;BA.debugLine="L_PRIO.Text = \"0\"";
Debug.ShouldStop(16777216);
__ref.getField(false,"_l_prio" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("0"));
 BA.debugLineNum = 2106;BA.debugLine="L_SECUND.Text = \"0\"";
Debug.ShouldStop(33554432);
__ref.getField(false,"_l_secund" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("0"));
 BA.debugLineNum = 2107;BA.debugLine="L_COMP.Text = \"0\"";
Debug.ShouldStop(67108864);
__ref.getField(false,"_l_comp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("0"));
 };
 BA.debugLineNum = 2110;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select  COUNT";
Debug.ShouldStop(536870912);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select  COUNT(*) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID "))));
 BA.debugLineNum = 2111;BA.debugLine="c.Position = 0";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2112;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 2113;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"Select  sum(";
Debug.ShouldStop(1);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select  sum(pe_cant) AS CUANTOS FROM PEDIDO WHERE PE_CEDIS = PE_PROID "))));
 BA.debugLineNum = 2114;BA.debugLine="d.Position = 0";
Debug.ShouldStop(2);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2115;BA.debugLine="L_CTE_PROMO.Text = d.GetString(\"CUANTOS\")";
Debug.ShouldStop(4);
__ref.getField(false,"_l_cte_promo" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))));
 BA.debugLineNum = 2116;BA.debugLine="d.Close";
Debug.ShouldStop(8);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2117;BA.debugLine="L_REDEN_PROMO.TEXT = Round2(L_VISITCC.Text / L_C";
Debug.ShouldStop(16);
__ref.getField(false,"_l_reden_promo" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_principal.__c.runMethod(true,"Round2",(Object)(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_l_visitcc" /*RemoteObject*/ ).runMethod(true,"getText")),BA.numberCast(double.class, __ref.getField(false,"_l_cte_promo" /*RemoteObject*/ ).runMethod(true,"getText"))}, "/",0, 0)),(Object)(BA.numberCast(int.class, 2)))));
 }else {
 BA.debugLineNum = 2119;BA.debugLine="L_CTE_PROMO.Text = 0";
Debug.ShouldStop(64);
__ref.getField(false,"_l_cte_promo" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 BA.debugLineNum = 2120;BA.debugLine="L_REDEN_PROMO.Text = 0";
Debug.ShouldStop(128);
__ref.getField(false,"_l_reden_promo" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(0));
 };
 BA.debugLineNum = 2122;BA.debugLine="c.Close";
Debug.ShouldStop(512);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2123;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"Select  COUNT";
Debug.ShouldStop(1024);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select  COUNT(*) AS CUANTOS FROM PEDIDO "))));
 BA.debugLineNum = 2124;BA.debugLine="d.Position = 0";
Debug.ShouldStop(2048);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2125;BA.debugLine="L_LIN_TICK.Text = Round2(d.GetString(\"CUANTOS\") /";
Debug.ShouldStop(4096);
__ref.getField(false,"_l_lin_tick" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(c_principal.__c.runMethod(true,"Round2",(Object)(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, __ref.getField(false,"_l_visitcc" /*RemoteObject*/ ).runMethod(true,"getText"))}, "/",0, 0)),(Object)(BA.numberCast(int.class, 2)))));
 BA.debugLineNum = 2126;BA.debugLine="d.Close";
Debug.ShouldStop(8192);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2128;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"Select  count";
Debug.ShouldStop(32768);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select  count(*) as CUANTOS  from HIST_CUOTAS "))));
 BA.debugLineNum = 2129;BA.debugLine="d.Position = 0";
Debug.ShouldStop(65536);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 2130;BA.debugLine="If d.GetString(\"CUANTOS\") > 0 Then";
Debug.ShouldStop(131072);
if (RemoteObject.solveBoolean(">",BA.numberCast(double.class, __ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS")))),BA.numberCast(double.class, 0))) { 
 }else {
 BA.debugLineNum = 2138;BA.debugLine="l_monto_c1.Text = 4000";
Debug.ShouldStop(33554432);
__ref.getField(false,"_l_monto_c1" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(4000));
 BA.debugLineNum = 2139;BA.debugLine="l_monto_c2.Text = 2000";
Debug.ShouldStop(67108864);
__ref.getField(false,"_l_monto_c2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(2000));
 BA.debugLineNum = 2140;BA.debugLine="l_monto_c3.Text = 1000";
Debug.ShouldStop(134217728);
__ref.getField(false,"_l_monto_c3" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence(1000));
 };
 BA.debugLineNum = 2142;BA.debugLine="d.Close";
Debug.ShouldStop(536870912);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 2143;BA.debugLine="End Sub";
Debug.ShouldStop(1073741824);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _resumen_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Resumen_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,1964);
if (RapidSub.canDelegate("resumen_click")) { return __ref.runUserSub(false, "c_principal","resumen_click", __ref);}
 BA.debugLineNum = 1964;BA.debugLine="Sub Resumen_Click";
Debug.ShouldStop(2048);
 BA.debugLineNum = 1965;BA.debugLine="P_RESUMEN.Visible = True";
Debug.ShouldStop(4096);
__ref.getField(false,"_p_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 1973;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _subir_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Subir_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,484);
if (RapidSub.canDelegate("subir_click")) { return __ref.runUserSub(false, "c_principal","subir_click", __ref);}
int _i = 0;
RemoteObject _h = RemoteObject.declareNull("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
RemoteObject _eventob = RemoteObject.createImmutable("");
RemoteObject _clienteb = RemoteObject.createImmutable("");
RemoteObject _finb = RemoteObject.createImmutable("");
RemoteObject _nombrecliente = RemoteObject.createImmutable("");
RemoteObject _eventov = RemoteObject.createImmutable("");
RemoteObject _clientev = RemoteObject.createImmutable("");
RemoteObject _nombreclientev = RemoteObject.createImmutable("");
 BA.debugLineNum = 484;BA.debugLine="Sub Subir_Click";
Debug.ShouldStop(8);
 BA.debugLineNum = 485;BA.debugLine="CARGA = \"SUBIR\"";
Debug.ShouldStop(16);
__ref.setField ("_carga" /*RemoteObject*/ ,BA.ObjectToString("SUBIR"));
 BA.debugLineNum = 486;BA.debugLine="p_mandaInfo.Width = Root.Width";
Debug.ShouldStop(32);
__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"setWidth",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getWidth"));
 BA.debugLineNum = 487;BA.debugLine="p_mandaInfo.Height = Root.Height";
Debug.ShouldStop(64);
__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"setHeight",__ref.getField(false,"_root" /*RemoteObject*/ ).runMethod(true,"getHeight"));
 BA.debugLineNum = 488;BA.debugLine="P1.Visible = True";
Debug.ShouldStop(128);
__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 489;BA.debugLine="P1.Left = (p_mandaInfo.Width/2) - (P1.Width/2)";
Debug.ShouldStop(256);
__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"setLeft",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0)),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"getWidth"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 490;BA.debugLine="P1.top = (p_mandaInfo.Height/2) - (P1.Height/2)";
Debug.ShouldStop(512);
__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"setTop",BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(2)}, "/",0, 0)),(RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_p1" /*RemoteObject*/ ).runMethod(true,"getHeight"),RemoteObject.createImmutable(2)}, "/",0, 0))}, "-",1, 0)));
 BA.debugLineNum = 491;BA.debugLine="p_mandaInfo.Visible = True";
Debug.ShouldStop(1024);
__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 492;BA.debugLine="P1.BringToFront";
Debug.ShouldStop(2048);
__ref.getField(false,"_p1" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 493;BA.debugLine="p_mandaInfo.BringToFront";
Debug.ShouldStop(4096);
__ref.getField(false,"_p_mandainfo" /*RemoteObject*/ ).runVoidMethod ("BringToFront");
 BA.debugLineNum = 495;BA.debugLine="NUEVO.Visible =False";
Debug.ShouldStop(16384);
__ref.getField(false,"_nuevo" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 496;BA.debugLine="BUSCA.Visible=False";
Debug.ShouldStop(32768);
__ref.getField(false,"_busca" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 497;BA.debugLine="connecta.Visible=False";
Debug.ShouldStop(65536);
__ref.getField(false,"_connecta" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 498;BA.debugLine="Subir.Visible=False";
Debug.ShouldStop(131072);
__ref.getField(false,"_subir" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 499;BA.debugLine="cargar.Visible=False";
Debug.ShouldStop(262144);
__ref.getField(false,"_cargar" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 500;BA.debugLine="L_P_1.Visible = False";
Debug.ShouldStop(524288);
__ref.getField(false,"_l_p_1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 501;BA.debugLine="S_CC.Visible = False";
Debug.ShouldStop(1048576);
__ref.getField(false,"_s_cc" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 502;BA.debugLine="L_P_3.Visible = False";
Debug.ShouldStop(2097152);
__ref.getField(false,"_l_p_3" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 503;BA.debugLine="S_CH.Visible = False";
Debug.ShouldStop(4194304);
__ref.getField(false,"_s_ch" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 504;BA.debugLine="PB1.Visible = False";
Debug.ShouldStop(8388608);
__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 505;BA.debugLine="Resumen.Visible= False";
Debug.ShouldStop(16777216);
__ref.getField(false,"_resumen" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 507;BA.debugLine="L_P_2.Text = \"Envio de Pedidos\"";
Debug.ShouldStop(67108864);
__ref.getField(false,"_l_p_2" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Envio de Pedidos"));
 BA.debugLineNum = 508;BA.debugLine="L_P_3.Text = \"Envio de Pedidos\"";
Debug.ShouldStop(134217728);
__ref.getField(false,"_l_p_3" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("Envio de Pedidos"));
 BA.debugLineNum = 509;BA.debugLine="S_CH.Text = \"EN PROCESO\"";
Debug.ShouldStop(268435456);
__ref.getField(false,"_s_ch" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("EN PROCESO"));
 BA.debugLineNum = 510;BA.debugLine="S_CP.Text = \"EN PROCESO\"";
Debug.ShouldStop(536870912);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("EN PROCESO"));
 BA.debugLineNum = 511;BA.debugLine="PB1.Progress = 0";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_pb1" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 0));
 BA.debugLineNum = 512;BA.debugLine="PB2.Progress = 0";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"setProgress",BA.numberCast(int.class, 0));
 BA.debugLineNum = 518;BA.debugLine="PASO = 1";
Debug.ShouldStop(32);
__ref.setField ("_paso" /*RemoteObject*/ ,BA.NumberToString(1));
 BA.debugLineNum = 520;BA.debugLine="If PASO =1 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",__ref.getField(true,"_paso" /*RemoteObject*/ ),BA.NumberToString(1))) { 
 BA.debugLineNum = 521;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery2(\"delete fro";
Debug.ShouldStop(256);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery2",(Object)(BA.ObjectToString("delete from PEDIDO WHERE PE_PRONOMBRE = ? ")),(Object)(c_principal.__c.runMethod(false, "ArrayToList", (Object)(RemoteObject.createNewArray("Object",new int[] {1},new Object[] {(RemoteObject.createImmutable("N/A"))})))));
 BA.debugLineNum = 522;BA.debugLine="B4XPages.MainPage.skmt.ExecNonQuery(\"delete from";
Debug.ShouldStop(512);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runVoidMethod ("ExecNonQuery",(Object)(RemoteObject.createImmutable("delete from pedido_cliente where PC_CLIENTE not In (select PE_CLIENTE from pedido)")));
 BA.debugLineNum = 523;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select usuar";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select usuario from usuarioa"))));
 BA.debugLineNum = 524;BA.debugLine="c.Position = 0";
Debug.ShouldStop(2048);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 525;BA.debugLine="usuario = c.GetString(\"USUARIO\")";
Debug.ShouldStop(4096);
__ref.setField ("_usuario" /*RemoteObject*/ ,__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("USUARIO"))));
 BA.debugLineNum = 526;BA.debugLine="c.Close";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 527;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"select HGDAT";
Debug.ShouldStop(16384);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("select HGDATE, HGLAT, HGLON from HIST_GPS"))));
 BA.debugLineNum = 528;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 529;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(65536);
{
final int step37 = 1;
final int limit37 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step37 > 0 && _i <= limit37) || (step37 < 0 && _i >= limit37) ;_i = ((int)(0 + _i + step37))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 530;BA.debugLine="c.Position=i";
Debug.ShouldStop(131072);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 531;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(262144);
c_principal._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 532;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(524288);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 533;BA.debugLine="cmd.Name = \"UPDATE_MEDI_ACTUAL2_GPS\"";
Debug.ShouldStop(1048576);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("UPDATE_MEDI_ACTUAL2_GPS"));
 BA.debugLineNum = 534;BA.debugLine="cmd.Parameters = Array As Object(L_MONTOD.Text";
Debug.ShouldStop(2097152);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {12},new Object[] {(__ref.getField(false,"_l_montod" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_l_cuantost" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("hglat")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("hglon")))),(__ref.getField(false,"_batterystatus" /*RemoteObject*/ ).getArrayElement(true,BA.numberCast(int.class, 0))),(__ref.getField(true,"_lpt" /*RemoteObject*/ )),(__ref.getField(true,"_steyin" /*RemoteObject*/ )),(__ref.getField(true,"_steyout" /*RemoteObject*/ )),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"))}));
 BA.debugLineNum = 535;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
Debug.ShouldStop(4194304);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("update_gps"))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 538;BA.debugLine="c.Close";
Debug.ShouldStop(33554432);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 541;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT PC_CL";
Debug.ShouldStop(268435456);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT PC_CLIENTE, PC_FECHA, PC_USER, PC_NOART, PC_MONTO,PC_LON, PC_LAT, PC_COSTO_SIN, PC_RUTA, PC_ALMACEN, PC_FACTURA FROM PEDIDO_CLIENTE "))));
 BA.debugLineNum = 542;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"SELECT COUNT";
Debug.ShouldStop(536870912);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT COUNT(*) as CUANTOS_PEDIDOSC FROM PEDIDO_CLIENTE "))));
 BA.debugLineNum = 543;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 544;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(-2147483648);
{
final int step50 = 1;
final int limit50 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step50 > 0 && _i <= limit50) || (step50 < 0 && _i >= limit50) ;_i = ((int)(0 + _i + step50))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 545;BA.debugLine="c.Position=i";
Debug.ShouldStop(1);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 546;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(2);
c_principal._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 547;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(4);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 548;BA.debugLine="cmd.Name = \"insert_pedidos_MEDI\"";
Debug.ShouldStop(8);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_pedidos_MEDI"));
 BA.debugLineNum = 549;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"";
Debug.ShouldStop(16);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {11},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_CLIENTE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_FECHA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_USER")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_NOART")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_MONTO")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_LON")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_LAT")))),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_COSTO_SIN")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PC_FACTURA"))))}));
 BA.debugLineNum = 550;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
Debug.ShouldStop(32);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("ins_pedidos"))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 553;BA.debugLine="c.Close";
Debug.ShouldStop(256);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 554;BA.debugLine="d.Position=0";
Debug.ShouldStop(512);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 555;BA.debugLine="cuantos_pedidosc = D.GetString(\"CUANTOS_PEDIDOSC";
Debug.ShouldStop(1024);
__ref.setField ("_cuantos_pedidosc" /*RemoteObject*/ ,__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS_PEDIDOSC"))));
 BA.debugLineNum = 556;BA.debugLine="d.Close";
Debug.ShouldStop(2048);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 562;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT CODIG";
Debug.ShouldStop(131072);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT CODIGOKMTS, CODIGOB, LAT, LON FROM HIST_CODIGO_BARRAS"))));
 BA.debugLineNum = 563;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 564;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(524288);
{
final int step65 = 1;
final int limit65 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step65 > 0 && _i <= limit65) || (step65 < 0 && _i >= limit65) ;_i = ((int)(0 + _i + step65))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 565;BA.debugLine="c.Position=i";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 566;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(2097152);
c_principal._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 567;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 568;BA.debugLine="cmd.Name = \"insert_QR_2_MEDI\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_QR_2_MEDI"));
 BA.debugLineNum = 569;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {6},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CODIGOKMTS")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CODIGOB")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("LON")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("LAT")))),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"))}));
 BA.debugLineNum = 570;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
Debug.ShouldStop(33554432);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("ins_QR"))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 573;BA.debugLine="c.Close";
Debug.ShouldStop(268435456);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 577;BA.debugLine="Private h As ResultSet = B4XPages.MainPage.skmt.";
Debug.ShouldStop(1);
_h = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
_h = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.ResultSetWrapper"), c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select * from bitacoraGPS")))));Debug.locals.put("h", _h);Debug.locals.put("h", _h);
 BA.debugLineNum = 578;BA.debugLine="Do While h.nextrow";
Debug.ShouldStop(2);
while (_h.runMethod(true,"NextRow").<Boolean>get().booleanValue()) {
 BA.debugLineNum = 579;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(4);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 580;BA.debugLine="Private eventob As String = h.GetString(\"evento";
Debug.ShouldStop(8);
_eventob = _h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("eventob")));Debug.locals.put("eventob", _eventob);Debug.locals.put("eventob", _eventob);
 BA.debugLineNum = 581;BA.debugLine="cmd.Name = \"mandaBitacora_MEDICOMED\"";
Debug.ShouldStop(16);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("mandaBitacora_MEDICOMED"));
 BA.debugLineNum = 582;BA.debugLine="Log(\"BITACORA3\")";
Debug.ShouldStop(32);
c_principal.__c.runVoidMethod ("LogImpl","33276898",RemoteObject.createImmutable("BITACORA3"),0);
 BA.debugLineNum = 583;BA.debugLine="Private clienteb As String = h.GetString(\"clien";
Debug.ShouldStop(64);
_clienteb = _h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("clienteb")));Debug.locals.put("clienteb", _clienteb);Debug.locals.put("clienteb", _clienteb);
 BA.debugLineNum = 584;BA.debugLine="Private finb As String = h.GetString(\"finb\")";
Debug.ShouldStop(128);
_finb = _h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("finb")));Debug.locals.put("finb", _finb);Debug.locals.put("finb", _finb);
 BA.debugLineNum = 585;BA.debugLine="Private nombreCliente As String =Subs. traeNomb";
Debug.ShouldStop(256);
_nombrecliente = c_principal._subs.runMethod(true,"_traenombrecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("clienteb")))));Debug.locals.put("nombreCliente", _nombrecliente);Debug.locals.put("nombreCliente", _nombrecliente);
 BA.debugLineNum = 586;BA.debugLine="If eventob = \"Llega a almacen\" Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("=",_eventob,BA.ObjectToString("Llega a almacen"))) { 
 BA.debugLineNum = 587;BA.debugLine="nombreCliente = \"BOLETA\"";
Debug.ShouldStop(1024);
_nombrecliente = BA.ObjectToString("BOLETA");Debug.locals.put("nombreCliente", _nombrecliente);
 BA.debugLineNum = 588;BA.debugLine="clienteb = \"\"";
Debug.ShouldStop(2048);
_clienteb = BA.ObjectToString("");Debug.locals.put("clienteb", _clienteb);
 BA.debugLineNum = 589;BA.debugLine="finb = h.GetString(\"iniciob\")";
Debug.ShouldStop(4096);
_finb = _h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("iniciob")));Debug.locals.put("finb", _finb);
 };
 BA.debugLineNum = 591;BA.debugLine="If eventob = \"Salida almacen\" Then nombreClient";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("=",_eventob,BA.ObjectToString("Salida almacen"))) { 
_nombrecliente = BA.ObjectToString("CHECKLIST");Debug.locals.put("nombreCliente", _nombrecliente);};
 BA.debugLineNum = 592;BA.debugLine="If eventob = \"Fin Día\" Then nombreCliente = \"FI";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("=",_eventob,BA.ObjectToString("Fin Día"))) { 
_nombrecliente = BA.ObjectToString("FIN DIA");Debug.locals.put("nombreCliente", _nombrecliente);};
 BA.debugLineNum = 593;BA.debugLine="If eventob = \"Carga día\" Then nombreCliente = \"";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean("=",_eventob,BA.ObjectToString("Carga día"))) { 
_nombrecliente = BA.ObjectToString("CARGA DIA");Debug.locals.put("nombreCliente", _nombrecliente);};
 BA.debugLineNum = 596;BA.debugLine="cmd.Parameters = Array As Object(h.GetString(\"a";
Debug.ShouldStop(524288);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {14},new Object[] {(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("almacenb")))),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("usuariob")))),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("rutab")))),(_eventob),(_clienteb),(_nombrecliente),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("iniciob")))),(_finb),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("latitudb")))),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("longitudb")))),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("precision")))),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("motivonoventa")))),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("motivonovisita")))),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("fechab"))))}));
 BA.debugLineNum = 597;BA.debugLine="reqManager.ExecuteCommand(cmd , \"mandaBitacora\"";
Debug.ShouldStop(1048576);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("mandaBitacora"))));
 }
;
 BA.debugLineNum = 599;BA.debugLine="Log(\"MANDAMOS BITACORA\")";
Debug.ShouldStop(4194304);
c_principal.__c.runVoidMethod ("LogImpl","33276915",RemoteObject.createImmutable("MANDAMOS BITACORA"),0);
 BA.debugLineNum = 604;BA.debugLine="Private h As ResultSet = B4XPages.MainPage.skmt.";
Debug.ShouldStop(134217728);
_h = RemoteObject.createNew ("anywheresoftware.b4a.sql.SQL.ResultSetWrapper");
_h = RemoteObject.declareNull("anywheresoftware.b4a.AbsObjectWrapper").runMethod(false, "ConvertToWrapper", RemoteObject.createNew("anywheresoftware.b4a.sql.SQL.ResultSetWrapper"), c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)((RemoteObject.createImmutable("select * from VENTA_No_VENTA")))));Debug.locals.put("h", _h);Debug.locals.put("h", _h);
 BA.debugLineNum = 605;BA.debugLine="Do While h.nextrow";
Debug.ShouldStop(268435456);
while (_h.runMethod(true,"NextRow").<Boolean>get().booleanValue()) {
 BA.debugLineNum = 606;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(536870912);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 607;BA.debugLine="Private eventov As String = h.GetString(\"evento";
Debug.ShouldStop(1073741824);
_eventov = _h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("eventov")));Debug.locals.put("eventov", _eventov);Debug.locals.put("eventov", _eventov);
 BA.debugLineNum = 608;BA.debugLine="cmd.Name = \"insert_venta_no_venta_MEDICOMED\"";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_venta_no_venta_MEDICOMED"));
 BA.debugLineNum = 609;BA.debugLine="Private clientev As String = h.GetString(\"clien";
Debug.ShouldStop(1);
_clientev = _h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("clientev")));Debug.locals.put("clientev", _clientev);Debug.locals.put("clientev", _clientev);
 BA.debugLineNum = 610;BA.debugLine="Private nombreClientev As String =Subs. traeNom";
Debug.ShouldStop(2);
_nombreclientev = c_principal._subs.runMethod(true,"_traenombrecliente" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("clientev")))));Debug.locals.put("nombreClientev", _nombreclientev);Debug.locals.put("nombreClientev", _nombreclientev);
 BA.debugLineNum = 611;BA.debugLine="If eventov = \"Llega a almacen\" Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_eventov,BA.ObjectToString("Llega a almacen"))) { 
 BA.debugLineNum = 612;BA.debugLine="nombreClientev = \"BOLETA\"";
Debug.ShouldStop(8);
_nombreclientev = BA.ObjectToString("BOLETA");Debug.locals.put("nombreClientev", _nombreclientev);
 BA.debugLineNum = 613;BA.debugLine="clientev = \"\"";
Debug.ShouldStop(16);
_clientev = BA.ObjectToString("");Debug.locals.put("clientev", _clientev);
 };
 BA.debugLineNum = 615;BA.debugLine="If eventov = \"Salida almacen\" Then nombreClient";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("=",_eventov,BA.ObjectToString("Salida almacen"))) { 
_nombreclientev = BA.ObjectToString("CHECKLIST");Debug.locals.put("nombreClientev", _nombreclientev);};
 BA.debugLineNum = 616;BA.debugLine="If eventov = \"Fin Día\" Then nombreClientev = \"F";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",_eventov,BA.ObjectToString("Fin Día"))) { 
_nombreclientev = BA.ObjectToString("FIN DIA");Debug.locals.put("nombreClientev", _nombreclientev);};
 BA.debugLineNum = 617;BA.debugLine="If eventov = \"Carga día\" Then nombreClientev =";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",_eventov,BA.ObjectToString("Carga día"))) { 
_nombreclientev = BA.ObjectToString("CARGA DIA");Debug.locals.put("nombreClientev", _nombreclientev);};
 BA.debugLineNum = 618;BA.debugLine="cmd.Parameters = Array As Object(h.GetString(\"u";
Debug.ShouldStop(512);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {10},new Object[] {(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("usuariov")))),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("almacenv")))),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("rutav")))),(_eventov),(_clientev),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("iniciov")))),(_finb),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("latitudv")))),(_h.runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("longitudv")))),(_nombreclientev)}));
 BA.debugLineNum = 619;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ventaNoVenta\")";
Debug.ShouldStop(1024);
__ref.getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("ventaNoVenta"))));
 }
;
 BA.debugLineNum = 640;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT  HE_C";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT  HE_CLIE, HE_RES, HE_FECHA, HE_TIPO FROM HIST_ENCUESTA"))));
 BA.debugLineNum = 641;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 642;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(2);
{
final int step115 = 1;
final int limit115 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step115 > 0 && _i <= limit115) || (step115 < 0 && _i >= limit115) ;_i = ((int)(0 + _i + step115))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 643;BA.debugLine="c.Position=i";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 644;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(8);
c_principal._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 645;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(16);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 646;BA.debugLine="cmd.Name = \"insert_encuesta_MARDS\"";
Debug.ShouldStop(32);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_encuesta_MARDS"));
 BA.debugLineNum = 647;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
Debug.ShouldStop(64);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {4},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HE_CLIE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HE_RES")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HE_FECHA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HE_TIPO"))))}));
 BA.debugLineNum = 648;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
Debug.ShouldStop(128);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("inst_noventa"))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 651;BA.debugLine="c.Close";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 653;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT PE_CE";
Debug.ShouldStop(4096);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT PE_CEDIS,PE_COSTO_TOT,PE_COSTOU,PE_CANT,PE_PRONOMBRE,PE_PROID,PE_CLIENTE,PE_FECHA,PE_USUARIO, PE_COSTO_SIN, PE_RUTA, PE_DESC, PE_FOLIO FROM PEDIDO"))));
 BA.debugLineNum = 654;BA.debugLine="d=B4XPages.MainPage.skmt.ExecQuery(\"SELECT COUNT";
Debug.ShouldStop(8192);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT COUNT(*) as CUANTOS_PEDIDO FROM PEDIDO"))));
 BA.debugLineNum = 655;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 656;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(32768);
{
final int step128 = 1;
final int limit128 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step128 > 0 && _i <= limit128) || (step128 < 0 && _i >= limit128) ;_i = ((int)(0 + _i + step128))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 657;BA.debugLine="c.Position=i";
Debug.ShouldStop(65536);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 658;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(131072);
c_principal._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 659;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(262144);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 660;BA.debugLine="cmd.Name = \"insert_pedido_MEDI\"";
Debug.ShouldStop(524288);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_pedido_MEDI"));
 BA.debugLineNum = 661;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
Debug.ShouldStop(1048576);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {14},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CEDIS")))),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_TOT")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTOU")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CANT")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PRONOMBRE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_PROID")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_CLIENTE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FECHA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_USUARIO")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_RUTA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_COSTO_SIN")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_DESC")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("PE_FOLIO"))))}));
 BA.debugLineNum = 662;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
Debug.ShouldStop(2097152);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("ins_pedido"))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 665;BA.debugLine="c.Close";
Debug.ShouldStop(16777216);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 666;BA.debugLine="d.Position=0";
Debug.ShouldStop(33554432);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 667;BA.debugLine="cuantos_pedido = D.GetString(\"CUANTOS_PEDIDO\")";
Debug.ShouldStop(67108864);
__ref.setField ("_cuantos_pedido" /*RemoteObject*/ ,__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS_PEDIDO"))));
 BA.debugLineNum = 668;BA.debugLine="d.Close";
Debug.ShouldStop(134217728);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 671;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT  NV_C";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT  NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_NOMBRE, NV_DIRECCION FROM NOVENTA"))));
 BA.debugLineNum = 672;BA.debugLine="D=B4XPages.MainPage.skmt.ExecQuery(\"SELECT  COUN";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_d" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT  COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA"))));
 BA.debugLineNum = 673;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 674;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(2);
{
final int step144 = 1;
final int limit144 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step144 > 0 && _i <= limit144) || (step144 < 0 && _i >= limit144) ;_i = ((int)(0 + _i + step144))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 675;BA.debugLine="c.Position=i";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 676;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(8);
c_principal._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 677;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(16);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 678;BA.debugLine="cmd.Name = \"insert_noventa_MEDI\"";
Debug.ShouldStop(32);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_noventa_MEDI"));
 BA.debugLineNum = 679;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
Debug.ShouldStop(64);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {11},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_CLIENTE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_FECHA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_USER")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_MOTIVO")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_COMM")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_LAT")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_LON")))),(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_NOMBRE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("NV_DIRECCION"))))}));
 BA.debugLineNum = 680;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
Debug.ShouldStop(128);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("inst_noventa"))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 683;BA.debugLine="c.Close";
Debug.ShouldStop(1024);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 684;BA.debugLine="d.Position=0";
Debug.ShouldStop(2048);
__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, 0));
 BA.debugLineNum = 685;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")";
Debug.ShouldStop(4096);
__ref.setField ("_cuantos_noventa" /*RemoteObject*/ ,__ref.getField(false,"_d" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CUANTOS_NOVENTA"))));
 BA.debugLineNum = 686;BA.debugLine="d.Close";
Debug.ShouldStop(8192);
__ref.getField(false,"_d" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 691;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"SELECT  CN_I";
Debug.ShouldStop(262144);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("SELECT  CN_ID, CN_FECHA , CN_USER, CN_LAT, CN_LON, CN_NOMBRE, CN_DIRECCION, COLONIA, CP, CN_ALMACEN, CN_RUTA FROM CLIENTES_NUEVOS"))));
 BA.debugLineNum = 692;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 693;BA.debugLine="For i = 0 To c.RowCount - 1";
Debug.ShouldStop(1048576);
{
final int step159 = 1;
final int limit159 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step159 > 0 && _i <= limit159) || (step159 < 0 && _i >= limit159) ;_i = ((int)(0 + _i + step159))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 694;BA.debugLine="c.Position = i";
Debug.ShouldStop(2097152);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 696;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(8388608);
c_principal._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 697;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 698;BA.debugLine="cmd.Name = \"insert_clientesnuevos_MEDI\"";
Debug.ShouldStop(33554432);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_clientesnuevos_MEDI"));
 BA.debugLineNum = 699;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"";
Debug.ShouldStop(67108864);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {11},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_ID")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_FECHA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_USER")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_LAT")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_LON")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_NOMBRE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_DIRECCION")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("COLONIA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CP")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_ALMACEN")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("CN_RUTA"))))}));
 BA.debugLineNum = 700;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
Debug.ShouldStop(134217728);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("inst_clientesn"))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 703;BA.debugLine="c.Close";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 707;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select HGCLI";
Debug.ShouldStop(4);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select HGCLIENTE, HGDATE, HGLAT, HGLON from HIST_GEOCERCA"))));
 BA.debugLineNum = 708;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 709;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(16);
{
final int step171 = 1;
final int limit171 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step171 > 0 && _i <= limit171) || (step171 < 0 && _i >= limit171) ;_i = ((int)(0 + _i + step171))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 710;BA.debugLine="c.Position=i";
Debug.ShouldStop(32);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 711;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(64);
c_principal._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 712;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(128);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 713;BA.debugLine="cmd.Name = \"insert_geocerca_MEDI\"";
Debug.ShouldStop(256);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_geocerca_MEDI"));
 BA.debugLineNum = 714;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
Debug.ShouldStop(512);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {4},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HGCLIENTE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HGDATE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HGLAT")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HGLON"))))}));
 BA.debugLineNum = 715;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
Debug.ShouldStop(1024);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("inst_noventa"))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 718;BA.debugLine="c.Close";
Debug.ShouldStop(8192);
__ref.getField(false,"_c" /*RemoteObject*/ ).runVoidMethod ("Close");
 BA.debugLineNum = 722;BA.debugLine="c=B4XPages.MainPage.skmt.ExecQuery(\"Select HFCLI";
Debug.ShouldStop(131072);
__ref.getField(false,"_c" /*RemoteObject*/ ).setObject (c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_skmt" /*RemoteObject*/ ).runMethod(false,"ExecQuery",(Object)(RemoteObject.createImmutable("Select HFCLIENTE, HFALIAS,HFRUTA,HFALMACEN from HIST_FACE"))));
 BA.debugLineNum = 723;BA.debugLine="If c.RowCount>0 Then";
Debug.ShouldStop(262144);
if (RemoteObject.solveBoolean(">",__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 724;BA.debugLine="For i=0 To c.RowCount -1";
Debug.ShouldStop(524288);
{
final int step183 = 1;
final int limit183 = RemoteObject.solve(new RemoteObject[] {__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"getRowCount"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step183 > 0 && _i <= limit183) || (step183 < 0 && _i >= limit183) ;_i = ((int)(0 + _i + step183))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 725;BA.debugLine="c.Position=i";
Debug.ShouldStop(1048576);
__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"setPosition",BA.numberCast(int.class, _i));
 BA.debugLineNum = 726;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(2097152);
c_principal._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 727;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 728;BA.debugLine="cmd.Name = \"insert_face_like_MEDI\"";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_face_like_MEDI"));
 BA.debugLineNum = 729;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"";
Debug.ShouldStop(16777216);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {4},new Object[] {(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HFCLIENTE")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HFALIAS")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HFRUTA")))),(__ref.getField(false,"_c" /*RemoteObject*/ ).runMethod(true,"GetString",(Object)(RemoteObject.createImmutable("HFALMACEN"))))}));
 BA.debugLineNum = 730;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cm";
Debug.ShouldStop(33554432);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("inst_noventa"))));
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 760;BA.debugLine="t1.Initialize(\"T1\", 30000) ' 1000 = 1 second";
Debug.ShouldStop(8388608);
__ref.getField(false,"_t1" /*RemoteObject*/ ).runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(BA.ObjectToString("T1")),(Object)(BA.numberCast(long.class, 30000)));
 BA.debugLineNum = 761;BA.debugLine="t1.Enabled = True";
Debug.ShouldStop(16777216);
__ref.getField(false,"_t1" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 762;BA.debugLine="Dim sDate,sTime As String";
Debug.ShouldStop(33554432);
c_principal._sdate = RemoteObject.createImmutable("");__ref.setField("_sdate",c_principal._sdate);
c_principal._stime = RemoteObject.createImmutable("");__ref.setField("_stime",c_principal._stime);
 BA.debugLineNum = 763;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\"";
Debug.ShouldStop(67108864);
c_principal.__c.getField(false,"DateTime").runMethod(true,"setDateFormat",BA.ObjectToString("MM/dd/yyyy"));
 BA.debugLineNum = 764;BA.debugLine="sDate=DateTime.Date(DateTime.Now)";
Debug.ShouldStop(134217728);
__ref.setField ("_sdate" /*RemoteObject*/ ,c_principal.__c.getField(false,"DateTime").runMethod(true,"Date",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 765;BA.debugLine="sTime=DateTime.Time(DateTime.Now)";
Debug.ShouldStop(268435456);
__ref.setField ("_stime" /*RemoteObject*/ ,c_principal.__c.getField(false,"DateTime").runMethod(true,"Time",(Object)(c_principal.__c.getField(false,"DateTime").runMethod(true,"getNow"))));
 BA.debugLineNum = 766;BA.debugLine="Dim cmd As DBCommand";
Debug.ShouldStop(536870912);
c_principal._cmd = RemoteObject.createNew ("keymon.lat.medicomed.dbrequestmanager._dbcommand");__ref.setField("_cmd",c_principal._cmd);
 BA.debugLineNum = 767;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(1073741824);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 768;BA.debugLine="cmd.Name =\"insert_drop_MEDI_2\"";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("insert_drop_MEDI_2"));
 BA.debugLineNum = 769;BA.debugLine="cmd.Parameters = Array As Object(usuario,l_ruta.";
Debug.ShouldStop(1);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {11},new Object[] {(__ref.getField(true,"_usuario" /*RemoteObject*/ )),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText")),(RemoteObject.concat(__ref.getField(true,"_sdate" /*RemoteObject*/ ),__ref.getField(true,"_stime" /*RemoteObject*/ ))),(__ref.getField(false,"_l_porvisitar" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_l_drop" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_l_efectiva" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_l_cuantosc" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_l_cuantosn" /*RemoteObject*/ ).runMethod(true,"getText")),(__ref.getField(false,"_l_montod" /*RemoteObject*/ ).runMethod(true,"getText")),RemoteObject.createImmutable(("ENVIO")),(__ref.getField(true,"_almacen" /*RemoteObject*/ ))}));
 BA.debugLineNum = 770;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteCommand(cmd";
Debug.ShouldStop(2);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executecommand" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)((RemoteObject.createImmutable("inst_noventa"))));
 BA.debugLineNum = 771;BA.debugLine="img2.Visible =True";
Debug.ShouldStop(4);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"True"));
 BA.debugLineNum = 772;BA.debugLine="PORCENTAJE = Round(100/ (cuantos_noventa + cuant";
Debug.ShouldStop(8);
__ref.setField ("_porcentaje" /*RemoteObject*/ ,BA.NumberToString(c_principal.__c.runMethod(true,"Round",(Object)(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(100),(RemoteObject.solve(new RemoteObject[] {BA.numberCast(double.class, __ref.getField(true,"_cuantos_noventa" /*RemoteObject*/ )),BA.numberCast(double.class, __ref.getField(true,"_cuantos_pedido" /*RemoteObject*/ )),BA.numberCast(double.class, __ref.getField(true,"_cuantos_pedidosc" /*RemoteObject*/ )),RemoteObject.createImmutable(1)}, "+++",3, 0))}, "/",0, 0)))));
 BA.debugLineNum = 773;BA.debugLine="If Starter.marcaCel <> \"Sony\" Then ToastMessageS";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("!",c_principal._starter._marcacel /*RemoteObject*/ ,BA.ObjectToString("Sony"))) { 
c_principal.__c.runVoidMethod ("ToastMessageShow",(Object)(BA.ObjectToCharSequence(RemoteObject.concat(RemoteObject.createImmutable("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias "),__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText")))),(Object)(c_principal.__c.getField(true,"True")));};
 };
 BA.debugLineNum = 775;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _t1_tick(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("t1_tick (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,1845);
if (RapidSub.canDelegate("t1_tick")) { return __ref.runUserSub(false, "c_principal","t1_tick", __ref);}
 BA.debugLineNum = 1845;BA.debugLine="Sub t1_tick";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 1846;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(2097152);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1847;BA.debugLine="cmd.Name = \"select_cuantos_pedido_MEDI\"";
Debug.ShouldStop(4194304);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cuantos_pedido_MEDI"));
 BA.debugLineNum = 1848;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
Debug.ShouldStop(8388608);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"))}));
 BA.debugLineNum = 1849;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(16777216);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("valida_pedido"))));
 BA.debugLineNum = 1851;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(67108864);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1852;BA.debugLine="cmd.Name = \"select_cuantos_noventa_MEDI\"";
Debug.ShouldStop(134217728);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cuantos_noventa_MEDI"));
 BA.debugLineNum = 1853;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
Debug.ShouldStop(268435456);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"))}));
 BA.debugLineNum = 1854;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(536870912);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("valida_noventa"))));
 BA.debugLineNum = 1856;BA.debugLine="cmd.Initialize";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).runVoidMethod ("Initialize");
 BA.debugLineNum = 1857;BA.debugLine="cmd.Name = \"select_cuantos_pedidoc_MEDI\"";
Debug.ShouldStop(1);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Name" /*RemoteObject*/ ,BA.ObjectToString("select_cuantos_pedidoc_MEDI"));
 BA.debugLineNum = 1858;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t";
Debug.ShouldStop(2);
__ref.getField(false,"_cmd" /*RemoteObject*/ ).setField ("Parameters" /*RemoteObject*/ ,RemoteObject.createNewArray("Object",new int[] {2},new Object[] {(__ref.getField(true,"_almacen" /*RemoteObject*/ )),(__ref.getField(false,"_l_ruta" /*RemoteObject*/ ).runMethod(true,"getText"))}));
 BA.debugLineNum = 1859;BA.debugLine="B4XPages.MainPage.reqManager.ExecuteQuery(cmd , 0";
Debug.ShouldStop(4);
c_principal._b4xpages.runMethod(false,"_mainpage" /*RemoteObject*/ ,__ref.getField(false, "ba")).getField(false,"_reqmanager" /*RemoteObject*/ ).runClassMethod (keymon.lat.medicomed.dbrequestmanager.class, "_executequery" /*RemoteObject*/ ,(Object)(__ref.getField(false,"_cmd" /*RemoteObject*/ )),(Object)(BA.numberCast(int.class, 0)),(Object)((RemoteObject.createImmutable("valida_pedidoc"))));
 BA.debugLineNum = 1861;BA.debugLine="If PB2.Progress = 0 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean("=",__ref.getField(false,"_pb2" /*RemoteObject*/ ).runMethod(true,"getProgress"),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1862;BA.debugLine="S_CP.Text = \"ENVIAR DATOS (K-1)\"";
Debug.ShouldStop(32);
__ref.getField(false,"_s_cp" /*RemoteObject*/ ).runMethod(true,"setText",BA.ObjectToCharSequence("ENVIAR DATOS (K-1)"));
 };
 BA.debugLineNum = 1864;BA.debugLine="img2.Visible=False";
Debug.ShouldStop(128);
__ref.getField(false,"_img2" /*RemoteObject*/ ).runMethod(true,"setVisible",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1865;BA.debugLine="t1.Enabled = False";
Debug.ShouldStop(256);
__ref.getField(false,"_t1" /*RemoteObject*/ ).runMethod(true,"setEnabled",c_principal.__c.getField(true,"False"));
 BA.debugLineNum = 1866;BA.debugLine="End Sub";
Debug.ShouldStop(512);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _tickets_dia_click(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("tickets_dia_Click (c_principal) ","c_principal",3,__ref.getField(false, "ba"),__ref,2153);
if (RapidSub.canDelegate("tickets_dia_click")) { return __ref.runUserSub(false, "c_principal","tickets_dia_click", __ref);}
 BA.debugLineNum = 2153;BA.debugLine="Sub tickets_dia_Click";
Debug.ShouldStop(256);
 BA.debugLineNum = 2154;BA.debugLine="B4XPages.ShowPage(\"TicketsDia\")";
Debug.ShouldStop(512);
c_principal._b4xpages.runVoidMethod ("_showpage" /*RemoteObject*/ ,__ref.getField(false, "ba"),(Object)(RemoteObject.createImmutable("TicketsDia")));
 BA.debugLineNum = 2155;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}