Esempio n. 1
0
 public override void RenderHtmlOpenForm( )
 {
     if (context.isSpaRequest( ))
     {
         enableOutput();
     }
     context.WriteHtmlText("<title>");
     context.SendWebValue(Form.Caption);
     context.WriteHtmlTextNl("</title>");
     if (context.isSpaRequest( ))
     {
         disableOutput();
     }
     if (StringUtil.Len(sDynURL) > 0)
     {
         context.WriteHtmlText("<BASE href=\"" + sDynURL + "\" />");
     }
     define_styles( );
     if (nGXWrapped != 1)
     {
         MasterPageObj.master_styles();
     }
     context.AddJavascriptSource("jquery.js", "?" + context.GetBuildNumber(86442));
     context.AddJavascriptSource("gxtimezone.js", "?" + context.GetBuildNumber(86442));
     context.AddJavascriptSource("gxgral.js", "?" + context.GetBuildNumber(86442));
     context.AddJavascriptSource("gxcfg.js", "?20151207382244");
     if (context.isSpaRequest( ))
     {
         enableOutput();
     }
     context.AddJavascriptSource("Shared/HistoryManager/HistoryManager.js", "");
     context.AddJavascriptSource("Shared/HistoryManager/rsh/json2005.js", "");
     context.AddJavascriptSource("Shared/HistoryManager/rsh/rsh.js", "");
     context.AddJavascriptSource("Shared/HistoryManager/HistoryManagerCreate.js", "");
     context.AddJavascriptSource("Tab/TabRender.js", "");
     context.WriteHtmlText(Form.Headerrawhtml);
     context.CloseHtmlHeader();
     if (context.isSpaRequest( ))
     {
         disableOutput();
     }
     FormProcess = " onkeyup=\"gx.evt.onkeyup(event)\" onkeypress=\"gx.evt.onkeypress(event,false,false)\" onkeydown=\"gx.evt.onkeypress(null,false,false)\"";
     context.WriteHtmlText("<body");
     context.WriteHtmlText(" " + "class=\"form-horizontal Form\"" + " " + " style=\"-moz-opacity:0;opacity:0;" + "background-color:" + context.BuildHTMLColor(Form.Backcolor) + ";");
     if (!(String.IsNullOrEmpty(StringUtil.RTrim(Form.Background))))
     {
         context.WriteHtmlText(" background-image:url(" + context.convertURL(Form.Background) + ")");
     }
     context.WriteHtmlText("\"" + FormProcess + ">");
     context.skipLines(1);
     context.WriteHtmlTextNl("<form id=\"MAINFORM\" name=\"MAINFORM\" method=\"post\" class=\"form-horizontal Form\" novalidate action=\"" + formatLink("viewtarifasgranelessecos.aspx") + "?" + UrlEncode("" + AV13TarifasGranelesSecosCodPeaje) + "," + UrlEncode(StringUtil.RTrim(AV7TabCode)) + "\">");
     GxWebStd.gx_hidden_field(context, "_EventName", "");
     GxWebStd.gx_hidden_field(context, "_EventGridId", "");
     GxWebStd.gx_hidden_field(context, "_EventRowId", "");
     toggleJsOutput = isJsOutputEnabled( );
     if (context.isSpaRequest( ))
     {
         disableJsOutput();
     }
 }
Esempio n. 2
0
 public override void webExecute( )
 {
     if (initialized == 0)
     {
         createObjects();
         initialize();
     }
     INITWEB( );
     if (!isAjaxCallMode( ))
     {
         MasterPageObj = (GXMasterPage)ClassLoader.GetInstance("appmasterpage", "GeneXus.Programs.appmasterpage", new Object[] { new GxContext(context.handle, context.DataStores, context.HttpContext) });
         MasterPageObj.setDataArea(this, false);
         MasterPageObj.webExecute();
         if (context.isAjaxRequest( ))
         {
             enableOutput();
             if (!context.isAjaxRequest( ))
             {
                 context.GX_webresponse.AppendHeader("Cache-Control", "max-age=0");
             }
             if (String.IsNullOrEmpty(StringUtil.RTrim(context.wjLoc)))
             {
                 context.GX_webresponse.AddString((String)(context.getJSONResponse( )));
             }
             else
             {
                 context.Redirect(context.wjLoc);
                 context.DispatchAjaxCommands();
             }
         }
     }
     this.cleanup();
 }
Esempio n. 3
0
 public override void RenderHtmlOpenForm( )
 {
     if (context.isSpaRequest( ))
     {
         enableOutput();
     }
     context.WriteHtmlText("<title>");
     context.SendWebValue(Form.Caption);
     context.WriteHtmlTextNl("</title>");
     if (context.isSpaRequest( ))
     {
         disableOutput();
     }
     if (StringUtil.Len(sDynURL) > 0)
     {
         context.WriteHtmlText("<BASE href=\"" + sDynURL + "\" />");
     }
     define_styles( );
     if (nGXWrapped != 1)
     {
         MasterPageObj.master_styles();
     }
     context.AddJavascriptSource("jquery.js", "?" + context.GetBuildNumber(86442));
     context.AddJavascriptSource("gxtimezone.js", "?" + context.GetBuildNumber(86442));
     context.AddJavascriptSource("gxgral.js", "?" + context.GetBuildNumber(86442));
     context.AddJavascriptSource("gxcfg.js", "?20151261115643");
     if (context.isSpaRequest( ))
     {
         enableOutput();
     }
     context.AddJavascriptSource("Shared/jquery/jquery-1.7.min.js", "");
     context.AddJavascriptSource("BootstrapAlert/bootstrap/js/bootstrap.js", "");
     context.AddJavascriptSource("BootstrapAlert/BootstrapAlertRender.js", "");
     context.WriteHtmlText(Form.Headerrawhtml);
     context.CloseHtmlHeader();
     if (context.isSpaRequest( ))
     {
         disableOutput();
     }
     FormProcess = " onkeyup=\"gx.evt.onkeyup(event)\" onkeypress=\"gx.evt.onkeypress(event,false,false)\" onkeydown=\"gx.evt.onkeypress(null,false,false)\"";
     context.WriteHtmlText("<body");
     context.WriteHtmlText(" " + "class=\"Form\"" + " " + " style=\"-moz-opacity:0;opacity:0;" + "background-color:" + context.BuildHTMLColor(Form.Backcolor) + ";");
     if (!(String.IsNullOrEmpty(StringUtil.RTrim(Form.Background))))
     {
         context.WriteHtmlText(" background-image:url(" + context.convertURL(Form.Background) + ")");
     }
     context.WriteHtmlText("\"" + FormProcess + ">");
     context.skipLines(1);
     context.WriteHtmlTextNl("<form id=\"MAINFORM\" name=\"MAINFORM\" method=\"post\" class=\"Form\" novalidate action=\"" + formatLink("bootstrapalertsample.aspx") + "\">");
     GxWebStd.gx_hidden_field(context, "_EventName", "");
     GxWebStd.gx_hidden_field(context, "_EventGridId", "");
     GxWebStd.gx_hidden_field(context, "_EventRowId", "");
     toggleJsOutput = isJsOutputEnabled( );
     if (context.isSpaRequest( ))
     {
         disableJsOutput();
     }
 }
Esempio n. 4
0
 public override void RenderHtmlOpenForm( )
 {
     context.WriteHtmlText("<title>");
     context.WriteHtmlText(Form.Caption);
     context.WriteHtmlTextNl("</title>");
     if (StringUtil.Len(sDynURL) > 0)
     {
         context.WriteHtmlText("<BASE href=\"" + sDynURL + "\" />");
     }
     define_styles( );
     if (nGXWrapped != 1)
     {
         MasterPageObj.master_styles();
     }
     if (!context.isSmartDevice( ))
     {
         context.AddJavascriptSource("gxgral.js", "?46473");
         context.AddJavascriptSource("gxcfg.js", "?46473");
     }
     else
     {
         context.AddJavascriptSource("gxapiSD.js", "?46473");
         context.AddJavascriptSource("gxfxSD.js", "?46473");
         context.AddJavascriptSource("gxtypesSD.js", "?46473");
         context.AddJavascriptSource("gxpopupSD.js", "?46473");
         context.AddJavascriptSource("gxfrmutlSD.js", "?46473");
         context.AddJavascriptSource("gxgridSD.js", "?46473");
         context.AddJavascriptSource("JavaScripTableSD.js", "?46473");
         context.AddJavascriptSource("rijndaelSD.js", "?46473");
         context.AddJavascriptSource("gxgralSD.js", "?46473");
         context.AddJavascriptSource("gxcfg.js", "?46473");
     }
     context.WriteHtmlText(Form.Headerrawhtml);
     context.CloseHtmlHeader();
     FormProcess = ((nGXWrapped == 0) ? " onkeyup=\"gx.evt.onkeyup(event)\" onkeypress=\"gx.evt.onkeypress(event,false,false)\" onkeydown=\"gx.evt.onkeypress(null,false,false)\"" : "");
     context.WriteHtmlText("<body");
     if (!(String.IsNullOrEmpty(StringUtil.RTrim(Form.Background))))
     {
         context.WriteHtmlText(" background=\"" + context.convertURL(Form.Background) + "\"");
     }
     context.WriteHtmlText(" " + "class=\"Form\"" + " " + " style=\"-moz-opacity:0;opacity:0;" + "background-color:" + context.BuildHTMLColor(Form.Backcolor) + "\"" + FormProcess + ">");
     context.skipLines(1);
     if (nGXWrapped != 1)
     {
         context.WriteHtmlTextNl("<form id=\"MAINFORM\" onsubmit=\"try{return gx.csv.validForm()}catch(e){return true;}\" name=\"MAINFORM\" method=\"post\" action=\"" + formatLink("clientesenrango.aspx") + "\" class=\"" + "Form" + "\">");
         GxWebStd.gx_hidden_field(context, "_EventName", "");
         GxWebStd.gx_hidden_field(context, "_EventGridId", "");
         GxWebStd.gx_hidden_field(context, "_EventRowId", "");
     }
 }
Esempio n. 5
0
 public override void webExecute( )
 {
    if ( initialized == 0 )
    {
       createObjects();
       initialize();
    }
    INITWEB( ) ;
    if ( ! isAjaxCallMode( ) )
    {
       MasterPageObj = (GXMasterPage) ClassLoader.GetInstance("wwpbaseobjects.workwithplusmasterpage", "GeneXus.Programs.wwpbaseobjects.workwithplusmasterpage", new Object[] {new GxContext( context.handle, context.DataStores, context.HttpContext)});
       MasterPageObj.setDataArea(this,false);
       ValidateSpaRequest();
       MasterPageObj.webExecute();
       if ( ( GxWebError == 0 ) && context.isAjaxRequest( ) )
       {
          enableOutput();
          if ( ! context.isAjaxRequest( ) )
          {
             context.GX_webresponse.AppendHeader("Cache-Control", "no-store");
          }
          if ( ! context.WillRedirect( ) )
          {
             context.GX_webresponse.AddString((String)(context.getJSONResponse( )));
          }
          else
          {
             if ( context.isAjaxRequest( ) )
             {
                disableOutput();
             }
             RenderHtmlHeaders( ) ;
             context.Redirect( context.wjLoc );
             context.DispatchAjaxCommands();
          }
       }
    }
    this.cleanup();
 }
Esempio n. 6
0
 public override void RenderHtmlOpenForm( )
 {
    if ( context.isSpaRequest( ) )
    {
       enableOutput();
    }
    context.WriteHtmlText( "<title>") ;
    context.SendWebValue( Form.Caption) ;
    context.WriteHtmlTextNl( "</title>") ;
    if ( context.isSpaRequest( ) )
    {
       disableOutput();
    }
    if ( StringUtil.Len( sDynURL) > 0 )
    {
       context.WriteHtmlText( "<BASE href=\""+sDynURL+"\" />") ;
    }
    define_styles( ) ;
    if ( nGXWrapped != 1 )
    {
       MasterPageObj.master_styles();
    }
    if ( ( ( context.GetBrowserType( ) == 1 ) || ( context.GetBrowserType( ) == 5 ) ) && ( StringUtil.StrCmp(context.GetBrowserVersion( ), "7.0") == 0 ) )
    {
       context.AddJavascriptSource("json2.js", "?"+context.GetBuildNumber( 127771), false);
    }
    context.AddJavascriptSource("jquery.js", "?"+context.GetBuildNumber( 127771), false);
    context.AddJavascriptSource("gxtimezone.js", "?"+context.GetBuildNumber( 127771), false);
    context.AddJavascriptSource("gxgral.js", "?"+context.GetBuildNumber( 127771), false);
    context.AddJavascriptSource("gxcfg.js", "?2020227939763", false);
    if ( context.isSpaRequest( ) )
    {
       enableOutput();
    }
    context.WriteHtmlText( Form.Headerrawhtml) ;
    context.CloseHtmlHeader();
    if ( context.isSpaRequest( ) )
    {
       disableOutput();
    }
    FormProcess = " data-HasEnter=\"true\" data-Skiponenter=\"false\"";
    context.WriteHtmlText( "<body ") ;
    bodyStyle = "" + "background-color:" + context.BuildHTMLColor( Form.Backcolor) + ";color:" + context.BuildHTMLColor( Form.Textcolor) + ";";
    if ( nGXWrapped == 0 )
    {
       bodyStyle = bodyStyle + "-moz-opacity:0;opacity:0;";
    }
    if ( ! ( String.IsNullOrEmpty(StringUtil.RTrim( Form.Background)) ) )
    {
       bodyStyle = bodyStyle + " background-image:url(" + context.convertURL( Form.Background) + ")";
    }
    context.WriteHtmlText( " "+"class=\"FormNoBackgroundColor\""+" "+ "style='"+bodyStyle+"'") ;
    context.WriteHtmlText( FormProcess+">") ;
    context.skipLines(1);
    context.WriteHtmlTextNl( "<form id=\"MAINFORM\" autocomplete=\"off\" name=\"MAINFORM\" method=\"post\" tabindex=-1  class=\"FormNoBackgroundColor\" data-gx-class=\"FormNoBackgroundColor\" novalidate action=\""+formatLink("wwpbaseobjects.savefilteras.aspx") + "?" + UrlEncode(StringUtil.RTrim(AV15UserKey)) + "," + UrlEncode(StringUtil.RTrim(AV5GridStateKey))+"\">") ;
    GxWebStd.gx_hidden_field( context, "_EventName", "");
    GxWebStd.gx_hidden_field( context, "_EventGridId", "");
    GxWebStd.gx_hidden_field( context, "_EventRowId", "");
    context.WriteHtmlText( "<input type=\"submit\" title=\"submit\" style=\"display:none\" disabled>") ;
    context.httpAjaxContext.ajax_rsp_assign_prop("", false, "FORM", "Class", "FormNoBackgroundColor", true);
    toggleJsOutput = isJsOutputEnabled( );
    if ( context.isSpaRequest( ) )
    {
       disableJsOutput();
    }
 }