Example #1
0
        protected virtual void OnRefreshFilters(string obj)
        {
            var sw = FilterGroups[0].SelectedValue as WorkPeriod;

            if (sw == null)
            {
                return;
            }
            if (ReportContext.CurrentWorkPeriod != null && (ReportContext.StartDate != sw.StartDate || ReportContext.EndDate != sw.EndDate))
            {
                ReportContext.CurrentWorkPeriod =
                    ReportContext.CreateCustomWorkPeriod("", ReportContext.StartDate, ReportContext.EndDate);
            }
            else
            {
                ReportContext.CurrentWorkPeriod =
                    FilterGroups[0].SelectedValue as WorkPeriod;
            }
            RefreshReport();
        }
Example #2
0
 protected override void OnNavigate(string obj)
 {
     base.OnNavigate(obj);
     ReportContext.ResetCache();
     ReportContext.CurrentWorkPeriod = ReportContext.ApplicationState.CurrentWorkPeriod;
 }
Example #3
0
 private void OnNavigateReportModule(string obj)
 {
     _regionManager.Regions[RegionNames.MainRegion].Activate(_basicReportView);
     ReportContext.ResetCache();
     ReportContext.CurrentWorkPeriod = AppServices.MainDataContext.CurrentWorkPeriod;
 }