protected void S112( ) { /* 'LOAD TAB' Routine */ if (AV12LoadAllTabs || (StringUtil.StrCmp(AV8SelectedTabCode, "") == 0) || (StringUtil.StrCmp(AV8SelectedTabCode, context.GetMessage("General", "")) == 0)) { /* Object Property */ if (StringUtil.StrCmp(StringUtil.Lower(WebComp_Generalwc_Component), StringUtil.Lower("TarifasGranelesSecosGeneral")) != 0) { WebComp_Generalwc = getWebComponent(GetType(), "GeneXus.Programs", "tarifasgranelessecosgeneral", new Object[] { context }); WebComp_Generalwc.ComponentInit(); WebComp_Generalwc.Name = "TarifasGranelesSecosGeneral"; WebComp_Generalwc_Component = "TarifasGranelesSecosGeneral"; } if (StringUtil.Len(WebComp_Generalwc_Component) != 0) { WebComp_Generalwc.setjustcreated(); WebComp_Generalwc.componentprepare(new Object[] { (String)"W0019", (String)"", (long)AV13TarifasGranelesSecosCodPeaje }); WebComp_Generalwc.componentbind(new Object[] { (String)"" }); } if (isFullAjaxMode( )) { context.httpAjaxContext.ajax_rspStartCmp("gxHTMLWrpW0019" + ""); WebComp_Generalwc.componentdraw(); context.httpAjaxContext.ajax_rspEndCmp(); } } }
protected void S112( ) { /* 'LOADTABS' Routine */ divCell_general_Visible = 1; context.httpAjaxContext.ajax_rsp_assign_prop("", false, divCell_general_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(divCell_general_Visible), 5, 0)), true); if ( AV11LoadAllTabs || ( StringUtil.StrCmp(AV12SelectedTabCode, "") == 0 ) || ( StringUtil.StrCmp(AV12SelectedTabCode, "General") == 0 ) ) { /* Object Property */ if ( StringUtil.StrCmp(StringUtil.Lower( WebComp_Generalwc_Component), StringUtil.Lower( "BR_DemographicsGeneral")) != 0 ) { WebComp_Generalwc = getWebComponent(GetType(), "GeneXus.Programs", "br_demographicsgeneral", new Object[] {context} ); WebComp_Generalwc.ComponentInit(); WebComp_Generalwc.Name = "BR_DemographicsGeneral"; WebComp_Generalwc_Component = "BR_DemographicsGeneral"; } if ( StringUtil.Len( WebComp_Generalwc_Component) != 0 ) { WebComp_Generalwc.setjustcreated(); WebComp_Generalwc.componentprepare(new Object[] {(String)"W0026",(String)"",(long)AV10BR_Demographics_ID}); WebComp_Generalwc.componentbind(new Object[] {(String)""}); } if ( isFullAjaxMode( ) ) { context.httpAjaxContext.ajax_rspStartCmp("gxHTMLWrpW0026"+""); WebComp_Generalwc.componentdraw(); context.httpAjaxContext.ajax_rspEndCmp(); } lblTxttabtitle_Caption = "General"; context.httpAjaxContext.ajax_rsp_assign_prop("", false, lblTxttabtitle_Internalname, "Caption", lblTxttabtitle_Caption, true); if ( ( StringUtil.StrCmp(AV12SelectedTabCode, "") == 0 ) || ( StringUtil.StrCmp(AV12SelectedTabCode, "General") == 0 ) ) { divCell_general_Visible = 0; context.httpAjaxContext.ajax_rsp_assign_prop("", false, divCell_general_Internalname, "Visible", StringUtil.LTrim( StringUtil.Str( (decimal)(divCell_general_Visible), 5, 0)), true); } } }
protected void EVT1G2( ) { if (StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0) { if (String.IsNullOrEmpty(StringUtil.RTrim(context.wjLoc)) && (context.nUserReturn != 1) && !wbErr) { /* Read Web Panel buttons. */ sEvt = cgiGet("_EventName"); EvtGridId = cgiGet("_EventGridId"); EvtRowId = cgiGet("_EventRowId"); if (StringUtil.Len(sEvt) > 0) { sEvtType = StringUtil.Left(sEvt, 1); sEvt = StringUtil.Right(sEvt, (short)(StringUtil.Len(sEvt) - 1)); if (StringUtil.StrCmp(sEvtType, "M") != 0) { if (StringUtil.StrCmp(sEvtType, "E") == 0) { sEvtType = StringUtil.Right(sEvt, 1); if (StringUtil.StrCmp(sEvtType, ".") == 0) { sEvt = StringUtil.Left(sEvt, (short)(StringUtil.Len(sEvt) - 1)); if (StringUtil.StrCmp(sEvt, "RFR") == 0) { context.wbHandled = 1; dynload_actions( ); } else if (StringUtil.StrCmp(sEvt, "START") == 0) { context.wbHandled = 1; dynload_actions( ); /* Execute user event: E111G2 */ E111G2(); } else if (StringUtil.StrCmp(sEvt, "LOAD") == 0) { context.wbHandled = 1; dynload_actions( ); /* Execute user event: E121G2 */ E121G2(); } else if (StringUtil.StrCmp(sEvt, "ENTER") == 0) { context.wbHandled = 1; if (!wbErr) { Rfr0gs = false; if (!Rfr0gs) { } dynload_actions( ); } /* No code required for Cancel button. It is implemented as the Reset button. */ } else if (StringUtil.StrCmp(sEvt, "LSCR") == 0) { context.wbHandled = 1; dynload_actions( ); dynload_actions( ); } } else { } } else if (StringUtil.StrCmp(sEvtType, "W") == 0) { sEvtType = StringUtil.Left(sEvt, 4); sEvt = StringUtil.Right(sEvt, (short)(StringUtil.Len(sEvt) - 4)); nCmpId = (short)(NumberUtil.Val(sEvtType, ".")); if (nCmpId == 19) { OldGeneralwc = cgiGet("W0019"); if ((StringUtil.Len(OldGeneralwc) == 0) || (StringUtil.StrCmp(OldGeneralwc, WebComp_Generalwc_Component) != 0)) { WebComp_Generalwc = getWebComponent(GetType(), "GeneXus.Programs", OldGeneralwc, new Object[] { context }); WebComp_Generalwc.ComponentInit(); WebComp_Generalwc.Name = "OldGeneralwc"; WebComp_Generalwc_Component = OldGeneralwc; } if (StringUtil.Len(WebComp_Generalwc_Component) != 0) { WebComp_Generalwc.componentprocess("W0019", "", sEvt); } WebComp_Generalwc_Component = OldGeneralwc; } } context.wbHandled = 1; } } } } }