You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.5 KiB
C#
48 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using FluentScheduler;
|
|
|
|
namespace POSV.Job
|
|
{
|
|
public class JobFactory : Registry
|
|
{
|
|
public JobFactory()
|
|
{
|
|
//不允许重复进入
|
|
NonReentrantAsDefault();
|
|
|
|
// 立即执行每两秒一次的计划任务。(指定一个时间间隔运行,根据自己需求,可以是秒、分、时、天、月、年等。)
|
|
Schedule<NetworkJob>().ToRunNow().AndEvery(20).Seconds();
|
|
|
|
//销售订单上送的定时任务
|
|
Schedule<OrderUploadJob>().ToRunNow().AndEvery(33).Seconds();
|
|
|
|
////耗料数据上传定时任务
|
|
Schedule<OrderBurdenJob>().ToRunNow().AndEvery(50).Seconds();
|
|
|
|
//交班上送的定时任务
|
|
Schedule<HandOverUpLoadJob>().ToRunNow().AndEvery(30).Seconds();
|
|
|
|
//非营业数据上传任务
|
|
Schedule<StoreCostRevenueUpLoadJob>().ToRunNow().AndEvery(155).Seconds();
|
|
|
|
//服务中心订单任务
|
|
Schedule<ServiceCenterUploadJob>().ToRunNow().AndEvery(5).Seconds();
|
|
|
|
|
|
Schedule<ShopOrderERP>().ToRunNow().AndEvery(33).Seconds();
|
|
|
|
|
|
#region subin 2023-07-24 add 分账上送定时任务
|
|
//销售订单分账信息上送的定时任务
|
|
//Schedule<SplitPayUploadJob>().ToRunNow().AndEvery(33).Seconds();
|
|
#endregion
|
|
}
|
|
}
|
|
|
|
}
|