You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

152 lines
10 KiB

<UserControl x:Class="Gumming.ControlCPManualView"
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"
mc:Ignorable="d"
xmlns:local="clr-namespace:Gumming"
xmlns:tool="clr-namespace:GummingCommon;assembly=GummingCommon"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
d:DesignHeight="700" d:DesignWidth="1000"
Background="Transparent"
x:Name="rootControl">
<UserControl.Resources>
<tool:RadioButtonConverter x:Key="RadioConverter"/>
<tool:BooleanToOpacityConverter x:Key="OpacityConverter"/>
<tool:EditorTextConverter x:Key="TextBrushConverter"/>
<tool:EditorBorderConverter x:Key="BorderBrushConverter"/>
<tool:PathTypeToThemeConverter x:Key="PathTypeConverter"/>
<tool:StepStyleConverter x:Key="StepStyleConverter"/>
<tool:TagStyleConverter x:Key="TagStyleConverter"/>
<tool:ValveImageConverter x:Key="ValveImageConverter"/>
<tool:DingImageConverter x:Key="DingImageConverter"/>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="400"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Image Source="/Gumming;component/Resource/ControlCP.png" Stretch="Fill" Width="400" Height="400">
</Image>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="400"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition Height="430"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid Grid.Row="1" Grid.Column="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="循环水温度" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<TextBlock Grid.Column="1" Text="{Binding RealTemprature,StringFormat=F2}" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
</Grid>
</Grid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="330"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="70"></RowDefinition>
<RowDefinition Height="45"></RowDefinition>
<RowDefinition Height="295"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Image Grid.Row="2" Grid.Column="1" Source="{Binding Path=DingZhenStatus,Converter={StaticResource DingImageConverter}}" Stretch="Fill" Width="330" Height="45"></Image>
</Grid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="40"></ColumnDefinition>
<ColumnDefinition Width="40"></ColumnDefinition>
<ColumnDefinition Width="40"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="260"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="100"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<TextBlock Text="顶针" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<Image Grid.Row="2" Grid.Column="2" Source="{Binding Path=DingZhenStatus,Converter={StaticResource ValveImageConverter}}" Stretch="Fill" Width="30" Height="20"></Image>
<TextBlock Text="真空" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<Image Grid.Row="3" Grid.Column="2" Source="{Binding Path=AttractIOStatus,Converter={StaticResource ValveImageConverter}}" Stretch="Fill" Width="30" Height="20"></Image>
</Grid>
<Grid Grid.Column="2">
<Grid.RowDefinitions>
<RowDefinition Height="0"></RowDefinition>
<RowDefinition Height="0"></RowDefinition>
<RowDefinition Height="45"></RowDefinition>
<RowDefinition Height="10"></RowDefinition>
<RowDefinition Height="45"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Border Grid.Row="2" BorderThickness="1" BorderBrush="{DynamicResource BlackBrushNormal}">
<Grid Margin="5">
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="气缸控制" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<Button Grid.Row="0" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=DingZhenStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding DingZhenStatus}" Command="{Binding DingZhenCommand}" Content="顶针"></Button>
</Grid>
</Border>
<!--<Border Grid.Row="4" BorderThickness="1" BorderBrush="{DynamicResource BlackBrushNormal}">
<Grid Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="阀控制" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<Button Grid.Row="0" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=AttractIOStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding AttractIOStatus}" Command="{Binding AttractCommand}" Content="吸片真空"></Button>
</Grid>
</Border>-->
<Border Grid.Row="4" BorderThickness="1" BorderBrush="{DynamicResource BlackBrushNormal}">
<Grid Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="10"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="工位操作" HorizontalAlignment="Left" VerticalAlignment="Stretch" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
<Button Grid.Row="0" Grid.Column="6" Margin="2" FontSize="15" Style="{Binding Path=AttractIOStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding AttractIOStatus}" Command="{Binding AttractCommand}" Content="初始化"></Button>
<Button Grid.Row="0" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=PrepareStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding PrepareStatus}" Command="{Binding PrepareCommand}" Content="维修"></Button>
<Button Grid.Row="0" Grid.Column="4" Margin="2" FontSize="15" Style="{Binding Path=TerminateStatus,Converter={StaticResource TagStyleConverter}}" Tag="{Binding TerminateStatus}" Command="{Binding TerminateCommand}" Content="中止"></Button>
</Grid>
</Border>
</Grid>
</Grid>
</UserControl>