Management.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using LocalhostMES.Api.Hosting;
  2. using LocalhostMES.Api.Services;
  3. using LocalhostMES.Models;
  4. using Prism.Ioc;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.ComponentModel;
  8. using System.Linq;
  9. using System.Runtime.InteropServices.WindowsRuntime;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. namespace LocalhostMES.Core
  13. {
  14. public class Management
  15. {
  16. private IContainerProvider _container;
  17. private WebApiService _webApiService;
  18. private MesApiClient _apiClient;
  19. private WorkOrderNotifyTcpClient _workOrderNotifyTcpClient;
  20. private List<WorkOrderInfo> _getOrderInfo = new List<WorkOrderInfo>();
  21. private bool _IsLocalhostMode = false;
  22. public MesApiClient ApiClient { get => _apiClient; set => _apiClient = value; }
  23. public WebApiService WebApiService { get => _webApiService; set => _webApiService = value; }
  24. public WorkOrderNotifyTcpClient WorkOrderNotifyTcpClient { get => _workOrderNotifyTcpClient; set => _workOrderNotifyTcpClient = value; }
  25. public List<WorkOrderInfo> GetOrderInfo { get => _getOrderInfo; set => _getOrderInfo = value; }
  26. public bool IsLocalhostMode { get => _IsLocalhostMode; set => _IsLocalhostMode = value; }
  27. public static Management management = new Management();
  28. public static Management GetManagement()
  29. {
  30. return management;
  31. }
  32. }
  33. }