WaferAssociationProvider.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System.Collections.Generic;
  2. using MECF.Framework.Common.OperationCenter;
  3. using OpenSEMI.ClientBase.ServiceProvider;
  4. namespace MECF.Framework.UI.Client.CenterViews.Operations.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, List<string> slotPJName, bool autoStart )
  22. {
  23. Dictionary<string, object> param = new Dictionary<string, object>()
  24. {
  25. {"JobId", jobId},
  26. {"Module", module},
  27. {"SlotSequence", slotSequence.ToArray()},
  28. {"PJName", slotPJName.ToArray()},
  29. {"AutoStart", autoStart},
  30. };
  31. InvokeClient.Instance.Service.DoOperation("System.CreateJob", param);
  32. }
  33. public void AbortJob(string jobID)
  34. {
  35. var param = new object[] { jobID };
  36. InvokeClient.Instance.Service.DoOperation("System.AbortJob", param);
  37. }
  38. public void Start(string jobID)
  39. {
  40. var param = new object[] { jobID };
  41. InvokeClient.Instance.Service.DoOperation("System.StartJob", param);
  42. }
  43. public void Pause(string jobID)
  44. {
  45. var param = new object[] { jobID };
  46. InvokeClient.Instance.Service.DoOperation("System.PauseJob", param);
  47. }
  48. public void Resume(string jobID)
  49. {
  50. var param = new object[] { jobID };
  51. InvokeClient.Instance.Service.DoOperation("System.ResumeJob", param);
  52. }
  53. public void Stop(string jobID)
  54. {
  55. var param = new object[] { jobID };
  56. InvokeClient.Instance.Service.DoOperation("System.StopJob", param);
  57. }
  58. }
  59. }