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 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); } }