38 lines
859 B
C#
38 lines
859 B
C#
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 EveryFiveMinuteJob : IJob
|
|
{
|
|
|
|
private IPurchaseOrderService _purchaseOrderService;
|
|
|
|
public EveryFiveMinuteJob(IPurchaseOrderService purchaseOrderService)
|
|
{
|
|
_purchaseOrderService = purchaseOrderService;
|
|
|
|
}
|
|
|
|
|
|
public void Execute(IJobExecutionContext context)
|
|
{
|
|
_purchaseOrderService.AddOrderFromKingDee();
|
|
|
|
}
|
|
}
|
|
}
|
|
|