WaferInfo.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Caliburn.Micro.Core;
  7. namespace OpenSEMI.ClientBase
  8. {
  9. public class WaferInfo : PropertyChangedBase
  10. {
  11. private int _WaferStatus = 0; // WaferStatus.Empty;
  12. public int WaferStatus
  13. {
  14. get { return _WaferStatus; }
  15. set { _WaferStatus = value; NotifyOfPropertyChange("WaferStatus"); }
  16. }
  17. public bool HasWafer
  18. {
  19. get
  20. {
  21. return WaferStatus != 0;
  22. }
  23. }
  24. /// <summary>
  25. /// SlotID start from 0
  26. /// </summary>
  27. private int _slotID;
  28. public int SlotID
  29. {
  30. get { return _slotID; }
  31. set { _slotID = value; NotifyOfPropertyChange("SlotID"); }
  32. }
  33. private bool _isReversed = false;
  34. public bool IsReversed
  35. {
  36. get { return _isReversed&&(WaferStatus!=0); }
  37. set { _isReversed = value; NotifyOfPropertyChange("IsReversed"); }
  38. }
  39. /// <summary>
  40. /// SlotIndex start from 1
  41. /// </summary>
  42. private int _slotIndex;
  43. public int SlotIndex
  44. {
  45. get { return _slotIndex; }
  46. set { _slotIndex = value; NotifyOfPropertyChange("SlotIndex"); }
  47. }
  48. private string _moduleID;
  49. public string ModuleID
  50. {
  51. get { return _moduleID; }
  52. set { _moduleID = value; NotifyOfPropertyChange("ModuleID"); }
  53. }
  54. private string _waferid;
  55. public string WaferID
  56. {
  57. get { return _waferid; }
  58. set { _waferid = value; NotifyOfPropertyChange("WaferID"); }
  59. }
  60. private string _sourceName;
  61. public string SourceName
  62. {
  63. get { return _sourceName; }
  64. set { _sourceName = value; NotifyOfPropertyChange("SourceName"); }
  65. }
  66. private string _sequenceName = string.Empty;
  67. public string SequenceName
  68. {
  69. get { return _sequenceName; }
  70. set { _sequenceName = value; NotifyOfPropertyChange("SequenceName"); }
  71. }
  72. private string _originName = string.Empty;
  73. public string OriginName
  74. {
  75. get { return _originName; }
  76. set { _originName = value; NotifyOfPropertyChange("OriginName"); }
  77. }
  78. private string _orient = string.Empty;
  79. public string Orient
  80. {
  81. get { return _orient; }
  82. set { _orient = value; NotifyOfPropertyChange("Orient"); }
  83. }
  84. }
  85. }