WaferAssociationInfo.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. using OpenSEMI.ClientBase;
  2. using Prism.Mvvm;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace CyberX8_MainPages.Unity
  9. {
  10. public class WaferAssociationInfo :BindableBase
  11. {
  12. private int _slotFrom = 1;
  13. public int SlotFrom
  14. {
  15. get { return _slotFrom; }
  16. set { _slotFrom = value; RaisePropertyChanged("SlotFrom"); }
  17. }
  18. private int _slotTo = 25;
  19. public int SlotTo
  20. {
  21. get { return _slotTo; }
  22. set { _slotTo = value; RaisePropertyChanged("SlotTo"); }
  23. }
  24. private string _sequenceName = string.Empty;
  25. public string SequenceName
  26. {
  27. get { return _sequenceName; }
  28. set { _sequenceName = value; RaisePropertyChanged("SequenceName"); }
  29. }
  30. private string _JobID = string.Empty;
  31. public string JobID
  32. {
  33. get { return _JobID; }
  34. set { _JobID = value; RaisePropertyChanged("JobID"); }
  35. }
  36. private ModuleInfo _ModuleData;
  37. public ModuleInfo ModuleData
  38. {
  39. get { return _ModuleData; }
  40. set { _ModuleData = value; RaisePropertyChanged("ModuleData"); }
  41. }
  42. private string _JobStatus = string.Empty;
  43. public string JobStatus
  44. {
  45. get { return _JobStatus; }
  46. set
  47. {
  48. _JobStatus = value;
  49. RaisePropertyChanged("JobStatus"); RaisePropertyChanged("EnableEditSlot");
  50. }
  51. }
  52. private string _lotId = string.Empty;
  53. public string LotId
  54. {
  55. get { return _lotId; }
  56. set { _lotId = value; RaisePropertyChanged("LotId"); }
  57. }
  58. private bool _LotIdSaved = true;
  59. public bool LotIdSaved
  60. {
  61. get { return _LotIdSaved; }
  62. set { _LotIdSaved = value; RaisePropertyChanged("LotIdSaved"); }
  63. }
  64. public bool EnableEditSlot
  65. {
  66. get { return string.IsNullOrEmpty(_JobStatus); }
  67. }
  68. /// <summary>
  69. /// CycleEnable
  70. /// </summary>
  71. private bool _IsEnableCycle;
  72. public bool IsEnableCycle
  73. {
  74. get { return _IsEnableCycle; }
  75. set
  76. {
  77. _IsEnableCycle = value;
  78. if (!value)
  79. {
  80. CycleNumber = 1;
  81. }
  82. RaisePropertyChanged("IsEnableCycle");
  83. }
  84. }
  85. /// <summary>
  86. /// CycleNumber
  87. /// </summary>
  88. private int _CycleNumber = 1;
  89. public int CycleNumber
  90. {
  91. get { return _CycleNumber; }
  92. set { _CycleNumber = value; RaisePropertyChanged("CycleNumber"); }
  93. }
  94. /// <summary>
  95. /// SequenceType
  96. /// </summary>
  97. private string _sequenceType;
  98. public string SequenceType
  99. {
  100. get { return _sequenceType; }
  101. set { _sequenceType = value; RaisePropertyChanged("SequenceType"); }
  102. }
  103. }
  104. }