304 lines
14 KiB
XML
304 lines
14 KiB
XML
<UserControl
|
|
x:Class="CapMachine.Wpf.Views.FooterView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:convert="clr-namespace:CapMachine.Wpf.Converts"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:CapMachine.Wpf.Views"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
Width="1920"
|
|
Height="32"
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
mc:Ignorable="d">
|
|
<Grid Margin="2,0,2,2" Background="#f6f5ec">
|
|
<Grid.Resources>
|
|
<convert:BoolOkStrConvert x:Key="BoolOkStrConvert" />
|
|
<convert:BoolStateStrConvert x:Key="BoolStateStrConvert" />
|
|
<convert:BoolFinishStrConvert x:Key="BoolFinishStrConvert" />
|
|
<Style x:Key="BoardStyle" TargetType="Border">
|
|
<Setter Property="Background" Value="Gray" />
|
|
<Setter Property="Margin" Value="5,1" />
|
|
<Setter Property="CornerRadius" Value="3" />
|
|
<Setter Property="Padding" Value="2" />
|
|
<Setter Property="Margin" Value="2" />
|
|
</Style>
|
|
<Style x:Key="StackPanelStyle" TargetType="StackPanel">
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="Orientation" Value="Horizontal" />
|
|
<Setter Property="Margin" Value="10,0" />
|
|
</Style>
|
|
</Grid.Resources>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Border Height="0" Margin="0,0">
|
|
<ProgressBar
|
|
Height="2"
|
|
Foreground="Green"
|
|
IsIndeterminate="True"
|
|
Visibility="Visible" />
|
|
</Border>
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal">
|
|
<Border>
|
|
<Border.Style>
|
|
<Style BasedOn="{StaticResource BoardStyle}" TargetType="Border">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding SysRunService.MachineRunState1.IsRunState}" Value="true">
|
|
<Setter Property="Background" Value="LimeGreen" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Border.Style>
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock
|
|
Margin="5,0,5,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text=" " />
|
|
<TextBlock
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="系统状态:" />
|
|
<TextBlock
|
|
Margin="5,0"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="{Binding SysRunService.MachineRunState1.RunStateMsg}" />
|
|
|
|
</StackPanel>
|
|
</Border>
|
|
<Border>
|
|
<Border.Style>
|
|
<Style BasedOn="{StaticResource BoardStyle}" TargetType="Border">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding SysRunService.MachineRunState1.IsProLoad}" Value="true">
|
|
<Setter Property="Background" Value="LimeGreen" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Border.Style>
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock
|
|
Margin="5,0,5,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text=" " />
|
|
<TextBlock
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="程序下载:" />
|
|
<TextBlock
|
|
Margin="5,0"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="{Binding SysRunService.MachineRunState1.IsProLoad, Converter={StaticResource BoolFinishStrConvert}}" />
|
|
|
|
</StackPanel>
|
|
</Border>
|
|
<Border>
|
|
<Border.Style>
|
|
<Style BasedOn="{StaticResource BoardStyle}" TargetType="Border">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding ConfigService.IsExpInfoOk}" Value="true">
|
|
<Setter Property="Background" Value="LimeGreen" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Border.Style>
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock
|
|
Margin="5,0,5,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text=" " />
|
|
<TextBlock
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="试验名称:" />
|
|
<TextBlock
|
|
Margin="5,0"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="{Binding ConfigService.CurExpInfo.Name}" />
|
|
|
|
</StackPanel>
|
|
</Border>
|
|
<Border>
|
|
<Border.Style>
|
|
<Style BasedOn="{StaticResource BoardStyle}" TargetType="Border">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding MachineRtDataService.LinkState}" Value="true">
|
|
<Setter Property="Background" Value="LimeGreen" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Border.Style>
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock
|
|
Margin="5,0,5,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="" />
|
|
<TextBlock
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="PLC通信:" />
|
|
<TextBlock
|
|
Margin="5,0"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="{Binding MachineRtDataService.LinkState, Converter={StaticResource BoolOkStrConvert}}" />
|
|
<TextBlock
|
|
Margin="2,0"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="|" />
|
|
<TextBlock
|
|
Margin="5,0"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="{Binding ConfigService.PlcCycleTime}" />
|
|
</StackPanel>
|
|
</Border>
|
|
<Border>
|
|
<Border.Style>
|
|
<Style BasedOn="{StaticResource BoardStyle}" TargetType="Border">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding ConfigService.CanLinRunStateModel.CanLinRunState}" Value="true">
|
|
<Setter Property="Background" Value="LimeGreen" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding ConfigService.CanLinRunStateModel.CanLinRunState}" Value="false">
|
|
<Setter Property="Background" Value="Gray" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Border.Style>
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock
|
|
Margin="5,0,5,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="" />
|
|
<TextBlock
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="压缩机驱动:" />
|
|
<TextBlock
|
|
Margin="5,0"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="{Binding ConfigService.CanLinRunStateModel.SelectedCanLinMsg}" />
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<Border>
|
|
<Border.Style>
|
|
<Style BasedOn="{StaticResource BoardStyle}" TargetType="Border">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding DataRecordService.IsRecord}" Value="true">
|
|
<Setter Property="Background" Value="LimeGreen" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding DataRecordService.IsRecord}" Value="false">
|
|
<Setter Property="Background" Value="Gray" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Border.Style>
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock
|
|
Margin="5,0,5,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="" />
|
|
<TextBlock
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="数据记录:" />
|
|
<TextBlock
|
|
Margin="5,0"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="{Binding DataRecordService.IsRecord, Converter={StaticResource BoolStateStrConvert}}" />
|
|
</StackPanel>
|
|
</Border>
|
|
<Border>
|
|
<Border.Style>
|
|
<Style BasedOn="{StaticResource BoardStyle}" TargetType="Border">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding ConfigService.CurUserDto.IsEnable}" Value="true">
|
|
<Setter Property="Background" Value="LimeGreen" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding ConfigService.CurUserDto.IsEnable}" Value="false">
|
|
<Setter Property="Background" Value="Gray" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Border.Style>
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock
|
|
Margin="5,0,5,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="" />
|
|
<TextBlock
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="用户登录:" />
|
|
<TextBlock
|
|
Margin="5,0"
|
|
FontSize="16"
|
|
Foreground="White"
|
|
Text="{Binding ConfigService.CurUserDto.Name}" />
|
|
</StackPanel>
|
|
</Border>
|
|
</StackPanel>
|
|
|
|
|
|
<!--<Border Grid.Column="1" Style="{StaticResource BoardStyle}">
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock FontSize="20" Text="仪表通信:" />
|
|
<TextBlock FontSize="20" Text="正常" />
|
|
</StackPanel>
|
|
</Border>-->
|
|
<!--<Border Grid.Column="2" Style="{StaticResource BoardStyle}">
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock FontSize="20" Text="服务器通信:" />
|
|
<TextBlock FontSize="20" Text="正常" />
|
|
</StackPanel>
|
|
</Border>-->
|
|
|
|
<!--<Border Grid.Column="4" Style="{StaticResource BoardStyle}">
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock FontSize="20" Text="记录仪通信:" />
|
|
<TextBlock FontSize="20" Text="正常" />
|
|
</StackPanel>
|
|
</Border>-->
|
|
<!--<Border Grid.Column="5" Style="{StaticResource BoardStyle}">
|
|
<StackPanel Style="{StaticResource StackPanelStyle}">
|
|
<TextBlock FontSize="20" Text="高速记录:" />
|
|
<TextBlock FontSize="20" Text="正常" />
|
|
</StackPanel>
|
|
</Border>-->
|
|
|
|
|
|
</Grid>
|
|
</UserControl>
|