Example #1
0
        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);
        }
Example #2
0
        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;
        }
Example #3
0
 public ReportTaskInfo(ReportDeliveryInfo delivery, ReportGrabberInfo grabber, ReportExecutionInfo execution)
 {
     _delivery = delivery;
     _grabber = grabber;
     _execution = execution;
 }
Example #4
0
 public ReportTaskInfo(ReportDeliveryInfo delivery, ReportGrabberInfo grabber, ReportExecutionInfo execution)
 {
     _delivery  = delivery;
     _grabber   = grabber;
     _execution = execution;
 }