/// <summary> /// Assigns the daily report status. /// </summary> /// <param name="reportPresenter">The report presenter.</param> private void AssignDailyReportStatus(ReportPresenter reportPresenter) { int? client = null; int? workCategory = null; IList<int> supervisorIds = null; if (reportPresenter.ReportFilter.SelectedClient > -1) { client = reportPresenter.ReportFilter.SelectedClient; } if (reportPresenter.ReportFilter.WorkCategory > -1) { workCategory = reportPresenter.ReportFilter.WorkCategory; } if (!string.IsNullOrEmpty(reportPresenter.SelectedSupervisorIds)) { supervisorIds = reportPresenter.SelectedSupervisorIds.Split(',').Select(id => Convert.ToInt32(id, CultureInfo.CurrentCulture)).ToList(); } AssignSelectedDevelopersIds(reportPresenter); AssignSelectedProjectIds(reportPresenter); AssignSelectedFeatureIds(reportPresenter); reportPresenter.AssignWorkDetail(this.timesheetReportService.RetrieveDailyReport(reportPresenter.ReportFilter.DateFrom, reportPresenter.ReportFilter.DateTo, client, reportPresenter.SelectedDeveloperIdsList, reportPresenter.SelectedProjectIds, workCategory, reportPresenter.ReportFilter.ClientDependency, reportPresenter.SelectedFeatureIds, SessionData.Instance.UserInfo.Developer.DeveloperID, supervisorIds, reportPresenter.ReportFilter.IsCalibratedHours, reportPresenter.ReportFilter.Rework)); }