123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <UserControl x:Class="PunkHPX8_MainPages.Views.DqdrRecipeView"
- 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:PunkHPX8_MainPages.Views"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
- xmlns:converters="clr-namespace:PunkHPX8_MainPages.Converters"
- xmlns:extendedControls="clr-namespace:MECF.Framework.UI.Core.ExtendedControls;assembly=MECF.Framework.UI.Core"
- xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
- xmlns:UserControls="clr-namespace:PunkHPX8_Themes.UserControls;assembly=PunkHPX8_Themes"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- d:DesignHeight="800" d:DesignWidth="1800" Loaded="UserControl_Loaded">
- <UserControl.Resources>
- <converters:BoolReverseConverter x:Key="boolReverseConverter"/>
- <converters:BoolVisibilityConverter x:Key="boolVisibilityConverter"/>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="100"></RowDefinition>
- <RowDefinition Height="145"></RowDefinition>
- <RowDefinition Height="100"></RowDefinition>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="50"></ColumnDefinition>
- <ColumnDefinition Width="400"></ColumnDefinition>
- <ColumnDefinition Width="700"></ColumnDefinition>
- <ColumnDefinition Width="700"></ColumnDefinition>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <UserControls:RecipeFileLoadControl Grid.Row="0" Grid.RowSpan="4" Grid.Column="1" Title="Dqdr Recipe" RecipeNodes="{Binding RecipeNodes}" OperationCommand="{Binding OperationCommand}"
- RecipeLocation="{Binding CurrentNode.RecipeLocation}" EditEnable="{Binding EditEnable}" CreateEnable="{Binding CreateEnable}" RecipeFileName="{Binding CurrentNode.FileName}"
- CreateCommand="{Binding CreateCommand}" EditCommand="{Binding EditCommand}"/>
- <Grid Grid.Row="0" Grid.Column="2" Grid.RowSpan="2">
- <Grid.RowDefinitions>
- <RowDefinition Height="70"></RowDefinition>
- <RowDefinition Height="70"></RowDefinition>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <GroupBox Header="PPID" Grid.Row="0">
- <TextBlock Text="{Binding Recipe.Ppid}" FontSize="20" VerticalAlignment="Center" TextAlignment="Center">
- </TextBlock>
- </GroupBox>
- <GroupBox Header="Description" Grid.Row="1">
- <TextBlock Text="{Binding Recipe.Description}" FontSize="18" VerticalAlignment="Center" TextAlignment="Center">
- </TextBlock>
- </GroupBox>
- </Grid>
- <GroupBox Header="Author" Grid.Row="1" Grid.Column="2" Width="180" Margin="-500,60,10,20">
- <Label Content="{Binding Recipe.Author}" Height="30" Width="180" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" Background="Gray"
- HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="1" Margin="6,0,0,0"></Label>
- </GroupBox>
- <GroupBox Header="Creation Date" Grid.Row="1" Grid.Column="2" Width="180" Margin="-120,60,10,20">
- <Label Content="{Binding Recipe.CreateDate}" Height="30" Width="180" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" Background="Gray"
- HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="1" Margin="6,0,0,0"></Label>
- </GroupBox>
- <GroupBox Header="Save Date" Grid.Row="1" Grid.Column="2" Width="180" Margin="260,60,10,20">
- <Label Content="{Binding Recipe.SaveDate}" Height="30" Width="180" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" Background="Gray"
- HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="1" Margin="6,0,0,0"></Label>
- </GroupBox>
- <GroupBox Header="Plating Cell" IsEnabled="{Binding Enable}" Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="2" Width="180" Margin="-60,60,10,20" >
- <ComboBox Height="30" Margin="10,0,10,0" ItemsSource="{Binding PlatingCellList}" SelectedItem="{Binding Recipe.PlatingCell, Mode=TwoWay}">
- </ComboBox>
- </GroupBox>
- <Grid Grid.Row="0" Grid.Column="3" Grid.RowSpan="2">
- <Grid.RowDefinitions>
- <RowDefinition Height="70"></RowDefinition>
- <RowDefinition Height="70"></RowDefinition>
- <RowDefinition/>
- <RowDefinition Height="70"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Button Grid.Column="0" IsEnabled="{Binding Enable}" Style="{StaticResource SysBtnStyle}" Content="Save" Height="35" Width="100" Command="{Binding SaveRecipeCommand}"></Button>
- <Button Grid.Column="1" Style="{StaticResource SysBtnStyle}" Content="SaveAs" Height="35" Width="100" Command="{Binding SaveAsRecipeCommand}"></Button>
- </Grid>
- </Grid>
- <GroupBox Header="Link To Plating Cell Dep Recipe" IsEnabled="{Binding Enable}" Grid.Row="2" Grid.Column="2" Width="600" Margin="0,0,120,0" >
- <ComboBox Height="30" Margin="10,0,10,0" ItemsSource="{Binding DepRecipeNameList}" SelectedItem="{Binding Recipe.LinkedDepRecipeName, Mode=TwoWay}">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="SelectionChanged">
- <i:InvokeCommandAction Command="{Binding LinkedDepRecipeChangeCommand}"/>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ComboBox>
- </GroupBox>
- <GroupBox Header="Time Check" Grid.Row="2" Grid.Column="3" Width="200" Margin="0,10,450,10">
- <Label Height="30" Width="180" VerticalAlignment="Center" HorizontalAlignment="Left" Background="White"
- HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="1" Margin="6,0,0,0" FontSize="16">
- <Label.Style>
- <Style TargetType="Label">
- <Setter Property="Content" Value="Different" />
- <Setter Property="Foreground" Value="Red"/>
- <Style.Triggers>
- <DataTrigger Binding="{Binding Recipe.IsIdentical}" Value="True">
- <Setter Property="Content" Value="Identical"/>
- <Setter Property="Foreground" Value="LimeGreen"/>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Label.Style>
- </Label>
- </GroupBox>
- <Grid Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="2">
- <Grid>
- <Grid Grid.Row="0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1300"></ColumnDefinition>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="300"></ColumnDefinition>
- <ColumnDefinition Width="300"></ColumnDefinition>
- <ColumnDefinition Width="300"></ColumnDefinition>
- <ColumnDefinition Width="300"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <GroupBox Header="Reclaim" Grid.Column="0" HorizontalAlignment="Left" Margin="10,10,10,10" Width="280">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="120"></RowDefinition>
- <RowDefinition Height="120"></RowDefinition>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <UserControls:GroupTextBoxControl Grid.Row="0" Width="250" Title="Speed" Unit="rpm" MinValue="0" MaxValue="1000" Margin="10,20,10,20"
- IntValue="{Binding Recipe.ReclaimSpeed,Mode=TwoWay}"
- ValidResult="{Binding PropertyValidResultDic[ReclaimSpeed],Mode=TwoWay}"/>
- <UserControls:GroupTextBoxControl Grid.Row="1" Width="250" Title="Time" Unit="sec" MinValue="0" MaxValue="100" Margin="10,20,10,20"
- IntValue="{Binding Recipe.ReclaimTime,Mode=TwoWay}"
- ValidResult="{Binding PropertyValidResultDic[ReclaimTime],Mode=TwoWay}"/>
-
- </Grid>
- </GroupBox>
- <GroupBox Header="Rinse" Grid.Column="1" Margin="10,10,0,10" HorizontalAlignment="Left" Width="280">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="120"></RowDefinition>
- <RowDefinition Height="120"></RowDefinition>
-
- <RowDefinition/>
- </Grid.RowDefinitions>
- <UserControls:GroupTextBoxControl Grid.Row="0" Width="250" Title="Speed" Unit="rpm" MinValue="0" MaxValue="1000" Margin="10,20,10,20"
- IntValue="{Binding Recipe.RinseSpeed,Mode=TwoWay}"
- ValidResult="{Binding PropertyValidResultDic[RinseSpeed],Mode=TwoWay}"/>
- <UserControls:GroupTextBoxControl Grid.Row="1" Width="250" Title="Time" Unit="sec" MinValue="0" MaxValue="100" Margin="10,20,10,20"
- IntValue="{Binding Recipe.RinseTime,Mode=TwoWay}"
- ValidResult="{Binding PropertyValidResultDic[RinseTime],Mode=TwoWay}"/>
- </Grid>
- </GroupBox>
- <GroupBox Header="Dry" Grid.Column="2" HorizontalAlignment="Left" Margin="10,10,10,10" Width="280">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="120"></RowDefinition>
- <RowDefinition Height="120"></RowDefinition>
-
- <RowDefinition/>
- </Grid.RowDefinitions>
- <UserControls:GroupTextBoxControl Grid.Row="0" Width="250" Title="Speed" Unit="rpm" MinValue="0" MaxValue="1000" Margin="10,20,10,20"
- IntValue="{Binding Recipe.DrySpeed,Mode=TwoWay}"
- ValidResult="{Binding PropertyValidResultDic[DrySpeed],Mode=TwoWay}"/>
- <UserControls:GroupTextBoxControl Grid.Row="1" Width="250" Title="Time" Unit="sec" MinValue="0" MaxValue="100" Margin="10,20,10,20"
- IntValue="{Binding Recipe.DryTime,Mode=TwoWay}"
- ValidResult="{Binding PropertyValidResultDic[DryTime],Mode=TwoWay}"/>
-
- </Grid>
- </GroupBox>
- <GroupBox Header="Interval Rinse" Grid.Column="3" HorizontalAlignment="Left" Margin="10,10,10,10" Width="280">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="120"></RowDefinition>
- <RowDefinition Height="120"></RowDefinition>
- <RowDefinition Height="120"></RowDefinition>
-
- <RowDefinition/>
- </Grid.RowDefinitions>
- <GroupBox Grid.Row="0" IsEnabled="{Binding Enable}" Margin="10,10,10,10" Header="Rinse Before Entry">
- <Grid>
- <RadioButton Content="Enable" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
- Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.RinseBeforeEntryEnable ,Mode=TwoWay}" Margin="18,-1,0,-6" ></RadioButton>
- <RadioButton Content="Disable" Height="30" Width="65" VerticalContentAlignment="Center" HorizontalAlignment="Center"
- Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.RinseBeforeEntryEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="60,-1,0,-6" ></RadioButton>
- </Grid>
- </GroupBox>
- <UserControls:GroupTextBoxControl Grid.Row="1" Width="250" Title="Speed" Unit="rpm" MinValue="0" MaxValue="1000" Margin="10,20,10,20"
- IntValue="{Binding Recipe.IntervalRinseSpeed,Mode=TwoWay}"
- ValidResult="{Binding PropertyValidResultDic[IntervalRinseSpeed],Mode=TwoWay}"/>
- <UserControls:GroupTextBoxControl Grid.Row="2" Width="250" Title="Time" Unit="sec" MinValue="0" MaxValue="100" Margin="10,20,10,20"
- IntValue="{Binding Recipe.IntervalRinseTime,Mode=TwoWay}"
- ValidResult="{Binding PropertyValidResultDic[IntervalRinseTime],Mode=TwoWay}"/>
-
- </Grid>
- </GroupBox>
- </Grid>
- </Grid>
- </Grid>
- </Grid>
- </Grid>
- </UserControl>
|