首次上传
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
<UserControl
|
||||
x:Class="SicUI.Controls.M2C4Parts.AtmRobotMultiLP"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:Common="clr-namespace:SicUI.Controls.Common"
|
||||
xmlns:controls="clr-namespace:SicUI.Controls"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:extendedControls="clr-namespace:MECF.Framework.UI.Core.ExtendedControls;assembly=MECF.Framework.UI.Core"
|
||||
xmlns:local="clr-namespace:SicUI.Controls.M2C4Parts"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
d:DesignHeight="38"
|
||||
d:DesignWidth="416"
|
||||
mc:Ignorable="d">
|
||||
<UserControl.Resources>
|
||||
<extendedControls:BindingProxy x:Key="proxy" Data="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}}" />
|
||||
</UserControl.Resources>
|
||||
<Viewbox Stretch="Uniform">
|
||||
<Canvas
|
||||
x:Name="root"
|
||||
Width="416"
|
||||
Height="38">
|
||||
<Image
|
||||
Width="75"
|
||||
Height="80"
|
||||
Margin="-20,-24"
|
||||
Source="Images/AtmRobotMultiLP/dock.png"
|
||||
Visibility="{Binding ShowDock, Converter={StaticResource BoolVisibilityConverter}}" />
|
||||
<Common:AxisCanvas
|
||||
x:Name="canvas1"
|
||||
Canvas.Left="10"
|
||||
Canvas.Top="10"
|
||||
Width="68"
|
||||
Height="21">
|
||||
<Image Source="Images/AtmRobotMultiLP/dq01.png" />
|
||||
<Common:AxisCanvas
|
||||
x:Name="canvas2"
|
||||
Canvas.Left="36"
|
||||
Width="46"
|
||||
Height="21">
|
||||
<Image Source="Images/AtmRobotMultiLP/dq01.png" />
|
||||
<Common:AxisCanvas
|
||||
x:Name="canvas3"
|
||||
Canvas.Left="36"
|
||||
Canvas.Top="-8"
|
||||
Width="80"
|
||||
Height="38">
|
||||
<Image Source="Images/AtmRobotMultiLP/dq02.png" />
|
||||
<Image
|
||||
Canvas.Left="8"
|
||||
Canvas.Top="-17"
|
||||
Width="65"
|
||||
Source="Images/pm52.png"
|
||||
Visibility="{Binding HasTray}" />
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="19"
|
||||
Canvas.Top="-7"
|
||||
Width="44"
|
||||
Height="44"
|
||||
WaferData="{Binding Wafer1}" />
|
||||
|
||||
</Common:AxisCanvas>
|
||||
</Common:AxisCanvas>
|
||||
</Common:AxisCanvas>
|
||||
<Canvas.RenderTransform>
|
||||
<TransformGroup>
|
||||
<RotateTransform Angle="{Binding Source={StaticResource proxy}, Path=Data.RotateAngle}" CenterY="30" />
|
||||
<TranslateTransform x:Name="translate" X="{Binding Source={StaticResource proxy}, Path=Data.TranslateX}" />
|
||||
</TransformGroup>
|
||||
</Canvas.RenderTransform>
|
||||
</Canvas>
|
||||
</Viewbox>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,539 @@
|
||||
using SicUI.Controls.Common;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
|
||||
namespace SicUI.Controls.M2C4Parts
|
||||
{
|
||||
/// <summary>
|
||||
/// AtmRobotMultiLP.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class AtmRobotMultiLP : UserControl, INotifyPropertyChanged
|
||||
{
|
||||
private int moveTime = 300;
|
||||
private const int AnimationTimeout = 3000; // ms
|
||||
|
||||
private string CurrentPosition
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
private RobotAction CurrentAction
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public int MoveTime
|
||||
{
|
||||
get => moveTime;
|
||||
set
|
||||
{
|
||||
moveTime = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool ShowDock
|
||||
{
|
||||
get { return (bool)GetValue(ShowDockProperty); }
|
||||
set { SetValue(ShowDockProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for ShowDock. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty ShowDockProperty =
|
||||
DependencyProperty.Register("ShowDock", typeof(bool), typeof(AtmRobotMultiLP), new PropertyMetadata(false));
|
||||
|
||||
public double RotateAngle
|
||||
{
|
||||
get { return (double)GetValue(RotateAngleProperty); }
|
||||
set { SetValue(RotateAngleProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for RotateAngle. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty RotateAngleProperty =
|
||||
DependencyProperty.Register("RotateAngle", typeof(double), typeof(AtmRobotMultiLP), new PropertyMetadata(0.0));
|
||||
|
||||
public double TranslateX
|
||||
{
|
||||
get { return (double)GetValue(TranslateXProperty); }
|
||||
set { SetValue(TranslateXProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for TranslateX. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty TranslateXProperty =
|
||||
DependencyProperty.Register("TranslateX", typeof(double), typeof(AtmRobotMultiLP), new PropertyMetadata(0.0));
|
||||
|
||||
public MECF.Framework.UI.Client.ClientBase.WaferInfo Wafer1
|
||||
{
|
||||
get { return (MECF.Framework.UI.Client.ClientBase.WaferInfo)GetValue(Wafer1Property); }
|
||||
set { SetValue(Wafer1Property, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Wafer1. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty Wafer1Property =
|
||||
DependencyProperty.Register("Wafer1", typeof(MECF.Framework.UI.Client.ClientBase.WaferInfo), typeof(AtmRobotMultiLP), new PropertyMetadata(null));
|
||||
|
||||
//public Visibility IsArmWater => Wafer1 == null ? Visibility.Hidden : Wafer1.IsVisibility;
|
||||
|
||||
public MECF.Framework.UI.Client.ClientBase.WaferInfo Wafer2
|
||||
{
|
||||
get { return (MECF.Framework.UI.Client.ClientBase.WaferInfo)GetValue(Wafer2Property); }
|
||||
set { SetValue(Wafer2Property, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Wafer2. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty Wafer2Property =
|
||||
DependencyProperty.Register("Wafer2", typeof(MECF.Framework.UI.Client.ClientBase.WaferInfo), typeof(AtmRobotMultiLP), new PropertyMetadata(null));
|
||||
|
||||
public string Station
|
||||
{
|
||||
get { return (string)GetValue(StationProperty); }
|
||||
set { SetValue(StationProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Station. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty StationProperty =
|
||||
DependencyProperty.Register("Station", typeof(string), typeof(AtmRobotMultiLP), new PropertyMetadata("Robot"));
|
||||
|
||||
public RobotMoveInfo RobotMoveInfo
|
||||
{
|
||||
get { return (RobotMoveInfo)GetValue(RobotMoveInfoProperty); }
|
||||
set { SetValue(RobotMoveInfoProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty RobotMoveInfoProperty =
|
||||
DependencyProperty.Register("RobotMoveInfo", typeof(RobotMoveInfo), typeof(AtmRobotMultiLP), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
|
||||
public bool WaferPresentA
|
||||
{
|
||||
get { return (bool)GetValue(WaferPresentAProperty); }
|
||||
set { SetValue(WaferPresentAProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for WaferPresent. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty WaferPresentAProperty =
|
||||
DependencyProperty.Register("WaferPresentA", typeof(bool), typeof(AtmRobotMultiLP), new PropertyMetadata(false));
|
||||
|
||||
public bool WaferPresentB
|
||||
{
|
||||
get { return (bool)GetValue(WaferPresentBProperty); }
|
||||
set { SetValue(WaferPresentBProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for WaferPresent. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty WaferPresentBProperty =
|
||||
DependencyProperty.Register("WaferPresentB", typeof(bool), typeof(AtmRobotMultiLP), new PropertyMetadata(false));
|
||||
|
||||
public ICommand CreateDeleteWaferCommand
|
||||
{
|
||||
get { return (ICommand)GetValue(CreateDeleteWaferCommandProperty); }
|
||||
set { SetValue(CreateDeleteWaferCommandProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for CreateDeleteWaferCommand. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty CreateDeleteWaferCommandProperty =
|
||||
DependencyProperty.Register("CreateDeleteWaferCommand", typeof(ICommand), typeof(AtmRobotMultiLP), new PropertyMetadata(null));
|
||||
|
||||
public ICommand MoveWaferCommand
|
||||
{
|
||||
get { return (ICommand)GetValue(MoveWaferCommandProperty); }
|
||||
set { SetValue(MoveWaferCommandProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for MoveWaferCommand. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty MoveWaferCommandProperty =
|
||||
DependencyProperty.Register("MoveWaferCommand", typeof(ICommand), typeof(AtmRobotMultiLP), new PropertyMetadata(null));
|
||||
|
||||
public Dictionary<string, StationPosition> StationPosition
|
||||
{
|
||||
get { return (Dictionary<string, StationPosition>)GetValue(StationPositionProperty); }
|
||||
set { SetValue(StationPositionProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for StationPosition. This enables animation, styling, binding, etc... new PropertyMetadata(null, StationPositionChangedCallback)
|
||||
public static readonly DependencyProperty StationPositionProperty =
|
||||
DependencyProperty.Register("StationPosition", typeof(Dictionary<string, StationPosition>), typeof(AtmRobotMultiLP), new PropertyMetadata(null, StationPositionChangedCallback));
|
||||
|
||||
public Visibility HasWafer
|
||||
{
|
||||
get { return (Visibility)GetValue(HasWaferProperty); }
|
||||
set { SetValue(HasWaferProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Station. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty HasWaferProperty =
|
||||
DependencyProperty.Register("HasWafer", typeof(Visibility), typeof(AtmRobotMultiLP), new PropertyMetadata(Visibility.Hidden));
|
||||
|
||||
public Visibility HasTray
|
||||
{
|
||||
get { return (Visibility)GetValue(HasTrayProperty); }
|
||||
set { SetValue(HasTrayProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Station. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty HasTrayProperty =
|
||||
DependencyProperty.Register("HasTray", typeof(Visibility), typeof(AtmRobotMultiLP), new PropertyMetadata(Visibility.Hidden));
|
||||
|
||||
private List<MenuItem> menu;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
public List<MenuItem> Menu
|
||||
{
|
||||
get
|
||||
{
|
||||
return menu;
|
||||
}
|
||||
set
|
||||
{
|
||||
menu = value;
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Menu"));
|
||||
}
|
||||
}
|
||||
|
||||
private ICommand MoveCommand
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
private void MoveTo(object target)
|
||||
{
|
||||
MoveRobot((RobotMoveInfo)target);
|
||||
}
|
||||
|
||||
public AtmRobotMultiLP()
|
||||
{
|
||||
InitializeComponent();
|
||||
root.DataContext = this;
|
||||
|
||||
MoveCommand = new RelayCommand(MoveTo);
|
||||
|
||||
CurrentPosition = "ArmA.System";
|
||||
|
||||
canvas1.Rotate(45);
|
||||
canvas2.Rotate(120);
|
||||
canvas3.Rotate(120);
|
||||
|
||||
StationPosition = new Dictionary<string, StationPosition>
|
||||
{
|
||||
{ "ArmA.System",new StationPosition()
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root=45,
|
||||
Arm=120,
|
||||
Hand=120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root=45,
|
||||
Arm=120,
|
||||
Hand=120
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "ArmA.PM1",new StationPosition() //ArmA.ReactorA
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = 100,
|
||||
Arm = 240,
|
||||
Hand = -110
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root =238,
|
||||
Arm = 0,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "ArmA.PM2",new StationPosition() //ArmA.ReactorB
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = 60,
|
||||
Arm = 120,
|
||||
Hand = 130
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = -54,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "ArmA.Buffer",new StationPosition() //ArmA.Buffer
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = 5,
|
||||
Arm = 240,
|
||||
Hand = -110
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = 137,
|
||||
Arm = 0,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "ArmA.UnLoad",new StationPosition() //ArmA.PerHeat
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root =27,
|
||||
Arm = 240,
|
||||
Hand = 240
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = 168,
|
||||
Arm = 0,
|
||||
Hand = 360
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "ArmA.LoadLock",new StationPosition()
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = 170,
|
||||
Arm = 120,
|
||||
Hand = 120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = 47,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
private static void StationPositionChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
var self = (AtmRobotMultiLP)d;
|
||||
var positions = (Dictionary<string, StationPosition>)e.NewValue;
|
||||
var menus = new List<MenuItem>();
|
||||
foreach (var position in positions)
|
||||
{
|
||||
var m = new MenuItem() { Header = position.Key };
|
||||
Enum.TryParse<RobotArm>(position.Key.Split('.')[0], out RobotArm arm);
|
||||
m.Items.Add(new MenuItem() { Header = "Pick", Command = self.MoveCommand, CommandParameter = new RobotMoveInfo() { BladeTarget = position.Key, Action = RobotAction.Picking, ArmTarget = arm } });
|
||||
m.Items.Add(new MenuItem() { Header = "Place", Command = self.MoveCommand, CommandParameter = new RobotMoveInfo() { BladeTarget = position.Key, Action = RobotAction.Placing, ArmTarget = arm } });
|
||||
m.Items.Add(new MenuItem() { Header = "Move", Command = self.MoveCommand, CommandParameter = new RobotMoveInfo() { BladeTarget = position.Key, Action = RobotAction.Moving, ArmTarget = arm } });
|
||||
menus.Add(m);
|
||||
}
|
||||
//self.Menu = menus;
|
||||
self.MoveTo(new RobotMoveInfo() { BladeTarget = positions.First().Key, Action = RobotAction.None });
|
||||
}
|
||||
|
||||
protected override void OnRender(DrawingContext drawingContext)
|
||||
{
|
||||
base.OnRender(drawingContext);
|
||||
|
||||
if (DesignerProperties.GetIsInDesignMode(this))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (RobotMoveInfo != null)
|
||||
{
|
||||
var needMove = CurrentPosition != RobotMoveInfo.BladeTarget || CurrentAction != RobotMoveInfo.Action;
|
||||
|
||||
if (needMove)
|
||||
{
|
||||
LogMsg($" RobotMoveInfo, action:{RobotMoveInfo.Action} armTarget:{RobotMoveInfo.ArmTarget} bladeTarget:{RobotMoveInfo.BladeTarget}");
|
||||
|
||||
Invoke(() => MoveRobot(RobotMoveInfo));
|
||||
|
||||
CurrentAction = RobotMoveInfo.Action;
|
||||
CurrentPosition = RobotMoveInfo.BladeTarget;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void Invoke(Action action)
|
||||
{
|
||||
Dispatcher.Invoke(action);
|
||||
}
|
||||
|
||||
private void LogMsg(string msg)
|
||||
{
|
||||
var source = "ATM Robot";
|
||||
Console.WriteLine("{0} {1}", source, msg);
|
||||
}
|
||||
|
||||
private void MoveRobot(RobotMoveInfo moveInfo)
|
||||
{
|
||||
canvas1.Stop();
|
||||
canvas2.Stop();
|
||||
canvas3.Stop();
|
||||
|
||||
//canvas21.Stop();
|
||||
//canvas22.Stop();
|
||||
//canvas23.Stop();
|
||||
|
||||
var target = moveInfo.BladeTarget;
|
||||
var arm = moveInfo.ArmTarget;
|
||||
|
||||
MoveToStart(arm, CurrentPosition
|
||||
,
|
||||
() => TranslateTo(target, () => MoveToStart(arm, target, () =>
|
||||
{
|
||||
if (moveInfo.Action != RobotAction.Moving)
|
||||
{
|
||||
MoveToEnd(arm, target, () => UpdateWafer(moveInfo));
|
||||
}
|
||||
})));
|
||||
}
|
||||
|
||||
private void RotateTo(string station, Action onComplete = null)
|
||||
{
|
||||
var position = StationPosition[station];
|
||||
LogMsg($"Rotate to {position.StartPosition.X}");
|
||||
}
|
||||
|
||||
private void TranslateTo(string station, Action onComplete = null)
|
||||
{
|
||||
var position = StationPosition[station];
|
||||
LogMsg($"Translate to {position.StartPosition.Z}");
|
||||
Translate(StationPosition[CurrentPosition].StartPosition.Z, position.StartPosition.Z, onComplete);
|
||||
}
|
||||
|
||||
private void MoveToStart(RobotArm arm, string station, Action onComplete = null)
|
||||
{
|
||||
LogMsg($"{arm} Move to start {station}");
|
||||
|
||||
var position = StationPosition[station];
|
||||
|
||||
var storyboard = new Storyboard();
|
||||
storyboard.Completed += (s, e) => onComplete?.Invoke();
|
||||
|
||||
var needRotate = new List<bool>();
|
||||
|
||||
//if (arm == RobotArm.ArmA)
|
||||
{
|
||||
needRotate.Add(canvas1.Rotate(storyboard, position.StartPosition.Root, true, MoveTime));
|
||||
needRotate.Add(canvas2.Rotate(storyboard, position.StartPosition.Arm, true, MoveTime));
|
||||
needRotate.Add(canvas3.Rotate(storyboard, position.StartPosition.Hand, true, MoveTime));
|
||||
}
|
||||
//else if (arm == RobotArm.ArmB)
|
||||
{
|
||||
//needRotate.Add(canvas21.Rotate(storyboard, position.StartPosition.Root, true, MoveTime));
|
||||
//needRotate.Add(canvas22.Rotate(storyboard, position.StartPosition.Arm, true, MoveTime));
|
||||
//needRotate.Add(canvas23.Rotate(storyboard, position.StartPosition.Hand, true, MoveTime));
|
||||
}
|
||||
|
||||
if (needRotate.Any(x => x))
|
||||
{
|
||||
storyboard.Begin();
|
||||
}
|
||||
else
|
||||
{
|
||||
onComplete?.Invoke();
|
||||
}
|
||||
|
||||
CurrentPosition = station;
|
||||
}
|
||||
|
||||
private void MoveToEnd(RobotArm arm, string station, Action onComplete = null)
|
||||
{
|
||||
LogMsg($"{arm} move to end {station}");
|
||||
|
||||
var position = StationPosition[station];
|
||||
|
||||
var storyboard = new Storyboard();
|
||||
storyboard.Completed += (s, e) => onComplete?.Invoke();
|
||||
|
||||
var needRotate = new List<bool>();
|
||||
|
||||
if (arm == RobotArm.ArmA || arm == RobotArm.Both)
|
||||
{
|
||||
needRotate.Add(canvas1.Rotate(storyboard, position.EndPosition.Root, true, MoveTime));
|
||||
needRotate.Add(canvas2.Rotate(storyboard, position.EndPosition.Arm, true, MoveTime));
|
||||
needRotate.Add(canvas3.Rotate(storyboard, position.EndPosition.Hand, true, MoveTime));
|
||||
}
|
||||
|
||||
if (arm == RobotArm.ArmB || arm == RobotArm.Both)
|
||||
{
|
||||
//needRotate.Add(canvas21.Rotate(storyboard, position.EndPosition.Root, true, MoveTime));
|
||||
//needRotate.Add(canvas22.Rotate(storyboard, position.EndPosition.Arm, true, MoveTime));
|
||||
//needRotate.Add(canvas23.Rotate(storyboard, position.EndPosition.Hand, true, MoveTime));
|
||||
}
|
||||
|
||||
if (needRotate.Any(x => x))
|
||||
{
|
||||
storyboard.Begin();
|
||||
}
|
||||
else
|
||||
{
|
||||
onComplete?.Invoke();
|
||||
}
|
||||
|
||||
CurrentPosition = station;
|
||||
}
|
||||
|
||||
private void UpdateWafer(RobotMoveInfo moveInfo)
|
||||
{
|
||||
var waferPresent = false;
|
||||
switch (moveInfo.Action)
|
||||
{
|
||||
case RobotAction.None:
|
||||
case RobotAction.Moving:
|
||||
return;
|
||||
|
||||
case RobotAction.Picking:
|
||||
waferPresent = true;
|
||||
break;
|
||||
|
||||
case RobotAction.Placing:
|
||||
waferPresent = false;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
switch (moveInfo.ArmTarget)
|
||||
{
|
||||
case RobotArm.ArmA:
|
||||
WaferPresentA = waferPresent;
|
||||
break;
|
||||
|
||||
case RobotArm.ArmB:
|
||||
WaferPresentB = waferPresent;
|
||||
break;
|
||||
|
||||
case RobotArm.Both:
|
||||
WaferPresentA = waferPresent;
|
||||
WaferPresentB = waferPresent;
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void Translate(int start, int target, Action onComplete = null)
|
||||
{
|
||||
AnimationHelper.TranslateX(root, start, target, MoveTime, onComplete);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<UserControl x:Class="SicUI.Controls.Parts.Chamber"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:SicUI.Controls.Parts"
|
||||
xmlns:controls="clr-namespace:SicUI.Controls"
|
||||
mc:Ignorable="d"
|
||||
Height="135" Width="121">
|
||||
<Grid x:Name="root" Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}" Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
<RowDefinition Height="14" />
|
||||
</Grid.RowDefinitions>
|
||||
<local:Door Grid.Row="1" State="{Binding DoorState,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Margin="0,-10,0,0"/>
|
||||
<Grid Grid.Row="0" VerticalAlignment="Top">
|
||||
<Image Source="/SicUI;component/Themes/images/parts/pmbg.png"/>
|
||||
<!--<local:Wafer WaferStyle="Eclipse" WaferItem="{Binding Wafer}" Station ="{Binding Station}" Slot="{Binding Slot}" Margin="25" />-->
|
||||
<controls:WaferCtrl x:Name="local_Wafer" WaferData="{Binding WaferData,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" RenderTransformOrigin="0.5,0.5">
|
||||
<controls:WaferCtrl.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform/>
|
||||
<SkewTransform/>
|
||||
<RotateTransform Angle="0.1"/>
|
||||
<TranslateTransform/>
|
||||
</TransformGroup>
|
||||
</controls:WaferCtrl.RenderTransform>
|
||||
</controls:WaferCtrl>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,143 @@
|
||||
using Aitex.Core.Common;
|
||||
using Aitex.Sorter.Common;
|
||||
using MECF.Framework.Common.Equipment;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
using CB = MECF.Framework.UI.Client.ClientBase;
|
||||
|
||||
namespace SicUI.Controls.Parts
|
||||
{
|
||||
/// <summary>
|
||||
/// Chamber.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class Chamber : UserControl
|
||||
{
|
||||
private double PM1 = 127;
|
||||
private double PM2 = 75;
|
||||
private double PM3 = -25;
|
||||
private double PM4 = -129;
|
||||
public Chamber()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public CB.WaferInfo WaferData
|
||||
{
|
||||
get { return (CB.WaferInfo)GetValue(WaferDataProperty); }
|
||||
set { SetValue(WaferDataProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty WaferDataProperty =
|
||||
DependencyProperty.Register("WaferData", typeof(CB.WaferInfo), typeof(Chamber), new PropertyMetadata(null));
|
||||
|
||||
// public WaferInfo Wafer
|
||||
// {
|
||||
// get { return (WaferInfo)GetValue(WaferProperty); }
|
||||
// set { SetValue(WaferProperty, value); }
|
||||
// }
|
||||
|
||||
// // Using a DependencyProperty as the backing store for WaferItem. This enables animation, styling, binding, etc...
|
||||
// public static readonly DependencyProperty WaferProperty =
|
||||
// DependencyProperty.Register("Wafer", typeof(WaferInfo), typeof(Chamber), new PropertyMetadata(null));
|
||||
|
||||
// public ModuleName Station
|
||||
// {
|
||||
// get { return (ModuleName)GetValue(StationProperty); }
|
||||
// set { SetValue(StationProperty, value); }
|
||||
// }
|
||||
|
||||
// // Using a DependencyProperty as the backing store for WaferItem. This enables animation, styling, binding, etc...
|
||||
// public static readonly DependencyProperty SlotProperty =
|
||||
// DependencyProperty.Register("Slot", typeof(int), typeof(Chamber), new PropertyMetadata(0));
|
||||
|
||||
// public int Slot
|
||||
// {
|
||||
// get { return (int)GetValue(SlotProperty); }
|
||||
// set { SetValue(SlotProperty, value); }
|
||||
// }
|
||||
|
||||
// // Using a DependencyProperty as the backing store for Station. This enables animation, styling, binding, etc...
|
||||
// public static readonly DependencyProperty StationProperty =
|
||||
//DependencyProperty.Register("Station", typeof(ModuleName), typeof(Chamber), new PropertyMetadata(ModuleName.System));
|
||||
|
||||
public FoupDoorState DoorState
|
||||
{
|
||||
get { return (FoupDoorState)GetValue(DoorStateProperty); }
|
||||
set { SetValue(DoorStateProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for DoorState. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty DoorStateProperty =
|
||||
DependencyProperty.Register("DoorState", typeof(FoupDoorState), typeof(Chamber), new PropertyMetadata(FoupDoorState.Unknown));
|
||||
|
||||
public ICommand Command
|
||||
{
|
||||
get { return (ICommand)GetValue(CommandProperty); }
|
||||
set { SetValue(CommandProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Command. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty CommandProperty =
|
||||
DependencyProperty.Register("Command", typeof(ICommand), typeof(Chamber), new PropertyMetadata(null));
|
||||
|
||||
private void MenuItem_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var cmd = ((MenuItem)sender).Tag;
|
||||
|
||||
Command.Execute(new[] { WaferData.ModuleID, cmd });
|
||||
}
|
||||
|
||||
#region wafer 角度
|
||||
public static readonly DependencyProperty WaferAngleProperty =
|
||||
DependencyProperty.Register("WaferAngleChanged", typeof(string), typeof(Chamber), new PropertyMetadata(WaferAngleCurrentStsChanged));
|
||||
|
||||
public static void WaferAngleCurrentStsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
Chamber control = (Chamber)d;
|
||||
if (e.Property == WaferAngleProperty)
|
||||
{
|
||||
control.WaferAngleChanged = (string)e.NewValue;
|
||||
}
|
||||
}
|
||||
public string WaferAngleChanged
|
||||
{
|
||||
get { return (string)GetValue(WaferAngleProperty); }
|
||||
set
|
||||
{
|
||||
SetValue(WaferAngleProperty, value);
|
||||
RotateTransform rotateTransform = null;
|
||||
switch (WaferAngleChanged)
|
||||
{
|
||||
case "PM1":
|
||||
rotateTransform = new RotateTransform(PM1);
|
||||
break;
|
||||
case "PM2":
|
||||
rotateTransform = new RotateTransform(PM2);
|
||||
break;
|
||||
case "PM3":
|
||||
rotateTransform = new RotateTransform(PM3);
|
||||
break;
|
||||
case "PM4":
|
||||
rotateTransform = new RotateTransform(PM4);
|
||||
break;
|
||||
}
|
||||
//local_Wafer.RenderTransform = rotateTransform;
|
||||
this.UpdateLayout();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<UserControl x:Class="SicUI.Controls.Parts.Door"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:SicUI.Controls.Parts"
|
||||
xmlns:common="clr-namespace:Aitex.Sorter.Common;assembly=MECF.Framework.Common"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="11" d:DesignWidth="94">
|
||||
<Border BorderThickness="0" x:Name="root">
|
||||
<Image x:Name="image" Width="94" Height="11">
|
||||
<Image.Resources>
|
||||
<Style TargetType="Image" >
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding State}" Value="{x:Static common:FoupDoorState.Unknown}">
|
||||
<Setter Property="Source" Value="/SicUI;component/Themes/images/parts/doorunknown.png" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding State}" Value="{x:Static common:FoupDoorState.Open}">
|
||||
<Setter Property="Source" Value="/SicUI;component/Themes/images/parts/dooropen.png" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding State}" Value="{x:Static common:FoupDoorState.Close}">
|
||||
<Setter Property="Source" Value="/SicUI;component/Themes/images/parts/doorclose.png" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</Image.Resources>
|
||||
</Image>
|
||||
</Border>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,42 @@
|
||||
using Aitex.Sorter.Common;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace SicUI.Controls.Parts
|
||||
{
|
||||
/// <summary>
|
||||
/// Door.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class Door : UserControl
|
||||
{
|
||||
public Door()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
root.DataContext = this;
|
||||
}
|
||||
|
||||
public FoupDoorState State
|
||||
{
|
||||
get { return (FoupDoorState)GetValue(StateProperty); }
|
||||
set { SetValue(StateProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for State. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty StateProperty =
|
||||
DependencyProperty.Register("State", typeof(FoupDoorState), typeof(Door), new FrameworkPropertyMetadata(FoupDoorState.Unknown));
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,264 @@
|
||||
<UserControl
|
||||
x:Class="SicUI.Controls.Mainframe.EFEMControl"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:SicUI.Controls"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:SicUI.Controls.M2C4Parts"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:unitControls="clr-namespace:MECF.Framework.UI.Client.Ctrlib.UnitControls;assembly=MECF.Framework.UI.Client"
|
||||
d:DesignHeight="360"
|
||||
d:DesignWidth="660"
|
||||
mc:Ignorable="d">
|
||||
<Canvas>
|
||||
<Path
|
||||
Canvas.Left="427.2"
|
||||
Canvas.Top="151.041"
|
||||
Width="167.8"
|
||||
Height="160.959"
|
||||
Data="M573,221 L571,215 595,244 553,312 531,297 522,282 C522,282 495,283 482,279 471.19749,275.67615 450.72801,257.85184 444.11644,247.90441 442.99887,246.22296 430,241 430,241 L427.1997,170.99239 433.04081,170.57377 455,169 466,162 485,154 C485,154 493,149 505,152 517,155 555,152.00043 570,198.0003"
|
||||
Fill="Silver"
|
||||
Stretch="Fill" />
|
||||
<Path
|
||||
Canvas.Left="134"
|
||||
Canvas.Top="112"
|
||||
Width="208"
|
||||
Height="198"
|
||||
Data="M134,155 L196,152 192,134 276,112 283,145 293,150 300,157 304,162 308,168 342,168 339,250 335,274 278,310 256,278 244,299 235,309 166,278 186,254 145,252"
|
||||
Fill="Silver"
|
||||
Stretch="Fill" />
|
||||
|
||||
|
||||
<Image
|
||||
Canvas.Left="179"
|
||||
Canvas.Top="129"
|
||||
Height="150"
|
||||
Source="Images/tm.png" />
|
||||
<Image
|
||||
Canvas.Left="430"
|
||||
Canvas.Top="142"
|
||||
Height="150"
|
||||
Source="Images/tm.png" />
|
||||
<Canvas Visibility="{Binding IsLLInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<unitControls:Door
|
||||
Canvas.Left="333"
|
||||
Canvas.Top="155"
|
||||
Width="92"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsLLDoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5" />
|
||||
<Image
|
||||
Canvas.Left="327"
|
||||
Canvas.Top="158"
|
||||
Height="100"
|
||||
Source="Images/wf.png" />
|
||||
<unitControls:Door
|
||||
Canvas.Left="288"
|
||||
Canvas.Top="200"
|
||||
Width="80"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsEfemLLLeftDoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="90" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
|
||||
</unitControls:Door>
|
||||
<unitControls:Door
|
||||
Canvas.Left="391"
|
||||
Canvas.Top="200"
|
||||
Width="80"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsEfemLLRightDoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="90" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
|
||||
</unitControls:Door>
|
||||
</Canvas>
|
||||
|
||||
<Canvas Visibility="{Binding IsUnLoadInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="173"
|
||||
Canvas.Top="37"
|
||||
Height="100"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
Source="Images/wf.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="-13.5" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
|
||||
<unitControls:Door
|
||||
Canvas.Left="192"
|
||||
Canvas.Top="131"
|
||||
Width="92"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsEfemUnLoadDoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="-13.873" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
|
||||
<unitControls:Door
|
||||
Canvas.Left="232"
|
||||
Canvas.Top="72"
|
||||
Width="82"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsUnLoadDoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="76.127" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
</Canvas>
|
||||
|
||||
<Canvas Visibility="{Binding IsAlignerInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="75"
|
||||
Canvas.Top="129"
|
||||
Width="90"
|
||||
Source="Images/Alinger.png" />
|
||||
</Canvas>
|
||||
|
||||
<local:RobotEfemTray
|
||||
Canvas.Left="482"
|
||||
Canvas.Top="189"
|
||||
Height="40"
|
||||
HasTray="{Binding TrayRobotHaveTray}"
|
||||
HasWafer="{Binding TrayRobotIsArmWater}"
|
||||
RobotMoveInfo="{Binding TrayRobotMoveInfo}"
|
||||
ShowDock="False"
|
||||
Wafer1="{Binding TrayRobotWafer}" />
|
||||
|
||||
<Canvas Visibility="{Binding IsLLInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="331"
|
||||
Canvas.Top="161"
|
||||
Width="95"
|
||||
Source="Images/pm52.png"
|
||||
Visibility="{Binding LoadLockHaveTray}" />
|
||||
</Canvas>
|
||||
|
||||
<local:RobotEfemWafer
|
||||
Canvas.Left="232"
|
||||
Canvas.Top="183"
|
||||
Height="40"
|
||||
HasWafer="{Binding WaferRobotIsArmWater}"
|
||||
RobotMoveInfo="{Binding WaferRobotMoveInfo}"
|
||||
ShowDock="False"
|
||||
Wafer1="{Binding WaferRobotWafer}" />
|
||||
|
||||
<Canvas>
|
||||
<Image
|
||||
Canvas.Left="269"
|
||||
Canvas.Top="251"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
Source="Images/Layout07.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="145.128" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
<Image
|
||||
Canvas.Left="145"
|
||||
Canvas.Top="253"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
Source="Images/Layout07.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="212.156" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
<Image
|
||||
Canvas.Left="542"
|
||||
Canvas.Top="238"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
Source="Images/Layout08.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="128.669" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
</Canvas>
|
||||
|
||||
|
||||
<Canvas Visibility="{Binding IsUnLoadInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="178"
|
||||
Canvas.Top="40"
|
||||
Width="95"
|
||||
Source="Images/pm52.png"
|
||||
Visibility="{Binding UnLoadHaveTray}" />
|
||||
</Canvas>
|
||||
|
||||
|
||||
<Canvas Visibility="{Binding IsUnLoadInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="196"
|
||||
Canvas.Top="58"
|
||||
Width="60"
|
||||
Height="60"
|
||||
IsEnabled="{Binding EnableWaferClick}"
|
||||
WaferData="{Binding UnLoadWafer}" />
|
||||
</Canvas>
|
||||
<Canvas Visibility="{Binding IsLLInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="349"
|
||||
Canvas.Top="180"
|
||||
Width="60"
|
||||
Height="60"
|
||||
IsEnabled="{Binding LLEnableWaferClick}"
|
||||
WaferData="{Binding LoadLockWafer}" />
|
||||
</Canvas>
|
||||
<Canvas Visibility="{Binding IsAlignerInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="92"
|
||||
Canvas.Top="167"
|
||||
Width="60"
|
||||
Height="60"
|
||||
IsEnabled="{Binding EnableWaferClick}"
|
||||
WaferData="{Binding AlignerWafer}" />
|
||||
</Canvas>
|
||||
</Canvas>
|
||||
|
||||
</UserControl>
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace SicUI.Controls.Mainframe
|
||||
{
|
||||
/// <summary>
|
||||
/// EFEMControl.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class EFEMControl : UserControl
|
||||
{
|
||||
public EFEMControl()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,231 @@
|
||||
<UserControl x:Class="SicUI.Controls.LoadLock"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:SicUI.Controls"
|
||||
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
|
||||
xmlns:cal="http://www.caliburn.org"
|
||||
xmlns:controls="http://OpenSEMI.Ctrlib.com/presentation"
|
||||
xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
|
||||
mc:Ignorable="d">
|
||||
<UserControl.Resources>
|
||||
<Storyboard x:Key="Door_Open">
|
||||
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" >
|
||||
<EasingDoubleKeyFrame KeyTime="0" Value="29"/>
|
||||
<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="1"/>
|
||||
</DoubleAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
<Storyboard x:Key="Door_Close">
|
||||
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Height)" >
|
||||
<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
|
||||
<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="29"/>
|
||||
</DoubleAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
<Storyboard x:Key="Door_Unknown">
|
||||
<DoubleAnimation Storyboard.TargetProperty="(FrameworkElement.Height)" To="20" >
|
||||
</DoubleAnimation>
|
||||
<ColorAnimation Storyboard.TargetProperty="(Fill).(SolidColorBrush.Color)" To="Red" >
|
||||
</ColorAnimation>
|
||||
</Storyboard>
|
||||
|
||||
<Storyboard x:Key="Wafer_Up">
|
||||
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.Top)" >
|
||||
<EasingDoubleKeyFrame KeyTime="0" Value="13"/>
|
||||
<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="-5"/>
|
||||
</DoubleAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
<Storyboard x:Key="Wafer_Down">
|
||||
<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Canvas.Top)" >
|
||||
<EasingDoubleKeyFrame KeyTime="0" Value="-5"/>
|
||||
<EasingDoubleKeyFrame KeyTime="0:0:0.5" Value="13"/>
|
||||
</DoubleAnimationUsingKeyFrames>
|
||||
</Storyboard>
|
||||
<Style TargetType="{x:Type Rectangle}" x:Key="ATM_Animation" >
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding ATMDoorStatus, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="Open">
|
||||
<DataTrigger.EnterActions>
|
||||
<BeginStoryboard Storyboard="{StaticResource Door_Open}"/>
|
||||
</DataTrigger.EnterActions>
|
||||
<DataTrigger.ExitActions>
|
||||
<BeginStoryboard Storyboard="{StaticResource Door_Close}"/>
|
||||
</DataTrigger.ExitActions>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
<Style TargetType="{x:Type Rectangle}" x:Key="SlitValve_Animation" >
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding SlitValveStatus, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="Open">
|
||||
<DataTrigger.EnterActions>
|
||||
<BeginStoryboard Storyboard="{StaticResource Door_Open}"/>
|
||||
</DataTrigger.EnterActions>
|
||||
<DataTrigger.ExitActions>
|
||||
<BeginStoryboard Storyboard="{StaticResource Door_Close}"/>
|
||||
</DataTrigger.ExitActions>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="{x:Type TextBlock}" x:Key="Text_Online" >
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding UnitData.IsOnline, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="True">
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Green}" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding UnitData.IsOnline, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="False">
|
||||
<Setter Property="Foreground" Value="{DynamicResource FG_Black}" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</UserControl.Resources>
|
||||
<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="100"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="15"/>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="15"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Grid.ColumnSpan="3" FontFamily="Arial" FontSize="14" Style="{StaticResource Text_Online}" VerticalAlignment="Center" HorizontalAlignment="Center" Visibility="Collapsed">
|
||||
<Run Text="{Binding UnitData.ModuleID, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}"/>
|
||||
<Run Text=" Front View"/>
|
||||
</TextBlock>
|
||||
<TextBlock Grid.Row="1" Text="ATM Door" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Arial" FontSize="12" Foreground="{DynamicResource FG_Black}">
|
||||
<TextBlock.LayoutTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform/>
|
||||
<SkewTransform/>
|
||||
<RotateTransform Angle="-90"/>
|
||||
<TranslateTransform/>
|
||||
</TransformGroup>
|
||||
</TextBlock.LayoutTransform>
|
||||
</TextBlock>
|
||||
<TextBlock Grid.Row="1" Grid.Column="2" Text="Slit Valve" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Arial" FontSize="12" Foreground="{DynamicResource FG_Black}">
|
||||
<TextBlock.LayoutTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform/>
|
||||
<SkewTransform/>
|
||||
<RotateTransform Angle="90"/>
|
||||
<TranslateTransform/>
|
||||
</TransformGroup>
|
||||
</TextBlock.LayoutTransform>
|
||||
</TextBlock>
|
||||
<Border Grid.Column="1" Grid.Row="1" BorderThickness="1" BorderBrush="{DynamicResource FOUP_OuterBD}" Background="{DynamicResource FOUP_OuterBG}" Width="150">
|
||||
<Grid>
|
||||
<Rectangle Fill="{DynamicResource FOUP_InnerBG}" Margin="15,5,10,5"/>
|
||||
<Rectangle Fill="{DynamicResource FOUP_InnerBG}" Margin="0,25,0,15"/>
|
||||
<Rectangle Fill="{DynamicResource FOUP_InnerGrow}" Margin="18,8,13,8">
|
||||
<Rectangle.Effect>
|
||||
<BlurEffect Radius="15"/>
|
||||
</Rectangle.Effect>
|
||||
</Rectangle>
|
||||
<Rectangle Fill="{DynamicResource FOUP_InnerGrow}" Margin="3,28,3,18">
|
||||
<Rectangle.Effect>
|
||||
<BlurEffect Radius="15"/>
|
||||
</Rectangle.Effect>
|
||||
</Rectangle>
|
||||
<Grid Margin="15,10,10,10">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="20"/>
|
||||
<RowDefinition/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid>
|
||||
<TextBlock TextWrapping="NoWrap" Text="" HorizontalAlignment="Center" VerticalAlignment="Center" FontFamily="Arial" FontSize="12" TextAlignment="Center" />
|
||||
</Grid>
|
||||
<Canvas Grid.Row="1">
|
||||
<StackPanel x:Name="LoadLock_Body" Grid.Row="1" Width="123" Canvas.Left="0" Canvas.Top="-5">
|
||||
<Grid Height="22">
|
||||
<Rectangle Height="4" Width="20" HorizontalAlignment="Left" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" >
|
||||
<Rectangle.Effect>
|
||||
<DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
|
||||
</Rectangle.Effect>
|
||||
</Rectangle>
|
||||
<Rectangle Height="4" Width="30" HorizontalAlignment="Right" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" >
|
||||
<Rectangle.Effect>
|
||||
<DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
|
||||
</Rectangle.Effect>
|
||||
</Rectangle>
|
||||
<ctrl:Slot ViewType="Front" x:Name="LL2" DataContext="{Binding UnitData.WaferManager.Wafers[1], RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,6,11,0">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="SlotMouseButtonDown">
|
||||
<cal:ActionMessage MethodName="OnMouseUp">
|
||||
<cal:Parameter Value="$source" />
|
||||
<cal:Parameter Value="$eventargs" />
|
||||
</cal:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
<i:EventTrigger EventName="WaferTransferStarted">
|
||||
<cal:ActionMessage MethodName="OnWaferTransfer">
|
||||
<cal:Parameter Value="$eventargs" />
|
||||
</cal:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</ctrl:Slot>
|
||||
<TextBlock x:Name="LL_Text1" HorizontalAlignment="Right" Margin="0,0,0,4" TextWrapping="NoWrap" Text="2" Background="#FF646464" Foreground="White" VerticalAlignment="Bottom" FontFamily="Arial" FontSize="10" Width="13" TextAlignment="Center">
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
<Grid Height="22">
|
||||
<Rectangle Height="4" Width="20" HorizontalAlignment="Left" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" >
|
||||
<Rectangle.Effect>
|
||||
<DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
|
||||
</Rectangle.Effect>
|
||||
</Rectangle>
|
||||
<Rectangle Height="4" Width="30" HorizontalAlignment="Right" Fill="{DynamicResource FOUP_PathBG}" VerticalAlignment="Bottom" >
|
||||
<Rectangle.Effect>
|
||||
<DropShadowEffect Direction="270" BlurRadius="0" ShadowDepth="1"/>
|
||||
</Rectangle.Effect>
|
||||
</Rectangle>
|
||||
<ctrl:Slot ViewType="Front" DataContext="{Binding UnitData.WaferManager.Wafers[0], RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" WaferStatus="{Binding WaferStatus}" SlotID="{Binding SlotID}" ModuleID="{Binding ModuleID}" SourceName="{Binding SourceName}" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,6,11,0">
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="SlotMouseButtonDown">
|
||||
<cal:ActionMessage MethodName="OnMouseUp">
|
||||
<cal:Parameter Value="$source" />
|
||||
<cal:Parameter Value="$eventargs" />
|
||||
</cal:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
<i:EventTrigger EventName="WaferTransferStarted">
|
||||
<cal:ActionMessage MethodName="OnWaferTransfer">
|
||||
<cal:Parameter Value="$eventargs" />
|
||||
</cal:ActionMessage>
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>
|
||||
</ctrl:Slot>
|
||||
<TextBlock x:Name="LL_Text2" HorizontalAlignment="Right" Margin="0,0,0,4" TextWrapping="NoWrap" Text="1" Background="#FF646464" Foreground="White" VerticalAlignment="Bottom" FontFamily="Arial" FontSize="10" Width="13" TextAlignment="Center">
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
<StackPanel.Style>
|
||||
<Style>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding CurrentSlot, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}}" Value="1">
|
||||
<DataTrigger.EnterActions>
|
||||
<BeginStoryboard Storyboard="{StaticResource Wafer_Down}"/>
|
||||
</DataTrigger.EnterActions>
|
||||
<DataTrigger.ExitActions>
|
||||
<BeginStoryboard Storyboard="{StaticResource Wafer_Up}"/>
|
||||
</DataTrigger.ExitActions>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</StackPanel.Style>
|
||||
</StackPanel>
|
||||
</Canvas>
|
||||
</Grid>
|
||||
<Grid Margin="1,25,1,15">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="8"/>
|
||||
<ColumnDefinition />
|
||||
<ColumnDefinition Width="4"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid x:Name="ATM_Door">
|
||||
<Rectangle x:Name="ATMDoor_Top" Style="{StaticResource ATM_Animation}" Fill="Black" Width="8" VerticalAlignment="Top" Height="29" />
|
||||
<Rectangle x:Name="ATMDoor_Bottom" Style="{StaticResource ATM_Animation}" Fill="Black" Width="8" VerticalAlignment="Bottom" Height="29" />
|
||||
</Grid>
|
||||
<Grid x:Name="Slit_valve" Grid.Column="2">
|
||||
<Rectangle x:Name="SlitValve_Top" Style="{StaticResource SlitValve_Animation}" Fill="Black" Width="8" VerticalAlignment="Top" Height="29"/>
|
||||
<Rectangle x:Name="SlitValve_Bottom" Style="{StaticResource SlitValve_Animation}" Fill="Black" Width="8" VerticalAlignment="Bottom" Height="29"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
using OpenSEMI.ClientBase;
|
||||
using Aitex.Sorter.Common;
|
||||
using MECF.Framework.UI.Client.ClientBase;
|
||||
|
||||
namespace SicUI.Controls
|
||||
{
|
||||
/// <summary>
|
||||
/// LoadLock.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class LoadLock : UserControl
|
||||
{
|
||||
public LoadLock()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
#region UnitData (DependencyProperty)
|
||||
public ModuleInfo UnitData
|
||||
{
|
||||
get { return (ModuleInfo)GetValue(UnitDataProperty); }
|
||||
set { SetValue(UnitDataProperty, value); }
|
||||
}
|
||||
public static readonly DependencyProperty UnitDataProperty =
|
||||
DependencyProperty.Register("UnitData", typeof(ModuleInfo), typeof(LoadLock), new UIPropertyMetadata(null));
|
||||
|
||||
public FoupDoorState ATMDoorStatus
|
||||
{
|
||||
get { return (FoupDoorState)GetValue(ATMDoorStatusProperty); }
|
||||
set { SetValue(ATMDoorStatusProperty, value); }
|
||||
}
|
||||
public static readonly DependencyProperty ATMDoorStatusProperty =
|
||||
DependencyProperty.Register("ATMDoorStatus", typeof(FoupDoorState), typeof(LoadLock), new UIPropertyMetadata(FoupDoorState.Close));
|
||||
|
||||
public FoupDoorState SlitValveStatus
|
||||
{
|
||||
get { return (FoupDoorState)GetValue(SlitValveStatusProperty); }
|
||||
set { SetValue(SlitValveStatusProperty, value); }
|
||||
}
|
||||
public static readonly DependencyProperty SlitValveStatusProperty =
|
||||
DependencyProperty.Register("SlitValveStatus", typeof(FoupDoorState), typeof(LoadLock), new UIPropertyMetadata(FoupDoorState.Close));
|
||||
|
||||
public int CurrentSlot
|
||||
{
|
||||
get { return (int)GetValue(CurrentSlotProperty); }
|
||||
set { SetValue(CurrentSlotProperty, value); }
|
||||
}
|
||||
public static readonly DependencyProperty CurrentSlotProperty =
|
||||
DependencyProperty.Register("CurrentSlot", typeof(int), typeof(LoadLock), new UIPropertyMetadata(0));
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,423 @@
|
||||
<UserControl
|
||||
x:Class="SicUI.Controls.M2C4Parts.M2C4EFEMView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:SicUI.Controls"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:efempart="clr-namespace:SicUI.Controls.M2C4Parts"
|
||||
xmlns:local="clr-namespace:SicUI.Controls.M2C4Parts"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:unitControls="clr-namespace:MECF.Framework.UI.Client.Ctrlib.UnitControls;assembly=MECF.Framework.UI.Client"
|
||||
Width="771"
|
||||
Height="699"
|
||||
mc:Ignorable="d">
|
||||
<Grid
|
||||
x:Name="root"
|
||||
Height="800"
|
||||
VerticalAlignment="Top">
|
||||
<Canvas>
|
||||
<Canvas Canvas.Top="300">
|
||||
<Path
|
||||
Canvas.Left="427.2"
|
||||
Canvas.Top="151.041"
|
||||
Width="167.8"
|
||||
Height="160.959"
|
||||
Data="M573,221 L571,215 595,244 553,312 531,297 522,282 C522,282 495,283 482,279 471.19749,275.67615 450.72801,257.85184 444.11644,247.90441 442.99887,246.22296 430,241 430,241 L427.1997,170.99239 433.04081,170.57377 455,169 466,162 485,154 C485,154 493,149 505,152 517,155 555,152.00043 570,198.0003"
|
||||
Fill="Silver"
|
||||
Stretch="Fill" />
|
||||
<Path
|
||||
Canvas.Left="134"
|
||||
Canvas.Top="112"
|
||||
Width="208"
|
||||
Height="198"
|
||||
Data="M134,155 L196,152 192,134 276,112 283,145 293,150 300,157 304,162 308,168 342,168 339,250 335,274 278,310 256,278 244,299 235,309 166,278 186,254 145,252"
|
||||
Fill="Silver"
|
||||
Stretch="Fill" />
|
||||
</Canvas>
|
||||
|
||||
<Image
|
||||
Canvas.Left="254"
|
||||
Canvas.Top="233"
|
||||
Source="Images/tm1.png" />
|
||||
<Image
|
||||
Canvas.Left="341.166"
|
||||
Canvas.Top="327.333"
|
||||
Source="Images/tm3.png" />
|
||||
|
||||
<Canvas Visibility="{Binding IsPM1Installed, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="198"
|
||||
Canvas.Top="121"
|
||||
Width="160"
|
||||
Source="Images/pmbg51.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="0.43" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
<unitControls:Door
|
||||
Canvas.Left="272"
|
||||
Canvas.Top="264"
|
||||
Width="90"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsPM1DoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="-30.127" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
</Canvas>
|
||||
<Canvas Visibility="{Binding IsPM2Installed, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="398"
|
||||
Canvas.Top="123"
|
||||
Width="160"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
Source="Images/pmbg41.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="0.535" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
<unitControls:Door
|
||||
Canvas.Left="392"
|
||||
Canvas.Top="267"
|
||||
Width="90"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsPM2DoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="30.086" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
</Canvas>
|
||||
|
||||
<Canvas Visibility="{Binding IsUnLoadInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="174"
|
||||
Canvas.Top="339"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
Source="Images/wf.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="-13.5" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
<unitControls:Door
|
||||
Canvas.Left="232"
|
||||
Canvas.Top="372"
|
||||
Width="82"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsUnLoadDoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="76.127" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
</Canvas>
|
||||
<Canvas Visibility="{Binding IsLLInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<unitControls:Door
|
||||
Canvas.Left="330"
|
||||
Canvas.Top="455"
|
||||
Width="90"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsLLDoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5" />
|
||||
<Image
|
||||
Canvas.Left="327"
|
||||
Canvas.Top="458"
|
||||
Source="Images/wf.png" />
|
||||
</Canvas>
|
||||
|
||||
<local:AtmRobotMultiLP
|
||||
Canvas.Left="349"
|
||||
Canvas.Top="316"
|
||||
Width="550"
|
||||
Height="80"
|
||||
HasTray="{Binding TMRobotHaveTray}"
|
||||
HasWafer="{Binding IsArmWater}"
|
||||
IsEnabled="{Binding TMEnableWaferClick}"
|
||||
RobotMoveInfo="{Binding TmRobotMoveInfo}"
|
||||
ShowDock="False"
|
||||
ToolTipService.ShowOnDisabled="True"
|
||||
Wafer1="{Binding TMRobotWafer1}" />
|
||||
|
||||
<Canvas Canvas.Top="300">
|
||||
<Image
|
||||
Canvas.Left="179"
|
||||
Canvas.Top="129"
|
||||
Height="150"
|
||||
Source="Images/tm.png" />
|
||||
<Image
|
||||
Canvas.Left="430"
|
||||
Canvas.Top="142"
|
||||
Height="150"
|
||||
Source="Images/tm.png" />
|
||||
<Image
|
||||
Canvas.Left="75"
|
||||
Canvas.Top="129"
|
||||
Width="90"
|
||||
Source="Images/Alinger.png" />
|
||||
|
||||
<local:RobotEfemTray
|
||||
Canvas.Left="482"
|
||||
Canvas.Top="189"
|
||||
Height="40"
|
||||
HasTray="{Binding TrayRobotHaveTray}"
|
||||
HasWafer="{Binding TrayRobotIsArmWater}"
|
||||
IsEnabled="{Binding TrayRobotEnableWaferClick}"
|
||||
RobotMoveInfo="{Binding TrayRobotMoveInfo}"
|
||||
ShowDock="False"
|
||||
ToolTipService.ShowOnDisabled="True"
|
||||
Wafer1="{Binding TrayRobotWafer}" />
|
||||
|
||||
<Canvas Visibility="{Binding IsLLInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="330"
|
||||
Canvas.Top="158"
|
||||
Width="95"
|
||||
Source="Images/pm52.png"
|
||||
Visibility="{Binding LoadLockHaveTray}" />
|
||||
</Canvas>
|
||||
|
||||
<local:RobotEfemWafer
|
||||
Canvas.Left="232"
|
||||
Canvas.Top="183"
|
||||
Height="40"
|
||||
HasWafer="{Binding WaferRobotIsArmWater}"
|
||||
IsEnabled="{Binding WaferRobotEnableWaferClick}"
|
||||
RobotMoveInfo="{Binding WaferRobotMoveInfo}"
|
||||
ShowDock="False"
|
||||
ToolTipService.ShowOnDisabled="True"
|
||||
Wafer1="{Binding WaferRobotWafer}" />
|
||||
|
||||
<Image
|
||||
Canvas.Left="275"
|
||||
Canvas.Top="256"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
Source="Images/Layout07.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="145.128" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
<Image
|
||||
Canvas.Left="138"
|
||||
Canvas.Top="260"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
Source="Images/Layout07.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="212.156" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
<Image
|
||||
Canvas.Left="542"
|
||||
Canvas.Top="238"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
Source="Images/Layout08.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="128.669" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="91"
|
||||
Canvas.Top="167"
|
||||
Width="60"
|
||||
Height="60"
|
||||
IsEnabled="{Binding AlignerEnableWaferClick}"
|
||||
ToolTipService.ShowOnDisabled="True"
|
||||
WaferData="{Binding AlignerWafer}" />
|
||||
|
||||
|
||||
<unitControls:Door
|
||||
Canvas.Left="191"
|
||||
Canvas.Top="129"
|
||||
Width="92"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsEfemUnLoadDoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="-13.873" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
<unitControls:Door
|
||||
Canvas.Left="288"
|
||||
Canvas.Top="200"
|
||||
Width="80"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsEfemLLLeftDoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="90" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
<unitControls:Door
|
||||
Canvas.Left="388"
|
||||
Canvas.Top="200"
|
||||
Width="80"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsEfemLLRightDoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="90" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
</Canvas>
|
||||
|
||||
|
||||
<Canvas Visibility="{Binding IsBufferInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="466"
|
||||
Canvas.Top="342"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
Source="Images/Layout09.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="106" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
<unitControls:Door
|
||||
Canvas.Left="435"
|
||||
Canvas.Top="377"
|
||||
Width="82"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsBufferDoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="106.127" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
</Canvas>
|
||||
|
||||
|
||||
|
||||
<!-- 石墨盘和Wafer -->
|
||||
<Canvas Visibility="{Binding IsPM1Installed, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="239"
|
||||
Canvas.Top="164"
|
||||
Width="96"
|
||||
Source="Images/pm52.png"
|
||||
Visibility="{Binding PM1HaveTray}" />
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="258"
|
||||
Canvas.Top="183"
|
||||
Width="60"
|
||||
Height="60"
|
||||
IsEnabled="{Binding PM1EnableWaferClick}"
|
||||
ToolTipService.ShowOnDisabled="True"
|
||||
WaferData="{Binding PM1Wafer}" />
|
||||
</Canvas>
|
||||
<Canvas Visibility="{Binding IsPM2Installed, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="420"
|
||||
Canvas.Top="165"
|
||||
Width="96"
|
||||
Source="Images/pm52.png"
|
||||
Visibility="{Binding PM2HaveTray}" />
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="439"
|
||||
Canvas.Top="184"
|
||||
Width="60"
|
||||
Height="60"
|
||||
IsEnabled="{Binding PM2EnableWaferClick}"
|
||||
ToolTipService.ShowOnDisabled="True"
|
||||
WaferData="{Binding PM2Wafer}" />
|
||||
</Canvas>
|
||||
<Canvas Visibility="{Binding IsUnLoadInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="176"
|
||||
Canvas.Top="340"
|
||||
Width="95"
|
||||
Source="Images/pm52.png"
|
||||
Visibility="{Binding UnLoadHaveTray}" />
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="194"
|
||||
Canvas.Top="358"
|
||||
Width="60"
|
||||
Height="60"
|
||||
IsEnabled="{Binding UnLoadEnableWaferClick}"
|
||||
ToolTipService.ShowOnDisabled="True"
|
||||
WaferData="{Binding UnLoadWafer}" />
|
||||
</Canvas>
|
||||
<Canvas Visibility="{Binding IsLLInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<!--<Image Source="Images/pm52.png" Canvas.Left="330" Canvas.Top="458" Visibility="{Binding LoadLockHaveTray}" Width="95"/>-->
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="348"
|
||||
Canvas.Top="476"
|
||||
Width="60"
|
||||
Height="60"
|
||||
IsEnabled="{Binding LLEnableWaferClick}"
|
||||
ToolTipService.ShowOnDisabled="True"
|
||||
WaferData="{Binding LoadLockWafer}" />
|
||||
</Canvas>
|
||||
|
||||
</Canvas>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace SicUI.Controls.M2C4Parts
|
||||
{
|
||||
/// <summary>
|
||||
/// M2C4EFEMView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class M2C4EFEMView : UserControl
|
||||
{
|
||||
public M2C4EFEMView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,253 @@
|
||||
<UserControl
|
||||
x:Class="SicUI.Controls.M2C4Parts.M2C4EFEMView2"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:SicUI.Controls"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:SicUI.Controls.M2C4Parts"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:unitControls="clr-namespace:MECF.Framework.UI.Client.Ctrlib.UnitControls;assembly=MECF.Framework.UI.Client"
|
||||
Width="771"
|
||||
Height="699"
|
||||
mc:Ignorable="d">
|
||||
<Grid
|
||||
x:Name="root"
|
||||
Height="800"
|
||||
VerticalAlignment="Top">
|
||||
<Canvas Margin="0,45.333,0,26.667">
|
||||
<Image
|
||||
Canvas.Left="254"
|
||||
Canvas.Top="233"
|
||||
Source="Images/tm1.png" />
|
||||
<Image
|
||||
Canvas.Left="341.166"
|
||||
Canvas.Top="327.333"
|
||||
Source="Images/tm3.png" />
|
||||
|
||||
|
||||
<Canvas Visibility="{Binding IsPM1Installed, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="198"
|
||||
Canvas.Top="121"
|
||||
Width="160"
|
||||
Source="Images/pmbg51.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="0.43" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
<unitControls:Door
|
||||
Canvas.Left="273"
|
||||
Canvas.Top="264"
|
||||
Width="90"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsPM1DoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="-30.127" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
</Canvas>
|
||||
<Canvas Visibility="{Binding IsPM2Installed, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="398"
|
||||
Canvas.Top="123"
|
||||
Width="160"
|
||||
Source="Images/pmbg41.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="0.535" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
<unitControls:Door
|
||||
Canvas.Left="390"
|
||||
Canvas.Top="267"
|
||||
Width="90"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsPM2DoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="30.086" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
</Canvas>
|
||||
|
||||
<Canvas Visibility="{Binding IsUnLoadInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="174"
|
||||
Canvas.Top="339"
|
||||
Opacity="0.3"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
Source="Images/wf.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="-13.5" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
<unitControls:Door
|
||||
Canvas.Left="232"
|
||||
Canvas.Top="372"
|
||||
Width="82"
|
||||
Height="8"
|
||||
IsDoorOpen="False"
|
||||
Opacity="0.5"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="76.127" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
</Canvas>
|
||||
<Canvas Visibility="{Binding IsLoadLockInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<unitControls:Door
|
||||
Canvas.Left="336"
|
||||
Canvas.Top="455"
|
||||
Width="83"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsLLDoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5" />
|
||||
<Image
|
||||
Canvas.Left="327"
|
||||
Canvas.Top="458"
|
||||
Source="Images/wf.png" />
|
||||
</Canvas>
|
||||
|
||||
<local:AtmRobotMultiLP
|
||||
Canvas.Left="349"
|
||||
Canvas.Top="316"
|
||||
Width="550"
|
||||
Height="80"
|
||||
HasTray="{Binding TMRobotHaveTray}"
|
||||
HasWafer="{Binding IsArmWater}"
|
||||
IsEnabled="{Binding TMEnableWaferClick}"
|
||||
RobotMoveInfo="{Binding TmRobotMoveInfo}"
|
||||
RotateAngle="123"
|
||||
ShowDock="False"
|
||||
TranslateX="120"
|
||||
Wafer1="{Binding TMRobotWafer1}" />
|
||||
|
||||
<Canvas Visibility="{Binding IsBufferInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="466"
|
||||
Canvas.Top="343"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
Source="Images/Layout09.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="106" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
<unitControls:Door
|
||||
Canvas.Left="435"
|
||||
Canvas.Top="377"
|
||||
Width="82"
|
||||
Height="8"
|
||||
IsDoorOpen="{Binding IsBufferDoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="106.127" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
</Canvas>
|
||||
|
||||
<Canvas Visibility="{Binding IsPM1Installed, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="239"
|
||||
Canvas.Top="164"
|
||||
Width="96"
|
||||
Source="Images/pm52.png"
|
||||
Visibility="{Binding PM1HaveTray}" />
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="258"
|
||||
Canvas.Top="183"
|
||||
Width="60"
|
||||
Height="60"
|
||||
IsEnabled="{Binding PM1EnableWaferClick}"
|
||||
IsRotary="{Binding IsPm1WaferRotary}"
|
||||
WaferData="{Binding PM1Wafer}" />
|
||||
</Canvas>
|
||||
<Canvas Visibility="{Binding IsPM2Installed, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="420"
|
||||
Canvas.Top="165"
|
||||
Width="96"
|
||||
Source="Images/pm52.png"
|
||||
Visibility="{Binding PM2HaveTray}" />
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="439"
|
||||
Canvas.Top="184"
|
||||
Width="60"
|
||||
Height="60"
|
||||
IsEnabled="{Binding PM2EnableWaferClick}"
|
||||
IsRotary="{Binding IsPm2WaferRotary}"
|
||||
WaferData="{Binding PM2Wafer}" />
|
||||
</Canvas>
|
||||
<Canvas Visibility="{Binding IsUnLoadInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="176"
|
||||
Canvas.Top="340"
|
||||
Width="95"
|
||||
Opacity="0.5"
|
||||
Source="Images/pm52.png"
|
||||
Visibility="{Binding UnLoadHaveTray}" />
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="191"
|
||||
Canvas.Top="358"
|
||||
Width="66"
|
||||
Height="60"
|
||||
IsEnabled="{Binding EnableWaferClick}"
|
||||
WaferData="{Binding UnLoadWafer}" />
|
||||
</Canvas>
|
||||
<Canvas Visibility="{Binding IsLoadLockInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="330"
|
||||
Canvas.Top="459"
|
||||
Width="95"
|
||||
Source="Images/pm52.png"
|
||||
Visibility="{Binding LoadLockHaveTray}" />
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="348"
|
||||
Canvas.Top="477"
|
||||
Width="60"
|
||||
Height="60"
|
||||
IsEnabled="{Binding LLEnableWaferClick}"
|
||||
WaferData="{Binding LoadLockWafer}" />
|
||||
</Canvas>
|
||||
</Canvas>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,44 @@
|
||||
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace SicUI.Controls.M2C4Parts
|
||||
{
|
||||
/// <summary>
|
||||
/// M2C4EFEMView2.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class M2C4EFEMView2 : UserControl
|
||||
{
|
||||
public M2C4EFEMView2()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public bool IsPM1DoorOpen
|
||||
{
|
||||
get { return (bool)GetValue(IsPM1DoorOpenProperty); }
|
||||
set { SetValue(IsPM1DoorOpenProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty IsPM1DoorOpenProperty =
|
||||
DependencyProperty.Register("IsPM1DoorOpen", typeof(bool), typeof(M2C4EFEMView2), new FrameworkPropertyMetadata(false));
|
||||
|
||||
public bool IsPM2DoorOpen
|
||||
{
|
||||
get { return (bool)GetValue(IsPM2DoorOpenProperty); }
|
||||
set { SetValue(IsPM2DoorOpenProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty IsPM2DoorOpenProperty =
|
||||
DependencyProperty.Register("IsPM2DoorOpen", typeof(bool), typeof(M2C4EFEMView2), new FrameworkPropertyMetadata(false));
|
||||
|
||||
public bool IsLLDoorOpen
|
||||
{
|
||||
get { return (bool)GetValue(IsLLDoorOpenProperty); }
|
||||
set { SetValue(IsLLDoorOpenProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty IsLLDoorOpenProperty =
|
||||
DependencyProperty.Register("IsLLDoorOpen", typeof(bool), typeof(M2C4EFEMView2), new FrameworkPropertyMetadata(false));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,284 @@
|
||||
<UserControl
|
||||
x:Class="SicUI.Controls.M2C4Parts.M2C4EFEMView3"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:controls="clr-namespace:SicUI.Controls"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:SicUI.Controls.M2C4Parts"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:unitControls="clr-namespace:MECF.Framework.UI.Client.Ctrlib.UnitControls;assembly=MECF.Framework.UI.Client"
|
||||
Width="771"
|
||||
Height="699"
|
||||
mc:Ignorable="d">
|
||||
<Grid
|
||||
x:Name="root"
|
||||
Height="800"
|
||||
VerticalAlignment="Top">
|
||||
<Canvas Margin="-47,52,47,20">
|
||||
<Image
|
||||
Canvas.Left="250"
|
||||
Canvas.Top="224"
|
||||
Width="275"
|
||||
Height="275"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Source="Images/tm4.png" />
|
||||
<Image
|
||||
Canvas.Left="341"
|
||||
Canvas.Top="327.333"
|
||||
Source="Images/tm3.png" />
|
||||
<TextBlock
|
||||
Canvas.Left="360"
|
||||
Canvas.Top="269"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontSize="18"
|
||||
Text="TM" />
|
||||
|
||||
<Canvas Visibility="{Binding IsPM1Installed, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<TextBlock
|
||||
Canvas.Left="207"
|
||||
Canvas.Top="146"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
FontFamily="Arial"
|
||||
FontSize="18"
|
||||
Text="PM1"
|
||||
Visibility="{Binding IsPM1Installed, Converter={StaticResource BoolVisibilityConverter}}" />
|
||||
<Image
|
||||
Canvas.Left="189"
|
||||
Canvas.Top="141"
|
||||
Width="160"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Source="Images/pmbg51.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<RotateTransform Angle="-5.5" />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
<unitControls:Door
|
||||
Canvas.Left="278"
|
||||
Canvas.Top="272"
|
||||
Width="90"
|
||||
Height="9"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
IsDoorOpen="{Binding IsPM1DoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="-36" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
|
||||
</Canvas>
|
||||
<Canvas Visibility="{Binding IsPM2Installed, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<TextBlock
|
||||
Canvas.Left="510"
|
||||
Canvas.Top="146"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
FontFamily="Arial"
|
||||
FontSize="18"
|
||||
Text="PM2"
|
||||
Visibility="{Binding IsPM2Installed, Converter={StaticResource BoolVisibilityConverter}}" />
|
||||
<Image
|
||||
Canvas.Left="410"
|
||||
Canvas.Top="129"
|
||||
Width="160"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Source="Images/pmbg41.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="5.5" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
<unitControls:Door
|
||||
Canvas.Left="389"
|
||||
Canvas.Top="274"
|
||||
Width="90"
|
||||
Height="8"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
IsDoorOpen="{Binding IsPM2DoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="35.8" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
<!-- Tray和晶圆 -->
|
||||
|
||||
</Canvas>
|
||||
|
||||
<Canvas Visibility="{Binding IsLoadLockInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<TextBlock
|
||||
Canvas.Left="536"
|
||||
Canvas.Top="418"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontSize="18"
|
||||
Text="Load"
|
||||
Visibility="{Binding IsLLInstalled, Converter={StaticResource BoolVisibilityConverter}}" />
|
||||
<unitControls:Door
|
||||
Canvas.Left="404"
|
||||
Canvas.Top="428"
|
||||
Width="83"
|
||||
Height="9"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
IsDoorOpen="{Binding IsLLDoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<RotateTransform Angle="-46" />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
<Image
|
||||
Canvas.Left="406"
|
||||
Canvas.Top="470"
|
||||
Width="110"
|
||||
Height="126"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Source="Images/wf-2.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<RotateTransform Angle="-46" />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
</Canvas>
|
||||
|
||||
<local:AtmRobotMultiLP
|
||||
Canvas.Left="349"
|
||||
Canvas.Top="316"
|
||||
Width="550"
|
||||
Height="80"
|
||||
HasTray="{Binding TMRobotHaveTray}"
|
||||
HasWafer="{Binding IsArmWater}"
|
||||
IsEnabled="{Binding TMEnableWaferClick}"
|
||||
RobotMoveInfo="{Binding TmRobotMoveInfo}"
|
||||
RotateAngle="123"
|
||||
ShowDock="False"
|
||||
TranslateX="120"
|
||||
Wafer1="{Binding TMRobotWafer1}" />
|
||||
|
||||
<Canvas Visibility="{Binding IsBufferInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<TextBlock
|
||||
Canvas.Left="166"
|
||||
Canvas.Top="418"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="Arial"
|
||||
FontSize="18"
|
||||
Text="Buffer"
|
||||
Visibility="{Binding IsBufferInstalled, Converter={StaticResource BoolVisibilityConverter}}" />
|
||||
<Image
|
||||
Canvas.Left="212"
|
||||
Canvas.Top="407"
|
||||
Width="100"
|
||||
Height="120"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
RenderTransformOrigin="0.5,0.5"
|
||||
Source="Images/Buffer.png">
|
||||
<Image.RenderTransform>
|
||||
<TransformGroup>
|
||||
<RotateTransform Angle="45" />
|
||||
</TransformGroup>
|
||||
</Image.RenderTransform>
|
||||
</Image>
|
||||
<unitControls:Door
|
||||
Canvas.Left="263"
|
||||
Canvas.Top="420"
|
||||
Width="82"
|
||||
Height="9"
|
||||
IsDoorOpen="{Binding IsBufferDoorOpen}"
|
||||
RenderTransformOrigin="0.5,0.5">
|
||||
<unitControls:Door.RenderTransform>
|
||||
<TransformGroup>
|
||||
<ScaleTransform />
|
||||
<SkewTransform />
|
||||
<RotateTransform Angle="45" />
|
||||
<TranslateTransform />
|
||||
</TransformGroup>
|
||||
</unitControls:Door.RenderTransform>
|
||||
</unitControls:Door>
|
||||
</Canvas>
|
||||
|
||||
<Canvas Visibility="{Binding IsPM1Installed, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="247"
|
||||
Canvas.Top="180"
|
||||
Width="82"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Source="Images/pm52.png"
|
||||
Visibility="{Binding PM1HaveTray}" />
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="258"
|
||||
Canvas.Top="192"
|
||||
Width="58"
|
||||
Height="58"
|
||||
IsEnabled="{Binding PM1EnableWaferClick}"
|
||||
IsRotary="{Binding IsPm1WaferRotary}"
|
||||
WaferData="{Binding PM1Wafer}" />
|
||||
|
||||
</Canvas>
|
||||
<Canvas Visibility="{Binding IsPM2Installed, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="431"
|
||||
Canvas.Top="185"
|
||||
Width="82"
|
||||
Source="Images/pm52.png"
|
||||
Visibility="{Binding PM2HaveTray}" />
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="442"
|
||||
Canvas.Top="197"
|
||||
Width="58"
|
||||
Height="58"
|
||||
IsEnabled="{Binding PM2EnableWaferClick}"
|
||||
IsRotary="{Binding IsPm2WaferRotary}"
|
||||
WaferData="{Binding PM2Wafer}" />
|
||||
|
||||
</Canvas>
|
||||
|
||||
<Canvas Visibility="{Binding IsLoadLockInstalled, Converter={StaticResource BoolVisibilityConverter}}">
|
||||
<Image
|
||||
Canvas.Left="449"
|
||||
Canvas.Top="435"
|
||||
Width="82"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center"
|
||||
Source="Images/pm52.png"
|
||||
Visibility="{Binding LoadLockHaveTray}" />
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="460"
|
||||
Canvas.Top="446"
|
||||
Width="58"
|
||||
Height="58"
|
||||
IsEnabled="{Binding LLEnableWaferClick}"
|
||||
WaferData="{Binding LoadLockWafer}" />
|
||||
</Canvas>
|
||||
</Canvas>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace SicUI.Controls.M2C4Parts
|
||||
{
|
||||
/// <summary>
|
||||
/// M2C4EFEMView3.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class M2C4EFEMView3 : UserControl
|
||||
{
|
||||
public M2C4EFEMView3()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public bool IsPM1DoorOpen
|
||||
{
|
||||
get { return (bool)GetValue(IsPM1DoorOpenProperty); }
|
||||
set { SetValue(IsPM1DoorOpenProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty IsPM1DoorOpenProperty =
|
||||
DependencyProperty.Register("IsPM1DoorOpen", typeof(bool), typeof(M2C4EFEMView3), new FrameworkPropertyMetadata(false));
|
||||
|
||||
public bool IsPM2DoorOpen
|
||||
{
|
||||
get { return (bool)GetValue(IsPM2DoorOpenProperty); }
|
||||
set { SetValue(IsPM2DoorOpenProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty IsPM2DoorOpenProperty =
|
||||
DependencyProperty.Register("IsPM2DoorOpen", typeof(bool), typeof(M2C4EFEMView3), new FrameworkPropertyMetadata(false));
|
||||
|
||||
public bool IsLLDoorOpen
|
||||
{
|
||||
get { return (bool)GetValue(IsLLDoorOpenProperty); }
|
||||
set { SetValue(IsLLDoorOpenProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty IsLLDoorOpenProperty =
|
||||
DependencyProperty.Register("IsLLDoorOpen", typeof(bool), typeof(M2C4EFEMView3), new FrameworkPropertyMetadata(false));
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,39 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace SicUI.Controls.Parts
|
||||
{
|
||||
public class StatsDataListItem : NotifiableItem
|
||||
{
|
||||
public string Gas { get; set; }
|
||||
public string GasName { get; set; }
|
||||
public string Flow { get; set; }
|
||||
public string ActualFlow { get; set; }
|
||||
public string Error { get; set; }
|
||||
public string InvertedVolume { get; set; }
|
||||
public string DataTime { get; set; }
|
||||
public string ElapseTime { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Interaction logic for IOView.xaml
|
||||
/// </summary>
|
||||
public partial class MFCView : UserControl
|
||||
{
|
||||
public ObservableCollection<StatsDataListItem> StatData
|
||||
{
|
||||
get { return (ObservableCollection<StatsDataListItem>)GetValue(StatDataProperty); }
|
||||
set { SetValue(StatDataProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for StatData. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty StatDataProperty =
|
||||
DependencyProperty.Register("StatData", typeof(ObservableCollection<StatsDataListItem>), typeof(MFCView), new PropertyMetadata(null));
|
||||
|
||||
public MFCView()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
using Aitex.Core.Common;
|
||||
using Aitex.Core.UI.MVVM;
|
||||
using Aitex.Sorter.Common;
|
||||
using SicUI.Controls.Common;
|
||||
using MECF.Framework.Common.Equipment;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Input;
|
||||
using SicUI.Client;
|
||||
|
||||
namespace SicUI.Controls.Parts
|
||||
{
|
||||
public class MFModel : ViewModelControl
|
||||
{
|
||||
//public FoupDoorState PM1DoorState
|
||||
//{
|
||||
// get;
|
||||
// set;
|
||||
//}
|
||||
|
||||
//public FoupDoorState PM2DoorState
|
||||
//{
|
||||
// get;
|
||||
// set;
|
||||
//}
|
||||
|
||||
//public FoupDoorState PM3DoorState
|
||||
//{
|
||||
// get;
|
||||
// set;
|
||||
//}
|
||||
|
||||
//public FoupDoorState LL1ATMDoorState
|
||||
//{
|
||||
// get;
|
||||
// set;
|
||||
//}
|
||||
|
||||
//public FoupDoorState LL1VTMDoorState
|
||||
//{
|
||||
// get;
|
||||
// set;
|
||||
//}
|
||||
|
||||
//public WaferInfo PM1Wafer
|
||||
//{
|
||||
// get;
|
||||
// set;
|
||||
//}
|
||||
|
||||
//public WaferInfo PM2Wafer
|
||||
//{
|
||||
// get;
|
||||
// set;
|
||||
//}
|
||||
|
||||
//public WaferInfo PM3Wafer
|
||||
//{
|
||||
// get;
|
||||
// set;
|
||||
//}
|
||||
|
||||
//public WaferInfo LL1Wafer
|
||||
//{
|
||||
// get;
|
||||
// set;
|
||||
//}
|
||||
|
||||
//public WaferInfo[] RobotWafers
|
||||
//{
|
||||
// get;
|
||||
// set;
|
||||
//}
|
||||
|
||||
|
||||
// PM1.A LL1.A PM2.B
|
||||
public ModuleName TMRobotBladeTarget
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string ArmAExtended
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string ArmBExtended
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public ICommand DeviceOperationCommand
|
||||
{
|
||||
get;
|
||||
private set;
|
||||
}
|
||||
|
||||
public MFModel()
|
||||
{
|
||||
DeviceOperationCommand = new DelegateCommand<object>(DeviceOperation);
|
||||
|
||||
// if (ModuleManager.ModuleInfos.ContainsKey("PM1"))
|
||||
// PM1Wafer = ModuleManager.ModuleInfos["PM1"].WaferManager.AitexWafers[0];
|
||||
|
||||
//if (ModuleManager.ModuleInfos.ContainsKey("PM2"))
|
||||
// PM2Wafer = ModuleManager.ModuleInfos["PM2"].WaferManager.AitexWafers[0];
|
||||
|
||||
//if (ModuleManager.ModuleInfos.ContainsKey("PM3"))
|
||||
// PM3Wafer = ModuleManager.ModuleInfos["PM3"].WaferManager.AitexWafers[0];
|
||||
|
||||
//if (ModuleManager.ModuleInfos.ContainsKey("TMRobot"))
|
||||
// RobotWafers = ModuleManager.ModuleInfos["TMRobot"].WaferManager.AitexWafers;
|
||||
}
|
||||
|
||||
void DeviceOperation(object param)
|
||||
{
|
||||
//InvokeClient.Instance.Service.DoOperation(OperationName.DeviceOperation.ToString(), (object[])param);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
<UserControl
|
||||
x:Class="SicUI.Controls.M2C4Parts.RobotEfemTray"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:Common="clr-namespace:SicUI.Controls.Common"
|
||||
xmlns:controls="clr-namespace:SicUI.Controls"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:SicUI.Controls.M2C4Parts"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:extendedControls="clr-namespace:MECF.Framework.UI.Core.ExtendedControls;assembly=MECF.Framework.UI.Core"
|
||||
d:DesignHeight="38"
|
||||
d:DesignWidth="416"
|
||||
mc:Ignorable="d">
|
||||
<UserControl.Resources>
|
||||
<extendedControls:BindingProxy x:Key="proxy" Data="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=UserControl}}"/>
|
||||
</UserControl.Resources>
|
||||
<Viewbox Stretch="Uniform">
|
||||
<Canvas
|
||||
x:Name="root"
|
||||
Width="416"
|
||||
Height="38">
|
||||
<Image
|
||||
Width="75"
|
||||
Height="80"
|
||||
Margin="-20,-24"
|
||||
Source="Images/AtmRobotMultiLP/dock.png"
|
||||
Visibility="{Binding ShowDock, Converter={StaticResource BoolVisibilityConverter}}" />
|
||||
|
||||
<Common:AxisCanvas
|
||||
x:Name="canvas1"
|
||||
Canvas.Left="10"
|
||||
Canvas.Top="10"
|
||||
Width="68"
|
||||
Height="21">
|
||||
<Image Source="Images/AtmRobotMultiLP/dq01.png" />
|
||||
<Common:AxisCanvas
|
||||
x:Name="canvas2"
|
||||
Canvas.Left="36"
|
||||
Width="46"
|
||||
Height="21">
|
||||
<Image Source="Images/AtmRobotMultiLP/dq01.png" />
|
||||
<Common:AxisCanvas
|
||||
x:Name="canvas3"
|
||||
Canvas.Left="36"
|
||||
Canvas.Top="-8"
|
||||
Width="80"
|
||||
Height="38">
|
||||
<Image Source="Images/AtmRobotMultiLP/dq02.png" />
|
||||
<Image
|
||||
Canvas.Left="-6"
|
||||
Canvas.Top="-29"
|
||||
Width="95"
|
||||
Source="Images/pm52.png"
|
||||
Visibility="{Binding HasTray}" />
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="11"
|
||||
Canvas.Top="-12"
|
||||
Width="60"
|
||||
Height="60"
|
||||
WaferData="{Binding Wafer1}" />
|
||||
|
||||
</Common:AxisCanvas>
|
||||
</Common:AxisCanvas>
|
||||
</Common:AxisCanvas>
|
||||
<Canvas.RenderTransform>
|
||||
<TransformGroup>
|
||||
<RotateTransform Angle="{Binding Source={StaticResource proxy},Path=Data.RotateAngle}" CenterY="30" />
|
||||
<TranslateTransform x:Name="translate" X="{Binding Source={StaticResource proxy},Path=Data.TranslateX}" />
|
||||
</TransformGroup>
|
||||
</Canvas.RenderTransform>
|
||||
</Canvas>
|
||||
</Viewbox>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,538 @@
|
||||
using SicUI.Controls.Common;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
|
||||
namespace SicUI.Controls.M2C4Parts
|
||||
{
|
||||
/// <summary>
|
||||
/// RobotEfemTray.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class RobotEfemTray : UserControl, INotifyPropertyChanged
|
||||
{
|
||||
private int moveTime = 300;
|
||||
private const int AnimationTimeout = 3000; // ms
|
||||
|
||||
private string CurrentPosition
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
private RobotAction CurrentAction
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public int MoveTime
|
||||
{
|
||||
get => moveTime;
|
||||
set
|
||||
{
|
||||
moveTime = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool ShowDock
|
||||
{
|
||||
get { return (bool)GetValue(ShowDockProperty); }
|
||||
set { SetValue(ShowDockProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for ShowDock. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty ShowDockProperty =
|
||||
DependencyProperty.Register("ShowDock", typeof(bool), typeof(RobotEfemTray), new PropertyMetadata(false));
|
||||
public double RotateAngle
|
||||
{
|
||||
get { return (double)GetValue(RotateAngleProperty); }
|
||||
set { SetValue(RotateAngleProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for RotateAngle. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty RotateAngleProperty =
|
||||
DependencyProperty.Register("RotateAngle", typeof(int), typeof(RobotEfemTray), new PropertyMetadata(0.0));
|
||||
|
||||
public double TranslateX
|
||||
{
|
||||
get { return (double)GetValue(TranslateXProperty); }
|
||||
set { SetValue(TranslateXProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for TranslateX. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty TranslateXProperty =
|
||||
DependencyProperty.Register("TranslateX", typeof(double), typeof(RobotEfemTray), new PropertyMetadata(0.0));
|
||||
|
||||
public MECF.Framework.UI.Client.ClientBase.WaferInfo Wafer1
|
||||
{
|
||||
get { return (MECF.Framework.UI.Client.ClientBase.WaferInfo)GetValue(Wafer1Property); }
|
||||
set { SetValue(Wafer1Property, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Wafer1. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty Wafer1Property =
|
||||
DependencyProperty.Register("Wafer1", typeof(MECF.Framework.UI.Client.ClientBase.WaferInfo), typeof(RobotEfemTray), new PropertyMetadata(null));
|
||||
|
||||
//public Visibility IsArmWater => Wafer1 == null ? Visibility.Hidden : Wafer1.IsVisibility;
|
||||
|
||||
public MECF.Framework.UI.Client.ClientBase.WaferInfo Wafer2
|
||||
{
|
||||
get { return (MECF.Framework.UI.Client.ClientBase.WaferInfo)GetValue(Wafer2Property); }
|
||||
set { SetValue(Wafer2Property, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Wafer2. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty Wafer2Property =
|
||||
DependencyProperty.Register("Wafer2", typeof(MECF.Framework.UI.Client.ClientBase.WaferInfo), typeof(RobotEfemTray), new PropertyMetadata(null));
|
||||
|
||||
public string Station
|
||||
{
|
||||
get { return (string)GetValue(StationProperty); }
|
||||
set { SetValue(StationProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Station. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty StationProperty =
|
||||
DependencyProperty.Register("Station", typeof(string), typeof(RobotEfemTray), new PropertyMetadata("Robot"));
|
||||
|
||||
|
||||
public RobotMoveInfo RobotMoveInfo
|
||||
{
|
||||
get { return (RobotMoveInfo)GetValue(RobotMoveInfoProperty); }
|
||||
set { SetValue(RobotMoveInfoProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty RobotMoveInfoProperty =
|
||||
DependencyProperty.Register("RobotMoveInfo", typeof(RobotMoveInfo), typeof(RobotEfemTray), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
|
||||
public bool WaferPresentA
|
||||
{
|
||||
get { return (bool)GetValue(WaferPresentAProperty); }
|
||||
set { SetValue(WaferPresentAProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for WaferPresent. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty WaferPresentAProperty =
|
||||
DependencyProperty.Register("WaferPresentA", typeof(bool), typeof(RobotEfemTray), new PropertyMetadata(false));
|
||||
|
||||
public bool WaferPresentB
|
||||
{
|
||||
get { return (bool)GetValue(WaferPresentBProperty); }
|
||||
set { SetValue(WaferPresentBProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for WaferPresent. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty WaferPresentBProperty =
|
||||
DependencyProperty.Register("WaferPresentB", typeof(bool), typeof(RobotEfemTray), new PropertyMetadata(false));
|
||||
|
||||
public ICommand CreateDeleteWaferCommand
|
||||
{
|
||||
get { return (ICommand)GetValue(CreateDeleteWaferCommandProperty); }
|
||||
set { SetValue(CreateDeleteWaferCommandProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for CreateDeleteWaferCommand. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty CreateDeleteWaferCommandProperty =
|
||||
DependencyProperty.Register("CreateDeleteWaferCommand", typeof(ICommand), typeof(RobotEfemTray), new PropertyMetadata(null));
|
||||
|
||||
public ICommand MoveWaferCommand
|
||||
{
|
||||
get { return (ICommand)GetValue(MoveWaferCommandProperty); }
|
||||
set { SetValue(MoveWaferCommandProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for MoveWaferCommand. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty MoveWaferCommandProperty =
|
||||
DependencyProperty.Register("MoveWaferCommand", typeof(ICommand), typeof(RobotEfemTray), new PropertyMetadata(null));
|
||||
|
||||
public Dictionary<string, StationPosition> StationPosition
|
||||
{
|
||||
get { return (Dictionary<string, StationPosition>)GetValue(StationPositionProperty); }
|
||||
set { SetValue(StationPositionProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for StationPosition. This enables animation, styling, binding, etc... new PropertyMetadata(null, StationPositionChangedCallback)
|
||||
public static readonly DependencyProperty StationPositionProperty =
|
||||
DependencyProperty.Register("StationPosition", typeof(Dictionary<string, StationPosition>), typeof(RobotEfemTray), new PropertyMetadata(null, StationPositionChangedCallback));
|
||||
|
||||
public Visibility HasWafer
|
||||
{
|
||||
get { return (Visibility)GetValue(HasWaferProperty); }
|
||||
set { SetValue(HasWaferProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Station. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty HasWaferProperty =
|
||||
DependencyProperty.Register("HasWafer", typeof(Visibility), typeof(RobotEfemTray), new PropertyMetadata(Visibility.Hidden));
|
||||
|
||||
|
||||
public Visibility HasTray
|
||||
{
|
||||
get { return (Visibility)GetValue(HasTrayProperty); }
|
||||
set { SetValue(HasTrayProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Station. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty HasTrayProperty =
|
||||
DependencyProperty.Register("HasTray", typeof(Visibility), typeof(RobotEfemTray), new PropertyMetadata(Visibility.Hidden));
|
||||
private List<MenuItem> menu;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
public List<MenuItem> Menu
|
||||
{
|
||||
get
|
||||
{
|
||||
return menu;
|
||||
}
|
||||
set
|
||||
{
|
||||
menu = value;
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Menu"));
|
||||
}
|
||||
}
|
||||
|
||||
private ICommand MoveCommand
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
private void MoveTo(object target)
|
||||
{
|
||||
MoveRobot((RobotMoveInfo)target);
|
||||
}
|
||||
|
||||
public RobotEfemTray()
|
||||
{
|
||||
InitializeComponent();
|
||||
root.DataContext = this;
|
||||
|
||||
MoveCommand = new RelayCommand(MoveTo);
|
||||
|
||||
CurrentPosition = "ArmA.System";
|
||||
|
||||
canvas1.Rotate(45);
|
||||
canvas2.Rotate(120);
|
||||
canvas3.Rotate(120);
|
||||
|
||||
StationPosition = new Dictionary<string, StationPosition>
|
||||
{
|
||||
{ "ArmA.System",new StationPosition()
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root=45,
|
||||
Arm=120,
|
||||
Hand=120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root=45,
|
||||
Arm=120,
|
||||
Hand=120
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "ArmA.CassBL",new StationPosition() //ArmA.PerHeat
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = -195,
|
||||
Arm = 120,
|
||||
Hand = 120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = -315,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "ArmA.LoadLock",new StationPosition()
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = -60,
|
||||
Arm = 120,
|
||||
Hand = 120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = -180,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},{ "System",new StationPosition()
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root=45,
|
||||
Arm=120,
|
||||
Hand=120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root=45,
|
||||
Arm=120,
|
||||
Hand=120
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "CassBL",new StationPosition()
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = -195,
|
||||
Arm = 120,
|
||||
Hand = 120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = -315,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "LoadLock",new StationPosition()
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = -60,
|
||||
Arm = 120,
|
||||
Hand = 120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = -180,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
static void StationPositionChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
var self = (RobotEfemTray)d;
|
||||
var positions = (Dictionary<string, StationPosition>)e.NewValue;
|
||||
var menus = new List<MenuItem>();
|
||||
foreach (var position in positions)
|
||||
{
|
||||
var m = new MenuItem() { Header = position.Key };
|
||||
Enum.TryParse<RobotArm>(position.Key.Split('.')[0], out RobotArm arm);
|
||||
m.Items.Add(new MenuItem() { Header = "Pick", Command = self.MoveCommand, CommandParameter = new RobotMoveInfo() { BladeTarget = position.Key, Action = RobotAction.Picking, ArmTarget = arm } });
|
||||
m.Items.Add(new MenuItem() { Header = "Place", Command = self.MoveCommand, CommandParameter = new RobotMoveInfo() { BladeTarget = position.Key, Action = RobotAction.Placing, ArmTarget = arm } });
|
||||
m.Items.Add(new MenuItem() { Header = "Move", Command = self.MoveCommand, CommandParameter = new RobotMoveInfo() { BladeTarget = position.Key, Action = RobotAction.Moving, ArmTarget = arm } });
|
||||
menus.Add(m);
|
||||
}
|
||||
self.Menu = menus;
|
||||
self.MoveTo(new RobotMoveInfo() { BladeTarget = positions.First().Key, Action = RobotAction.None });
|
||||
}
|
||||
|
||||
protected override void OnRender(DrawingContext drawingContext)
|
||||
{
|
||||
base.OnRender(drawingContext);
|
||||
|
||||
if (DesignerProperties.GetIsInDesignMode(this))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (RobotMoveInfo != null)
|
||||
{
|
||||
var needMove = CurrentPosition != RobotMoveInfo.BladeTarget || CurrentAction != RobotMoveInfo.Action;
|
||||
|
||||
if (needMove)
|
||||
{
|
||||
LogMsg($" RobotMoveInfo, action:{RobotMoveInfo.Action} armTarget:{RobotMoveInfo.ArmTarget} bladeTarget:{RobotMoveInfo.BladeTarget}");
|
||||
|
||||
Invoke(() => MoveRobot(RobotMoveInfo));
|
||||
|
||||
CurrentAction = RobotMoveInfo.Action;
|
||||
CurrentPosition = RobotMoveInfo.BladeTarget;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void Invoke(Action action)
|
||||
{
|
||||
Dispatcher.Invoke(action);
|
||||
}
|
||||
|
||||
private void LogMsg(string msg)
|
||||
{
|
||||
var source = "ATM Robot";
|
||||
Console.WriteLine("{0} {1}", source, msg);
|
||||
}
|
||||
|
||||
private void MoveRobot(RobotMoveInfo moveInfo)
|
||||
{
|
||||
canvas1.Stop();
|
||||
canvas2.Stop();
|
||||
canvas3.Stop();
|
||||
|
||||
//canvas21.Stop();
|
||||
//canvas22.Stop();
|
||||
//canvas23.Stop();
|
||||
if (String.IsNullOrEmpty(CurrentPosition))
|
||||
{
|
||||
CurrentPosition = "ArmA.System";
|
||||
}
|
||||
|
||||
var target = moveInfo.BladeTarget;
|
||||
var arm = moveInfo.ArmTarget;
|
||||
|
||||
MoveToStart(arm, CurrentPosition
|
||||
,
|
||||
() => TranslateTo(target, () => MoveToStart(arm, target, () =>
|
||||
{
|
||||
if (moveInfo.Action != RobotAction.Moving)
|
||||
{
|
||||
MoveToEnd(arm, target, () => UpdateWafer(moveInfo));
|
||||
}
|
||||
})));
|
||||
}
|
||||
|
||||
private void RotateTo(string station, Action onComplete = null)
|
||||
{
|
||||
var position = StationPosition[station];
|
||||
LogMsg($"Rotate to {position.StartPosition.X}");
|
||||
}
|
||||
|
||||
private void TranslateTo(string station, Action onComplete = null)
|
||||
{
|
||||
var position = StationPosition[station];
|
||||
LogMsg($"Translate to {position.StartPosition.Z}");
|
||||
Translate(StationPosition[CurrentPosition].StartPosition.Z, position.StartPosition.Z, onComplete);
|
||||
}
|
||||
|
||||
private void MoveToStart(RobotArm arm, string station, Action onComplete = null)
|
||||
{
|
||||
LogMsg($"{arm} Move to start {station}");
|
||||
|
||||
var position = StationPosition[station];
|
||||
|
||||
var storyboard = new Storyboard();
|
||||
storyboard.Completed += (s, e) => onComplete?.Invoke();
|
||||
|
||||
var needRotate = new List<bool>();
|
||||
|
||||
//if (arm == RobotArm.ArmA)
|
||||
{
|
||||
needRotate.Add(canvas1.Rotate(storyboard, position.StartPosition.Root, true, MoveTime));
|
||||
needRotate.Add(canvas2.Rotate(storyboard, position.StartPosition.Arm, true, MoveTime));
|
||||
needRotate.Add(canvas3.Rotate(storyboard, position.StartPosition.Hand, true, MoveTime));
|
||||
}
|
||||
//else if (arm == RobotArm.ArmB)
|
||||
{
|
||||
//needRotate.Add(canvas21.Rotate(storyboard, position.StartPosition.Root, true, MoveTime));
|
||||
//needRotate.Add(canvas22.Rotate(storyboard, position.StartPosition.Arm, true, MoveTime));
|
||||
//needRotate.Add(canvas23.Rotate(storyboard, position.StartPosition.Hand, true, MoveTime));
|
||||
}
|
||||
|
||||
if (needRotate.Any(x => x))
|
||||
{
|
||||
storyboard.Begin();
|
||||
}
|
||||
else
|
||||
{
|
||||
onComplete?.Invoke();
|
||||
}
|
||||
|
||||
CurrentPosition = station;
|
||||
}
|
||||
|
||||
private void MoveToEnd(RobotArm arm, string station, Action onComplete = null)
|
||||
{
|
||||
LogMsg($"{arm} move to end {station}");
|
||||
|
||||
var position = StationPosition[station];
|
||||
|
||||
var storyboard = new Storyboard();
|
||||
storyboard.Completed += (s, e) => onComplete?.Invoke();
|
||||
|
||||
var needRotate = new List<bool>();
|
||||
|
||||
if (arm == RobotArm.ArmA || arm == RobotArm.Both)
|
||||
{
|
||||
needRotate.Add(canvas1.Rotate(storyboard, position.EndPosition.Root, true, MoveTime));
|
||||
needRotate.Add(canvas2.Rotate(storyboard, position.EndPosition.Arm, true, MoveTime));
|
||||
needRotate.Add(canvas3.Rotate(storyboard, position.EndPosition.Hand, true, MoveTime));
|
||||
}
|
||||
|
||||
if (arm == RobotArm.ArmB || arm == RobotArm.Both)
|
||||
{
|
||||
//needRotate.Add(canvas21.Rotate(storyboard, position.EndPosition.Root, true, MoveTime));
|
||||
//needRotate.Add(canvas22.Rotate(storyboard, position.EndPosition.Arm, true, MoveTime));
|
||||
//needRotate.Add(canvas23.Rotate(storyboard, position.EndPosition.Hand, true, MoveTime));
|
||||
}
|
||||
|
||||
if (needRotate.Any(x => x))
|
||||
{
|
||||
storyboard.Begin();
|
||||
}
|
||||
else
|
||||
{
|
||||
onComplete?.Invoke();
|
||||
}
|
||||
|
||||
CurrentPosition = station;
|
||||
}
|
||||
|
||||
private void UpdateWafer(RobotMoveInfo moveInfo)
|
||||
{
|
||||
var waferPresent = false;
|
||||
switch (moveInfo.Action)
|
||||
{
|
||||
case RobotAction.None:
|
||||
case RobotAction.Moving:
|
||||
return;
|
||||
case RobotAction.Picking:
|
||||
waferPresent = true;
|
||||
break;
|
||||
case RobotAction.Placing:
|
||||
waferPresent = false;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
switch (moveInfo.ArmTarget)
|
||||
{
|
||||
case RobotArm.ArmA:
|
||||
WaferPresentA = waferPresent;
|
||||
break;
|
||||
case RobotArm.ArmB:
|
||||
WaferPresentB = waferPresent;
|
||||
break;
|
||||
case RobotArm.Both:
|
||||
WaferPresentA = waferPresent;
|
||||
WaferPresentB = waferPresent;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void Translate(int start, int target, Action onComplete = null)
|
||||
{
|
||||
AnimationHelper.TranslateX(root, start, target, MoveTime, onComplete);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
<UserControl
|
||||
x:Class="SicUI.Controls.M2C4Parts.RobotEfemWafer"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:Common="clr-namespace:SicUI.Controls.Common"
|
||||
xmlns:controls="clr-namespace:SicUI.Controls"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:extendedControls="clr-namespace:MECF.Framework.UI.Core.ExtendedControls;assembly=MECF.Framework.UI.Core"
|
||||
xmlns:local="clr-namespace:SicUI.Controls.M2C4Parts"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
d:DesignHeight="38"
|
||||
d:DesignWidth="416"
|
||||
mc:Ignorable="d">
|
||||
<UserControl.Resources>
|
||||
<extendedControls:BindingProxy x:Key="proxy" Data="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}}" />
|
||||
</UserControl.Resources>
|
||||
<Viewbox Stretch="Uniform">
|
||||
<Canvas
|
||||
x:Name="root"
|
||||
Width="416"
|
||||
Height="38">
|
||||
<!--<Canvas.ContextMenu>
|
||||
<ContextMenu ItemsSource="{Binding Menu}" />
|
||||
</Canvas.ContextMenu>-->
|
||||
<Image
|
||||
Width="75"
|
||||
Height="80"
|
||||
Margin="-20,-24"
|
||||
Source="Images/AtmRobotMultiLP/dock.png"
|
||||
Visibility="{Binding ShowDock, Converter={StaticResource BoolVisibilityConverter}}" />
|
||||
<!--<Image Width="38" Height="38" Source="Images/AtmRobotMultiLP/robotDock.png" />-->
|
||||
<Common:AxisCanvas
|
||||
x:Name="canvas1"
|
||||
Canvas.Left="10"
|
||||
Canvas.Top="10"
|
||||
Width="68"
|
||||
Height="21">
|
||||
<Image Source="Images/AtmRobotMultiLP/dq01.png" />
|
||||
<Common:AxisCanvas
|
||||
x:Name="canvas2"
|
||||
Canvas.Left="36"
|
||||
Width="46"
|
||||
Height="21">
|
||||
<Image Source="Images/AtmRobotMultiLP/dq01.png" />
|
||||
<Common:AxisCanvas
|
||||
x:Name="canvas3"
|
||||
Canvas.Left="36"
|
||||
Canvas.Top="-8"
|
||||
Width="80"
|
||||
Height="38">
|
||||
<Image Source="Images/AtmRobotMultiLP/dq02.png" />
|
||||
<!--<Image Source="Images/pm2.png" Canvas.Left="3" Canvas.Top="-41" Visibility="{Binding IsArmWater}"/>-->
|
||||
<!--<Image Source="Images/pm2.png" Visibility="{Binding HasWafer}" Canvas.Top="-40" Canvas.Left="27" />-->
|
||||
<controls:WaferCtrl
|
||||
Canvas.Left="30"
|
||||
Canvas.Top="-12"
|
||||
Width="60"
|
||||
Height="60"
|
||||
IsEnabled="{Binding EnableWaferClick}"
|
||||
ToolTipService.ShowOnDisabled="True"
|
||||
WaferData="{Binding Wafer1}" />
|
||||
|
||||
</Common:AxisCanvas>
|
||||
</Common:AxisCanvas>
|
||||
</Common:AxisCanvas>
|
||||
<Canvas.RenderTransform>
|
||||
<TransformGroup>
|
||||
<RotateTransform Angle="{Binding Source={StaticResource proxy}, Path=Data.RotateAngle}" CenterY="30" />
|
||||
<TranslateTransform x:Name="translate" X="{Binding Source={StaticResource proxy}, Path=Data.TranslateX}" />
|
||||
</TransformGroup>
|
||||
</Canvas.RenderTransform>
|
||||
</Canvas>
|
||||
</Viewbox>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,630 @@
|
||||
using SicUI.Controls.Common;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
|
||||
namespace SicUI.Controls.M2C4Parts
|
||||
{
|
||||
/// <summary>
|
||||
/// RobotEfemWafer.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class RobotEfemWafer : UserControl, INotifyPropertyChanged
|
||||
{
|
||||
private int moveTime = 300;
|
||||
private const int AnimationTimeout = 3000; // ms
|
||||
|
||||
private string CurrentPosition
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
private RobotAction CurrentAction
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
public int MoveTime
|
||||
{
|
||||
get => moveTime;
|
||||
set
|
||||
{
|
||||
moveTime = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool ShowDock
|
||||
{
|
||||
get { return (bool)GetValue(ShowDockProperty); }
|
||||
set { SetValue(ShowDockProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for ShowDock. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty ShowDockProperty =
|
||||
DependencyProperty.Register("ShowDock", typeof(bool), typeof(RobotEfemWafer), new PropertyMetadata(false));
|
||||
|
||||
public double RotateAngle
|
||||
{
|
||||
get { return (double)GetValue(RotateAngleProperty); }
|
||||
set { SetValue(RotateAngleProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for RotateAngle. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty RotateAngleProperty =
|
||||
DependencyProperty.Register("RotateAngle", typeof(double), typeof(RobotEfemWafer), new PropertyMetadata(0.0));
|
||||
|
||||
public double TranslateX
|
||||
{
|
||||
get { return (double)GetValue(TranslateXProperty); }
|
||||
set { SetValue(TranslateXProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for TranslateX. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty TranslateXProperty =
|
||||
DependencyProperty.Register("TranslateX", typeof(double), typeof(RobotEfemWafer), new PropertyMetadata(0.0));
|
||||
|
||||
public MECF.Framework.UI.Client.ClientBase.WaferInfo Wafer1
|
||||
{
|
||||
get { return (MECF.Framework.UI.Client.ClientBase.WaferInfo)GetValue(Wafer1Property); }
|
||||
set { SetValue(Wafer1Property, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Wafer1. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty Wafer1Property =
|
||||
DependencyProperty.Register("Wafer1", typeof(MECF.Framework.UI.Client.ClientBase.WaferInfo), typeof(RobotEfemWafer), new PropertyMetadata(null));
|
||||
|
||||
//public Visibility IsArmWater => Wafer1 == null ? Visibility.Hidden : Wafer1.IsVisibility;
|
||||
|
||||
public MECF.Framework.UI.Client.ClientBase.WaferInfo Wafer2
|
||||
{
|
||||
get { return (MECF.Framework.UI.Client.ClientBase.WaferInfo)GetValue(Wafer2Property); }
|
||||
set { SetValue(Wafer2Property, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Wafer2. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty Wafer2Property =
|
||||
DependencyProperty.Register("Wafer2", typeof(MECF.Framework.UI.Client.ClientBase.WaferInfo), typeof(RobotEfemWafer), new PropertyMetadata(null));
|
||||
|
||||
public string Station
|
||||
{
|
||||
get { return (string)GetValue(StationProperty); }
|
||||
set { SetValue(StationProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Station. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty StationProperty =
|
||||
DependencyProperty.Register("Station", typeof(string), typeof(RobotEfemWafer), new PropertyMetadata("Robot"));
|
||||
|
||||
public RobotMoveInfo RobotMoveInfo
|
||||
{
|
||||
get { return (RobotMoveInfo)GetValue(RobotMoveInfoProperty); }
|
||||
set { SetValue(RobotMoveInfoProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty RobotMoveInfoProperty =
|
||||
DependencyProperty.Register("RobotMoveInfo", typeof(RobotMoveInfo), typeof(RobotEfemWafer), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
|
||||
public bool WaferPresentA
|
||||
{
|
||||
get { return (bool)GetValue(WaferPresentAProperty); }
|
||||
set { SetValue(WaferPresentAProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for WaferPresent. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty WaferPresentAProperty =
|
||||
DependencyProperty.Register("WaferPresentA", typeof(bool), typeof(RobotEfemWafer), new PropertyMetadata(false));
|
||||
|
||||
public bool WaferPresentB
|
||||
{
|
||||
get { return (bool)GetValue(WaferPresentBProperty); }
|
||||
set { SetValue(WaferPresentBProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for WaferPresent. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty WaferPresentBProperty =
|
||||
DependencyProperty.Register("WaferPresentB", typeof(bool), typeof(RobotEfemWafer), new PropertyMetadata(false));
|
||||
|
||||
public ICommand CreateDeleteWaferCommand
|
||||
{
|
||||
get { return (ICommand)GetValue(CreateDeleteWaferCommandProperty); }
|
||||
set { SetValue(CreateDeleteWaferCommandProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for CreateDeleteWaferCommand. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty CreateDeleteWaferCommandProperty =
|
||||
DependencyProperty.Register("CreateDeleteWaferCommand", typeof(ICommand), typeof(RobotEfemWafer), new PropertyMetadata(null));
|
||||
|
||||
public ICommand MoveWaferCommand
|
||||
{
|
||||
get { return (ICommand)GetValue(MoveWaferCommandProperty); }
|
||||
set { SetValue(MoveWaferCommandProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for MoveWaferCommand. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty MoveWaferCommandProperty =
|
||||
DependencyProperty.Register("MoveWaferCommand", typeof(ICommand), typeof(RobotEfemWafer), new PropertyMetadata(null));
|
||||
|
||||
public Dictionary<string, StationPosition> StationPosition
|
||||
{
|
||||
get { return (Dictionary<string, StationPosition>)GetValue(StationPositionProperty); }
|
||||
set { SetValue(StationPositionProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for StationPosition. This enables animation, styling, binding, etc... new PropertyMetadata(null, StationPositionChangedCallback)
|
||||
public static readonly DependencyProperty StationPositionProperty =
|
||||
DependencyProperty.Register("StationPosition", typeof(Dictionary<string, StationPosition>), typeof(RobotEfemWafer), new PropertyMetadata(null, StationPositionChangedCallback));
|
||||
|
||||
public Visibility HasWafer
|
||||
{
|
||||
get { return (Visibility)GetValue(HasWaferProperty); }
|
||||
set { SetValue(HasWaferProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Station. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty HasWaferProperty =
|
||||
DependencyProperty.Register("HasWafer", typeof(Visibility), typeof(RobotEfemWafer), new PropertyMetadata(Visibility.Hidden));
|
||||
|
||||
private List<MenuItem> menu;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
public List<MenuItem> Menu
|
||||
{
|
||||
get
|
||||
{
|
||||
return menu;
|
||||
}
|
||||
set
|
||||
{
|
||||
menu = value;
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Menu"));
|
||||
}
|
||||
}
|
||||
|
||||
private ICommand MoveCommand
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
private void MoveTo(object target)
|
||||
{
|
||||
MoveRobot((RobotMoveInfo)target);
|
||||
}
|
||||
|
||||
public RobotEfemWafer()
|
||||
{
|
||||
InitializeComponent();
|
||||
root.DataContext = this;
|
||||
|
||||
MoveCommand = new RelayCommand(MoveTo);
|
||||
|
||||
CurrentPosition = "System";
|
||||
|
||||
canvas1.Rotate(45);
|
||||
canvas2.Rotate(120);
|
||||
canvas3.Rotate(120);
|
||||
|
||||
StationPosition = new Dictionary<string, StationPosition>
|
||||
{
|
||||
{ "System",new StationPosition()
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root=45,
|
||||
Arm=120,
|
||||
Hand=120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root=45,
|
||||
Arm=120,
|
||||
Hand=120
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "UnLoad",new StationPosition() //ArmA.ReactorA
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = 18,
|
||||
Arm = 120,
|
||||
Hand = 120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = -102,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "LoadLock",new StationPosition() //ArmA.ReactorB
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = 123,
|
||||
Arm = 120,
|
||||
Hand = 120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = 3,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "Aligner",new StationPosition() //ArmA.PerHeat
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = -55,
|
||||
Arm = 120,
|
||||
Hand = 120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = -175,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "CassAR",new StationPosition() //ArmA.Buffer
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = -183,
|
||||
Arm = 120,
|
||||
Hand = 120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = -303,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "CassAL",new StationPosition()
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = -118,
|
||||
Arm = 120,
|
||||
Hand = 120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = -238,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},{ "ArmA.System",new StationPosition()
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root=45,
|
||||
Arm=120,
|
||||
Hand=120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root=45,
|
||||
Arm=120,
|
||||
Hand=120
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "ArmA.UnLoad",new StationPosition() //ArmA.ReactorA
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = 18,
|
||||
Arm = 120,
|
||||
Hand = 120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = -102,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "ArmA.LoadLock",new StationPosition() //ArmA.ReactorB
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = 123,
|
||||
Arm = 120,
|
||||
Hand = 120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = 3,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "ArmA.Aligner",new StationPosition() //ArmA.PerHeat
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = -55,
|
||||
Arm = 120,
|
||||
Hand = 120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = -175,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "ArmA.CassAR",new StationPosition() //ArmA.Buffer
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = -183,
|
||||
Arm = 120,
|
||||
Hand = 120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = -303,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "ArmA.CassAL",new StationPosition()
|
||||
{
|
||||
StartPosition= new RobotPosition()
|
||||
{
|
||||
Z=0,
|
||||
Root = -118,
|
||||
Arm = 120,
|
||||
Hand = 120
|
||||
},
|
||||
EndPosition= new RobotPosition()
|
||||
{
|
||||
Root = -238,
|
||||
Arm = 360,
|
||||
Hand = 0
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
//canvas21.Rotate(90);
|
||||
//canvas22.Rotate(180);
|
||||
//canvas23.Rotate(180);
|
||||
}
|
||||
|
||||
static void StationPositionChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
|
||||
{
|
||||
var self = (RobotEfemWafer)d;
|
||||
var positions = (Dictionary<string, StationPosition>)e.NewValue;
|
||||
var menus = new List<MenuItem>();
|
||||
foreach (var position in positions)
|
||||
{
|
||||
var m = new MenuItem() { Header = position.Key };
|
||||
Enum.TryParse<RobotArm>(position.Key.Split('.')[0], out RobotArm arm);
|
||||
m.Items.Add(new MenuItem() { Header = "Pick", Command = self.MoveCommand, CommandParameter = new RobotMoveInfo() { BladeTarget = position.Key, Action = RobotAction.Picking, ArmTarget = arm } });
|
||||
m.Items.Add(new MenuItem() { Header = "Place", Command = self.MoveCommand, CommandParameter = new RobotMoveInfo() { BladeTarget = position.Key, Action = RobotAction.Placing, ArmTarget = arm } });
|
||||
m.Items.Add(new MenuItem() { Header = "Move", Command = self.MoveCommand, CommandParameter = new RobotMoveInfo() { BladeTarget = position.Key, Action = RobotAction.Moving, ArmTarget = arm } });
|
||||
menus.Add(m);
|
||||
}
|
||||
self.Menu = menus;
|
||||
self.MoveTo(new RobotMoveInfo() { BladeTarget = positions.First().Key, Action = RobotAction.None });
|
||||
}
|
||||
|
||||
protected override void OnRender(DrawingContext drawingContext)
|
||||
{
|
||||
base.OnRender(drawingContext);
|
||||
|
||||
if (DesignerProperties.GetIsInDesignMode(this))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (RobotMoveInfo != null)
|
||||
{
|
||||
var needMove = CurrentPosition != RobotMoveInfo.BladeTarget || CurrentAction != RobotMoveInfo.Action;
|
||||
|
||||
if (needMove)
|
||||
{
|
||||
LogMsg($" RobotMoveInfo, action:{RobotMoveInfo.Action} armTarget:{RobotMoveInfo.ArmTarget} bladeTarget:{RobotMoveInfo.BladeTarget}");
|
||||
|
||||
Invoke(() => MoveRobot(RobotMoveInfo));
|
||||
|
||||
CurrentAction = RobotMoveInfo.Action;
|
||||
CurrentPosition = RobotMoveInfo.BladeTarget;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void Invoke(Action action)
|
||||
{
|
||||
Dispatcher.Invoke(action);
|
||||
}
|
||||
|
||||
private void LogMsg(string msg)
|
||||
{
|
||||
var source = "ATM Robot";
|
||||
Console.WriteLine("{0} {1}", source, msg);
|
||||
}
|
||||
|
||||
private void MoveRobot(RobotMoveInfo moveInfo)
|
||||
{
|
||||
canvas1.Stop();
|
||||
canvas2.Stop();
|
||||
canvas3.Stop();
|
||||
|
||||
var target = moveInfo.BladeTarget;
|
||||
var arm = moveInfo.ArmTarget;
|
||||
|
||||
MoveToStart(arm, CurrentPosition
|
||||
,
|
||||
() => TranslateTo(target, () => MoveToStart(arm, target, () =>
|
||||
{
|
||||
if (moveInfo.Action != RobotAction.Moving)
|
||||
{
|
||||
MoveToEnd(arm, target, () => UpdateWafer(moveInfo));
|
||||
}
|
||||
})));
|
||||
}
|
||||
|
||||
private void RotateTo(string station, Action onComplete = null)
|
||||
{
|
||||
var position = StationPosition[station];
|
||||
LogMsg($"Rotate to {position.StartPosition.X}");
|
||||
}
|
||||
|
||||
private void TranslateTo(string station, Action onComplete = null)
|
||||
{
|
||||
if (station == null || !StationPosition.ContainsKey(station))
|
||||
{
|
||||
station = "ArmA.System";
|
||||
}
|
||||
var position = StationPosition[station];
|
||||
LogMsg($"Translate to {position.StartPosition.Z}");
|
||||
Translate(StationPosition[CurrentPosition].StartPosition.Z, position.StartPosition.Z, onComplete);
|
||||
}
|
||||
|
||||
private void MoveToStart(RobotArm arm, string station, Action onComplete = null)
|
||||
{
|
||||
LogMsg($"{arm} Move to start {station}");
|
||||
|
||||
var position = StationPosition[station];
|
||||
|
||||
var storyboard = new Storyboard();
|
||||
storyboard.Completed += (s, e) => onComplete?.Invoke();
|
||||
|
||||
var needRotate = new List<bool>();
|
||||
|
||||
//if (arm == RobotArm.ArmA)
|
||||
{
|
||||
needRotate.Add(canvas1.Rotate(storyboard, position.StartPosition.Root, true, MoveTime));
|
||||
needRotate.Add(canvas2.Rotate(storyboard, position.StartPosition.Arm, true, MoveTime));
|
||||
needRotate.Add(canvas3.Rotate(storyboard, position.StartPosition.Hand, true, MoveTime));
|
||||
}
|
||||
//else if (arm == RobotArm.ArmB)
|
||||
{
|
||||
//needRotate.Add(canvas21.Rotate(storyboard, position.StartPosition.Root, true, MoveTime));
|
||||
//needRotate.Add(canvas22.Rotate(storyboard, position.StartPosition.Arm, true, MoveTime));
|
||||
//needRotate.Add(canvas23.Rotate(storyboard, position.StartPosition.Hand, true, MoveTime));
|
||||
}
|
||||
|
||||
if (needRotate.Any(x => x))
|
||||
{
|
||||
storyboard.Begin();
|
||||
}
|
||||
else
|
||||
{
|
||||
onComplete?.Invoke();
|
||||
}
|
||||
|
||||
CurrentPosition = station;
|
||||
}
|
||||
|
||||
private void MoveToEnd(RobotArm arm, string station, Action onComplete = null)
|
||||
{
|
||||
LogMsg($"{arm} move to end {station}");
|
||||
|
||||
var position = StationPosition[station];
|
||||
|
||||
var storyboard = new Storyboard();
|
||||
storyboard.Completed += (s, e) => onComplete?.Invoke();
|
||||
|
||||
var needRotate = new List<bool>();
|
||||
|
||||
if (arm == RobotArm.ArmA || arm == RobotArm.Both)
|
||||
{
|
||||
needRotate.Add(canvas1.Rotate(storyboard, position.EndPosition.Root, true, MoveTime));
|
||||
needRotate.Add(canvas2.Rotate(storyboard, position.EndPosition.Arm, true, MoveTime));
|
||||
needRotate.Add(canvas3.Rotate(storyboard, position.EndPosition.Hand, true, MoveTime));
|
||||
}
|
||||
|
||||
if (arm == RobotArm.ArmB || arm == RobotArm.Both)
|
||||
{
|
||||
//needRotate.Add(canvas21.Rotate(storyboard, position.EndPosition.Root, true, MoveTime));
|
||||
//needRotate.Add(canvas22.Rotate(storyboard, position.EndPosition.Arm, true, MoveTime));
|
||||
//needRotate.Add(canvas23.Rotate(storyboard, position.EndPosition.Hand, true, MoveTime));
|
||||
}
|
||||
|
||||
if (needRotate.Any(x => x))
|
||||
{
|
||||
storyboard.Begin();
|
||||
}
|
||||
else
|
||||
{
|
||||
onComplete?.Invoke();
|
||||
}
|
||||
|
||||
CurrentPosition = station;
|
||||
}
|
||||
|
||||
|
||||
private void UpdateWafer(RobotMoveInfo moveInfo)
|
||||
{
|
||||
var waferPresent = false;
|
||||
switch (moveInfo.Action)
|
||||
{
|
||||
case RobotAction.None:
|
||||
case RobotAction.Moving:
|
||||
return;
|
||||
case RobotAction.Picking:
|
||||
waferPresent = true;
|
||||
break;
|
||||
case RobotAction.Placing:
|
||||
waferPresent = false;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
switch (moveInfo.ArmTarget)
|
||||
{
|
||||
case RobotArm.ArmA:
|
||||
WaferPresentA = waferPresent;
|
||||
break;
|
||||
case RobotArm.ArmB:
|
||||
WaferPresentB = waferPresent;
|
||||
break;
|
||||
case RobotArm.Both:
|
||||
WaferPresentA = waferPresent;
|
||||
WaferPresentB = waferPresent;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void Translate(int start, int target, Action onComplete = null)
|
||||
{
|
||||
AnimationHelper.TranslateX(root, start, target, MoveTime, onComplete);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<UserControl x:Class="SicUI.Controls.M2C4Parts.Slot"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:SicUI.Controls.M2C4Parts"
|
||||
mc:Ignorable="d">
|
||||
<Canvas>
|
||||
<Path x:Name="left" Width="28" Height="11" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource blueSlot}" Data="M 10,144L 18,144L 18,150L 38,150L 38,155L 10,155L 10,144 Z ">
|
||||
<Path.ToolTip>
|
||||
<ToolTip x:Name="tipLeft" />
|
||||
</Path.ToolTip>
|
||||
</Path>
|
||||
<Path x:Name="right" Width="28" Height="11" Canvas.Left="131" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource blueSlot}" Data="M 169,144L 161,144L 161,150L 141,150L 141,155L 169,155L 169,144 Z ">
|
||||
<Path.ToolTip>
|
||||
<ToolTip x:Name="tipRight" />
|
||||
</Path.ToolTip>
|
||||
</Path>
|
||||
</Canvas>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace SicUI.Controls.M2C4Parts
|
||||
{
|
||||
/// <summary>
|
||||
/// Slot.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class Slot : UserControl
|
||||
{
|
||||
public Slot()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
<UserControl
|
||||
x:Class="SicUI.Controls.Parts.Wafer"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:Parts="clr-namespace:SicUI.Controls.Parts"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:SicUI.Controls.Parts"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
d:DesignHeight="300"
|
||||
d:DesignWidth="300"
|
||||
mc:Ignorable="d">
|
||||
<Grid x:Name="root">
|
||||
<Grid.ContextMenu>
|
||||
<ContextMenu>
|
||||
<MenuItem
|
||||
Command="{Binding CreateDeleteWaferCommand}"
|
||||
CommandParameter="CreateWafer"
|
||||
Header="Create Wafer" />
|
||||
<MenuItem
|
||||
Command="{Binding CreateDeleteWaferCommand}"
|
||||
CommandParameter="DeleteWafer"
|
||||
Header="Delete Wafer" />
|
||||
</ContextMenu>
|
||||
</Grid.ContextMenu>
|
||||
<Border
|
||||
Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}"
|
||||
Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}"
|
||||
Background="Transparent"
|
||||
Drop="Wafer_Drop"
|
||||
MouseMove="Wafer_MouseMove"
|
||||
Visibility="{Binding WaferStyle, Converter={StaticResource VisibilityConverter}}">
|
||||
<Border.AllowDrop>
|
||||
<MultiBinding Converter="{StaticResource WaferDropConverter}">
|
||||
<Binding Path="WaferItem.Status" />
|
||||
<Binding Path="WaferItem.IsDestination" />
|
||||
</MultiBinding>
|
||||
</Border.AllowDrop>
|
||||
<Border.ToolTip>
|
||||
<TextBlock>
|
||||
<TextBlock.Text>
|
||||
<MultiBinding Converter="{StaticResource WaferConverter}">
|
||||
<Binding Path="WaferItem.Status" />
|
||||
<Binding Path="WaferIDDisplayMode" />
|
||||
<Binding Path="WaferItem.WaferOrigin" />
|
||||
<Binding Path="WaferItem.LaserMarker" />
|
||||
<Binding Path="WaferItem.T7Code" />
|
||||
</MultiBinding>
|
||||
</TextBlock.Text>
|
||||
</TextBlock>
|
||||
</Border.ToolTip>
|
||||
<Ellipse
|
||||
Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}"
|
||||
Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}"
|
||||
Stretch="Fill"
|
||||
Stroke="#FF00641D"
|
||||
StrokeLineJoin="Round"
|
||||
StrokeThickness="0"
|
||||
Visibility="{Binding WaferItem.Status, Converter={StaticResource WaferVisibilityConverter}}">
|
||||
<Ellipse.Fill>
|
||||
<MultiBinding Converter="{StaticResource WaferColorConverter}">
|
||||
<Binding Path="WaferItem.Status" />
|
||||
<Binding Path="WaferItem.ProcessState" />
|
||||
<Binding Path="WaferItem.IsDestination" />
|
||||
<Binding Path="WaferItem.IsSource" />
|
||||
</MultiBinding>
|
||||
</Ellipse.Fill>
|
||||
</Ellipse>
|
||||
</Border>
|
||||
<Border
|
||||
Width="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualWidth}"
|
||||
Height="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=ActualHeight}"
|
||||
Background="Transparent"
|
||||
BorderBrush="CadetBlue"
|
||||
BorderThickness="0"
|
||||
DragLeave="Border_DragLeave"
|
||||
DragOver="Border_DragOver"
|
||||
Drop="Wafer_Drop"
|
||||
MouseMove="Wafer_MouseMove"
|
||||
Visibility="{Binding WaferStyle, Converter={StaticResource VisibilityConverter}, ConverterParameter=0}">
|
||||
<Border.AllowDrop>
|
||||
<MultiBinding Converter="{StaticResource WaferDropConverter}">
|
||||
<Binding Path="WaferItem.Status" />
|
||||
<Binding Path="WaferItem.IsDestination" />
|
||||
</MultiBinding>
|
||||
</Border.AllowDrop>
|
||||
<Grid>
|
||||
<Parts:Slot
|
||||
Margin="-158,0,0,0"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Visibility="{Binding ShowSlot, Converter={StaticResource BoolVisibilityConverter}}" />
|
||||
<Rectangle
|
||||
x:Name="green"
|
||||
Canvas.Left="16"
|
||||
Width="146"
|
||||
Height="14"
|
||||
Stretch="Fill"
|
||||
Stroke="{Binding WaferItem.Status, Converter={StaticResource WaferStatusConverter}}"
|
||||
StrokeLineJoin="Round"
|
||||
StrokeThickness="2"
|
||||
Visibility="{Binding WaferItem.Status, Converter={StaticResource WaferVisibilityConverter}}">
|
||||
<Rectangle.Fill>
|
||||
<MultiBinding Converter="{StaticResource WaferColorConverter}">
|
||||
<Binding Path="WaferItem.Status" />
|
||||
<Binding Path="WaferItem.ProcessState" />
|
||||
<Binding Path="WaferItem.IsDestination" />
|
||||
<Binding Path="WaferItem.IsSource" />
|
||||
</MultiBinding>
|
||||
</Rectangle.Fill>
|
||||
</Rectangle>
|
||||
<TextBlock FontSize="8" Foreground="Black">
|
||||
<TextBlock.Text>
|
||||
<MultiBinding Converter="{StaticResource WaferConverter}">
|
||||
<Binding Path="WaferItem.Status" />
|
||||
<Binding Path="WaferIDDisplayMode" />
|
||||
<Binding Path="WaferItem.WaferOrigin" />
|
||||
<Binding Path="WaferItem.LaserMarker" />
|
||||
<Binding Path="WaferItem.T7Code" />
|
||||
</MultiBinding>
|
||||
</TextBlock.Text>
|
||||
</TextBlock>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,318 @@
|
||||
using Aitex.Core.UI.MVVM;
|
||||
using MECF.Framework.Common.Equipment;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
using Aitex.Core.Common;
|
||||
using MECF.Framework.UI.Client.ClientBase;
|
||||
using GUI = OpenSEMI.Ctrlib.Controls;
|
||||
using WaferStatus = Aitex.Core.Common.WaferStatus;
|
||||
|
||||
namespace SicUI.Controls.Parts
|
||||
{
|
||||
/// <summary>
|
||||
/// Wafer.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class Wafer : UserControl
|
||||
{
|
||||
public static readonly DependencyProperty WaferItemProperty = DependencyProperty.Register(
|
||||
"WaferItem", typeof(WaferInfoRt), typeof(Wafer),
|
||||
new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
|
||||
|
||||
public WaferInfoRt WaferItem
|
||||
{
|
||||
get
|
||||
{
|
||||
return (WaferInfoRt)GetValue(WaferItemProperty);
|
||||
}
|
||||
set
|
||||
{
|
||||
SetValue(WaferItemProperty, value);
|
||||
}
|
||||
}
|
||||
|
||||
public int Slot
|
||||
{
|
||||
get { return (int)GetValue(SlotProperty); }
|
||||
set { SetValue(SlotProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Slot. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty SlotProperty =
|
||||
DependencyProperty.Register("Slot", typeof(int), typeof(Wafer), new PropertyMetadata(-1));
|
||||
|
||||
public ModuleName Station
|
||||
{
|
||||
get { return (ModuleName)GetValue(StationProperty); }
|
||||
set { SetValue(StationProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for Station. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty StationProperty =
|
||||
DependencyProperty.Register("Station", typeof(ModuleName), typeof(Wafer), new PropertyMetadata(ModuleName.System));
|
||||
|
||||
public ICommand WaferTransferCommand
|
||||
{
|
||||
get { return (ICommand)GetValue(WaferTransferCommandProperty); }
|
||||
set { SetValue(WaferTransferCommandProperty, value); }
|
||||
}
|
||||
|
||||
public bool ShowSlot
|
||||
{
|
||||
get { return (bool)GetValue(ShowSlotProperty); }
|
||||
set { SetValue(ShowSlotProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for ShowSlot. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty ShowSlotProperty =
|
||||
DependencyProperty.Register("ShowSlot", typeof(bool), typeof(Wafer), new PropertyMetadata(false));
|
||||
|
||||
// Using a DependencyProperty as the backing store for WaferMovementCommand. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty WaferTransferCommandProperty =
|
||||
DependencyProperty.Register("WaferTransferCommand", typeof(ICommand), typeof(Wafer), new PropertyMetadata(null));
|
||||
|
||||
//public WaferDisplayMode WaferIDDisplayMode
|
||||
//{
|
||||
// get { return (WaferDisplayMode)GetValue(WaferDisplayModeProperty); }
|
||||
// set { SetValue(WaferDisplayModeProperty, value); }
|
||||
//}
|
||||
|
||||
// Using a DependencyProperty as the backing store for WaferIDDisplayMode. This enables animation, styling, binding, etc...
|
||||
//public static readonly DependencyProperty WaferDisplayModeProperty =
|
||||
// DependencyProperty.Register("WaferIDDisplayMode", typeof(WaferDisplayMode), typeof(Wafer), new PropertyMetadata(WaferDisplayMode.None));
|
||||
|
||||
public ICommand WaferTransferOptionCommand
|
||||
{
|
||||
get { return (ICommand)GetValue(WaferTransferOptionCommandProperty); }
|
||||
set { SetValue(WaferTransferOptionCommandProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for WaferTransferOptionCommand. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty WaferTransferOptionCommandProperty =
|
||||
DependencyProperty.Register("WaferTransferOptionCommand", typeof(ICommand), typeof(Wafer), new PropertyMetadata(null));
|
||||
|
||||
public ICommand CreateDeleteWaferCommand
|
||||
{
|
||||
get { return (ICommand)GetValue(CreateDeleteWaferCommandProperty); }
|
||||
set { SetValue(CreateDeleteWaferCommandProperty, value); }
|
||||
}
|
||||
|
||||
// Using a DependencyProperty as the backing store for CreateDeleteWaferCommand. This enables animation, styling, binding, etc...
|
||||
public static readonly DependencyProperty CreateDeleteWaferCommandProperty =
|
||||
DependencyProperty.Register("CreateDeleteWaferCommand", typeof(ICommand), typeof(Wafer), new PropertyMetadata(null));
|
||||
|
||||
private WaferStyle waferStyle = WaferStyle.Rect;
|
||||
|
||||
public WaferStyle WaferStyle
|
||||
{
|
||||
get
|
||||
{
|
||||
return waferStyle;
|
||||
}
|
||||
set
|
||||
{
|
||||
waferStyle = value;
|
||||
}
|
||||
}
|
||||
|
||||
public Wafer()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
CreateDeleteWaferCommand = new DelegateCommand<string>(CreateDeleteWafer);
|
||||
|
||||
root.DataContext = this;
|
||||
}
|
||||
|
||||
private void Wafer_MouseMove(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (WaferItem == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (e.LeftButton == MouseButtonState.Pressed && (WaferItem.WaferStatus == WaferStatus.Normal || WaferItem.WaferStatus == WaferStatus.Dummy) && !WaferItem.IsSource)
|
||||
{
|
||||
var data = new DataObject();
|
||||
data.SetData("Object", WaferItem);
|
||||
data.SetData("Station", Station);
|
||||
data.SetData("Slot", Slot);
|
||||
DragDrop.DoDragDrop(sender as DependencyObject,
|
||||
data,
|
||||
DragDropEffects.Copy | DragDropEffects.Move);
|
||||
}
|
||||
}
|
||||
|
||||
private void Wafer_Drop(object sender, DragEventArgs e)
|
||||
{
|
||||
if (sender != null)
|
||||
{
|
||||
GUI.Slot m_dragSource;
|
||||
|
||||
if (e.Data.GetDataPresent(typeof(GUI.Slot))) //drag wafer from new UI source
|
||||
{
|
||||
m_dragSource = (GUI.Slot)e.Data.GetData(typeof(GUI.Slot));
|
||||
}
|
||||
else
|
||||
{
|
||||
//((Border)sender).BorderThickness = new Thickness(0);
|
||||
|
||||
var sourceWafer = (WaferInfo)e.Data.GetData("Object");
|
||||
var sourceStation = (ModuleName)e.Data.GetData("Station");
|
||||
var sourceSlot = (int)e.Data.GetData("Slot");
|
||||
|
||||
m_dragSource = new GUI.Slot();
|
||||
m_dragSource.ModuleID = sourceStation.ToString();
|
||||
m_dragSource.SlotID = sourceSlot;
|
||||
|
||||
//if (sourceWafer == null)
|
||||
//{
|
||||
// return;
|
||||
//}
|
||||
|
||||
//if (sourceStation == ModuleName.Robot && Station == ModuleName.Robot)
|
||||
//{
|
||||
// return;
|
||||
//}
|
||||
|
||||
//WaferTransferOption transferOption = null;
|
||||
|
||||
//if (WaferTransferOptionCommand != null)
|
||||
//{
|
||||
// transferOption = new WaferTransferOption();
|
||||
// WaferTransferOptionCommand.Execute(transferOption);
|
||||
//}
|
||||
//var dialog = new WaferTransferDialog(sourceWafer, sourceStation, sourceSlot, Station, Slot, transferOption);
|
||||
//dialog.Owner = Window.GetWindow(this);
|
||||
//if (dialog.ShowDialog() == true)
|
||||
//{
|
||||
// if (sourceWafer.Status == WaferStatus.Dummy)
|
||||
// {
|
||||
// if (WaferTransferCommand != null)
|
||||
// {
|
||||
// WaferTransferCommand.Execute(new SorterRecipeTransferTableItem
|
||||
// {
|
||||
// SourceStation = sourceStation,
|
||||
// SourceSlot = sourceSlot,
|
||||
// DestinationStation = Station,
|
||||
// DestinationSlot = Slot,
|
||||
// IsAlign = dialog.Aligner,
|
||||
// IsReadLaserMarker = dialog.ReadLaserMarker,
|
||||
// IsReadT7Code = dialog.ReadT7Code,
|
||||
// AlignAngle = dialog.AlignerAngle
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// var moveType = MoveType.Move;
|
||||
// MoveOption moveOption = 0;
|
||||
// if (dialog.Aligner)
|
||||
// {
|
||||
// moveOption |= MoveOption.Align;
|
||||
// }
|
||||
// if (dialog.ReadLaserMarker)
|
||||
// {
|
||||
// moveOption |= MoveOption.ReadID;
|
||||
// }
|
||||
// if (dialog.ReadT7Code)
|
||||
// {
|
||||
// moveOption |= MoveOption.ReadID2;
|
||||
// }
|
||||
// var hand = (Hand)dialog.Blade;
|
||||
// var param = new object[]
|
||||
// {
|
||||
// moveType,
|
||||
// moveOption,
|
||||
// hand,
|
||||
// sourceStation,
|
||||
// sourceSlot,
|
||||
// Station,
|
||||
// Slot
|
||||
// };
|
||||
// //InvokeClient.Instance.Service.DoOperation(OperationName.MoveWafer.ToString(), param);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
GUI.Slot _target = new GUI.Slot();
|
||||
_target.ModuleID = Station.ToString();
|
||||
_target.SlotID = Slot;
|
||||
|
||||
WaferMoveManager.Instance.TransferWafer(m_dragSource, _target);
|
||||
}
|
||||
}
|
||||
|
||||
private void CreateDeleteWafer(string cmd)
|
||||
{
|
||||
var param = new object[] { Station, Slot, WaferStatus.Normal };
|
||||
InvokeClient.Instance.Service.DoOperation(cmd, param);
|
||||
}
|
||||
|
||||
private void Border_DragOver(object sender, DragEventArgs e)
|
||||
{
|
||||
var sourceWafer = (WaferInfo)e.Data.GetData("Object");
|
||||
var sourceStation = (ModuleName)e.Data.GetData("Station");
|
||||
var sourceSlot = (int)e.Data.GetData("Slot");
|
||||
|
||||
if (!(sourceStation == Station && sourceSlot == Slot))
|
||||
{
|
||||
((Border)sender).BorderThickness = new Thickness(1);
|
||||
}
|
||||
}
|
||||
|
||||
private void Border_DragLeave(object sender, DragEventArgs e)
|
||||
{
|
||||
var sourceWafer = (WaferInfo)e.Data.GetData("Object");
|
||||
var sourceStation = (ModuleName)e.Data.GetData("Station");
|
||||
var sourceSlot = (int)e.Data.GetData("Slot");
|
||||
|
||||
if (!(sourceStation == Station && sourceSlot == Slot))
|
||||
{
|
||||
((Border)sender).BorderThickness = new Thickness(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public enum WaferStyle
|
||||
{
|
||||
Rect,
|
||||
Eclipse
|
||||
}
|
||||
|
||||
public class WaferTransferOption
|
||||
{
|
||||
public WaferTransferOption()
|
||||
{
|
||||
Setting = new WaferTransferOptionSetting();
|
||||
}
|
||||
|
||||
public bool Align { get; set; }
|
||||
|
||||
public bool ReadLaserMarker { get; set; }
|
||||
|
||||
public bool ReadT7Code { get; set; }
|
||||
|
||||
public int Blade { get; set; }
|
||||
|
||||
public double AlignerAngle { get; set; }
|
||||
|
||||
public WaferTransferOptionSetting Setting { get; set; }
|
||||
}
|
||||
|
||||
public class WaferTransferOptionSetting
|
||||
{
|
||||
public WaferTransferOptionSetting()
|
||||
{
|
||||
ShowAlign = true;
|
||||
ShowLaserMarker = true;
|
||||
ShowT7Code = true;
|
||||
}
|
||||
|
||||
public bool ShowAlign { get; set; }
|
||||
|
||||
public bool ShowLaserMarker { get; set; }
|
||||
|
||||
public bool ShowT7Code { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
<Window x:Class="SicUI.Controls.Parts.WaferTransferDialog"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:local="clr-namespace:SicUI.Controls.Parts"
|
||||
mc:Ignorable="d"
|
||||
WindowStyle="SingleBorderWindow" ResizeMode="NoResize" ShowInTaskbar="False"
|
||||
Title="Transfer Option" Height="450" Width="380" WindowStartupLocation="CenterOwner" SizeToContent="Height">
|
||||
<Grid VerticalAlignment="Center" x:Name="grid">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="40" />
|
||||
<RowDefinition Height="40" />
|
||||
<RowDefinition Height="40" />
|
||||
<RowDefinition Height="40" />
|
||||
<RowDefinition Height="40" />
|
||||
<RowDefinition Height="40" />
|
||||
<RowDefinition Height="40" />
|
||||
<RowDefinition Height="40" />
|
||||
<RowDefinition Height="40" />
|
||||
<RowDefinition Height="auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Label Grid.Row="0" Grid.Column="0" Content="Source Chamber" />
|
||||
<Label x:Name="lbSource" Grid.Row="0" Grid.Column="1" Content="" />
|
||||
|
||||
<Label Grid.Row="1" Grid.Column="0" Content="Source Slot" />
|
||||
<Label x:Name="lbSourceSlot" Grid.Row="1" Grid.Column="1" Content="" />
|
||||
|
||||
<Label Grid.Row="2" Grid.Column="0" Content="Dest Chamber" />
|
||||
<Label x:Name="lbDest" Grid.Row="2" Grid.Column="1" Content="" />
|
||||
|
||||
<Label Grid.Row="3" Grid.Column="0" Content="Dest Slot" />
|
||||
<Label x:Name="lblDestSlot" Grid.Row="3" Grid.Column="1" Content="" />
|
||||
|
||||
<Label Grid.Row="4" Grid.Column="0" Content="Aligner" />
|
||||
<CheckBox Grid.Row="4" x:Name="chkAligner" VerticalContentAlignment="Center" Grid.Column="1" />
|
||||
|
||||
<Label Grid.Row="5" Grid.Column="0" Content="Read Laser Marker" />
|
||||
<CheckBox Grid.Row="5" x:Name="chkReadID" VerticalContentAlignment="Center" Grid.Column="1" />
|
||||
|
||||
<Label Grid.Row="6" Grid.Column="0" Content="Read T7 Code" />
|
||||
<CheckBox Grid.Row="6" x:Name="chkReadID2" VerticalContentAlignment="Center" Grid.Column="1" />
|
||||
|
||||
<Label Grid.Row="7" Grid.Column="0" Content="Blade" />
|
||||
<WrapPanel Grid.Row="7" Grid.Column="1" VerticalAlignment="Center">
|
||||
<RadioButton x:Name="chkBlade1" Content="1" IsChecked="True" />
|
||||
<RadioButton x:Name="chkBlade2" Margin="8,0" Content="2" />
|
||||
</WrapPanel>
|
||||
|
||||
<Label Grid.Row="8" Grid.Column="0" Content="Aligner Angle" />
|
||||
<TextBox Grid.Row="8" x:Name="tbAngle" Grid.Column="1" Text="0" Height="30" Margin="4" />
|
||||
|
||||
<Button x:Name="btnOK" Grid.Row="9" Grid.Column="0" Content="OK" Click="btnOK_Click" />
|
||||
<Button x:Name="btnCancel" Grid.Row="9" Grid.Column="1" Content="Cancel" Click="btnCancel_Click" />
|
||||
</Grid>
|
||||
</Window>
|
||||
@@ -0,0 +1,130 @@
|
||||
using MECF.Framework.Common.Equipment;
|
||||
using System.Windows;
|
||||
using Aitex.Core.Common;
|
||||
|
||||
namespace SicUI.Controls.Parts
|
||||
{
|
||||
/// <summary>
|
||||
/// WaferTransferDialog.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class WaferTransferDialog : Window
|
||||
{
|
||||
public WaferTransferDialog(WaferInfoRt waferInfo, ModuleName sourceStation, int sourceSlot, ModuleName destinationStation, int destinationSlot, WaferTransferOption option = null)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
if (waferInfo.WaferStatus == WaferStatus.Dummy)
|
||||
{
|
||||
grid.RowDefinitions[7].Height = new GridLength(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
grid.RowDefinitions[8].Height = new GridLength(0);
|
||||
if (destinationStation == ModuleName.Robot)
|
||||
{
|
||||
if (destinationSlot == 0)
|
||||
{
|
||||
chkBlade1.IsChecked = true;
|
||||
}
|
||||
else if (destinationSlot == 1)
|
||||
{
|
||||
chkBlade2.IsChecked = true;
|
||||
}
|
||||
chkBlade1.IsEnabled = false;
|
||||
chkBlade2.IsEnabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (option != null)
|
||||
{
|
||||
if (!option.Setting.ShowAlign)
|
||||
{
|
||||
grid.RowDefinitions[4].Height = new GridLength(0);
|
||||
grid.RowDefinitions[8].Height = new GridLength(0);
|
||||
}
|
||||
|
||||
if (!option.Setting.ShowLaserMarker)
|
||||
{
|
||||
grid.RowDefinitions[5].Height = new GridLength(0);
|
||||
}
|
||||
|
||||
if (!option.Setting.ShowT7Code)
|
||||
{
|
||||
grid.RowDefinitions[6].Height = new GridLength(0);
|
||||
}
|
||||
|
||||
chkAligner.IsChecked = option.Align;
|
||||
chkReadID.IsChecked = option.ReadLaserMarker;
|
||||
chkReadID2.IsChecked = option.ReadT7Code;
|
||||
if (option.Blade == 0)
|
||||
{
|
||||
chkBlade1.IsChecked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
chkBlade2.IsChecked = true;
|
||||
}
|
||||
tbAngle.Text = option.AlignerAngle.ToString();
|
||||
}
|
||||
|
||||
lbSource.Content = sourceStation;
|
||||
lbSourceSlot.Content = sourceSlot + 1;
|
||||
lbDest.Content = destinationStation;
|
||||
lblDestSlot.Content = destinationSlot + 1;
|
||||
}
|
||||
|
||||
public bool Aligner
|
||||
{
|
||||
get
|
||||
{
|
||||
return chkAligner.IsChecked.Value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool ReadLaserMarker
|
||||
{
|
||||
get
|
||||
{
|
||||
return chkReadID.IsChecked.Value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool ReadT7Code
|
||||
{
|
||||
get
|
||||
{
|
||||
return chkReadID2.IsChecked.Value;
|
||||
}
|
||||
}
|
||||
|
||||
public int Blade
|
||||
{
|
||||
get
|
||||
{
|
||||
return chkBlade1.IsChecked.Value ? 0 : 1;
|
||||
}
|
||||
}
|
||||
|
||||
public double AlignerAngle
|
||||
{
|
||||
get
|
||||
{
|
||||
double value = 0d;
|
||||
double.TryParse(tbAngle.Text, out value);
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
private void btnOK_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
DialogResult = true;
|
||||
Close();
|
||||
}
|
||||
|
||||
private void btnCancel_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
DialogResult = false;
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user