123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Aitex.Core.Util;
- using EfemDualUI.Controls.Parts;
- using MECF.Framework.Common.CommonData;
- using MECF.Framework.UI.Client.CenterViews.Operations.WaferAssociation;
- using MECF.Framework.UI.Client.ClientBase;
- using VTMRobotPosition = MECF.Framework.UI.Client.ClientControls.RobotControls.VTMRobotPosition;
- namespace EfemDualUI
- {
- public class LocalModuleUIViewModelBase : ModuleUiViewModelBase
- {
- public ModuleInfo FOUPA { get; set; }
- public ModuleInfo FOUPB { get; set; }
- public ModuleInfo FOUPC { get; set; }
- public ModuleInfo FOUPD { get; set; }
- public ModuleInfo EFEM { get; set; }
- public ModuleInfo Buffer { get; set; }
- public ModuleInfo PM1 { get; set; }
- public ModuleInfo PM2 { get; set; }
- #region Wafer info for machine
- public WaferInfo BufferWafer
- {
- get
- {
- if (ModuleManager.ModuleInfos["Buffer"].WaferManager.Wafers.Count > 0)
- return ModuleManager.ModuleInfos["Buffer"].WaferManager.Wafers[0];
- return null;
- }
- }
- public WaferInfo PM1Wafer
- {
- get
- {
- if (ModuleManager.ModuleInfos["PM1"].WaferManager.Wafers.Count > 0)
- return ModuleManager.ModuleInfos["PM1"].WaferManager.Wafers[0];
- return null;
- }
- }
- public WaferInfo PM2Wafer
- {
- get
- {
- if (ModuleManager.ModuleInfos["PM2"].WaferManager.Wafers.Count > 0)
- return ModuleManager.ModuleInfos["PM2"].WaferManager.Wafers[0];
- return null;
- }
- }
- public WaferInfo EfemRobotWafer1
- {
- get
- {
- if (ModuleManager.ModuleInfos["EfemRobot"].WaferManager.Wafers.Count > 0)
- return ModuleManager.ModuleInfos["EfemRobot"].WaferManager.Wafers[0];
- return null;
- }
- }
- public WaferInfo EfemRobotWafer2
- {
- get
- {
- if (ModuleManager.ModuleInfos["EfemRobot"].WaferManager.Wafers.Count > 1)
- return ModuleManager.ModuleInfos["EfemRobot"].WaferManager.Wafers[1];
- return null;
- }
- }
- #endregion
- protected void InitFOUP()
- {
- FOUPA = ModuleManager.ModuleInfos["LP1"];
- FOUPB = ModuleManager.ModuleInfos["LP2"];
- FOUPC = ModuleManager.ModuleInfos["LP3"];
- }
- protected void InitBuffer()
- {
- Buffer = ModuleManager.ModuleInfos["Buffer"];
- }
- protected void InitPM()
- {
- PM1 = ModuleManager.ModuleInfos["PM1"];
- PM2 = ModuleManager.ModuleInfos["PM2"];
- }
- }
- public class LocalUIViewModelBase : UiViewModelBase
- {
- public string SystemName { get; set; }
- [Subscription("EfemRobot.RobotMoveInfo")]
- public RobotMoveInfo EfemRobotMoveInfo { get; set; }
- [Subscription("TMRobot.RobotMoveInfo")]
- public RobotMoveInfo TmRobotMoveInfo { get; set; }
- public VTMRobotPosition StationPosition { get; set; }
- public Dictionary<string, StationPosition> EfemStationPosition
- {
- get
- {
- return new Dictionary<string, StationPosition>()
- {
- { "System", new StationPosition() {
- StartPosition = new RobotPosition() { X=0, Root = 0, Arm = 180, Hand = 180 }
- ,EndPosition = new RobotPosition() { Root = 0, Arm = 180, Hand = 180 }}
- }
- ,{ "EfemRobot", new StationPosition() {
- StartPosition = new RobotPosition() { X=0, Root = 0, Arm = 180, Hand = 180 }
- ,EndPosition = new RobotPosition() { Root = 0, Arm = 180, Hand = 180 }}
- }
- ,{ "LP1", new StationPosition() {
- StartPosition = new RobotPosition() {X= -430, Root = 81, Arm = 191, Hand = 89 }
- ,EndPosition = new RobotPosition() { Root = 0, Arm = 360, Hand = 0 }}
- }
- ,{ "LP2", new StationPosition() {
- StartPosition = new RobotPosition() {X= -235, Root = 81, Arm = 191, Hand = 89 }
- ,EndPosition = new RobotPosition() { Root = 0, Arm = 360, Hand = 0 }}
- }
- ,{ "LP3", new StationPosition() {
- StartPosition = new RobotPosition() {X= -45, Root = 81, Arm = 191, Hand = 89 }
- ,EndPosition = new RobotPosition() { Root = 0, Arm = 360, Hand = 0 }}
- }
- ,{ "Aligner", new StationPosition() {
- StartPosition = new RobotPosition() {X=-360, Root = 90, Arm = 81, Hand = 194 }
- ,EndPosition = new RobotPosition() { Root = 90, Arm = 360, Hand = 0 }}
- }
- ,{ "LLA", new StationPosition() {
- StartPosition = new RobotPosition() {X= -350, Root = 261, Arm = 191, Hand = 89 }
- ,EndPosition = new RobotPosition() { Root = 180, Arm = 360, Hand = 0 }}
- }
- ,{ "LLB", new StationPosition() {
- StartPosition = new RobotPosition() {X= -185, Root = 261, Arm = 191, Hand = 89 }
- ,EndPosition = new RobotPosition() { Root = 180, Arm = 360, Hand = 0 }}
- }
- };
- }
- }
- public ModuleInfo FOUPA { get; set; }
- public ModuleInfo FOUPB { get; set; }
- public ModuleInfo FOUPC { get; set; }
- public ModuleInfo FOUPD { get; set; }
- public ModuleInfo EFEM { get; set; }
- public ModuleInfo TM { get; set; }
- public ModuleInfo Aligner { get; set; }
- public ModuleInfo LLA { get; set; }
- public ModuleInfo LLB { get; set; }
- public ModuleInfo PMA { get; set; }
- public ModuleInfo PMB { get; set; }
- #region Wafer info for machine
- private WaferAssociationInfo _lp1WaferAssociation;
- public WaferAssociationInfo LP1WaferAssociation
- {
- get { return _lp1WaferAssociation; }
- set { _lp1WaferAssociation = value; }
- }
- private WaferAssociationInfo _lp2WaferAssociation;
- public WaferAssociationInfo LP2WaferAssociation
- {
- get { return _lp2WaferAssociation; }
- set { _lp2WaferAssociation = value; }
- }
- private WaferAssociationInfo _lp3WaferAssociation;
- public WaferAssociationInfo LP3WaferAssociation
- {
- get { return _lp3WaferAssociation; }
- set { _lp3WaferAssociation = value; }
- }
- public WaferInfo LLAWafer1
- {
- get
- {
- return null;
- }
- }
- public WaferInfo LLAWafer2
- {
- get
- {
- return null;
- }
- }
- public WaferInfo LLBWafer1
- {
- get
- {
- return null;
- }
- }
- public WaferInfo LLBWafer2
- {
- get
- {
- return null;
- }
- }
- public WaferInfo BufferWafer
- {
- get
- {
- if (ModuleManager.ModuleInfos["Buffer"].WaferManager.Wafers.Count > 0)
- return ModuleManager.ModuleInfos["Buffer"].WaferManager.Wafers[0];
- return null;
- }
- }
- public WaferInfo PMAWafer1
- {
- get
- {
- if (ModuleManager.ModuleInfos["PMA"].WaferManager.Wafers.Count > 0)
- return ModuleManager.ModuleInfos["PMA"].WaferManager.Wafers[0];
- return null;
- }
- }
- public WaferInfo PMAWafer2
- {
- get
- {
- if (ModuleManager.ModuleInfos["PMA"].WaferManager.Wafers.Count > 0)
- return ModuleManager.ModuleInfos["PMA"].WaferManager.Wafers[1];
- return null;
- }
- }
- public WaferInfo PMBWafer1
- {
- get
- {
- if (ModuleManager.ModuleInfos["PMB"].WaferManager.Wafers.Count > 0)
- return ModuleManager.ModuleInfos["PMB"].WaferManager.Wafers[0];
- return null;
- }
- }
- public WaferInfo PMBWafer2
- {
- get
- {
- if (ModuleManager.ModuleInfos["PMB"].WaferManager.Wafers.Count > 0)
- return ModuleManager.ModuleInfos["PMB"].WaferManager.Wafers[1];
- return null;
- }
- }
- public WaferInfo AlignerWafer
- {
- get
- {
- return ModuleManager.ModuleInfos["Aligner"].WaferManager.Wafers[0];
- }
- }
- public WaferInfo EfemRobotWafer1
- {
- get
- {
- if (ModuleManager.ModuleInfos["EfemRobot"].WaferManager.Wafers.Count > 0)
- return ModuleManager.ModuleInfos["EfemRobot"].WaferManager.Wafers[0];
- return null;
- }
- }
- public WaferInfo EfemRobotWafer2
- {
- get
- {
- if (ModuleManager.ModuleInfos["EfemRobot"].WaferManager.Wafers.Count > 1)
- return ModuleManager.ModuleInfos["EfemRobot"].WaferManager.Wafers[1];
- return null;
- }
- }
- public WaferInfo TMRobotWafer1
- {
- get
- {
- return ModuleManager.ModuleInfos["TMRobot"].WaferManager.Wafers[0];
- }
- }
- public WaferInfo TMRobotWafer2
- {
- get
- {
- return ModuleManager.ModuleInfos["TMRobot"].WaferManager.Wafers[1];
- }
- }
- #endregion
-
- protected void InitLL()
- {
- LLA = ModuleManager.ModuleInfos["LLA"];
- LLB = ModuleManager.ModuleInfos["LLB"];
- }
- protected void InitTM()
- {
- TM = ModuleManager.ModuleInfos["TMRobot"];
- }
- protected void InitEFEM()
- {
- EFEM = ModuleManager.ModuleInfos["EfemRobot"];
- }
- protected void InitFOUP()
- {
- FOUPA = ModuleManager.ModuleInfos["LP1"];
- FOUPB = ModuleManager.ModuleInfos["LP2"];
- FOUPC = ModuleManager.ModuleInfos["LP3"];
-
- }
- protected void InitAligner()
- {
- Aligner = ModuleManager.ModuleInfos["Aligner"];
- }
- protected void InitPM()
- {
- PMA = ModuleManager.ModuleInfos["PMA"];
- PMB = ModuleManager.ModuleInfos["PMB"];
- }
- }
- }
|