TFLH/Views/ControlPanel.xaml
2026-08-06 09:50:46 +08:00

180 lines
8.8 KiB
XML

<UserControl xmlns:Motion="clr-namespace:Views.Motion" x:Class="Views.ControlPanel"
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:Views"
mc:Ignorable="d"
d:DesignHeight="1080" d:DesignWidth="600">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="42"></RowDefinition>
<RowDefinition Height="70*"></RowDefinition>
<RowDefinition Height="20*"></RowDefinition>
</Grid.RowDefinitions>
<Border Background="{Binding ShowStatu.StatusBackground}">
<Viewbox>
<TextBlock Text="{Binding ShowStatu.StatuInfo}" Tag="{Binding ShowStatu.StatuInfo}" FontSize="25" FontWeight="Bold" Foreground="{Binding ShowStatu.StatusForeground}" VerticalAlignment="Center" ></TextBlock>
</Viewbox>
</Border>
<GroupBox Header="生产资讯" Grid.Row="1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Label Foreground="White" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" >
<Viewbox>
<ContentControl Content="生产数量:"></ContentControl>
</Viewbox>
</Label>
<Label Grid.Column="1" Foreground="White" VerticalAlignment="Center" FontSize="40">
<Viewbox>
<ContentControl Content="{Binding CurrentMachine.Quantitys}"></ContentControl>
</Viewbox>
</Label>
<Label Foreground="White" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right">
<Viewbox>
<ContentControl Content="产出良品:"></ContentControl>
</Viewbox>
</Label>
<Label Grid.Column="1" Grid.Row="1" Foreground="White" VerticalAlignment="Center">
<Viewbox>
<ContentControl Content="{Binding CurrentMachine.Produce}"></ContentControl>
</Viewbox>
</Label>
<Label Foreground="White" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Right">
<Viewbox>
<ContentControl Content="产出不良:"></ContentControl>
</Viewbox>
</Label>
<Label Grid.Column="1" Grid.Row="2" Foreground="White" VerticalAlignment="Center">
<Viewbox>
<ContentControl Content="{Binding CurrentMachine.Bads}"></ContentControl>
</Viewbox>
</Label>
<Label Foreground="White" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Right" Name="lb">
<Viewbox>
<ContentControl Content="生产良率:"></ContentControl>
</Viewbox>
</Label>
<Viewbox Grid.Column="1" Grid.Row="3" Height="{Binding ElementName=lb,Path=ActualHeight}" HorizontalAlignment="Left">
<TextBlock Grid.Row="3" Text="{Binding CurrentMachine.RejectRatio,StringFormat='P'}" Foreground="White"></TextBlock>
</Viewbox>
<Label Foreground="White" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Right">
<Viewbox>
<ContentControl Content="C/T:"></ContentControl>
</Viewbox>
</Label>
<Label Grid.Column="1" Grid.Row="4" Foreground="White" VerticalAlignment="Center">
<Viewbox>
<ContentControl Content="{Binding CTTime}"></ContentControl>
</Viewbox>
</Label>
<Label Foreground="White" Grid.Row="7" VerticalAlignment="Center" HorizontalAlignment="Right">
<Viewbox>
<ContentControl Content="压力标准范围:"></ContentControl>
</Viewbox>
</Label>
<Label Grid.Column="1" Grid.Row="7" Foreground="White" VerticalAlignment="Center">
<Viewbox>
<ContentControl Content="{Binding YaliRange}"></ContentControl>
</Viewbox>
</Label>
<Label Foreground="White" Grid.Row="8" VerticalAlignment="Center" HorizontalAlignment="Right">
<Viewbox>
<ContentControl Content="耐压标准范围:"></ContentControl>
</Viewbox>
</Label>
<Label Grid.Column="1" Grid.Row="8" Foreground="White" VerticalAlignment="Center">
<Viewbox>
<ContentControl Content="{Binding NaiyaRange}"></ContentControl>
</Viewbox>
</Label>
<Label Grid.Row="11" Grid.ColumnSpan="2" Foreground="{Binding RunTimeShow.StatusForeground}" VerticalContentAlignment="Center" HorizontalContentAlignment="Center">
<Viewbox>
<ContentControl Content="{Binding RunTimeShow.StatuInfo}"></ContentControl>
</Viewbox>
</Label>
</Grid>
</GroupBox>
<GroupBox Name="GBST" Header="线体时间" Grid.Row="2" Margin="0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Label Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="3">
<Viewbox>
<ContentControl Content="运行时间:"></ContentControl>
</Viewbox>
</Label>
<Label Grid.Column="1" Foreground="Green" Grid.ColumnSpan="3" VerticalAlignment="Center" Margin="3">
<Viewbox>
<ContentControl Content="{Binding PlcRunTime}"></ContentControl>
</Viewbox>
</Label>
<Label Grid.Row="1" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="3">
<Viewbox>
<ContentControl Content="待机时间:"></ContentControl>
</Viewbox>
</Label>
<Label Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" Foreground="Yellow" VerticalAlignment="Center" Margin="3">
<Viewbox>
<ContentControl Content="{Binding PlcStandbyTime}"></ContentControl>
</Viewbox>
</Label>
<Label Grid.Row="2" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="3">
<Viewbox>
<ContentControl Content="异常时间:"></ContentControl>
</Viewbox>
</Label>
<Label Grid.Row="2" Grid.Column="1" Foreground="Red" Grid.ColumnSpan="3" VerticalAlignment="Center" Margin="3">
<Viewbox>
<ContentControl Content="{Binding PlcALmTime}"></ContentControl>
</Viewbox>
</Label>
</Grid>
</GroupBox>
</Grid>
</UserControl>