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.
501 lines
23 KiB
XML
501 lines
23 KiB
XML
<Window
|
|
x:Class="XGL.FormItem.Main"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:XGL.FormItem"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
Title="Main"
|
|
Width="1920"
|
|
Height="1080"
|
|
Closed="Close"
|
|
WindowStartupLocation="CenterScreen"
|
|
WindowState="Maximized"
|
|
WindowStyle="None"
|
|
mc:Ignorable="d" Loaded="Window_Loaded">
|
|
<Window.Resources>
|
|
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="/CSS/SearchBtnClass.xaml" />
|
|
<ResourceDictionary Source="/CSS/SearchTextClass.xaml" />
|
|
<ResourceDictionary Source="/CSS/DataGridClass.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
<Style TargetType="{x:Type TabItem}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
<Grid>
|
|
<Border
|
|
Name="Border"
|
|
Background="#213269"
|
|
BorderBrush="#172557"
|
|
BorderThickness="3,0,20,3">
|
|
<ContentPresenter
|
|
x:Name="ContentSite"
|
|
Margin="12,2,12,2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
ContentSource="Header" />
|
|
</Border>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter TargetName="Border" Property="Background" Value="#213269" />
|
|
</Trigger>
|
|
<Trigger Property="IsSelected" Value="False">
|
|
<Setter TargetName="Border" Property="Background" Value="#213269" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="CustomButtonStyle" TargetType="{x:Type Button}">
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type Button}">
|
|
<Grid>
|
|
<Border
|
|
x:Name="border"
|
|
Background="#213269"
|
|
BorderBrush="#172557"
|
|
BorderThickness="0,0,0,3" />
|
|
<ContentPresenter
|
|
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
RecognizesAccessKey="True"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup x:Name="CommonStates">
|
|
<VisualState x:Name="Normal" />
|
|
<VisualState x:Name="MouseOver">
|
|
<Storyboard>
|
|
<ColorAnimationUsingKeyFrames Storyboard.TargetName="border" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
|
|
<EasingColorKeyFrame KeyTime="0" Value="#213269" />
|
|
</ColorAnimationUsingKeyFrames>
|
|
</Storyboard>
|
|
</VisualState>
|
|
<VisualState x:Name="Pressed" />
|
|
<VisualState x:Name="Disabled" />
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsFocused" Value="True" />
|
|
<Trigger Property="IsDefaulted" Value="True" />
|
|
<Trigger Property="IsMouseOver" Value="True" />
|
|
<Trigger Property="IsPressed" Value="True" />
|
|
<Trigger Property="IsEnabled" Value="False" />
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<!--<Style TargetType="{x:Type TextBox}" x:Key="DefaultTextBox">
|
|
<Setter Property="FontSize" Value="20" />
|
|
<Setter Property="Background" Value="Transparent" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="BorderThickness" Value="1,1,1,1" />
|
|
|
|
</Style>-->
|
|
<!-- TextBox默认样式 -->
|
|
<Style x:Key="DefaultTextBox" TargetType="{x:Type TextBox}" />
|
|
<Style x:Key="dgCell" TargetType="TextBlock">
|
|
<Setter Property="TextAlignment" Value="Center" />
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
</Style>
|
|
<Style x:Key="DefaultButton" TargetType="{x:Type Button}">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei" />
|
|
<Setter Property="FontSize" Value="20" />
|
|
|
|
<!--<Setter Property="FontWeight" Value="Bold"/>-->
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border
|
|
BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
BorderThickness="0"
|
|
CornerRadius="30,30,30,30">
|
|
<Border.Background>
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
|
<GradientStop Offset="0.0" Color="#2c78fa" />
|
|
<GradientStop Offset="0.2" Color="#2c78fa" />
|
|
<GradientStop Offset="0.0" Color="#2c78fa" />
|
|
</LinearGradientBrush>
|
|
</Border.Background>
|
|
<ContentPresenter
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Content="{TemplateBinding ContentControl.Content}" />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<Style x:Key="DefaultButtonSend" TargetType="{x:Type Button}">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei" />
|
|
<Setter Property="FontSize" Value="20" />
|
|
|
|
<!--<Setter Property="FontWeight" Value="Bold"/>-->
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border
|
|
BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
BorderThickness="0"
|
|
CornerRadius="90,90,90,90">
|
|
<Border.Background>
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
|
<GradientStop Offset="0.0" Color="#2c78fa" />
|
|
<GradientStop Offset="0.2" Color="#2c78fa" />
|
|
<GradientStop Offset="0.0" Color="#2c78fa" />
|
|
</LinearGradientBrush>
|
|
</Border.Background>
|
|
<ContentPresenter
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Content="{TemplateBinding ContentControl.Content}" />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
<Style x:Key="EnableButtonSend" TargetType="{x:Type Button}">
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei" />
|
|
<Setter Property="FontSize" Value="20" />
|
|
|
|
<!--<Setter Property="FontWeight" Value="Bold"/>-->
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border
|
|
BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
BorderThickness="0"
|
|
CornerRadius="90,90,90,90">
|
|
<Border.Background>
|
|
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
|
<GradientStop Offset="0.0" Color="Gray" />
|
|
<GradientStop Offset="0.2" Color="Gray" />
|
|
<GradientStop Offset="0.0" Color="Gray" />
|
|
</LinearGradientBrush>
|
|
</Border.Background>
|
|
<ContentPresenter
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Content="{TemplateBinding ContentControl.Content}" />
|
|
</Border>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</Window.Resources>
|
|
<Viewbox Stretch="Fill">
|
|
<Canvas
|
|
Width="1920"
|
|
Height="1080"
|
|
Background="#F2F3F5">
|
|
<StackPanel
|
|
x:Name="UpperStart1"
|
|
Canvas.Top="85"
|
|
Width="1920"
|
|
Height="100"
|
|
HorizontalAlignment="Center"
|
|
Background="#F2F3F5">
|
|
<Grid
|
|
Width="1870"
|
|
Height="82"
|
|
Margin="0,6"
|
|
HorizontalAlignment="Center"
|
|
Background="White">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="300" />
|
|
<ColumnDefinition Width="300" />
|
|
<ColumnDefinition Width="300" />
|
|
<ColumnDefinition Width="300" />
|
|
<ColumnDefinition Width="300" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<StackPanel
|
|
Grid.Column="0"
|
|
Width="300"
|
|
Height="80"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="45,25"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Text="车间:" />
|
|
<TextBlock
|
|
x:Name="tbFactory"
|
|
Margin="-45,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Foreground="#1A68CA"
|
|
Text="黑蚊香车间" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Column="1"
|
|
Width="300"
|
|
Height="80"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="45,25"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Text="线体:" />
|
|
<TextBlock x:Name="tbLineCode"
|
|
Margin="-45,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Foreground="#1A68CA"
|
|
Text="黑蚊香车间" />
|
|
</StackPanel>
|
|
<StackPanel Visibility="Collapsed"
|
|
Grid.Column="2"
|
|
Width="300"
|
|
Height="80"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="45,25"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Text="班组:" />
|
|
<TextBlock
|
|
Margin="-45,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Foreground="#1A68CA"
|
|
Text="自动线甲组" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Visibility="Collapsed"
|
|
Grid.Column="3"
|
|
Width="300"
|
|
Height="80"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="45,25"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Text="班次:" />
|
|
<TextBlock
|
|
Margin="-45,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Foreground="#1A68CA"
|
|
Text="白班" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Column="4"
|
|
Width="300"
|
|
Height="80"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="45,25"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Text="设备:" />
|
|
<TextBlock
|
|
x:Name="tbDevice"
|
|
Margin="-45,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Foreground="#1A68CA"
|
|
Text="N/12" />
|
|
</StackPanel>
|
|
<StackPanel
|
|
Grid.Column="5"
|
|
Width="370"
|
|
Height="80"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="45,25"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Text="操作人员:" />
|
|
<TextBlock
|
|
x:Name="tbOperator"
|
|
Margin="-45,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
FontSize="28"
|
|
Foreground="#1A68CA"
|
|
Text="黑蚊香车间" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</StackPanel>
|
|
<Grid
|
|
x:Name="UpperStart2"
|
|
Canvas.Top="185"
|
|
Width="1920"
|
|
Height="800"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Background="#F2F3F5">
|
|
<ContentControl Name="Index" />
|
|
</Grid>
|
|
|
|
<StackPanel
|
|
Width="1920"
|
|
Height=" 83"
|
|
HorizontalAlignment="Left"
|
|
Orientation="Horizontal" Background="AliceBlue">
|
|
<StackPanel Width="210" Orientation="Horizontal" Background="#1C6BCC">
|
|
<Image
|
|
Height="83"
|
|
Margin="0,0,0,0"
|
|
Source="/Resources/logo.png" />
|
|
</StackPanel>
|
|
|
|
<StackPanel Width="1720" Orientation="Horizontal">
|
|
<Label
|
|
Width="300"
|
|
Height="55"
|
|
Margin="100,0,0,0"
|
|
Content="榄菊生产操作系统"
|
|
FontSize="36"
|
|
FontWeight="Bold"
|
|
Foreground="White"/>
|
|
<Image
|
|
Width="40"
|
|
Height="40" Margin="500,0,0,0"
|
|
Source="..\Resources\riqi.png" />
|
|
<Label Margin="15"
|
|
x:Name="LabDate"
|
|
Height="49"
|
|
Content="2023-08-30"
|
|
FontSize="30"
|
|
Foreground="White" VerticalAlignment="Bottom" />
|
|
|
|
<Image
|
|
Width="40"
|
|
Height="40" Margin="200,0,0,0"
|
|
Source="..\Resources\shijian.png" />
|
|
<Label
|
|
x:Name="LabTime"
|
|
Height="49"
|
|
Content="14:53:50"
|
|
FontSize="30"
|
|
Foreground="White" />
|
|
<StackPanel.Background>
|
|
<ImageBrush ImageSource="..\Resources\topblank.png"></ImageBrush>
|
|
</StackPanel.Background>
|
|
</StackPanel>
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<!--<StackPanel
|
|
x:Name="InventoryAreaDown"
|
|
Width="1920"
|
|
Height="920"
|
|
Margin="0,185,0,0" />
|
|
<StackPanel
|
|
x:Name="InventoryAreaDown2"
|
|
Width="1920"
|
|
Height="920"
|
|
Margin="0,185,0,0" />
|
|
<StackPanel
|
|
x:Name="InventoryAreaDown3"
|
|
Width="1920"
|
|
Height="920"
|
|
Margin="0,185,0,0" />
|
|
<StackPanel
|
|
x:Name="InventoryAreaDown4"
|
|
Width="1920"
|
|
Height="920"
|
|
Margin="0,185,0,0" />
|
|
<StackPanel
|
|
x:Name="InventoryAreaDown5"
|
|
Width="1920"
|
|
Height="920"
|
|
Margin="0,185,0,0" />
|
|
<StackPanel
|
|
x:Name="InventoryAreaDown6"
|
|
Width="1920"
|
|
Height="920"
|
|
Margin="0,185,0,0" />
|
|
<StackPanel
|
|
x:Name="InventoryAreaDown7"
|
|
Width="1920"
|
|
Height="920"
|
|
Margin="0,185,0,0" />-->
|
|
|
|
<StackPanel
|
|
x:Name="DownStart"
|
|
Canvas.Left="0"
|
|
Canvas.Top="1030"
|
|
Width="1920"
|
|
Height="Auto"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Background="White">
|
|
<StackPanel
|
|
Width="1920"
|
|
Height="Auto"
|
|
Margin="0"
|
|
VerticalAlignment="Center"
|
|
HorizontalAlignment="Left"
|
|
Orientation="Horizontal">
|
|
<Label
|
|
Width="150"
|
|
Height="40"
|
|
HorizontalAlignment="Left"
|
|
Content="网络状态"
|
|
FontSize="20px"
|
|
Foreground="Black" />
|
|
|
|
<Button BorderThickness="1" BorderBrush="CornflowerBlue" Visibility="Visible" Background="Transparent" FontSize="26" Height="50" Width="50" HorizontalAlignment="Left" x:Name="btnZXH" Margin="1400,4,0,2" ToolTip="最小化" Click="btnZXH_Click" >
|
|
<!--<TextBlock Name="BtnLogoff" Text="{DynamicResource 退出}" TextWrapping="WrapWithOverflow"></TextBlock>-->
|
|
<StackPanel Orientation="Horizontal" Margin="2">
|
|
<Image Source="..\Resources\zxh.png" Width="40" Height="40"/>
|
|
<!--<Label VerticalAlignment="Center" FontSize="20" Foreground="White" HorizontalAlignment="Center">退出</Label>-->
|
|
</StackPanel>
|
|
</Button>
|
|
<Button
|
|
x:Name="btnFault"
|
|
Width="100"
|
|
Height="40"
|
|
Margin="100,0,0,0"
|
|
Background="#2F82E7"
|
|
Click="btnExit_Click"
|
|
Content="退出"
|
|
FontSize="20"
|
|
Foreground="White"
|
|
IsCancel="True" />
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Canvas>
|
|
</Viewbox>
|
|
</Window>
|