123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467 |
- using Aitex.Core.Common;
- using Aitex.Core.UI.MVVM;
- using Aitex.Core.Util;
- using Aitex.Sorter.Common;
- using MECF.Framework.Common.OperationCenter;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Input;
- using MECF.Framework.Common.Equipment;
- namespace Aitex.Sorter.UI.Controls
- {
- public class EFEMBase : ViewModelControl
- {
- [Subscription(ParamName.CassetteState, DeviceName.LP1)]
- public LoadportCassetteState LPACassetteState
- {
- get;
- set;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP1)]
- public FoupDoorState LPADoorState
- {
- get;
- set;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP2)]
- public LoadportCassetteState LPBCassetteState
- {
- get;
- set;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP2)]
- public FoupDoorState LPBDoorState
- {
- get;
- set;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP3)]
- public LoadportCassetteState LPCCassetteState
- {
- get;
- set;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP3)]
- public FoupDoorState LPCDoorState
- {
- get;
- set;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP4)]
- public LoadportCassetteState LPDCassetteState
- {
- get;
- set;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP4)]
- public FoupDoorState LPDDoorState
- {
- get;
- set;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP5)]
- public LoadportCassetteState LPECassetteState
- {
- get;
- set;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP5)]
- public FoupDoorState LPEDoorState
- {
- get;
- set;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP6)]
- public LoadportCassetteState LPFCassetteState
- {
- get;
- set;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP6)]
- public FoupDoorState LPFDoorState
- {
- get;
- set;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP7)]
- public LoadportCassetteState LPGCassetteState
- {
- get;
- set;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP7)]
- public FoupDoorState LPGDoorState
- {
- get;
- set;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP8)]
- public LoadportCassetteState LPHCassetteState
- {
- get;
- set;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP8)]
- public FoupDoorState LPHDoorState
- {
- get;
- set;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP9)]
- public LoadportCassetteState LPICassetteState
- {
- get;
- set;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP9)]
- public FoupDoorState LPIDoorState
- {
- get;
- set;
- }
- [Subscription(ParamName.CassetteState, DeviceName.LP10)]
- public LoadportCassetteState LPJCassetteState
- {
- get;
- set;
- }
- [Subscription(ParamName.FoupDoorState, DeviceName.LP10)]
- public FoupDoorState LPJDoorState
- {
- get;
- set;
- }
- [Subscription(ParamName.IsDocked, DeviceName.LP1)]
- public bool LP1IsDockState { get; set; }
- [Subscription(ParamName.IsDocked, DeviceName.LP2)]
- public bool LP2IsDockState { get; set; }
- [Subscription(ParamName.IsDocked, DeviceName.LP3)]
- public bool LP3IsDockState { get; set; }
- [Subscription(ParamName.IsDocked, DeviceName.LP4)]
- public bool LP4IsDockState { get; set; }
- [Subscription(ParamName.IsDocked, DeviceName.LP5)]
- public bool LP5IsDockState { get; set; }
- [Subscription(ParamName.IsDocked, DeviceName.LP6)]
- public bool LP6IsDockState { get; set; }
- [Subscription(ParamName.IsDocked, DeviceName.LP7)]
- public bool LP7IsDockState { get; set; }
- [Subscription(ParamName.IsDocked, DeviceName.LP8)]
- public bool LP8IsDockState { get; set; }
- [Subscription(ParamName.IsDocked, DeviceName.LP9)]
- public bool LP9IsDockState { get; set; }
- [Subscription(ParamName.IsDocked, DeviceName.LP10)]
- public bool LP10IsDockState { get; set; }
- [Subscription(ParamName.ModuleWaferList, DeviceName.Buffer)]
- public WaferInfo[] BufferWafers
- {
- get;
- set;
- }
- public WaferInfo BufferWafer
- {
- get
- {
- if (BufferWafers != null)
- {
- return BufferWafers[0];
- }
- else
- {
- return null;
- }
- }
- }
- [Subscription(ParamName.ModuleWaferList, DeviceName.Buffer1)]
- public WaferInfo[] Buffer1Wafers
- {
- get;
- set;
- }
- public WaferInfo Buffer1Wafer
- {
- get
- {
- if (Buffer1Wafers != null)
- {
- return Buffer1Wafers[0];
- }
- else
- {
- return null;
- }
- }
- }
- [Subscription(ParamName.ModuleWaferList, DeviceName.Aligner)]
- public WaferInfo[] AlignerWafers
- {
- get;
- set;
- }
- [Subscription(ParamName.ModuleWaferList, DeviceName.Aligner2)]
- public WaferInfo[] Aligner2Wafers
- {
- get;
- set;
- }
- public WaferInfo AlignerWafer
- {
- get
- {
- if (AlignerWafers != null)
- {
- return AlignerWafers[0];
- }
- else
- {
- return null;
- }
- }
- }
- public WaferInfo Aligner2Wafer
- {
- get
- {
- if (Aligner2Wafers != null)
- {
- return Aligner2Wafers[0];
- }
- else
- {
- return null;
- }
- }
- }
- [Subscription(ParamName.ModuleWaferList, DeviceName.LL1)]
- public WaferInfo[] LL1Wafers
- {
- get;
- set;
- }
- public WaferInfo Loadlock1Wafer
- {
- get
- {
- if (LL1Wafers != null)
- {
- return LL1Wafers[0];
- }
- else
- {
- return null;
- }
- }
- }
- [Subscription(ParamName.ModuleWaferList, DeviceName.LL2)]
- public WaferInfo[] LL2Wafers
- {
- get;
- set;
- }
- public WaferInfo Loadlock2Wafer
- {
- get
- {
- if (LL2Wafers != null)
- {
- return LL2Wafers[0];
- }
- else
- {
- return null;
- }
- }
- }
- [Subscription(ParamName.ModuleWaferList, DeviceName.LL3)]
- public WaferInfo[] LL3Wafers
- {
- get;
- set;
- }
- public WaferInfo Loadlock3Wafer
- {
- get
- {
- if (LL3Wafers != null)
- {
- return LL3Wafers[0];
- }
- else
- {
- return null;
- }
- }
- }
- [Subscription(ParamName.ModuleWaferList, DeviceName.LL4)]
- public WaferInfo[] LL4Wafers
- {
- get;
- set;
- }
- public WaferInfo Loadlock4Wafer
- {
- get
- {
- if (LL4Wafers != null)
- {
- return LL4Wafers[0];
- }
- else
- {
- return null;
- }
- }
- }
- [Subscription(ParamName.ModuleWaferList, DeviceName.TurnOverStation)]
- public WaferInfo[] TurnOverStationWafers
- {
- get;
- set;
- }
- public WaferInfo TurnOverStationWafer
- {
- get
- {
- if (TurnOverStationWafers != null)
- {
- return TurnOverStationWafers[0];
- }
- else
- {
- return null;
- }
- }
- }
- public ICommand DeviceOperationCommand
- {
- get;
- private set;
- }
- public ICommand WaferTransferOptionCommand { get; set; }
- private WaferInfo[] robotWafers;
- [Subscription(ParamName.ModuleWaferList, DeviceName.Robot)]
- public WaferInfo[] RobotWafers
- {
- get
- {
- return robotWafers;
- }
- set
- {
- robotWafers = value;
- RobotWafer1 = value[0];
- RobotWafer2 = value[1];
- }
- }
- public WaferInfo RobotWafer1
- {
- get;
- set;
- }
- public WaferInfo RobotWafer2
- {
- get;
- set;
- }
- [Subscription(ParamName.RobotBlade1Traget, DeviceName.Robot)]
- public ModuleName RobotBladeTarget
- {
- get;
- set;
- }
- [Subscription(ParamName.RobotBlade2Traget, DeviceName.Robot)]
- public ModuleName RobotBlade2Target
- {
- get;
- set;
- }
- public virtual Dictionary<string, StationPosition> StationPosition
- {
- get;
- }
- public EFEMBase()
- {
- DeviceOperationCommand = new DelegateCommand<object>(DeviceOperation);
- WaferTransferOptionCommand = new DelegateCommand<WaferTransferOption>(DoWaferTransferOption);
- }
- protected virtual void DoWaferTransferOption(WaferTransferOption obj)
- {
- }
- void DeviceOperation(object param)
- {
- InvokeClient.Instance.Service.DoOperation(OperationName.DeviceOperation.ToString(), (object[])param);
- }
- }
- }
|