コード例 #1
0
 protected void S121( )
 {
     /* 'LOADSYS_ROLEPERMISSIONPERMISSIONCODEOPTIONS' Routine */
     AV11TFSYS_RolePermissionPermissionCode     = AV13SearchTxt;
     AV12TFSYS_RolePermissionPermissionCode_Sel = "";
     AV41SYS_RolePermissionWWDS_1_Sys_rolepermissionpermissioncode       = AV32SYS_RolePermissionPermissionCode;
     AV42SYS_RolePermissionWWDS_2_Tfsys_rolepermissionpermissioncode     = AV11TFSYS_RolePermissionPermissionCode;
     AV43SYS_RolePermissionWWDS_3_Tfsys_rolepermissionpermissioncode_sel = AV12TFSYS_RolePermissionPermissionCode_Sel;
     pr_datastore1.dynParam(0, new Object[] { new Object[] {
                                                  AV41SYS_RolePermissionWWDS_1_Sys_rolepermissionpermissioncode,
                                                  AV43SYS_RolePermissionWWDS_3_Tfsys_rolepermissionpermissioncode_sel,
                                                  AV42SYS_RolePermissionWWDS_2_Tfsys_rolepermissionpermissioncode,
                                                  A445SYS_RolePermissionPermissionCode
                                              },
                                              new int[] {
                                                  TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING
                                              } });
     lV41SYS_RolePermissionWWDS_1_Sys_rolepermissionpermissioncode   = StringUtil.Concat(StringUtil.RTrim(AV41SYS_RolePermissionWWDS_1_Sys_rolepermissionpermissioncode), "%", "");
     lV42SYS_RolePermissionWWDS_2_Tfsys_rolepermissionpermissioncode = StringUtil.Concat(StringUtil.RTrim(AV42SYS_RolePermissionWWDS_2_Tfsys_rolepermissionpermissioncode), "%", "");
     /* Using cursor P00472 */
     pr_datastore1.execute(0, new Object[] { lV41SYS_RolePermissionWWDS_1_Sys_rolepermissionpermissioncode, lV42SYS_RolePermissionWWDS_2_Tfsys_rolepermissionpermissioncode, AV43SYS_RolePermissionWWDS_3_Tfsys_rolepermissionpermissioncode_sel });
     while ((pr_datastore1.getStatus(0) != 101))
     {
         BRK472 = false;
         A445SYS_RolePermissionPermissionCode = P00472_A445SYS_RolePermissionPermissionCode[0];
         A444SYS_RolePermissionRoleID         = (Guid)((Guid)(P00472_A444SYS_RolePermissionRoleID[0]));
         AV25count = 0;
         while ((pr_datastore1.getStatus(0) != 101) && (StringUtil.StrCmp(P00472_A445SYS_RolePermissionPermissionCode[0], A445SYS_RolePermissionPermissionCode) == 0))
         {
             BRK472 = false;
             A444SYS_RolePermissionRoleID = (Guid)((Guid)(P00472_A444SYS_RolePermissionRoleID[0]));
             AV25count = (long)(AV25count + 1);
             BRK472    = true;
             pr_datastore1.readNext(0);
         }
         if (!String.IsNullOrEmpty(StringUtil.RTrim(A445SYS_RolePermissionPermissionCode)))
         {
             AV17Option = A445SYS_RolePermissionPermissionCode;
             AV18Options.Add(AV17Option, 0);
             AV23OptionIndexes.Add(StringUtil.Trim(context.localUtil.Format((decimal)(AV25count), "Z,ZZZ,ZZZ,ZZ9")), 0);
         }
         if (AV18Options.Count == 50)
         {
             /* Exit For each command. Update data (if necessary), close cursors & exit. */
             if (true)
             {
                 break;
             }
         }
         if (!BRK472)
         {
             BRK472 = true;
             pr_datastore1.readNext(0);
         }
     }
     pr_datastore1.close(0);
 }
コード例 #2
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     AV18Options       = (GxSimpleCollection <String>)(new GxSimpleCollection <String>());
     AV21OptionsDesc   = (GxSimpleCollection <String>)(new GxSimpleCollection <String>());
     AV23OptionIndexes = (GxSimpleCollection <String>)(new GxSimpleCollection <String>());
     GXt_boolean1      = AV8IsAuthorized;
     new GeneXus.Programs.wwpbaseobjects.secisauthbyfunctionalitykey(context).execute("Check_DefindcodeType", 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(AV15DDOName), "DDO_BAS_TENANTTENANTCODE") == 0)
         {
             /* Execute user subroutine: 'LOADBAS_TENANTTENANTCODEOPTIONS' */
             S121();
             if (returnInSub)
             {
                 this.cleanup();
                 if (true)
                 {
                     return;
                 }
             }
         }
     }
     AV19OptionsJson       = AV18Options.ToJSonString(false);
     AV22OptionsDescJson   = AV21OptionsDesc.ToJSonString(false);
     AV24OptionIndexesJson = AV23OptionIndexes.ToJSonString(false);
     this.cleanup();
 }
コード例 #3
0
 protected void S121( )
 {
     /* 'LOADBR_MEDICATION_RXUNITOPTIONS' Routine */
     AV11TFBR_Medication_RXUnit     = AV13SearchTxt;
     AV12TFBR_Medication_RXUnit_Sel = "";
     pr_default.dynParam(0, new Object[] { new Object[] {
                                               AV31BR_Medication_RXName,
                                               AV12TFBR_Medication_RXUnit_Sel,
                                               AV11TFBR_Medication_RXUnit,
                                               A121BR_Medication_RXName,
                                               A125BR_Medication_RXUnit,
                                               A19BR_EncounterID,
                                               AV32BR_EncounterID
                                           },
                                           new int[] {
                                               TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.STRING, TypeConstants.BOOLEAN, TypeConstants.STRING, TypeConstants.BOOLEAN, TypeConstants.LONG, TypeConstants.LONG
                                           } });
     lV31BR_Medication_RXName   = StringUtil.Concat(StringUtil.RTrim(AV31BR_Medication_RXName), "%", "");
     lV11TFBR_Medication_RXUnit = StringUtil.Concat(StringUtil.RTrim(AV11TFBR_Medication_RXUnit), "%", "");
     /* Using cursor P00342 */
     pr_default.execute(0, new Object[] { AV32BR_EncounterID, lV31BR_Medication_RXName, lV11TFBR_Medication_RXUnit, AV12TFBR_Medication_RXUnit_Sel });
     while ((pr_default.getStatus(0) != 101))
     {
         BRK342                   = false;
         A19BR_EncounterID        = P00342_A19BR_EncounterID[0];
         A125BR_Medication_RXUnit = P00342_A125BR_Medication_RXUnit[0];
         n125BR_Medication_RXUnit = P00342_n125BR_Medication_RXUnit[0];
         A121BR_Medication_RXName = P00342_A121BR_Medication_RXName[0];
         n121BR_Medication_RXName = P00342_n121BR_Medication_RXName[0];
         A119BR_MedicationID      = P00342_A119BR_MedicationID[0];
         AV25count                = 0;
         while ((pr_default.getStatus(0) != 101) && (StringUtil.StrCmp(P00342_A125BR_Medication_RXUnit[0], A125BR_Medication_RXUnit) == 0))
         {
             BRK342 = false;
             A119BR_MedicationID = P00342_A119BR_MedicationID[0];
             AV25count           = (long)(AV25count + 1);
             BRK342 = true;
             pr_default.readNext(0);
         }
         if (!String.IsNullOrEmpty(StringUtil.RTrim(A125BR_Medication_RXUnit)))
         {
             AV17Option = A125BR_Medication_RXUnit;
             AV18Options.Add(AV17Option, 0);
             AV23OptionIndexes.Add(StringUtil.Trim(context.localUtil.Format((decimal)(AV25count), "Z,ZZZ,ZZZ,ZZ9")), 0);
         }
         if (AV18Options.Count == 50)
         {
             /* Exit For each command. Update data (if necessary), close cursors & exit. */
             if (true)
             {
                 break;
             }
         }
         if (!BRK342)
         {
             BRK342 = true;
             pr_default.readNext(0);
         }
     }
     pr_default.close(0);
 }