123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- using System.Collections.Generic;
- using MECF.Framework.Common.OperationCenter;
- using OpenSEMI.ClientBase.ServiceProvider;
- namespace VirgoUI.Client.Models.Operate.WaferAssociation
- {
- public class WaferAssociationProvider : IProvider
- {
- private static WaferAssociationProvider _Instance = null;
- public static WaferAssociationProvider Instance
- {
- get
- {
- if (_Instance == null)
- _Instance = new WaferAssociationProvider();
- return _Instance;
- }
- }
- public void Create()
- {
- }
- public void CreateJob(string jobId, string module, List<string> slotSequence, bool autoStart )
- {
- Dictionary<string, object> param = new Dictionary<string, object>()
- {
- {"JobId", jobId},
- {"Module", module},
- {"SlotSequence", slotSequence.ToArray()},
- {"AutoStart", autoStart},
- };
- InvokeClient.Instance.Service.DoOperation("System.CreateJob", param);
- }
- public void AbortJob(string jobID)
- {
- var param = new object[] { jobID };
- InvokeClient.Instance.Service.DoOperation("System.AbortJob", param);
- }
- public void Start(string jobID)
- {
- var param = new object[] { jobID };
- InvokeClient.Instance.Service.DoOperation("System.StartJob", param);
- }
- public void Pause(string jobID)
- {
- var param = new object[] { jobID };
- InvokeClient.Instance.Service.DoOperation("System.PauseJob", param);
- }
- public void Resume(string jobID)
- {
- var param = new object[] { jobID };
- InvokeClient.Instance.Service.DoOperation("System.ResumeJob", param);
- }
- public void Stop(string jobID)
- {
- var param = new object[] { jobID };
- InvokeClient.Instance.Service.DoOperation("System.StopJob", param);
- }
- }
- }
|