| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- using LocalhostMES.Api.Hosting;
- using LocalhostMES.Api.Services;
- using LocalhostMES.Models;
- using Prism.Ioc;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Linq;
- using System.Runtime.InteropServices.WindowsRuntime;
- using System.Text;
- using System.Threading.Tasks;
- namespace LocalhostMES.Core
- {
- public class Management
- {
- private IContainerProvider _container;
- private WebApiService _webApiService;
- private MesApiClient _apiClient;
- private WorkOrderNotifyTcpClient _workOrderNotifyTcpClient;
- private List<WorkOrderInfo> _getOrderInfo = new List<WorkOrderInfo>();
- private bool _IsLocalhostMode = false;
- public MesApiClient ApiClient { get => _apiClient; set => _apiClient = value; }
- public WebApiService WebApiService { get => _webApiService; set => _webApiService = value; }
- public WorkOrderNotifyTcpClient WorkOrderNotifyTcpClient { get => _workOrderNotifyTcpClient; set => _workOrderNotifyTcpClient = value; }
- public List<WorkOrderInfo> GetOrderInfo { get => _getOrderInfo; set => _getOrderInfo = value; }
- public bool IsLocalhostMode { get => _IsLocalhostMode; set => _IsLocalhostMode = value; }
- public static Management management = new Management();
- public static Management GetManagement()
- {
- return management;
- }
- }
- }
|