Exemplo n.º 1
0
 protected void S121( )
 {
     /* 'LOADSECFUNCTIONALITYKEYOPTIONS' Routine */
     AV10TFSecFunctionalityKey     = AV17SearchTxt;
     AV11TFSecFunctionalityKey_Sel = "";
     pr_default.dynParam(0, new Object[] { new Object[] {
                                               AV54SecFunctionalityKey,
                                               AV11TFSecFunctionalityKey_Sel,
                                               AV10TFSecFunctionalityKey,
                                               A3SecFunctionalityKey,
                                               AV50SecRoleId,
                                               A4SecRoleId
                                           },
                                           new int[] {
                                               TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.SHORT, TypeConstants.SHORT
                                           } });
     lV54SecFunctionalityKey   = StringUtil.Concat(StringUtil.RTrim(AV54SecFunctionalityKey), "%", "");
     lV10TFSecFunctionalityKey = StringUtil.Concat(StringUtil.RTrim(AV10TFSecFunctionalityKey), "%", "");
     /* Using cursor P00132 */
     pr_default.execute(0, new Object[] { AV50SecRoleId, lV54SecFunctionalityKey, lV10TFSecFunctionalityKey, AV11TFSecFunctionalityKey_Sel });
     while ((pr_default.getStatus(0) != 101))
     {
         BRK132 = false;
         A1SecFunctionalityId  = P00132_A1SecFunctionalityId[0];
         A4SecRoleId           = P00132_A4SecRoleId[0];
         A3SecFunctionalityKey = P00132_A3SecFunctionalityKey[0];
         A3SecFunctionalityKey = P00132_A3SecFunctionalityKey[0];
         AV29count             = 0;
         while ((pr_default.getStatus(0) != 101) && (P00132_A4SecRoleId[0] == A4SecRoleId) && (StringUtil.StrCmp(P00132_A3SecFunctionalityKey[0], A3SecFunctionalityKey) == 0))
         {
             BRK132 = false;
             A1SecFunctionalityId = P00132_A1SecFunctionalityId[0];
             AV29count            = (long)(AV29count + 1);
             BRK132 = true;
             pr_default.readNext(0);
         }
         if (!String.IsNullOrEmpty(StringUtil.RTrim(A3SecFunctionalityKey)))
         {
             AV21Option = A3SecFunctionalityKey;
             AV22Options.Add(AV21Option, 0);
             AV27OptionIndexes.Add(StringUtil.Trim(context.localUtil.Format((decimal)(AV29count), "Z,ZZZ,ZZZ,ZZ9")), 0);
         }
         if (AV22Options.Count == 50)
         {
             /* Exit For each command. Update data (if necessary), close cursors & exit. */
             if (true)
             {
                 break;
             }
         }
         if (!BRK132)
         {
             BRK132 = true;
             pr_default.readNext(0);
         }
     }
     pr_default.close(0);
 }
Exemplo n.º 2
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     AV22Options       = (GxSimpleCollection <String>)(new GxSimpleCollection <String>());
     AV25OptionsDesc   = (GxSimpleCollection <String>)(new GxSimpleCollection <String>());
     AV27OptionIndexes = (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 AV39WWPContext);
         /* Execute user subroutine: 'LOADGRIDSTATE' */
         S111();
         if (returnInSub)
         {
             this.cleanup();
             if (true)
             {
                 return;
             }
         }
         if (StringUtil.StrCmp(StringUtil.Upper(AV19DDOName), "DDO_SECFUNCTIONALITYKEY") == 0)
         {
             /* Execute user subroutine: 'LOADSECFUNCTIONALITYKEYOPTIONS' */
             S121();
             if (returnInSub)
             {
                 this.cleanup();
                 if (true)
                 {
                     return;
                 }
             }
         }
         else if (StringUtil.StrCmp(StringUtil.Upper(AV19DDOName), "DDO_SECFUNCTIONALITYDESCRIPTION") == 0)
         {
             /* Execute user subroutine: 'LOADSECFUNCTIONALITYDESCRIPTIONOPTIONS' */
             S131();
             if (returnInSub)
             {
                 this.cleanup();
                 if (true)
                 {
                     return;
                 }
             }
         }
     }
     AV23OptionsJson       = AV22Options.ToJSonString(false);
     AV26OptionsDescJson   = AV25OptionsDesc.ToJSonString(false);
     AV28OptionIndexesJson = AV27OptionIndexes.ToJSonString(false);
     this.cleanup();
 }
Exemplo n.º 3
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     AV22Options       = (GxSimpleCollection <String>)(new GxSimpleCollection <String>());
     AV25OptionsDesc   = (GxSimpleCollection <String>)(new GxSimpleCollection <String>());
     AV27OptionIndexes = (GxSimpleCollection <String>)(new GxSimpleCollection <String>());
     GXt_boolean1      = AV8IsAuthorized;
     new GeneXus.Programs.wwpbaseobjects.secisauthbyfunctionalitykey(context).execute("Manage_Pathology_Specimen", out GXt_boolean1);
     AV8IsAuthorized = GXt_boolean1;
     if (AV8IsAuthorized)
     {
         new GeneXus.Programs.wwpbaseobjects.loadwwpcontext(context).execute(out AV9WWPContext);
         /* Execute user subroutine: 'LOADGRIDSTATE' */
         S111();
         if (returnInSub)
         {
             this.cleanup();
             if (true)
             {
                 return;
             }
         }
         if (StringUtil.StrCmp(StringUtil.Upper(AV19DDOName), "DDO_BR_PATHOLOGY_SPECIMEN_NAME") == 0)
         {
             /* Execute user subroutine: 'LOADBR_PATHOLOGY_SPECIMEN_NAMEOPTIONS' */
             S121();
             if (returnInSub)
             {
                 this.cleanup();
                 if (true)
                 {
                     return;
                 }
             }
         }
     }
     AV23OptionsJson       = AV22Options.ToJSonString(false);
     AV26OptionsDescJson   = AV25OptionsDesc.ToJSonString(false);
     AV28OptionIndexesJson = AV27OptionIndexes.ToJSonString(false);
     this.cleanup();
 }
Exemplo n.º 4
0
 protected void S131( )
 {
     /* 'LOADSECFUNCTIONALITYDESCRIPTIONOPTIONS' Routine */
     AV12TFSecFunctionalityDescription     = AV17SearchTxt;
     AV13TFSecFunctionalityDescription_Sel = "";
     AV46WWPBaseObjects_SecFunctionalityFilterParentWWDS_1_Secparentfunctionalityid          = AV38SecParentFunctionalityId;
     AV47WWPBaseObjects_SecFunctionalityFilterParentWWDS_2_Tfsecfunctionalitykey             = AV10TFSecFunctionalityKey;
     AV48WWPBaseObjects_SecFunctionalityFilterParentWWDS_3_Tfsecfunctionalitykey_sel         = AV11TFSecFunctionalityKey_Sel;
     AV49WWPBaseObjects_SecFunctionalityFilterParentWWDS_4_Tfsecfunctionalitydescription     = AV12TFSecFunctionalityDescription;
     AV50WWPBaseObjects_SecFunctionalityFilterParentWWDS_5_Tfsecfunctionalitydescription_sel = AV13TFSecFunctionalityDescription_Sel;
     pr_default.dynParam(1, new Object[] { new Object[] {
                                               AV48WWPBaseObjects_SecFunctionalityFilterParentWWDS_3_Tfsecfunctionalitykey_sel,
                                               AV47WWPBaseObjects_SecFunctionalityFilterParentWWDS_2_Tfsecfunctionalitykey,
                                               AV50WWPBaseObjects_SecFunctionalityFilterParentWWDS_5_Tfsecfunctionalitydescription_sel,
                                               AV49WWPBaseObjects_SecFunctionalityFilterParentWWDS_4_Tfsecfunctionalitydescription,
                                               A3SecFunctionalityKey,
                                               A8SecFunctionalityDescription,
                                               AV46WWPBaseObjects_SecFunctionalityFilterParentWWDS_1_Secparentfunctionalityid,
                                               A2SecParentFunctionalityId
                                           },
                                           new int[] {
                                               TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.LONG, TypeConstants.LONG, TypeConstants.BOOLEAN
                                           } });
     lV47WWPBaseObjects_SecFunctionalityFilterParentWWDS_2_Tfsecfunctionalitykey         = StringUtil.Concat(StringUtil.RTrim(AV47WWPBaseObjects_SecFunctionalityFilterParentWWDS_2_Tfsecfunctionalitykey), "%", "");
     lV49WWPBaseObjects_SecFunctionalityFilterParentWWDS_4_Tfsecfunctionalitydescription = StringUtil.Concat(StringUtil.RTrim(AV49WWPBaseObjects_SecFunctionalityFilterParentWWDS_4_Tfsecfunctionalitydescription), "%", "");
     /* Using cursor P000U3 */
     pr_default.execute(1, new Object[] { AV46WWPBaseObjects_SecFunctionalityFilterParentWWDS_1_Secparentfunctionalityid, lV47WWPBaseObjects_SecFunctionalityFilterParentWWDS_2_Tfsecfunctionalitykey, AV48WWPBaseObjects_SecFunctionalityFilterParentWWDS_3_Tfsecfunctionalitykey_sel, lV49WWPBaseObjects_SecFunctionalityFilterParentWWDS_4_Tfsecfunctionalitydescription, AV50WWPBaseObjects_SecFunctionalityFilterParentWWDS_5_Tfsecfunctionalitydescription_sel });
     while ((pr_default.getStatus(1) != 101))
     {
         BRK0U4 = false;
         A2SecParentFunctionalityId    = P000U3_A2SecParentFunctionalityId[0];
         n2SecParentFunctionalityId    = P000U3_n2SecParentFunctionalityId[0];
         A8SecFunctionalityDescription = P000U3_A8SecFunctionalityDescription[0];
         A3SecFunctionalityKey         = P000U3_A3SecFunctionalityKey[0];
         A1SecFunctionalityId          = P000U3_A1SecFunctionalityId[0];
         AV29count = 0;
         while ((pr_default.getStatus(1) != 101) && (P000U3_A2SecParentFunctionalityId[0] == A2SecParentFunctionalityId) && (StringUtil.StrCmp(P000U3_A8SecFunctionalityDescription[0], A8SecFunctionalityDescription) == 0))
         {
             BRK0U4 = false;
             A1SecFunctionalityId = P000U3_A1SecFunctionalityId[0];
             AV29count            = (long)(AV29count + 1);
             BRK0U4 = true;
             pr_default.readNext(1);
         }
         if (!String.IsNullOrEmpty(StringUtil.RTrim(A8SecFunctionalityDescription)))
         {
             AV21Option = A8SecFunctionalityDescription;
             AV22Options.Add(AV21Option, 0);
             AV27OptionIndexes.Add(StringUtil.Trim(context.localUtil.Format((decimal)(AV29count), "Z,ZZZ,ZZZ,ZZ9")), 0);
         }
         if (AV22Options.Count == 50)
         {
             /* Exit For each command. Update data (if necessary), close cursors & exit. */
             if (true)
             {
                 break;
             }
         }
         if (!BRK0U4)
         {
             BRK0U4 = true;
             pr_default.readNext(1);
         }
     }
     pr_default.close(1);
 }
Exemplo n.º 5
0
 protected void S121( )
 {
     /* 'LOADBR_PATHOLOGY_SPECIMEN_NAMEOPTIONS' Routine */
     AV15TFBR_Pathology_Specimen_Name     = AV17SearchTxt;
     AV16TFBR_Pathology_Specimen_Name_Sel = "";
     AV39BR_Pathology_SpecimenWWDS_1_Tfbr_pathology_specimenid        = AV11TFBR_Pathology_SpecimenID;
     AV40BR_Pathology_SpecimenWWDS_2_Tfbr_pathology_specimenid_to     = AV12TFBR_Pathology_SpecimenID_To;
     AV41BR_Pathology_SpecimenWWDS_3_Tfbr_pathologyid                 = AV13TFBR_PathologyID;
     AV42BR_Pathology_SpecimenWWDS_4_Tfbr_pathologyid_to              = AV14TFBR_PathologyID_To;
     AV43BR_Pathology_SpecimenWWDS_5_Tfbr_pathology_specimen_name     = AV15TFBR_Pathology_Specimen_Name;
     AV44BR_Pathology_SpecimenWWDS_6_Tfbr_pathology_specimen_name_sel = AV16TFBR_Pathology_Specimen_Name_Sel;
     pr_default.dynParam(0, new Object[] { new Object[] {
                                               AV39BR_Pathology_SpecimenWWDS_1_Tfbr_pathology_specimenid,
                                               AV40BR_Pathology_SpecimenWWDS_2_Tfbr_pathology_specimenid_to,
                                               AV41BR_Pathology_SpecimenWWDS_3_Tfbr_pathologyid,
                                               AV42BR_Pathology_SpecimenWWDS_4_Tfbr_pathologyid_to,
                                               AV44BR_Pathology_SpecimenWWDS_6_Tfbr_pathology_specimen_name_sel,
                                               AV43BR_Pathology_SpecimenWWDS_5_Tfbr_pathology_specimen_name,
                                               A274BR_Pathology_SpecimenID,
                                               A226BR_PathologyID,
                                               A275BR_Pathology_Specimen_Name
                                           },
                                           new int[] {
                                               TypeConstants.LONG, TypeConstants.LONG, TypeConstants.LONG, TypeConstants.LONG, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.LONG, TypeConstants.LONG, TypeConstants.BOOLEAN, TypeConstants.STRING,
                                               TypeConstants.BOOLEAN
                                           } });
     lV43BR_Pathology_SpecimenWWDS_5_Tfbr_pathology_specimen_name = StringUtil.Concat(StringUtil.RTrim(AV43BR_Pathology_SpecimenWWDS_5_Tfbr_pathology_specimen_name), "%", "");
     /* Using cursor P002M2 */
     pr_default.execute(0, new Object[] { AV39BR_Pathology_SpecimenWWDS_1_Tfbr_pathology_specimenid, AV40BR_Pathology_SpecimenWWDS_2_Tfbr_pathology_specimenid_to, AV41BR_Pathology_SpecimenWWDS_3_Tfbr_pathologyid, AV42BR_Pathology_SpecimenWWDS_4_Tfbr_pathologyid_to, lV43BR_Pathology_SpecimenWWDS_5_Tfbr_pathology_specimen_name, AV44BR_Pathology_SpecimenWWDS_6_Tfbr_pathology_specimen_name_sel });
     while ((pr_default.getStatus(0) != 101))
     {
         BRK2M2 = false;
         A275BR_Pathology_Specimen_Name = P002M2_A275BR_Pathology_Specimen_Name[0];
         n275BR_Pathology_Specimen_Name = P002M2_n275BR_Pathology_Specimen_Name[0];
         A226BR_PathologyID             = P002M2_A226BR_PathologyID[0];
         n226BR_PathologyID             = P002M2_n226BR_PathologyID[0];
         A274BR_Pathology_SpecimenID    = P002M2_A274BR_Pathology_SpecimenID[0];
         AV29count = 0;
         while ((pr_default.getStatus(0) != 101) && (StringUtil.StrCmp(P002M2_A275BR_Pathology_Specimen_Name[0], A275BR_Pathology_Specimen_Name) == 0))
         {
             BRK2M2 = false;
             A274BR_Pathology_SpecimenID = P002M2_A274BR_Pathology_SpecimenID[0];
             AV29count = (long)(AV29count + 1);
             BRK2M2    = true;
             pr_default.readNext(0);
         }
         if (!String.IsNullOrEmpty(StringUtil.RTrim(A275BR_Pathology_Specimen_Name)))
         {
             AV21Option = A275BR_Pathology_Specimen_Name;
             AV22Options.Add(AV21Option, 0);
             AV27OptionIndexes.Add(StringUtil.Trim(context.localUtil.Format((decimal)(AV29count), "Z,ZZZ,ZZZ,ZZ9")), 0);
         }
         if (AV22Options.Count == 50)
         {
             /* Exit For each command. Update data (if necessary), close cursors & exit. */
             if (true)
             {
                 break;
             }
         }
         if (!BRK2M2)
         {
             BRK2M2 = true;
             pr_default.readNext(0);
         }
     }
     pr_default.close(0);
 }