EFEMProvider.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using OpenSEMI.ClientBase.ServiceProvider;
  7. using MECF.Framework.Common.OperationCenter;
  8. using MECF.Framework.Common.Equipment;
  9. using Aitex.Core.Common;
  10. namespace VirgoUI.Client.Models.Platform.EFEM
  11. {
  12. public class EFEMProvider : IProvider
  13. {
  14. private static EFEMProvider _Instance = null;
  15. public static EFEMProvider Instance
  16. {
  17. get
  18. {
  19. if (_Instance == null)
  20. _Instance = new EFEMProvider();
  21. return _Instance;
  22. }
  23. }
  24. public void Create()
  25. {
  26. }
  27. #region EFEM
  28. public void Home(string moduleID)
  29. {
  30. InvokeClient.Instance.Service.DoOperation($"{moduleID}.Home");
  31. }
  32. public void Reset(string moduleID)
  33. {
  34. InvokeClient.Instance.Service.DoOperation($"{moduleID}.Reset");
  35. }
  36. public void Abort(string moduleID)
  37. {
  38. InvokeClient.Instance.Service.DoOperation($"{moduleID}.Abort");
  39. }
  40. #endregion
  41. }
  42. }