コード例 #1
0
 public override void initialize( )
 {
     AV10WWPContext          = new GeneXus.Programs.wwpbaseobjects.SdtWWPContext(context);
     AV18tSDT_EncounterCount = new GXBaseCollection <SdtSDT_EncounterCount_SDT_EncounterCountItem>(context, "SDT_EncounterCountItem", "DataAnalysisPlatform");
     AV9tNowDateTime         = (DateTime)(DateTime.MinValue);
     AV12tMonthName1         = "";
     AV13tMonthName2         = "";
     AV14tMonthName3         = "";
     AV15tMonthName4         = "";
     AV11tMonthName5         = "";
     AV16tMonthName6         = "";
     AV17tBeginDateTime      = (DateTime)(DateTime.MinValue);
     AV19tSubItem            = new SdtSDT_EncounterCount_SDT_EncounterCountItem(context);
     AV21tConditionMonthName = "";
     scmdbuf = "";
     P00282_A182BR_Encounter_CrtDate = new DateTime[] { DateTime.MinValue };
     P00282_n182BR_Encounter_CrtDate = new bool[] { false };
     P00282_A183BR_Encounter_CrtUser = new String[] { "" };
     P00282_n183BR_Encounter_CrtUser = new bool[] { false };
     P00282_A19BR_EncounterID        = new long[1];
     A182BR_Encounter_CrtDate        = (DateTime)(DateTime.MinValue);
     A183BR_Encounter_CrtUser        = "";
     pr_default = new DataStoreProvider(context, new GeneXus.Programs.zbr_getencountercount__default(),
                                        new Object[][] {
         new Object[] {
             P00282_A182BR_Encounter_CrtDate, P00282_n182BR_Encounter_CrtDate, P00282_A183BR_Encounter_CrtUser, P00282_n183BR_Encounter_CrtUser, P00282_A19BR_EncounterID
         }
     }
                                        );
     /* GeneXus formulas. */
     context.Gx_err = 0;
 }
コード例 #2
0
 void executePrivate( )
 {
     /* GeneXus formulas */
     /* Output device settings */
     new GeneXus.Programs.wwpbaseobjects.loadwwpcontext(context).execute(out AV10WWPContext);
     AV18tSDT_EncounterCount.Clear();
     AV9tNowDateTime          = DateTimeUtil.ServerNow(context, pr_default);
     AV12tMonthName1          = DateTimeUtil.CMonth(DateTimeUtil.AddMth(AV9tNowDateTime, -5), "chs");
     AV13tMonthName2          = DateTimeUtil.CMonth(DateTimeUtil.AddMth(AV9tNowDateTime, -4), "chs");
     AV14tMonthName3          = DateTimeUtil.CMonth(DateTimeUtil.AddMth(AV9tNowDateTime, -3), "chs");
     AV15tMonthName4          = DateTimeUtil.CMonth(DateTimeUtil.AddMth(AV9tNowDateTime, -2), "chs");
     AV11tMonthName5          = DateTimeUtil.CMonth(DateTimeUtil.AddMth(AV9tNowDateTime, -1), "chs");
     AV16tMonthName6          = DateTimeUtil.CMonth(AV9tNowDateTime, "chs");
     AV17tBeginDateTime       = DateTimeUtil.ResetTime(DateTimeUtil.DateEndOfMonth(DateTimeUtil.AddMth(AV9tNowDateTime, -6)));
     AV19tSubItem             = new SdtSDT_EncounterCount_SDT_EncounterCountItem(context);
     AV19tSubItem.gxTpr_Month = AV12tMonthName1;
     AV21tConditionMonthName  = AV12tMonthName1;
     /* Execute user subroutine: 'GETCOUNTBYMONTH' */
     S111();
     if (returnInSub)
     {
         this.cleanup();
         if (true)
         {
             return;
         }
     }
     AV19tSubItem.gxTpr_Value = StringUtil.Trim(StringUtil.Str((decimal)(AV20tCount), 18, 0));
     AV18tSDT_EncounterCount.Add(AV19tSubItem, 0);
     AV19tSubItem             = new SdtSDT_EncounterCount_SDT_EncounterCountItem(context);
     AV19tSubItem.gxTpr_Month = AV13tMonthName2;
     AV21tConditionMonthName  = AV13tMonthName2;
     /* Execute user subroutine: 'GETCOUNTBYMONTH' */
     S111();
     if (returnInSub)
     {
         this.cleanup();
         if (true)
         {
             return;
         }
     }
     AV19tSubItem.gxTpr_Value = StringUtil.Trim(StringUtil.Str((decimal)(AV20tCount), 18, 0));
     AV18tSDT_EncounterCount.Add(AV19tSubItem, 0);
     AV19tSubItem             = new SdtSDT_EncounterCount_SDT_EncounterCountItem(context);
     AV19tSubItem.gxTpr_Month = AV14tMonthName3;
     AV21tConditionMonthName  = AV14tMonthName3;
     /* Execute user subroutine: 'GETCOUNTBYMONTH' */
     S111();
     if (returnInSub)
     {
         this.cleanup();
         if (true)
         {
             return;
         }
     }
     AV19tSubItem.gxTpr_Value = StringUtil.Trim(StringUtil.Str((decimal)(AV20tCount), 18, 0));
     AV18tSDT_EncounterCount.Add(AV19tSubItem, 0);
     AV19tSubItem             = new SdtSDT_EncounterCount_SDT_EncounterCountItem(context);
     AV19tSubItem.gxTpr_Month = AV15tMonthName4;
     AV21tConditionMonthName  = AV15tMonthName4;
     /* Execute user subroutine: 'GETCOUNTBYMONTH' */
     S111();
     if (returnInSub)
     {
         this.cleanup();
         if (true)
         {
             return;
         }
     }
     AV19tSubItem.gxTpr_Value = StringUtil.Trim(StringUtil.Str((decimal)(AV20tCount), 18, 0));
     AV18tSDT_EncounterCount.Add(AV19tSubItem, 0);
     AV19tSubItem             = new SdtSDT_EncounterCount_SDT_EncounterCountItem(context);
     AV19tSubItem.gxTpr_Month = AV11tMonthName5;
     AV21tConditionMonthName  = AV11tMonthName5;
     /* Execute user subroutine: 'GETCOUNTBYMONTH' */
     S111();
     if (returnInSub)
     {
         this.cleanup();
         if (true)
         {
             return;
         }
     }
     AV19tSubItem.gxTpr_Value = StringUtil.Trim(StringUtil.Str((decimal)(AV20tCount), 18, 0));
     AV18tSDT_EncounterCount.Add(AV19tSubItem, 0);
     AV19tSubItem             = new SdtSDT_EncounterCount_SDT_EncounterCountItem(context);
     AV19tSubItem.gxTpr_Month = AV16tMonthName6;
     AV21tConditionMonthName  = AV16tMonthName6;
     /* Execute user subroutine: 'GETCOUNTBYMONTH' */
     S111();
     if (returnInSub)
     {
         this.cleanup();
         if (true)
         {
             return;
         }
     }
     AV19tSubItem.gxTpr_Value = StringUtil.Trim(StringUtil.Str((decimal)(AV20tCount), 18, 0));
     AV18tSDT_EncounterCount.Add(AV19tSubItem, 0);
     AV22oContent = AV18tSDT_EncounterCount.ToJSonString(false);
     this.cleanup();
 }