Beispiel #1
0
 protected void RF0H2( )
 {
     /* GeneXus formulas. */
     context.Gx_err = 0;
     Grid1Container.AddObjectProperty("GridName", "Grid1");
     Grid1Container.AddObjectProperty("CmpContext", "");
     Grid1Container.AddObjectProperty("InMasterPage", "false");
     wbStart      = 5;
     nGXsfl_5_idx = 1;
     sGXsfl_5_idx = StringUtil.PadL(StringUtil.LTrim(StringUtil.Str((decimal)(nGXsfl_5_idx), 4, 0)), 4, "0");
     edtavMenuitem_Internalname = "vMENUITEM_" + sGXsfl_5_idx;
     nGXsfl_5_Refreshing        = 1;
     Grid1Container.PageSize    = subGrid1_Recordsperpage( );
     if (String.IsNullOrEmpty(StringUtil.RTrim(context.wjLoc)) && (context.nUserReturn != 1))
     {
         sGXsfl_5_idx = StringUtil.PadL(StringUtil.LTrim(StringUtil.Str((decimal)(nGXsfl_5_idx), 4, 0)), 4, "0");
         edtavMenuitem_Internalname = "vMENUITEM_" + sGXsfl_5_idx;
         /* Execute user event: E110H2 */
         E110H2();
         wbEnd = 5;
         WB0H0( );
     }
     nGXsfl_5_Refreshing = 0;
 }
Beispiel #2
0
 protected void wb_table1_2_0H2(bool wbgen)
 {
     if (wbgen)
     {
         /* Table start */
         sStyleString = "";
         sStyleString = sStyleString + " height: " + StringUtil.LTrim(StringUtil.Str((decimal)(100), 10, 0)) + "%" + ";";
         GxWebStd.gx_table_start(context, tblTable1_Internalname, tblTable1_Internalname, "", "ViewTable", 0, "", "", 1, 2, sStyleString, "", 0);
         context.WriteHtmlText("<tbody>");
         context.WriteHtmlText("<tr>");
         context.WriteHtmlText("<td style=\"vertical-align:top\">");
         context.WriteHtmlText("<p></p>");
         /*  Grid Control  */
         Grid1Container.SetIsFreestyle(true);
         Grid1Container.SetWrapped(nGXWrapped);
         if (Grid1Container.GetWrapped() == 1)
         {
             context.WriteHtmlText("<div id=\"" + "Grid1Container" + "DivS\" gxgridid=\"5\">");
             sStyleString = "";
             sStyleString = sStyleString + " width: " + StringUtil.LTrim(StringUtil.Str((decimal)(100), 10, 0)) + "%" + ";";
             GxWebStd.gx_table_start(context, subGrid1_Internalname, subGrid1_Internalname, "", "ViewTable", 0, "", "", 1, 0, sStyleString, "", 0);
             Grid1Container.AddObjectProperty("GridName", "Grid1");
         }
         else
         {
             Grid1Container.AddObjectProperty("GridName", "Grid1");
             Grid1Container.AddObjectProperty("Class", StringUtil.RTrim("ViewTable"));
             Grid1Container.AddObjectProperty("Borderwidth", StringUtil.LTrim(StringUtil.NToC((decimal)(0), 4, 0, ".", "")));
             Grid1Container.AddObjectProperty("Cellspacing", StringUtil.LTrim(StringUtil.NToC((decimal)(0), 4, 0, ".", "")));
             Grid1Container.AddObjectProperty("Width", StringUtil.LTrim(StringUtil.NToC((decimal)(100), 9, 0, ".", "")));
             Grid1Container.AddObjectProperty("Class", "ViewTable");
             Grid1Container.AddObjectProperty("Cellpadding", StringUtil.LTrim(StringUtil.NToC((decimal)(1), 4, 0, ".", "")));
             Grid1Container.AddObjectProperty("Cellspacing", StringUtil.LTrim(StringUtil.NToC((decimal)(0), 4, 0, ".", "")));
             Grid1Container.AddObjectProperty("Backcolorstyle", StringUtil.LTrim(StringUtil.NToC((decimal)(subGrid1_Backcolorstyle), 1, 0, ".", "")));
             Grid1Container.AddObjectProperty("Borderwidth", StringUtil.LTrim(StringUtil.NToC((decimal)(subGrid1_Borderwidth), 4, 0, ".", "")));
             Grid1Container.AddObjectProperty("Width", StringUtil.LTrim(StringUtil.NToC((decimal)(subGrid1_Width), 9, 0, ".", "")));
             Grid1Container.AddObjectProperty("CmpContext", "");
             Grid1Container.AddObjectProperty("InMasterPage", "false");
             Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
             Grid1Container.AddColumnProperties(Grid1Column);
             Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
             Grid1Container.AddColumnProperties(Grid1Column);
             Grid1Column = GXWebColumn.GetNew(isAjaxCallMode( ));
             Grid1Column.AddObjectProperty("Value", StringUtil.RTrim(AV5MenuItem));
             Grid1Column.AddObjectProperty("Link", StringUtil.RTrim(edtavMenuitem_Link));
             Grid1Container.AddColumnProperties(Grid1Column);
             Grid1Container.AddObjectProperty("Allowselection", StringUtil.LTrim(StringUtil.NToC((decimal)(subGrid1_Allowselection), 1, 0, ".", "")));
             Grid1Container.AddObjectProperty("Selectioncolor", StringUtil.LTrim(StringUtil.NToC((decimal)(subGrid1_Selectioncolor), 9, 0, ".", "")));
             Grid1Container.AddObjectProperty("Allowhover", StringUtil.LTrim(StringUtil.NToC((decimal)(subGrid1_Allowhovering), 1, 0, ".", "")));
             Grid1Container.AddObjectProperty("Hovercolor", StringUtil.LTrim(StringUtil.NToC((decimal)(subGrid1_Hoveringcolor), 9, 0, ".", "")));
             Grid1Container.AddObjectProperty("Allowcollapsing", StringUtil.LTrim(StringUtil.NToC((decimal)(subGrid1_Allowcollapsing), 1, 0, ".", "")));
             Grid1Container.AddObjectProperty("Collapsed", StringUtil.LTrim(StringUtil.NToC((decimal)(subGrid1_Collapsed), 1, 0, ".", "")));
         }
     }
     if (wbEnd == 5)
     {
         wbEnd       = 0;
         nRC_GXsfl_5 = (short)(nGXsfl_5_idx - 1);
         if (Grid1Container.GetWrapped() == 1)
         {
             context.WriteHtmlText("</table>");
             context.WriteHtmlText("</div>");
         }
         else
         {
             sStyleString = " style=\"display:none;\"";
             sStyleString = "";
             context.WriteHtmlText("<div id=\"" + "Grid1Container" + "Div\" " + sStyleString + ">" + "</div>");
             context.httpAjaxContext.ajax_rsp_assign_grid("_" + "Grid1", Grid1Container);
             if (!context.isAjaxRequest( ) && !context.isSpaRequest( ))
             {
                 GxWebStd.gx_hidden_field(context, "Grid1ContainerData", Grid1Container.ToJavascriptSource());
             }
             if (context.isAjaxRequest( ) || context.isSpaRequest( ))
             {
                 GxWebStd.gx_hidden_field(context, "Grid1ContainerData" + "V", Grid1Container.GridValuesHidden());
             }
             else
             {
                 context.WriteHtmlText("<input type=\"hidden\" " + "name=\"" + "Grid1ContainerData" + "V" + "\" value='" + Grid1Container.GridValuesHidden() + "'/>");
             }
         }
         context.WriteHtmlText("</td>");
         context.WriteHtmlText("</tr>");
         context.WriteHtmlText("</tbody>");
         /* End of table */
         context.WriteHtmlText("</table>");
         wb_table1_2_0H2e(true);
     }
     else
     {
         wb_table1_2_0H2e(false);
     }
 }