ControlJob.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using Aitex.Core.Common;
  4. namespace MECF.Framework.Common.Jobs
  5. {
  6. [Serializable]
  7. public class ControlJobInfo
  8. {
  9. public string Name { get; set; }
  10. public Guid InnerId { get; set; }
  11. public string Module { get; set; }
  12. public List<string> ProcessJobNameList { get; set; }
  13. public EnumControlJobState State { get; set; }
  14. public string LotName { get; set; }
  15. public Guid LotInnerId { get; set; }
  16. public List<WaferInfo> LotWafers { get; set; }
  17. public string CarrierID { get; set; }
  18. public DateTime CreateTime { get; set; }
  19. public DateTime BeginTime { get; set; }
  20. public DateTime EndTime { get; set; }
  21. /// <summary>
  22. /// job优先级,默认是0,值越大优先级越高
  23. /// 以应对有些job需要优先执行
  24. /// </summary>
  25. public int PriorityExecuteLevel { get; set; }
  26. public ControlJobInfo()
  27. {
  28. ProcessJobNameList = new List<string>();
  29. State = EnumControlJobState.Queued;
  30. InnerId = Guid.NewGuid();
  31. }
  32. public void SetState(EnumControlJobState state)
  33. {
  34. State = state;
  35. }
  36. }
  37. }