WaferAssociationProvider.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System.Collections.Generic;
  2. using MECF.Framework.Common.OperationCenter;
  3. using OpenSEMI.ClientBase.ServiceProvider;
  4. namespace VirgoUI.Client.Models.Operate.WaferAssociation
  5. {
  6. public class WaferAssociationProvider : IProvider
  7. {
  8. private static WaferAssociationProvider _Instance = null;
  9. public static WaferAssociationProvider Instance
  10. {
  11. get
  12. {
  13. if (_Instance == null)
  14. _Instance = new WaferAssociationProvider();
  15. return _Instance;
  16. }
  17. }
  18. public void Create()
  19. {
  20. }
  21. public void CreateJob(string jobId, string module, List<string> slotSequence, bool autoStart )
  22. {
  23. Dictionary<string, object> param = new Dictionary<string, object>()
  24. {
  25. {"JobId", jobId},
  26. {"Module", module},
  27. {"SlotSequence", slotSequence.ToArray()},
  28. {"AutoStart", autoStart},
  29. };
  30. InvokeClient.Instance.Service.DoOperation("System.CreateJob", param);
  31. }
  32. public void AbortJob(string jobID)
  33. {
  34. var param = new object[] { jobID };
  35. InvokeClient.Instance.Service.DoOperation("System.AbortJob", param);
  36. }
  37. public void Start(string jobID)
  38. {
  39. var param = new object[] { jobID };
  40. InvokeClient.Instance.Service.DoOperation("System.StartJob", param);
  41. }
  42. public void Pause(string jobID)
  43. {
  44. var param = new object[] { jobID };
  45. InvokeClient.Instance.Service.DoOperation("System.PauseJob", param);
  46. }
  47. public void Resume(string jobID)
  48. {
  49. var param = new object[] { jobID };
  50. InvokeClient.Instance.Service.DoOperation("System.ResumeJob", param);
  51. }
  52. public void Stop(string jobID)
  53. {
  54. var param = new object[] { jobID };
  55. InvokeClient.Instance.Service.DoOperation("System.StopJob", param);
  56. }
  57. }
  58. }