WaferAssociationInfo.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. using Caliburn.Micro.Core;
  2. using MECF.Framework.UI.Client.ClientBase;
  3. using OpenSEMI.ClientBase;
  4. namespace MECF.Framework.UI.Client.CenterViews.Operations.WaferAssociation
  5. {
  6. public class WaferAssociationInfo : PropertyChangedBase
  7. {
  8. private int _slotFrom = 1;
  9. public int SlotFrom
  10. {
  11. get { return _slotFrom; }
  12. set { _slotFrom = value; NotifyOfPropertyChange("SlotFrom"); }
  13. }
  14. private int _slotTo = 25;
  15. public int SlotTo
  16. {
  17. get { return _slotTo; }
  18. set { _slotTo = value; NotifyOfPropertyChange("SlotTo"); }
  19. }
  20. private string _sequenceName = string.Empty;
  21. public string SequenceName
  22. {
  23. get { return _sequenceName; }
  24. set { _sequenceName = value; NotifyOfPropertyChange("SequenceName"); }
  25. }
  26. private string _lotId = string.Empty;
  27. public string LotId
  28. {
  29. get { return _lotId; }
  30. set { _lotId = value; NotifyOfPropertyChange("LotId"); }
  31. }
  32. private bool _LotIdSaved = true;
  33. public bool LotIdSaved
  34. {
  35. get { return _LotIdSaved; }
  36. set { _LotIdSaved = value; NotifyOfPropertyChange("LotIdSaved"); }
  37. }
  38. private string _JobID = string.Empty;
  39. public string JobID
  40. {
  41. get { return _JobID; }
  42. set { _JobID = value; NotifyOfPropertyChange("JobID"); }
  43. }
  44. private ModuleInfo _ModuleData;
  45. public ModuleInfo ModuleData
  46. {
  47. get { return _ModuleData; }
  48. set { _ModuleData = value; NotifyOfPropertyChange("ModuleData"); }
  49. }
  50. private string _JobStatus = string.Empty;
  51. public string JobStatus
  52. {
  53. get { return _JobStatus; }
  54. set { _JobStatus = value;
  55. NotifyOfPropertyChange("JobStatus");
  56. NotifyOfPropertyChange("IsEnableSelect");
  57. NotifyOfPropertyChange("IsEnableCreate");
  58. NotifyOfPropertyChange("IsEnableAbort");
  59. NotifyOfPropertyChange("IsEnableStart");
  60. NotifyOfPropertyChange("IsEnablePause");
  61. NotifyOfPropertyChange("IsEnableResume");
  62. NotifyOfPropertyChange("IsEnableStop");
  63. }
  64. }
  65. public bool IsEnableSelect
  66. {
  67. get { return !IsCreated; }
  68. }
  69. public bool IsEnableCreate
  70. {
  71. get { return !IsCreated; }
  72. }
  73. public bool IsEnableAbort
  74. {
  75. get { return IsCreated; }
  76. }
  77. public bool IsEnableStart
  78. {
  79. get { return IsCreated && IsWaitingForStart; }
  80. }
  81. public bool IsEnablePause
  82. {
  83. get { return IsExecuting; }
  84. }
  85. public bool IsEnableResume
  86. {
  87. get { return IsPaused; }
  88. }
  89. public bool IsEnableStop
  90. {
  91. get { return IsExecuting || IsPaused; }
  92. }
  93. private bool IsCreated
  94. {
  95. get { return !string.IsNullOrEmpty(JobStatus); }
  96. }
  97. private bool IsExecuting
  98. {
  99. get { return JobStatus== "Executing"; }
  100. }
  101. private bool IsWaitingForStart
  102. {
  103. get { return JobStatus == "WaitingForStart"; }
  104. }
  105. private bool IsPaused
  106. {
  107. get { return JobStatus == "Paused"; }
  108. }
  109. private bool IsCompleted
  110. {
  111. get { return JobStatus == "Completed"; }
  112. }
  113. //Queued,Selected,WaitingForStart,Executing,Paused,Completed,
  114. }
  115. }