|
|
<Window
|
|
|
x:Class="XGLFinishPro.Views.LanJu_Check_Report"
|
|
|
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:XGLFinishPro.Views"
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
Width="1900"
|
|
|
Height="1000"
|
|
|
Loaded="Window_Loaded"
|
|
|
WindowState="Maximized"
|
|
|
WindowStyle="None"
|
|
|
mc:Ignorable="d">
|
|
|
<Window.Resources>
|
|
|
<ResourceDictionary>
|
|
|
<Style BasedOn="{x:Null}" TargetType="ComboBox">
|
|
|
<Setter Property="Width" Value="50" />
|
|
|
<Setter Property="Height" Value="30" />
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
<Setter Property="FontSize" Value="20" />
|
|
|
<Setter Property="Template">
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="ComboBox">
|
|
|
<Grid x:Name="TogGrid">
|
|
|
<ToggleButton
|
|
|
x:Name="ToggleButton"
|
|
|
Width="{TemplateBinding Width}"
|
|
|
Height="{TemplateBinding Height}"
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
|
|
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
|
|
HorizontalContentAlignment="Center"
|
|
|
VerticalContentAlignment="Center"
|
|
|
Background="{TemplateBinding Background}"
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
Click="ToggleButton_Click"
|
|
|
ClickMode="Press"
|
|
|
Focusable="false"
|
|
|
FontSize="{TemplateBinding FontSize}">
|
|
|
<ContentPresenter
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Content="{TemplateBinding SelectionBoxItem}"
|
|
|
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
|
|
|
ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
</ToggleButton>
|
|
|
<Popup
|
|
|
x:Name="Popup"
|
|
|
AllowsTransparency="True"
|
|
|
Focusable="False"
|
|
|
IsOpen="{TemplateBinding IsDropDownOpen}"
|
|
|
Placement="Bottom"
|
|
|
PopupAnimation="Slide">
|
|
|
<Grid
|
|
|
x:Name="DropDown"
|
|
|
MinWidth="{TemplateBinding ActualWidth}"
|
|
|
MaxHeight="200"
|
|
|
SnapsToDevicePixels="True">
|
|
|
<Border
|
|
|
x:Name="DropDownBorder"
|
|
|
Background="White"
|
|
|
BorderBrush="Gray"
|
|
|
BorderThickness="1" />
|
|
|
<ScrollViewer Margin="4,6,4,6" SnapsToDevicePixels="True">
|
|
|
<StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" />
|
|
|
</ScrollViewer>
|
|
|
</Grid>
|
|
|
</Popup>
|
|
|
</Grid>
|
|
|
<ControlTemplate.Triggers>
|
|
|
<Trigger Property="IsFocused" Value="true">
|
|
|
<Setter TargetName="ToggleButton" Property="Background" Value="Gray" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsMouseOver" Value="true">
|
|
|
<Setter TargetName="ToggleButton" Property="Background" Value="Gray" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="HasItems" Value="false">
|
|
|
<Setter TargetName="DropDownBorder" Property="MinHeight" Value="95" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsEnabled" Value="false">
|
|
|
<Setter Property="Foreground" Value="Gray" />
|
|
|
</Trigger>
|
|
|
<Trigger Property="IsGrouping" Value="true">
|
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="false" />
|
|
|
</Trigger>
|
|
|
<!-- 新增的Trigger,用于在选择完成后将按钮颜色变回原来的颜色 -->
|
|
|
<Trigger Property="IsDropDownOpen" Value="false">
|
|
|
<Setter TargetName="ToggleButton" Property="Background" Value="White" />
|
|
|
</Trigger>
|
|
|
</ControlTemplate.Triggers>
|
|
|
</ControlTemplate>
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
</Style>
|
|
|
<Style x:Key="TextBlockStyle" TargetType="TextBlock">
|
|
|
<Setter Property="FontSize" Value="25" />
|
|
|
<Setter Property="Margin" Value="10,0,8,0" />
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
|
</Style>
|
|
|
<Style x:Key="CheckBoxStyle" TargetType="{x:Type CheckBox}">
|
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
<Setter Property="LayoutTransform">
|
|
|
<Setter.Value>
|
|
|
<ScaleTransform ScaleX="1.5" ScaleY="1.5" />
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
</Style>
|
|
|
</ResourceDictionary>
|
|
|
</Window.Resources>
|
|
|
<Grid>
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="auto" />
|
|
|
<RowDefinition Height="*" />
|
|
|
<RowDefinition Height="auto" />
|
|
|
</Grid.RowDefinitions>
|
|
|
<Grid Grid.Row="0">
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="*" />
|
|
|
<RowDefinition Height="*" />
|
|
|
</Grid.RowDefinitions>
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="*" />
|
|
|
<ColumnDefinition Width="*" />
|
|
|
<ColumnDefinition Width="*" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
<Label
|
|
|
Grid.RowSpan="2"
|
|
|
Grid.Column="1"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Content="产品转换/完产清线点检表"
|
|
|
FontSize="40"
|
|
|
FontWeight="Bold" />
|
|
|
<StackPanel
|
|
|
Grid.Column="2"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Orientation="Horizontal">
|
|
|
<Button
|
|
|
Width="100"
|
|
|
Height="50"
|
|
|
Margin="10"
|
|
|
Background="#2B7EE6"
|
|
|
Click="Refresh_Click"
|
|
|
Content="刷新"
|
|
|
FontSize="20"
|
|
|
Foreground="White" />
|
|
|
<Button
|
|
|
x:Name="Add"
|
|
|
Width="100"
|
|
|
Height="50"
|
|
|
Margin="10"
|
|
|
Background="#2B7EE6"
|
|
|
Click="Add_Click"
|
|
|
Content="新增一列"
|
|
|
FontSize="20"
|
|
|
Foreground="White" />
|
|
|
<Button
|
|
|
x:Name="IsFinalSubmit"
|
|
|
Width="100"
|
|
|
Height="50"
|
|
|
Margin="10"
|
|
|
Background="Red"
|
|
|
Click="Submit_Click"
|
|
|
Content="最终提交"
|
|
|
FontSize="20"
|
|
|
Foreground="White" />
|
|
|
<Button
|
|
|
x:Name="Commit"
|
|
|
Width="100"
|
|
|
Height="50"
|
|
|
Margin="10"
|
|
|
Background="#2B7EE6"
|
|
|
Click="Submit_Click"
|
|
|
Content="提交"
|
|
|
FontSize="20"
|
|
|
Foreground="White" />
|
|
|
<Button
|
|
|
Width="100"
|
|
|
Height="50"
|
|
|
Margin="10"
|
|
|
Background="#2B7EE6"
|
|
|
Click="Close_Click"
|
|
|
Content="关闭"
|
|
|
FontSize="20"
|
|
|
Foreground="White" />
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="2"
|
|
|
Grid.Column="2"
|
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Bottom"
|
|
|
Orientation="Horizontal">
|
|
|
<Label Content="表单编号:" FontSize="25" />
|
|
|
<Label
|
|
|
x:Name="OrderCode"
|
|
|
Content="08GL05C001-014A"
|
|
|
FontSize="25" />
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
<Grid
|
|
|
x:Name="MainGrid"
|
|
|
Grid.Row="1"
|
|
|
Margin="10,10,10,0" />
|
|
|
<StackPanel
|
|
|
Grid.Row="2"
|
|
|
Margin="10,10,10,0"
|
|
|
Orientation="Horizontal">
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
<TextBlock
|
|
|
HorizontalAlignment="Left"
|
|
|
Style="{StaticResource TextBlockStyle}"
|
|
|
Text="填写要求" />
|
|
|
<TextBlock
|
|
|
HorizontalAlignment="Left"
|
|
|
Style="{StaticResource TextBlockStyle}"
|
|
|
Text="1.产线组长在开线、品种转换时填写该表," />
|
|
|
<TextBlock
|
|
|
HorizontalAlignment="Left"
|
|
|
Style="{StaticResource TextBlockStyle}"
|
|
|
Text="2.在“口”中勾选类别。" />
|
|
|
<TextBlock
|
|
|
HorizontalAlignment="Left"
|
|
|
Style="{StaticResource TextBlockStyle}"
|
|
|
Text="3.“点检结果”,是填“√”,否填“x”,若有异常则填写实际情况。" />
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Width="500"
|
|
|
Margin="600,0,0,20"
|
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Bottom"
|
|
|
Orientation="Horizontal">
|
|
|
<TextBlock
|
|
|
HorizontalAlignment="Right"
|
|
|
Style="{StaticResource TextBlockStyle}"
|
|
|
Text="班组长签字:" />
|
|
|
<TextBlock
|
|
|
x:Name="NickName"
|
|
|
HorizontalAlignment="Right"
|
|
|
Style="{StaticResource TextBlockStyle}"
|
|
|
Text="" />
|
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
</Window>
|