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.
489 lines
22 KiB
Plaintext
489 lines
22 KiB
Plaintext
|
2 years ago
|
<Window
|
||
|
|
x:Class="XGL.FormItem.FormBoard"
|
||
|
|
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:input="clr-namespace:System.Windows.Input;assembly=PresentationCore"
|
||
|
|
xmlns:local="clr-namespace:XGL.FormItem"
|
||
|
|
xmlns:local1="clr-namespace:XGL.UControl"
|
||
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
|
Title="FormBoard"
|
||
|
|
Width="1920"
|
||
|
|
Height="1080"
|
||
|
|
input:InputMethod.IsInputMethodEnabled="False"
|
||
|
|
Closed="Close"
|
||
|
|
Loaded="FormBoard_Loaded"
|
||
|
|
WindowStartupLocation="CenterScreen"
|
||
|
|
WindowState="Maximized"
|
||
|
|
WindowStyle="None"
|
||
|
|
mc:Ignorable="d">
|
||
|
|
<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
|
||
|
|
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
|
||
|
|
Margin="-45,0"
|
||
|
|
HorizontalAlignment="Left"
|
||
|
|
VerticalAlignment="Center"
|
||
|
|
FontSize="28"
|
||
|
|
Foreground="#1A68CA"
|
||
|
|
Text="黑蚊香车间" />
|
||
|
|
</StackPanel>
|
||
|
|
<StackPanel
|
||
|
|
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
|
||
|
|
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
|
||
|
|
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
|
||
|
|
Margin="-45,0"
|
||
|
|
HorizontalAlignment="Left"
|
||
|
|
VerticalAlignment="Center"
|
||
|
|
FontSize="28"
|
||
|
|
Foreground="#1A68CA"
|
||
|
|
Text="黑蚊香车间" />
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
</StackPanel>
|
||
|
|
<StackPanel
|
||
|
|
x:Name="UpperStart2"
|
||
|
|
Canvas.Top="185"
|
||
|
|
Width="1920"
|
||
|
|
Height="920"
|
||
|
|
HorizontalAlignment="Center"
|
||
|
|
Background="#F2F3F5" />
|
||
|
|
|
||
|
|
<StackPanel
|
||
|
|
Width="1920"
|
||
|
|
Height=" 83"
|
||
|
|
HorizontalAlignment="Left"
|
||
|
|
Background="#00479D"
|
||
|
|
Orientation="Horizontal">
|
||
|
|
<Image
|
||
|
|
Width="250"
|
||
|
|
Height="83"
|
||
|
|
Margin="0,0,0,0"
|
||
|
|
Source="F:\KHD\230620\shangjian\LanJu\Resources\banner.png" />
|
||
|
|
<Label
|
||
|
|
Canvas.Left="174"
|
||
|
|
Canvas.Top="19"
|
||
|
|
Width="300"
|
||
|
|
Height="55"
|
||
|
|
Margin="5,-20,-5,-20"
|
||
|
|
Content="榄菊生产操作系统"
|
||
|
|
FontSize="36"
|
||
|
|
FontWeight="Bold"
|
||
|
|
Foreground="White" />
|
||
|
|
<Image
|
||
|
|
Width="40"
|
||
|
|
Height="40"
|
||
|
|
Margin="450,-20,-1042,-20"
|
||
|
|
Source="..\Resources\riqi.png" />
|
||
|
|
<Label
|
||
|
|
x:Name="LabDate"
|
||
|
|
Canvas.Left="174"
|
||
|
|
Canvas.Top="19"
|
||
|
|
Height="55"
|
||
|
|
Margin="800,-20,-1042,-20"
|
||
|
|
Content=""
|
||
|
|
FontSize="30"
|
||
|
|
Foreground="White" />
|
||
|
|
<Image
|
||
|
|
Width="40"
|
||
|
|
Height="40"
|
||
|
|
Margin="1100,-20,-1042,-20"
|
||
|
|
Source="..\Resources\shijian.png" />
|
||
|
|
<Label
|
||
|
|
x:Name="LabTime"
|
||
|
|
Canvas.Left="174"
|
||
|
|
Canvas.Top="19"
|
||
|
|
Height="55"
|
||
|
|
Margin="1050,-20,-1184,-20"
|
||
|
|
Content=""
|
||
|
|
FontSize="30"
|
||
|
|
Foreground="White" />
|
||
|
|
</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="1020"
|
||
|
|
Width="1920"
|
||
|
|
Height="85"
|
||
|
|
HorizontalAlignment="Center"
|
||
|
|
VerticalAlignment="Top"
|
||
|
|
Background="White">
|
||
|
|
<StackPanel
|
||
|
|
Width="1920"
|
||
|
|
Height="84"
|
||
|
|
Margin="0"
|
||
|
|
HorizontalAlignment="Left"
|
||
|
|
Orientation="Horizontal">
|
||
|
|
<Label
|
||
|
|
Width="150"
|
||
|
|
Height="40"
|
||
|
|
HorizontalAlignment="Left"
|
||
|
|
Content="网络状态"
|
||
|
|
FontSize="20px"
|
||
|
|
Foreground="Black" />
|
||
|
|
<Button
|
||
|
|
x:Name="btnFault"
|
||
|
|
Width="200"
|
||
|
|
Height="50"
|
||
|
|
Margin="1500,0,0,0"
|
||
|
|
Background="#2F82E7"
|
||
|
|
Content="退出"
|
||
|
|
FontSize="20"
|
||
|
|
Foreground="White"
|
||
|
|
IsCancel="True" />
|
||
|
|
</StackPanel>
|
||
|
|
</StackPanel>
|
||
|
|
</Canvas>
|
||
|
|
</Viewbox>
|
||
|
|
</Window>
|