コード例 #1
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     AV19Options       = (GxSimpleCollection <String>)(new GxSimpleCollection <String>());
     AV22OptionsDesc   = (GxSimpleCollection <String>)(new GxSimpleCollection <String>());
     AV24OptionIndexes = (GxSimpleCollection <String>)(new GxSimpleCollection <String>());
     GXt_boolean1      = AV8IsAuthorized;
     new GeneXus.Programs.wwpbaseobjects.secisauthbyfunctionalitykey(context).execute("WWSecFunctionality", out GXt_boolean1);
     AV8IsAuthorized = GXt_boolean1;
     if (AV8IsAuthorized)
     {
         new GeneXus.Programs.wwpbaseobjects.loadwwpcontext(context).execute(out AV33WWPContext);
         /* Execute user subroutine: 'LOADGRIDSTATE' */
         S111();
         if (returnInSub)
         {
             this.cleanup();
             if (true)
             {
                 return;
             }
         }
         if (StringUtil.StrCmp(StringUtil.Upper(AV16DDOName), "DDO_SECROLENAME") == 0)
         {
             /* Execute user subroutine: 'LOADSECROLENAMEOPTIONS' */
             S121();
             if (returnInSub)
             {
                 this.cleanup();
                 if (true)
                 {
                     return;
                 }
             }
         }
         else if (StringUtil.StrCmp(StringUtil.Upper(AV16DDOName), "DDO_SECROLEDESCRIPTION") == 0)
         {
             /* Execute user subroutine: 'LOADSECROLEDESCRIPTIONOPTIONS' */
             S131();
             if (returnInSub)
             {
                 this.cleanup();
                 if (true)
                 {
                     return;
                 }
             }
         }
     }
     AV20OptionsJson       = AV19Options.ToJSonString(false);
     AV23OptionsDescJson   = AV22OptionsDesc.ToJSonString(false);
     AV25OptionIndexesJson = AV24OptionIndexes.ToJSonString(false);
     this.cleanup();
 }
コード例 #2
0
 protected void S131( )
 {
     /* 'LOADSECROLEDESCRIPTIONOPTIONS' Routine */
     AV12TFSecRoleDescription     = AV14SearchTxt;
     AV13TFSecRoleDescription_Sel = "";
     pr_default.dynParam(1, new Object[] { new Object[] {
                                               AV34SecRoleName,
                                               AV11TFSecRoleName_Sel,
                                               AV10TFSecRoleName,
                                               AV13TFSecRoleDescription_Sel,
                                               AV12TFSecRoleDescription,
                                               A13SecRoleName,
                                               A12SecRoleDescription,
                                               AV32SecFunctionalityId,
                                               A1SecFunctionalityId
                                           },
                                           new int[] {
                                               TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.LONG, TypeConstants.LONG
                                           } });
     lV34SecRoleName          = StringUtil.Concat(StringUtil.RTrim(AV34SecRoleName), "%", "");
     lV10TFSecRoleName        = StringUtil.Concat(StringUtil.RTrim(AV10TFSecRoleName), "%", "");
     lV12TFSecRoleDescription = StringUtil.Concat(StringUtil.RTrim(AV12TFSecRoleDescription), "%", "");
     /* Using cursor P000W3 */
     pr_default.execute(1, new Object[] { AV32SecFunctionalityId, lV34SecRoleName, lV10TFSecRoleName, AV11TFSecRoleName_Sel, lV12TFSecRoleDescription, AV13TFSecRoleDescription_Sel });
     while ((pr_default.getStatus(1) != 101))
     {
         BRK0W4                = false;
         A4SecRoleId           = P000W3_A4SecRoleId[0];
         A1SecFunctionalityId  = P000W3_A1SecFunctionalityId[0];
         A12SecRoleDescription = P000W3_A12SecRoleDescription[0];
         A13SecRoleName        = P000W3_A13SecRoleName[0];
         A12SecRoleDescription = P000W3_A12SecRoleDescription[0];
         A13SecRoleName        = P000W3_A13SecRoleName[0];
         AV26count             = 0;
         while ((pr_default.getStatus(1) != 101) && (P000W3_A1SecFunctionalityId[0] == A1SecFunctionalityId) && (StringUtil.StrCmp(P000W3_A12SecRoleDescription[0], A12SecRoleDescription) == 0))
         {
             BRK0W4      = false;
             A4SecRoleId = P000W3_A4SecRoleId[0];
             AV26count   = (long)(AV26count + 1);
             BRK0W4      = true;
             pr_default.readNext(1);
         }
         if (!String.IsNullOrEmpty(StringUtil.RTrim(A12SecRoleDescription)))
         {
             AV18Option = A12SecRoleDescription;
             AV19Options.Add(AV18Option, 0);
             AV24OptionIndexes.Add(StringUtil.Trim(context.localUtil.Format((decimal)(AV26count), "Z,ZZZ,ZZZ,ZZ9")), 0);
         }
         if (AV19Options.Count == 50)
         {
             /* Exit For each command. Update data (if necessary), close cursors & exit. */
             if (true)
             {
                 break;
             }
         }
         if (!BRK0W4)
         {
             BRK0W4 = true;
             pr_default.readNext(1);
         }
     }
     pr_default.close(1);
 }
コード例 #3
0
 protected void S121( )
 {
     /* 'LOADSECROLENAMEOPTIONS' Routine */
     AV10TFSecRoleName     = AV14SearchTxt;
     AV11TFSecRoleName_Sel = "";
     AV51WWPBaseObjects_SecRoleWWDS_1_Tfsecrolename            = AV10TFSecRoleName;
     AV52WWPBaseObjects_SecRoleWWDS_2_Tfsecrolename_sel        = AV11TFSecRoleName_Sel;
     AV53WWPBaseObjects_SecRoleWWDS_3_Tfsecroledescription     = AV12TFSecRoleDescription;
     AV54WWPBaseObjects_SecRoleWWDS_4_Tfsecroledescription_sel = AV13TFSecRoleDescription_Sel;
     pr_default.dynParam(0, new Object[] { new Object[] {
                                               AV52WWPBaseObjects_SecRoleWWDS_2_Tfsecrolename_sel,
                                               AV51WWPBaseObjects_SecRoleWWDS_1_Tfsecrolename,
                                               AV54WWPBaseObjects_SecRoleWWDS_4_Tfsecroledescription_sel,
                                               AV53WWPBaseObjects_SecRoleWWDS_3_Tfsecroledescription,
                                               A13SecRoleName,
                                               A12SecRoleDescription
                                           },
                                           new int[] {
                                               TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING
                                           } });
     lV51WWPBaseObjects_SecRoleWWDS_1_Tfsecrolename        = StringUtil.Concat(StringUtil.RTrim(AV51WWPBaseObjects_SecRoleWWDS_1_Tfsecrolename), "%", "");
     lV53WWPBaseObjects_SecRoleWWDS_3_Tfsecroledescription = StringUtil.Concat(StringUtil.RTrim(AV53WWPBaseObjects_SecRoleWWDS_3_Tfsecroledescription), "%", "");
     /* Using cursor P00162 */
     pr_default.execute(0, new Object[] { lV51WWPBaseObjects_SecRoleWWDS_1_Tfsecrolename, AV52WWPBaseObjects_SecRoleWWDS_2_Tfsecrolename_sel, lV53WWPBaseObjects_SecRoleWWDS_3_Tfsecroledescription, AV54WWPBaseObjects_SecRoleWWDS_4_Tfsecroledescription_sel });
     while ((pr_default.getStatus(0) != 101))
     {
         BRK162                = false;
         A13SecRoleName        = P00162_A13SecRoleName[0];
         A12SecRoleDescription = P00162_A12SecRoleDescription[0];
         A4SecRoleId           = P00162_A4SecRoleId[0];
         AV26count             = 0;
         while ((pr_default.getStatus(0) != 101) && (StringUtil.StrCmp(P00162_A13SecRoleName[0], A13SecRoleName) == 0))
         {
             BRK162      = false;
             A4SecRoleId = P00162_A4SecRoleId[0];
             AV26count   = (long)(AV26count + 1);
             BRK162      = true;
             pr_default.readNext(0);
         }
         if (!String.IsNullOrEmpty(StringUtil.RTrim(A13SecRoleName)))
         {
             AV18Option = A13SecRoleName;
             AV19Options.Add(AV18Option, 0);
             AV24OptionIndexes.Add(StringUtil.Trim(context.localUtil.Format((decimal)(AV26count), "Z,ZZZ,ZZZ,ZZ9")), 0);
         }
         if (AV19Options.Count == 50)
         {
             /* Exit For each command. Update data (if necessary), close cursors & exit. */
             if (true)
             {
                 break;
             }
         }
         if (!BRK162)
         {
             BRK162 = true;
             pr_default.readNext(0);
         }
     }
     pr_default.close(0);
 }