using Admin.Core.IService; using Admin.Core.Model; using Admin.Core.Service; using Aucma.Scada.UI.Common; using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Aucma.Scada.UI { /// /// 任务业务逻辑 /// public class TaskInfoBusiness { #region 单例实现 //private static readonly TaskInfoBusiness lazy = new TaskInfoBusiness(); //public static TaskInfoBusiness Instance //{ // get // { // return lazy; // } //} #endregion #region 对象引用 private AppConfig appConfig = new AppConfig();//AppConfig.Instance; #endregion #region 接口引用 private IRealTaskInfoServices _taskInfoService; #endregion public TaskInfoBusiness() { _taskInfoService = App.ServiceProvider.GetService(); } /// /// 获取计划列表 /// /// /// public async Task> GetTaskInfos(int taskType) { return await _taskInfoService.GetTaskInfosByTaskStatus(new string[] { appConfig.shellStoreCode, appConfig.linerStoreCode }, taskType, 0); } } }