using Quartz; using System; using System.Data; using System.Data.Common; using MyCode.Project.Services; using MyCode.Project.Infrastructure; using MyCode.Project.Infrastructure.UnityExtensions; using Microsoft.Practices.Unity; using System.Reflection; using MyCode.Project.Domain.Model; using System.Collections; using System.Collections.Specialized; using System.Collections.Generic; using System.Threading; namespace MyCode.Project.ScheduleTask.Jobs { public class Report2301Job : IJob { private IReport2301Service _report2301Service; private IReport2303Service _report2303Service; public Report2301Job(IReport2301Service report2301Service , IReport2303Service report2303Service) { _report2301Service = report2301Service; _report2303Service= report2303Service; } public void Execute(IJobExecutionContext context) { try { _report2301Service.Task2301ReportData();//调度启动计算2023-01版本的诊断四表 } catch { } try { _report2301Service.TaskMemberServiceInvData();//调度启动存储会员的剩余服务次数 } catch (Exception ex) { } try { _report2303Service.TaskAddWorkProcessOf2301ReportDataEveryDays(); //增加每日诊断四表的调度任务 } catch { } } } }