/// <summary> /// Assigns the monthly productivity report. /// </summary> /// <param name="reportPresenter">The report presenter.</param> private void AssignMonthlyProductivityReport(ReportPresenter reportPresenter) { var startDate = reportPresenter.ReportFilter.DateFromRoleProductivity.HasValue ? reportPresenter.ReportFilter.DateFromRoleProductivity : DateTime.MinValue; var endDate = reportPresenter.ReportFilter.DateToRoleProductivity.HasValue ? reportPresenter.ReportFilter.DateToRoleProductivity : DateTime.MaxValue; ////var isHourlyOrByHeadcount = reportPresenter.ReportFilter.IsHourlyOrByHeadcount; var roleGroup = reportPresenter.SelectedMenuItem.Equals(ReportOption.MonthlyProductivity.ToString()) == true ? reportPresenter.ReportFilter.SelectedRoleGroup.ToString() == "0" ? null : reportPresenter.ReportFilter.SelectedRoleGroup.ToString() : null; var monthlyProductivityReportingData = this.reportService.RetrieveMonthlyProductivityData(startDate.Value.Month, startDate.Value.Year, endDate.Value.Month, endDate.Value.Year, roleGroup, SessionData.Instance.UserInfo.Developer.DeveloperID); reportPresenter.AssignMonthlyProductivityData(monthlyProductivityReportingData); }