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