protected void gxnrGrid1_newrow(short nRC_GXsfl_5, short nGXsfl_5_idx, String sGXsfl_5_idx) { GxWebStd.set_html_headers(context, 0, "", ""); sGXsfl_5_idx = StringUtil.PadL(StringUtil.LTrim(StringUtil.Str((decimal)(nGXsfl_5_idx), 4, 0)), 4, "0"); edtavMenuitem_Internalname = "vMENUITEM_" + sGXsfl_5_idx; while (nGXsfl_5_idx <= nRC_GXsfl_5) { sendrow_52( ); nGXsfl_5_idx = (short)(((subGrid1_Islastpage == 1) && (nGXsfl_5_idx + 1 > subGrid1_Recordsperpage( )) ? 1 : 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; } context.GX_webresponse.AddString(Grid1Container.ToJavascriptSource()); /* End function gxnrGrid1_newrow */ }
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; }
protected void sendrow_52( ) { sGXsfl_5_idx = StringUtil.PadL(StringUtil.LTrim(StringUtil.Str((decimal)(nGXsfl_5_idx), 4, 0)), 4, "0"); edtavMenuitem_Internalname = "vMENUITEM_" + sGXsfl_5_idx; WB0H0( ); Grid1Row = GXWebRow.GetNew(context, Grid1Container); if (subGrid1_Backcolorstyle == 0) { /* None style subfile background logic. */ subGrid1_Backstyle = 0; if (StringUtil.StrCmp(subGrid1_Class, "") != 0) { subGrid1_Linesclass = subGrid1_Class + "Odd"; } } else if (subGrid1_Backcolorstyle == 1) { /* Uniform style subfile background logic. */ subGrid1_Backstyle = 0; subGrid1_Backcolor = subGrid1_Allbackcolor; if (StringUtil.StrCmp(subGrid1_Class, "") != 0) { subGrid1_Linesclass = subGrid1_Class + "Uniform"; } } else if (subGrid1_Backcolorstyle == 2) { /* Header style subfile background logic. */ subGrid1_Backstyle = 1; if (StringUtil.StrCmp(subGrid1_Class, "") != 0) { subGrid1_Linesclass = subGrid1_Class + "Odd"; } subGrid1_Backcolor = (int)(0xFFFFFF); } else if (subGrid1_Backcolorstyle == 3) { /* Report style subfile background logic. */ subGrid1_Backstyle = 1; if (((int)(((nGXsfl_5_idx - 1) / (decimal)(1)) % (2))) == 0) { subGrid1_Backcolor = (int)(0xFFFFFF); if (StringUtil.StrCmp(subGrid1_Class, "") != 0) { subGrid1_Linesclass = subGrid1_Class + "Odd"; } } else { subGrid1_Backcolor = (int)(0x0); if (StringUtil.StrCmp(subGrid1_Class, "") != 0) { subGrid1_Linesclass = subGrid1_Class + "Even"; } } } /* Start of Columns property logic. */ if (Grid1Container.GetWrapped() == 1) { if ((1 == 0) && (nGXsfl_5_idx == 1)) { context.WriteHtmlText("<tr" + " class=\"" + subGrid1_Linesclass + "\" style=\"" + "" + "\"" + " gxrow=\"" + sGXsfl_5_idx + "\">"); } if (1 > 0) { if ((1 == 1) || (((int)((nGXsfl_5_idx) % (1))) - 1 == 0)) { context.WriteHtmlText("<tr" + " class=\"" + subGrid1_Linesclass + "\" style=\"" + "" + "\"" + " gxrow=\"" + sGXsfl_5_idx + "\">"); } } } Grid1Row.AddColumnProperties("row", -1, isAjaxCallMode( ), new Object[] { (String)"", (String)subGrid1_Linesclass, (String)"" }); Grid1Row.AddColumnProperties("cell", -1, isAjaxCallMode( ), new Object[] { (String)"", (String)"" }); /* Single line edit */ ROClassString = "Attribute"; Grid1Row.AddColumnProperties("edit", 1, isAjaxCallMode( ), new Object[] { (String)edtavMenuitem_Internalname, StringUtil.RTrim(AV5MenuItem), (String)"", (String)"", (String)"'" + "" + "'" + ",false," + "'" + "" + "'", (String)edtavMenuitem_Link, (String)"", (String)"", (String)"", (String)edtavMenuitem_Jsonclick, (short)0, (String)"Attribute", (String)"", (String)ROClassString, (String)"", (short)1, (short)0, (short)0, (String)"text", (String)"", (short)80, (String)"chr", (short)1, (String)"row", (short)100, (short)0, (short)0, (short)5, (short)1, (short)-1, (short)-1, (bool)false, (String)"", (String)"left" }); if (Grid1Container.GetWrapped() == 1) { Grid1Container.CloseTag("cell"); } if (Grid1Container.GetWrapped() == 1) { Grid1Container.CloseTag("row"); } /* End of Columns property logic. */ if (Grid1Container.GetWrapped() == 1) { if (1 > 0) { if (((int)((nGXsfl_5_idx) % (1))) == 0) { context.WriteHtmlTextNl("</tr>"); } } } Grid1Container.AddRow(Grid1Row); nGXsfl_5_idx = (short)(((subGrid1_Islastpage == 1) && (nGXsfl_5_idx + 1 > subGrid1_Recordsperpage( )) ? 1 : 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; /* End function sendrow_52 */ }
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); } }