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.
crop/SlnMesnac.WPF/Page/HomePage.xaml

375 lines
20 KiB
XML

<UserControl x:Class="SlnMesnac.WPF.Page.HomePage"
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:SlnMesnac.WPF.Page" xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core" xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<UserControl.Resources>
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="FontSize" Value="20"/>
</Style>
<Style TargetType="DataGrid">
<!--网格线颜色-->
<Setter Property="CanUserResizeColumns" Value="false"/>
<Setter Property="Background" Value="#1152AC" />
<Setter Property="BorderBrush" Value="#4285DE" />
<Setter Property="Foreground" Value="White"/>
<Setter Property="HorizontalGridLinesBrush">
<Setter.Value>
<SolidColorBrush Color="#4285DE"/>
</Setter.Value>
</Setter>
<Setter Property="VerticalGridLinesBrush">
<Setter.Value>
<SolidColorBrush Color="#1152AC"/>
</Setter.Value>
</Setter>
</Style>
<!--列头标题栏样式-->
<Style TargetType="DataGridColumnHeader">
<!--<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>-->
<!--<Setter Property="Background" Value="#dddddd"/>
<Setter Property="Foreground" Value="Black"/>-->
<!--<Setter Property="BorderThickness" Value="1" />-->
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="BorderBrush" Value="#4285DE" />
<Setter Property="Height" Value="40"/>
<Setter Property="FontSize" Value="18"/>
<Setter Property="Background" Value="#4285DE"/>
<Setter Property="Foreground" Value="White"/>
</Style>
<!--单元格样式-->
<Style TargetType="DataGridCell">
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="BorderBrush" Value="#4285DE" />
<Setter Property="Height" Value="40"/>
<Setter Property="FontSize" Value="18"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type DataGridCell}">
<Grid Background="{TemplateBinding Background}" >
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#4285DE"/>
<!--<Setter Property="Foreground" Value="#dddddd"/>-->
</Trigger>
</Style.Triggers>
</Style>
</UserControl.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="1.2*"/>
<RowDefinition/>
<RowDefinition Height="1.6*"/>
</Grid.RowDefinitions>
<Border x:Name="上部" Grid.Row="0" Margin="4" BorderBrush="#C0C0C0" BorderThickness="2" CornerRadius="6">
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="0.6*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border x:Name="层合总数" Grid.Column="0" Margin="2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.9*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<TextBlock Text="层合总数" FontSize="21" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1">
<dxe:TextEdit Margin="3" CornerRadius="6"/>
</Border>
</Grid>
</Border>
<Border x:Name="裁切总数" Grid.Column="1" Margin="2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.9*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<TextBlock Text="裁切总数" FontSize="21" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1">
<dxe:TextEdit Margin="3" CornerRadius="6"/>
</Border>
</Grid>
</Border>
<Border x:Name="一号收料卷" Grid.Column="2" Margin="2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.9*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<TextBlock Text="一号收料卷" FontSize="21" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1">
<dxe:TextEdit Margin="3" CornerRadius="6"/>
</Border>
</Grid>
</Border>
<Border x:Name="二号收料卷" Grid.Column="3" Margin="2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.9*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<TextBlock Text="二号收料卷" FontSize="21" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1">
<dxe:TextEdit Margin="3" CornerRadius="6"/>
</Border>
</Grid>
</Border>
<Border x:Name="一号刀温" Grid.Column="4" Margin="2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.9*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<TextBlock Text="一号刀温" FontSize="21" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1">
<dxe:TextEdit Margin="3" CornerRadius="6"/>
</Border>
</Grid>
</Border>
<Border x:Name="二号刀温" Grid.Column="5" Margin="2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.9*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<TextBlock Text="二号刀温" FontSize="21" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1">
<dxe:TextEdit Margin="3" CornerRadius="6"/>
</Border>
</Grid>
</Border>
<Border x:Name="层合节拍" Grid.Column="6" Margin="2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.9*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<TextBlock Text="层合节拍" FontSize="21" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1">
<dxe:TextEdit Margin="3" CornerRadius="6"/>
</Border>
</Grid>
</Border>
<Border x:Name="裁切节拍" Grid.Column="7" Margin="2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.9*"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<TextBlock Text="裁切节拍" FontSize="21" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Border>
<Border Grid.Row="1">
<dxe:TextEdit Margin="3" CornerRadius="6"/>
</Border>
</Grid>
</Border>
</Grid>
</Border>
<Border Grid.Row="1">
<!--<Label Content="Label" FontSize="20" VerticalAlignment="Center" />-->
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="7*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0">
<TextBlock Text="设备状态" FontSize="21" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<Border Grid.Column="1">
<dxe:TextEdit Margin="6" CornerRadius="8"/>
</Border>
</Grid>
</Border>
</Grid>
</Border>
<Border x:Name="中部" Grid.Row="1" Margin="4" BorderBrush="#C0C0C0" BorderThickness="2" CornerRadius="6">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0">
<dx:SimpleButton Content="登 录" Width="300" Height="120" FontSize="26" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center" CornerRadius="8">
<Button.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF002C6E" Offset="1"/>
<GradientStop Color="#FF1655B4" Offset="0"/>
</LinearGradientBrush>
</Button.Background>
</dx:SimpleButton>
</Border>
<Border Grid.Column="1">
<TextBlock TextWrapping="Wrap" Text="用户等级" FontSize="26" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<Border Grid.Column="2">
<dxe:TextEdit Margin="3,50,3,50" CornerRadius="6"/>
</Border>
</Grid>
</Border>
<Border Grid.Column="1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<dx:SimpleButton Content="裁切刀1工位" FontSize="26" Height="66" Width="240" VerticalAlignment="Center" CornerRadius="6">
<dx:SimpleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF0AA397" Offset="1"/>
<GradientStop Color="#FF8AE6E0" Offset="0"/>
</LinearGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
<Border Grid.Row="1">
<dx:SimpleButton Content="裁切刀2工位" FontSize="26" Height="66" Width="240" VerticalAlignment="Center" CornerRadius="6">
<dx:SimpleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF0AA397" Offset="1"/>
<GradientStop Color="#FF8AE6E0" Offset="0"/>
</LinearGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
</Grid>
</Border>
</Grid>
</Border>
<Border x:Name="下部" Grid.Row="2" Margin="4" BorderBrush="#C0C0C0" BorderThickness="2" CornerRadius="6">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2.6*"/>
<ColumnDefinition/>
<ColumnDefinition Width="2.6*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.8*"/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<TextBlock TextWrapping="Wrap" Text="合层工位" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="26"/>
</Border>
<Border Grid.Row="1">
<dx:SimpleButton Content="启 动" FontSize="26" Foreground="White" Height="100" Width="320" VerticalAlignment="Center" CornerRadius="8">
<dx:SimpleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF0047E2" Offset="1"/>
<GradientStop Color="#FF00A3FF" Offset="0"/>
</LinearGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
<Border Grid.Row="2">
<dx:SimpleButton Content="回 零" FontSize="26" Foreground="White" Height="100" Width="320" VerticalAlignment="Center" CornerRadius="8">
<dx:SimpleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFFF4A00" Offset="1"/>
<GradientStop Color="#FFFFCB00" Offset="0"/>
</LinearGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
</Grid>
</Border>
<Border Grid.Column="1">
<dx:SimpleButton Content="脱 机" FontSize="26" Foreground="White" Height="220" Width="220" CornerRadius="110" Margin="0,40,0,0">
<dx:SimpleButton.Background>
<RadialGradientBrush>
<GradientStop Color="#FF0047E2" Offset="1"/>
<GradientStop Color="#FF00A3FF" Offset="0"/>
</RadialGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
<Border Grid.Column="2">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.8*"/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Grid.Row="0">
<TextBlock TextWrapping="Wrap" Text="裁切工位" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="26"/>
</Border>
<Border Grid.Row="1">
<dx:SimpleButton Content="启 动" FontSize="26" Foreground="White" Height="100" Width="320" VerticalAlignment="Center" CornerRadius="8">
<dx:SimpleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF0047E2" Offset="1"/>
<GradientStop Color="#FF00A3FF" Offset="0"/>
</LinearGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
<Border Grid.Row="2">
<dx:SimpleButton Content="回 零" FontSize="26" Foreground="White" Height="100" Width="320" VerticalAlignment="Center" CornerRadius="8">
<dx:SimpleButton.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFFF4A00" Offset="1"/>
<GradientStop Color="#FFFFCB00" Offset="0"/>
</LinearGradientBrush>
</dx:SimpleButton.Background>
</dx:SimpleButton>
</Border>
</Grid>
</Border>
</Grid>
</Border>
</Grid>
</UserControl>