ProcessJobInfo.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Runtime.Serialization;
  4. using MECF.Framework.Common.Equipment;
  5. using MECF.Framework.Common.Schedulers;
  6. namespace MECF.Framework.Common.Jobs
  7. {
  8. [Serializable]
  9. [DataContract]
  10. public class ProcessJobInfo
  11. {
  12. [DataMember]
  13. public SequenceInfo Sequence { get; set; }
  14. [DataMember]
  15. public EnumProcessJobState State { get; private set; }
  16. [DataMember]
  17. public string Name { get; set; }
  18. [DataMember]
  19. public string LotName { get; set; }
  20. [DataMember]
  21. public string ControlJobName { get; set; }
  22. [DataMember]
  23. public Guid InnerId { get; set; }
  24. [DataMember]
  25. public List<Tuple<ModuleName, int>> SlotWafers { get; set; }
  26. [DataMember]
  27. public DateTime CreateTime { get; set; }
  28. [DataMember]
  29. public DateTime BeginTime { get; set; }
  30. [DataMember]
  31. public DateTime EndTime { get; set; }
  32. public ProcessJobInfo()
  33. {
  34. State = EnumProcessJobState.Created;
  35. InnerId = Guid.NewGuid();
  36. }
  37. public void SetState(EnumProcessJobState state)
  38. {
  39. State = state;
  40. }
  41. }
  42. }