Exemplo n.º 1
0
 protected void RF1M2( )
 {
     /* GeneXus formulas. */
     context.Gx_err = 0;
     if (String.IsNullOrEmpty(StringUtil.RTrim(context.wjLoc)) && (context.nUserReturn != 1))
     {
         if (StringUtil.StrCmp(WebComp_Component1_Component, "") == 0)
         {
             WebComp_Component1 = getWebComponent(GetType(), "GeneXus.Programs", "wcnota", new Object[] { context });
             WebComp_Component1.ComponentInit();
             WebComp_Component1.Name      = "WCNota";
             WebComp_Component1_Component = "WCNota";
         }
         WebComp_Component1.setjustcreated();
         WebComp_Component1.componentprepare(new Object[] { (String)sPrefix + "W0023", (String)"" });
         WebComp_Component1.componentbind(new Object[] {});
         if (isFullAjaxMode( ))
         {
             context.httpAjaxContext.ajax_rspStartCmp(sPrefix + "gxHTMLWrpW0023" + "");
             WebComp_Component1.componentdraw();
             context.httpAjaxContext.ajax_rspEndCmp();
         }
         if (1 != 0)
         {
             WebComp_Component1.componentstart();
         }
     }
     if (String.IsNullOrEmpty(StringUtil.RTrim(context.wjLoc)) && (context.nUserReturn != 1))
     {
         /* Execute user event: E121M2 */
         E121M2();
         WB1M0( );
     }
 }
Exemplo n.º 2
0
 public override void componentjscripts( )
 {
     include_jscripts( );
     if (!(WebComp_Component1 == null))
     {
         WebComp_Component1.componentjscripts();
     }
 }
Exemplo n.º 3
0
 protected void RenderHtmlCloseForm1M2( )
 {
     /* Send hidden variables. */
     /* Send saved values. */
     if ((StringUtil.Len(sPrefix) != 0) && context.isAjaxRequest( ))
     {
         context.AddJavascriptSource("wcportavehiculosrorows.js", "?201512611145432");
     }
     GxWebStd.gx_hidden_field(context, sPrefix + "GX_FocusControl", GX_FocusControl);
     define_styles( );
     SendSecurityToken(sPrefix);
     if (StringUtil.Len(sPrefix) == 0)
     {
         SendAjaxEncryptionKey();
         SendComponentObjects();
         SendServerCommands();
         SendState();
         if (context.isSpaRequest( ))
         {
             disableOutput();
         }
         context.WriteHtmlTextNl("</form>");
         if (context.isSpaRequest( ))
         {
             enableOutput();
         }
         include_jscripts( );
         if (!(WebComp_Component1 == null))
         {
             WebComp_Component1.componentjscripts();
         }
         context.WriteHtmlTextNl("</body>");
         context.WriteHtmlTextNl("</html>");
         if (context.isSpaRequest( ))
         {
             enableOutput();
         }
     }
     else
     {
         context.WriteHtmlText("</div>");
         if (toggleJsOutput)
         {
             if (context.isSpaRequest( ))
             {
                 enableJsOutput();
             }
         }
     }
 }
Exemplo n.º 4
0
 protected void define_styles( )
 {
     AddThemeStyleSheetFile("", context.GetTheme( ) + ".css", "?11145295");
     if (StringUtil.StrCmp(WebComp_Component1_Component, "") == 0)
     {
         WebComp_Component1 = getWebComponent(GetType(), "GeneXus.Programs", "wcnota", new Object[] { context });
         WebComp_Component1.ComponentInit();
         WebComp_Component1.Name      = "WCNota";
         WebComp_Component1_Component = "WCNota";
     }
     if (!(WebComp_Component1 == null))
     {
         WebComp_Component1.componentthemes();
     }
     idxLst = 1;
     while (idxLst <= Form.Jscriptsrc.Count)
     {
         context.AddJavascriptSource(StringUtil.RTrim(((String)Form.Jscriptsrc.Item(idxLst))), "?201512611145441");
         idxLst = (int)(idxLst + 1);
     }
     /* End function define_styles */
 }
Exemplo n.º 5
0
 protected void EVT1M2( )
 {
     sXEvt = cgiGet("_EventName");
     if ((((StringUtil.Len(sPrefix) == 0)) || (StringUtil.StringSearch(sXEvt, sPrefix, 1) > 0)) && !GetJustCreated( ) && (StringUtil.StrCmp(context.GetRequestMethod( ), "POST") == 0))
     {
         if (String.IsNullOrEmpty(StringUtil.RTrim(context.wjLoc)) && (context.nUserReturn != 1) && !wbErr)
         {
             /* Read Web Panel buttons. */
             if (context.wbHandled == 0)
             {
                 if (StringUtil.Len(sPrefix) == 0)
                 {
                     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, "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)
                             {
                                 if ((StringUtil.Len(sPrefix) != 0) && (nDoneStart == 0))
                                 {
                                     STRUP1M0( );
                                 }
                                 if (String.IsNullOrEmpty(StringUtil.RTrim(context.wjLoc)) && (context.nUserReturn != 1))
                                 {
                                     context.wbHandled = 1;
                                     if (!wbErr)
                                     {
                                         dynload_actions( );
                                     }
                                 }
                             }
                             else if (StringUtil.StrCmp(sEvt, "'CALCULAR'") == 0)
                             {
                                 if ((StringUtil.Len(sPrefix) != 0) && (nDoneStart == 0))
                                 {
                                     STRUP1M0( );
                                 }
                                 if (String.IsNullOrEmpty(StringUtil.RTrim(context.wjLoc)) && (context.nUserReturn != 1))
                                 {
                                     context.wbHandled = 1;
                                     if (!wbErr)
                                     {
                                         dynload_actions( );
                                         /* Execute user event: E111M2 */
                                         E111M2();
                                     }
                                 }
                             }
                             else if (StringUtil.StrCmp(sEvt, "LOAD") == 0)
                             {
                                 if ((StringUtil.Len(sPrefix) != 0) && (nDoneStart == 0))
                                 {
                                     STRUP1M0( );
                                 }
                                 if (String.IsNullOrEmpty(StringUtil.RTrim(context.wjLoc)) && (context.nUserReturn != 1))
                                 {
                                     context.wbHandled = 1;
                                     if (!wbErr)
                                     {
                                         dynload_actions( );
                                         /* Execute user event: E121M2 */
                                         E121M2();
                                     }
                                 }
                             }
                             else if (StringUtil.StrCmp(sEvt, "ENTER") == 0)
                             {
                                 if ((StringUtil.Len(sPrefix) != 0) && (nDoneStart == 0))
                                 {
                                     STRUP1M0( );
                                 }
                                 if (String.IsNullOrEmpty(StringUtil.RTrim(context.wjLoc)) && (context.nUserReturn != 1))
                                 {
                                     context.wbHandled = 1;
                                     if (!wbErr)
                                     {
                                         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)
                             {
                                 if ((StringUtil.Len(sPrefix) != 0) && (nDoneStart == 0))
                                 {
                                     STRUP1M0( );
                                 }
                                 if (String.IsNullOrEmpty(StringUtil.RTrim(context.wjLoc)) && (context.nUserReturn != 1))
                                 {
                                     context.wbHandled = 1;
                                     if (!wbErr)
                                     {
                                         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 == 23)
                         {
                             WebComp_Component1 = getWebComponent(GetType(), "GeneXus.Programs", "wcnota", new Object[] { context });
                             WebComp_Component1.ComponentInit();
                             WebComp_Component1.Name      = "WCNota";
                             WebComp_Component1_Component = "WCNota";
                             WebComp_Component1.componentprocess(sPrefix + "W0023", "", sEvt);
                         }
                     }
                     context.wbHandled = 1;
                 }
             }
         }
     }
 }
Exemplo n.º 6
0
 protected void WB1M0( )
 {
     if (context.isAjaxRequest( ))
     {
         disableOutput();
     }
     if (!wbLoad)
     {
         if (StringUtil.Len(sPrefix) == 0)
         {
             RenderHtmlHeaders( );
         }
         RenderHtmlOpenForm( );
         if (StringUtil.Len(sPrefix) != 0)
         {
             GxWebStd.gx_hidden_field(context, sPrefix + "_CMPPGM", "wcportavehiculosrorows.aspx");
         }
         GxWebStd.gx_msg_list(context, "", context.GX_msglist.DisplayMode, "", "", sPrefix, "false");
         /* Div Control */
         GxWebStd.gx_div_start(context, "", 1, 0, "px", 0, "px", "Section", " " + "data-abstract-form" + " ");
         /* Div Control */
         GxWebStd.gx_div_start(context, divMaintable_Internalname, 1, 0, "px", 0, "px", "Table", "");
         /* Div Control */
         GxWebStd.gx_div_start(context, "", 1, 0, "px", 0, "px", "row", "");
         /* Div Control */
         GxWebStd.gx_div_start(context, "", 1, 0, "px", 0, "px", "col-xs-12", " " + "id" + " ");
         /* Control Group */
         GxWebStd.gx_group_start(context, grpGroup1_Internalname, context.GetMessage("Porta Vehículos y Ro-Ro", ""), 1, 0, "px", 0, "px", "Group", "", "HLP_WCPortavehiculosROROWS.htm");
         /* Div Control */
         GxWebStd.gx_div_start(context, divGroup1table_Internalname, 1, 0, "px", 0, "px", "Table", "");
         /* Div Control */
         GxWebStd.gx_div_start(context, "", 1, 0, "px", 0, "px", "row", "");
         /* Div Control */
         GxWebStd.gx_div_start(context, "", 1, 0, "px", 0, "px", "col-xs-12", " " + "id" + " ");
         /* Div Control */
         GxWebStd.gx_div_start(context, divGridtable_Internalname, 1, 0, "px", 0, "px", "Table", "");
         /* Div Control */
         GxWebStd.gx_div_start(context, "", 1, 0, "px", 0, "px", "row", "");
         /* Div Control */
         GxWebStd.gx_div_start(context, "", 1, 0, "px", 0, "px", "col-xs-12 col-sm-6 col-md-5 col-lg-4", " " + "id" + " ");
         TempTags    = "  onfocus=\"gx.evt.onfocus(this, 13,'" + sPrefix + "',false,'',0)\"";
         ClassString = "BtnEnter";
         StyleString = "";
         GxWebStd.gx_button_ctrl(context, bttCalcular_Internalname, "", context.GetMessage("Calcular", ""), bttCalcular_Jsonclick, 5, context.GetMessage("Calcular", ""), "", StyleString, ClassString, 1, 1, "standard", "'" + sPrefix + "'" + ",false," + "'" + sPrefix + "E\\'CALCULAR\\'." + "'", TempTags, "", context.GetButtonType( ), "HLP_WCPortavehiculosROROWS.htm");
         context.WriteHtmlText("</div>");
         context.WriteHtmlText("</div>");
         context.WriteHtmlText("</div>");
         context.WriteHtmlText("</div>");
         context.WriteHtmlText("</div>");
         context.WriteHtmlText("</div>");
         context.WriteHtmlText("</fieldset>");
         context.WriteHtmlText("</div>");
         context.WriteHtmlText("</div>");
         /* Div Control */
         GxWebStd.gx_div_start(context, "", 1, 0, "px", 0, "px", "row", "");
         /* Div Control */
         GxWebStd.gx_div_start(context, "", 1, 0, "px", 0, "px", "col-xs-12", " " + "id" + " ");
         /* Control Group */
         GxWebStd.gx_group_start(context, grpGroup2_Internalname, context.GetMessage("Resultados en USD", ""), 1, 0, "px", 0, "px", "Group", "", "HLP_WCPortavehiculosROROWS.htm");
         /* Div Control */
         GxWebStd.gx_div_start(context, divGroup2table_Internalname, 1, 0, "px", 0, "px", "Table", "");
         /* Div Control */
         GxWebStd.gx_div_start(context, "", 1, 0, "px", 0, "px", "row", "");
         /* Div Control */
         GxWebStd.gx_div_start(context, "", 1, 0, "px", 0, "px", "col-xs-12", " " + "id" + " ");
         /* Text block */
         GxWebStd.gx_label_ctrl(context, lblResultadotexto_Internalname, lblResultadotexto_Caption, "", "", lblResultadotexto_Jsonclick, "'" + sPrefix + "'" + ",false," + "'" + "" + "'", "", "Resultado", 0, "", 1, 1, 0, "HLP_WCPortavehiculosROROWS.htm");
         context.WriteHtmlText("</div>");
         context.WriteHtmlText("</div>");
         context.WriteHtmlText("</div>");
         context.WriteHtmlText("</fieldset>");
         context.WriteHtmlText("</div>");
         context.WriteHtmlText("</div>");
         /* Div Control */
         GxWebStd.gx_div_start(context, "", 1, 0, "px", 0, "px", "row", "");
         /* Div Control */
         GxWebStd.gx_div_start(context, "", 1, 0, "px", 0, "px", "col-xs-12", " " + "id" + " ");
         if (!isFullAjaxMode( ))
         {
             /* WebComponent */
             context.WriteHtmlText("<div");
             GxWebStd.ClassAttribute(context, "gxwebcomponent");
             context.WriteHtmlText(" id=\"" + sPrefix + "gxHTMLWrpW0023" + "" + "\"" + "");
             context.WriteHtmlText(">");
             if (!context.isAjaxRequest( ))
             {
                 context.httpAjaxContext.ajax_rspStartCmp(sPrefix + "gxHTMLWrpW0023" + "");
             }
             WebComp_Component1.componentdraw();
             if (!context.isAjaxRequest( ))
             {
                 context.httpAjaxContext.ajax_rspEndCmp();
             }
             context.WriteHtmlText("</div>");
         }
         context.WriteHtmlText("</div>");
         context.WriteHtmlText("</div>");
         context.WriteHtmlText("</div>");
         context.WriteHtmlText("</div>");
     }
     wbLoad = true;
 }