using Aucma.Scada.Model.domain;
using HighWayIot.Config;
using HighWayIot.Repository.service;
using System;
using System.Collections.Generic;
namespace Aucma.Scada.Business
{
///
/// 任务业务逻辑
///
public sealed class TaskInfoBusiness
{
#region 单例实现
private static readonly Lazy lazy = new Lazy(() => new TaskInfoBusiness());
public static TaskInfoBusiness Instance
{
get
{
return lazy.Value;
}
}
#endregion
#region 对象引用
private AppConfig appConfig = AppConfig.Instance;
private RegisterServices registerServices = RegisterServices.Instance;
#endregion
#region 接口引用
private IRealTaskInfoService _taskInfoService;
#endregion
private TaskInfoBusiness()
{
_taskInfoService = registerServices.GetService();
}
///
/// 获取计划列表
///
///
///
public List GetTaskInfos(int taskType)
{
return _taskInfoService.GetTaskInfosByTaskStatus(new string[] { appConfig.foamStoreCode }, taskType, 0);
}
}
}