You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AUCMA_SCADA/Aucma.Core.BoxFoam/Views/FoamMonitorPageView.xaml

341 lines
20 KiB
XML

<UserControl x:Class="Aucma.Core.BoxFoam.Views.FoamMonitorPageView"
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:Aucma.Core.BoxFoam.Views"
xmlns:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
mc:Ignorable="d"
d:DesignHeight="1080"
d:DesignWidth="1920">
<Border x:Name="HeightHelperPanel" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="5">
<Grid>
<Grid.Resources>
<Style TargetType="TextBlock">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
</Style>
<Style TargetType="Border">
<Setter Property="BorderBrush" Value="#0288d1"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<UniformGrid Grid.Row="0">
<Grid>
<Grid.Resources>
<Style TargetType="TextBlock">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
</Style>
<Style TargetType="Border">
<Setter Property="BorderBrush" Value="#0288d1"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Row="0" Grid.ColumnSpan="4" Background="#1157b9">
<TextBlock Text="发泡线(南)" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="1" Grid.Column="0" Background="#1157b9">
<TextBlock Text="夹具号" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="0" Background="#1157b9">
<TextBlock Text="1" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="3" Grid.Column="0" Background="#1157b9">
<TextBlock Text="2" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="4" Grid.Column="0" Background="#1157b9">
<TextBlock Text="3" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="5" Grid.Column="0" Background="#1157b9">
<TextBlock Text="4" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="6" Grid.Column="0" Background="#1157b9">
<TextBlock Text="5" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="7" Grid.Column="0" Background="#1157b9">
<TextBlock Text="6" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="1" Grid.Column="1" Background="#1157b9">
<TextBlock Text="状态" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[0]}" StrokeThickness="1" Fill="{Binding Color[0]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="3" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[1]}" StrokeThickness="1" Fill="{Binding Color[1]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="4" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[2]}" StrokeThickness="1" Fill="{Binding Color[2]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="5" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[3]}" StrokeThickness="1" Fill="{Binding Color[3]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="6" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[4]}" StrokeThickness="1" Fill="{Binding Color[4]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="7" Grid.Column="1" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[5]}" StrokeThickness="1" Fill="{Binding Color[5]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1" Grid.Column="2" Background="#1157b9">
<TextBlock Text="发泡型号" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="2" >
<TextBlock Text="1#夹具" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="3" Grid.Column="2">
<TextBlock Text="2#夹具" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="4" Grid.Column="2">
<TextBlock Text="3#夹具" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="5" Grid.Column="2">
<TextBlock Text="4#夹具" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="6" Grid.Column="2">
<TextBlock Text="5#夹具" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="7" Grid.Column="2">
<TextBlock Text="6#夹具" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="1" Grid.Column="3" Background="#1157b9">
<TextBlock Text="夹具产量" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="3" >
</Border>
<Border Grid.Row="3" Grid.Column="3">
</Border>
<Border Grid.Row="4" Grid.Column="3">
</Border>
<Border Grid.Row="5" Grid.Column="3">
</Border>
<Border Grid.Row="6" Grid.Column="3">
</Border>
<Border Grid.Row="7" Grid.Column="3">
</Border>
<Border Grid.Row="0" Grid.Column="4" Grid.ColumnSpan="3" >
<TextBlock Text="0" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="1" Grid.Column="4" Background="#1157b9">
<TextBlock Text="内外模温度" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="4" >
<TextBlock Text="夹具号" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="3" Grid.Column="4">
</Border>
<Border Grid.Row="4" Grid.Column="4">
</Border>
<Border Grid.Row="5" Grid.Column="4">
</Border>
<Border Grid.Row="6" Grid.Column="4">
</Border>
<Border Grid.Row="7" Grid.Column="4">
</Border>
<Border Grid.Row="0" Grid.Column="7" Grid.ColumnSpan="4" Background="#1157b9">
<TextBlock Text="发泡线(北)" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="1" Grid.Column="5" Background="#1157b9">
<TextBlock Text="" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="5" Background="#1157b9">
<TextBlock Text="1" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="3" Grid.Column="5" Background="#1157b9">
<TextBlock Text="2" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="4" Grid.Column="5" Background="#1157b9">
<TextBlock Text="3" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="5" Grid.Column="5" Background="#1157b9">
<TextBlock Text="4" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="6" Grid.Column="5" Background="#1157b9">
<TextBlock Text="5" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="7" Grid.Column="5" Background="#1157b9">
<TextBlock Text="6" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="1" Grid.Column="6" Background="#1157b9">
<TextBlock Text="状态" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[6]}" StrokeThickness="1" Fill="{Binding Color[6]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="3" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[7]}" StrokeThickness="1" Fill="{Binding Color[7]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="4" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[8]}" StrokeThickness="1" Fill="{Binding Color[8]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="5" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[9]}" StrokeThickness="1" Fill="{Binding Color[9]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="6" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[10]}" StrokeThickness="1" Fill="{Binding Color[10]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="7" Grid.Column="6" Background="#1157b9">
<Path Data="M 5,5 A 15,15 45 1 1 0,1 Z" Stroke="{Binding Color[11]}" StrokeThickness="1" Fill="{Binding Color[11]}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1" Grid.Column="7" Background="#1157b9">
<TextBlock Text="发泡型号" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="7" >
<TextBlock Text="7#夹具" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="3" Grid.Column="7" >
<TextBlock Text="8#夹具" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="4" Grid.Column="7" >
<TextBlock Text="9#夹具" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="5" Grid.Column="7">
<TextBlock Text="10#夹具" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="6" Grid.Column="7" >
<TextBlock Text="11#夹具" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="7" Grid.Column="7" >
<TextBlock Text="12#夹具" Foreground="White" FontSize="18"/>
</Border>
<Border Grid.Row="1" Grid.Column="8" Background="#1157b9">
<TextBlock Text="夹具产量" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="8" >
</Border>
<Border Grid.Row="3" Grid.Column="8">
</Border>
<Border Grid.Row="4" Grid.Column="8">
</Border>
<Border Grid.Row="5" Grid.Column="8">
</Border>
<Border Grid.Row="6" Grid.Column="8">
</Border>
<Border Grid.Row="7" Grid.Column="8">
</Border>
<Border Grid.Row="1" Grid.Column="9" Background="#1157b9">
<TextBlock Text="发泡量" Foreground="White" FontSize="20"/>
</Border>
<Border Grid.Row="2" Grid.Column="9" >
</Border>
<Border Grid.Row="3" Grid.Column="9">
</Border>
<Border Grid.Row="4" Grid.Column="9">
</Border>
<Border Grid.Row="5" Grid.Column="9">
</Border>
<Border Grid.Row="6" Grid.Column="9">
</Border>
<Border Grid.Row="7" Grid.Column="9">
</Border>
</Grid>
</UniformGrid>
<UniformGrid Grid.Row="1">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<UniformGrid Grid.Column="0">
<Grid Margin="10,10">
<lvc:CartesianChart Series="{Binding Achievement, UpdateSourceTrigger=PropertyChanged}" LegendLocation="Top" Foreground="White">
<lvc:CartesianChart.DataTooltip >
<lvc:DefaultTooltip SelectionMode="OnlySender" BulletSize="10" Foreground="Black"></lvc:DefaultTooltip>
</lvc:CartesianChart.DataTooltip>
<lvc:CartesianChart.AxisX>
<lvc:Axis Labels="{Binding ProductionHourList}" FontSize="12" LabelsRotation="0" DisableAnimations="True" Position="LeftBottom" Foreground="White">
<lvc:Axis.Separator>
<lvc:Separator Visibility="Hidden" Step="1" StrokeThickness="1.5" StrokeDashArray="0" Stroke="#404F56" >
</lvc:Separator>
</lvc:Axis.Separator>
</lvc:Axis>
</lvc:CartesianChart.AxisX>
<lvc:CartesianChart.AxisY>
<lvc:Axis FontSize="18" Foreground="White" >
<lvc:Axis.Separator>
<lvc:Separator Visibility="Hidden" StrokeThickness="1" StrokeDashArray="3" Stroke="#404F56" >
</lvc:Separator>
</lvc:Axis.Separator>
</lvc:Axis>
</lvc:CartesianChart.AxisY>
</lvc:CartesianChart>
</Grid>
</UniformGrid>
<UniformGrid Grid.Column="1">
<Grid Margin="10,10">
<lvc:CartesianChart LegendLocation="Top" Series="{Binding ModelStatistics, UpdateSourceTrigger=PropertyChanged}" Foreground="White">
<lvc:CartesianChart.DataTooltip>
<lvc:DefaultTooltip BulletSize="10" Foreground="Black"></lvc:DefaultTooltip>
</lvc:CartesianChart.DataTooltip>
<lvc:CartesianChart.AxisX>
<lvc:Axis Labels="{Binding MaterialNameList}" FontSize="12" Foreground="White">
<lvc:Axis.Separator>
<lvc:Separator Step="1" Visibility="Hidden" StrokeThickness="1.5" StrokeDashArray="0" Stroke="#404F56" >
</lvc:Separator>
</lvc:Axis.Separator>
</lvc:Axis>
</lvc:CartesianChart.AxisX>
<lvc:CartesianChart.AxisY>
<lvc:Axis FontSize="18" Foreground="White">
<lvc:Axis.Separator>
<lvc:Separator Visibility="Hidden" StrokeThickness="1" StrokeDashArray="3" Stroke="#404F56" >
</lvc:Separator>
</lvc:Axis.Separator>
</lvc:Axis>
</lvc:CartesianChart.AxisY>
</lvc:CartesianChart>
</Grid>
</UniformGrid>
</Grid>
</UniformGrid>
</Grid>
</Border>
</UserControl>