コード例 #1
0
ファイル: home.cs プロジェクト: ailtonvivaz/peajes
 public override void initialize( )
 {
     gxfirstwebparm     = "";
     gxfirstwebparm_bkp = "";
     sDynURL            = "";
     FormProcess        = "";
     GX_FocusControl    = "";
     Form                = new GXWebForm();
     sPrefix             = "";
     sEvt                = "";
     EvtGridId           = "";
     EvtRowId            = "";
     sEvtType            = "";
     AV5MenuItem         = "";
     GXKey               = "";
     Grid1Container      = new GXWebGrid(context);
     BackMsgLst          = new msglist();
     LclMsgLst           = new msglist();
     AV6ProgramNames     = new GxObjectCollection(context, "ProgramNames.ProgramName", "CalcularPeajes", "SdtProgramNames_ProgramName", "GeneXus.Programs");
     AV7ProgramName      = new SdtProgramNames_ProgramName(context);
     Grid1Row            = new GXWebRow();
     sStyleString        = "";
     Grid1Column         = new GXWebColumn();
     subGrid1_Linesclass = "";
     ROClassString       = "";
     /* GeneXus formulas. */
     context.Gx_err = 0;
 }
コード例 #2
0
 public void ajax_sending_grid_row(GXWebRow row)
 {
     if (context.isAjaxCallMode())
     {
         _currentGridRow = row;
     }
     else
     {
         _currentGridRow = null;
     }
 }
コード例 #3
0
ファイル: home.cs プロジェクト: ailtonvivaz/peajes
 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 */
 }