20230201_145_upperpc/InSituLaboratory/Views/Pages/DashboardNewView.xaml
2024-10-31 08:29:52 +08:00

142 lines
7.5 KiB
XML

<UserControl x:Class="InSituLaboratory.Views.Pages.DashboardNewView"
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:InSituLaboratory.Views.Pages"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Grid.Background>
<ImageBrush ImageSource="/InSituLaboratory.Assets;component/Images/background1.jpg" Stretch="UniformToFill"/>
</Grid.Background>
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="110"/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid >
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Right" Orientation="Horizontal">
<Button Content="刷新" Style="{StaticResource NormalButtonStyle}" Command="{Binding RefreshCommand}" Margin="2,0" Width="60"/>
<Button Content="读取" Style="{StaticResource NormalButtonStyle}" Command="{Binding ReadCommand}" Margin="6,0,18,0" Width="60"/>
</StackPanel>
<Line X1="20" Y1="80" X2="1368" Y2="80" Stroke="#0A4470" StrokeThickness="1" VerticalAlignment="Bottom"></Line>
</Grid>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<!--组包时间-->
<Grid>
<Border CornerRadius="5" Background="Transparent" Margin="3">
<Border.Effect>
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Color="#555" Opacity="0.1"/>
</Border.Effect>
<StackPanel Margin="30,10" Orientation="Vertical" >
<TextBlock Foreground="White" Margin="0,10,0,18" FontSize="12">
<Run Text="&#xe8b8;" FontFamily="{StaticResource IconsExt}" Foreground="#088DF6" FontSize="16"/>
<Run Text="组包时间" FontSize="14" Foreground="#758d9f"/>
</TextBlock>
<TextBlock Text="{Binding SysStatusModel.PackagingTime ,Mode=TwoWay,StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" FontSize="15" FontWeight="Normal" Foreground="White"/>
</StackPanel>
</Border>
</Grid>
<!--采样时间-->
<Grid Grid.Column="1">
<Border CornerRadius="5" Background="Transparent" Margin="3">
<Border.Effect>
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Color="#555" Opacity="0.1"/>
</Border.Effect>
<StackPanel Margin="30,10" Orientation="Vertical" >
<TextBlock Foreground="White" Margin="0,10,0,18" FontSize="12">
<Run Text="&#xe8a9;" FontFamily="{StaticResource IconsExt}" Foreground="#088DF6" FontSize="18"/>
<Run Text="采样时间" FontSize="14" Foreground="#758d9f"/>
</TextBlock>
<TextBlock Text="{Binding SysStatusModel.SamplingTime ,Mode=TwoWay,StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" FontSize="15" FontWeight="Normal" Foreground="White"/>
</StackPanel>
</Border>
</Grid>
<!--48V电压-->
<Grid Grid.Column="2">
<Border CornerRadius="5" Background="Transparent" Margin="3">
<Border.Effect>
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Color="#555" Opacity="0.1"/>
</Border.Effect>
<StackPanel Margin="30,10" Orientation="Vertical" >
<TextBlock Foreground="White" Margin="0,10,0,18" FontSize="12">
<Run Text="&#xe666;" FontFamily="{StaticResource IconsExt}" Foreground="#088DF6" FontSize="18"/>
<Run Text="48V电压" FontSize="14" Foreground="#758d9f"/>
</TextBlock>
<TextBlock Text="{Binding SysStatusModel.Voltage48 ,Mode=TwoWay,StringFormat={}{0}V}" FontSize="15" FontWeight="Normal" Foreground="White"/>
</StackPanel>
</Border>
</Grid>
<!--48V电流-->
<Grid Grid.Column="3">
<Border CornerRadius="5" Background="Transparent" Margin="3">
<Border.Effect>
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Color="#555" Opacity="0.1"/>
</Border.Effect>
<StackPanel Margin="30,10" Orientation="Vertical" >
<TextBlock Foreground="White" Margin="0,10,0,18" FontSize="12">
<Run Text="&#xe665;" FontFamily="{StaticResource IconsExt}" Foreground="#088DF6" FontSize="18"/>
<Run Text="48V电流" FontSize="14" Foreground="#758d9f"/>
</TextBlock>
<TextBlock Text="{Binding SysStatusModel.Current48 ,Mode=TwoWay,StringFormat={}{0}A}" FontSize="15" FontWeight="Normal" Foreground="White"/>
</StackPanel>
</Border>
</Grid>
<!--时序下配状态-->
<Grid Grid.Column="4">
<Border CornerRadius="5" Background="Transparent" Margin="3">
<Border.Effect>
<DropShadowEffect BlurRadius="10" ShadowDepth="0" Color="#555" Opacity="0.1"/>
</Border.Effect>
<StackPanel Margin="30,10" Orientation="Vertical" >
<TextBlock Foreground="White" Margin="0,10,0,18" FontSize="12">
<Run Text="&#xe6e4;" FontFamily="{StaticResource IconsExt}" Foreground="#088DF6" FontSize="18"/>
<Run Text="时序下配状态" FontSize="14" Foreground="#758d9f"/>
</TextBlock>
<TextBlock FontSize="15" FontWeight="Normal" Foreground="#555">
<Run Text="{Binding SysStatusModel.TimeSeriesGroupNumber ,Mode=TwoWay}" Foreground="White" />
<Run Text=" " />
<Run Text="{Binding SysStatusModel.GroupNumberStatus ,Mode=TwoWay}" Foreground="Green"/>
</TextBlock>
</StackPanel>
</Border>
</Grid>
</Grid>
<!--主腔体状态-->
<Grid Grid.Row="2">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Image Source="/InSituLaboratory.Assets;component/Images/chang.png" Width="1340" HorizontalAlignment="Left" Margin="30,0,0,0" />
<Image Source="/InSituLaboratory.Assets;component/Images/主腔体状态字.png" Width="80" HorizontalAlignment="Left" Margin="60,-15,0,0" />
</Grid>
</Grid>
</UserControl>