public void InitOnlyDates()
 {
     Settings = new ReportSettings(true);
     pnlSettings.DataContext = Settings;
 }
 public void Init()
 {
     Settings = new ReportSettings();
     pnlSettings.DataContext = Settings;
 }
Пример #3
0
 public void RemoveChildReport(ReportSettings child)
 {
     if (ChildReports.Contains(child)) {
         ChildReports.Remove(child);
         child.ParentReport = null;
         child.IsChildReport = false;
         HasCompareReport = ChildReports.Count>0;
         NotifyChanged("ChildReports");
     }
 }
Пример #4
0
 public static DateTimeStartEnd getBySettings(ReportSettings settings)
 {
     switch (settings.reportType) {
         case ReportTypeEnum.dayByHalfHours:
         case ReportTypeEnum.dayByHours:
         case ReportTypeEnum.dayByMinutes:
         case ReportTypeEnum.day:
             return getFullDay(settings.Date);
         case ReportTypeEnum.monthByDays:
         case ReportTypeEnum.monthByHours:
         case ReportTypeEnum.monthByHalfHours:
         case ReportTypeEnum.month:
             return getFullMonth(settings.Year, settings.Month);
         case ReportTypeEnum.quarterByDays:
         case ReportTypeEnum.quarter:
             return getFullQuarter(settings.Year, settings.Quarter);
         case ReportTypeEnum.yearByHalfHours:
         case ReportTypeEnum.yearByHours:
         case ReportTypeEnum.yearByDays:
         case ReportTypeEnum.yearByMonths:
         case ReportTypeEnum.yearByQarters:
         case ReportTypeEnum.year:
             return getFullYear(settings.Year);
         case ReportTypeEnum.years:
             return getFullYears(settings.Year, settings.YearEnd);
     }
     return null;
 }
Пример #5
0
 public void AddChildReport(ReportSettings child)
 {
     if (!ChildReports.Contains(child)) {
         ChildReports.Add(child);
         child.ReportType = ReportType;
         child.ParentReport = this;
         child.IsChildReport = true;
         HasCompareReport = true;
     }
 }