static public IEnumerable <IReportExecutor> Create(ReportExecutionInfo executionInfo) { var executors = new List <IReportExecutor>(); if (executionInfo.InsertDuty) { executors.Add(new InsertDutyReportExecutor()); } if (executionInfo.UpdateLimits) { executors.Add(new UpdateLimitsReportExecutor()); } if (executionInfo.PaymentsReestr) { executors.Add(new AddDebtorPaymentsReportExecutor()); } return(executors); }
public static IEnumerable<IReportExecutor> Create(ReportExecutionInfo executionInfo) { var executors = new List<IReportExecutor>(); if (executionInfo.InsertDuty) executors.Add(new InsertDutyReportExecutor()); if (executionInfo.UpdateLimits) executors.Add(new UpdateLimitsReportExecutor()); if (executionInfo.PaymentsReestr) executors.Add(new AddDebtorPaymentsReportExecutor()); return executors; }
public ReportTaskInfo(ReportDeliveryInfo delivery, ReportGrabberInfo grabber, ReportExecutionInfo execution) { _delivery = delivery; _grabber = grabber; _execution = execution; }