public WorksOrderPrint CreateWorksOrderDayPrint() { var resources = _appointmentsService.GetAllResources(CurrentTenantId).ToList(); var combinedReport = new WorksOrderPrint { FilterString = "[WorksAppointmentResourcesId] In (?paramResourceIds)" }; combinedReport.paramScheduleDate.Value = DateTime.Today; StaticListLookUpSettings paramResourceIdsSettings = (StaticListLookUpSettings)combinedReport.paramResourceIds.LookUpSettings; paramResourceIdsSettings.LookUpValues.AddRange(resources.Select(m => new LookUpValue(m.ResourceId, m.Name))); combinedReport.ParametersRequestBeforeShow += CombinedReport_ParametersRequestBeforeShow; return(combinedReport); }