|
|
<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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
xmlns:local="clr-namespace:XGLFinishPro.Views"
|
|
|
mc:Ignorable="d"
|
|
|
WindowStyle="None"
|
|
|
WindowState="Maximized"
|
|
|
Loaded="Window_Loaded"
|
|
|
Height="1000" Width="1900">
|
|
|
<Window.Resources>
|
|
|
<ResourceDictionary>
|
|
|
<Style TargetType="ComboBox" BasedOn="{x:Null}">
|
|
|
<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"
|
|
|
ClickMode="Press"
|
|
|
Focusable="false"
|
|
|
Click="ToggleButton_Click"
|
|
|
FontSize="{TemplateBinding FontSize}"
|
|
|
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
|
|
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
|
|
Width="{TemplateBinding Width}"
|
|
|
Height="{TemplateBinding Height}"
|
|
|
Background="{TemplateBinding Background}"
|
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
HorizontalContentAlignment="Center"
|
|
|
VerticalContentAlignment="Center">
|
|
|
<ContentPresenter HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Content="{TemplateBinding SelectionBoxItem}"
|
|
|
ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
|
|
|
ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
|
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
</ToggleButton>
|
|
|
<Popup x:Name="Popup"
|
|
|
Placement="Bottom"
|
|
|
IsOpen="{TemplateBinding IsDropDownOpen}"
|
|
|
AllowsTransparency="True"
|
|
|
Focusable="False"
|
|
|
PopupAnimation="Slide">
|
|
|
<Grid x:Name="DropDown"
|
|
|
SnapsToDevicePixels="True"
|
|
|
MinWidth="{TemplateBinding ActualWidth}"
|
|
|
MaxHeight="200">
|
|
|
<Border x:Name="DropDownBorder"
|
|
|
Background="White"
|
|
|
BorderThickness="1"
|
|
|
BorderBrush="Gray" />
|
|
|
<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 Content="产品转换/完产清线点检表" Grid.RowSpan="2" Grid.Column="1" VerticalAlignment="Center" FontWeight="Bold" FontSize="40" HorizontalAlignment="Center" />
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
<Button Content="刷新" Background="#2B7EE6" Foreground="White" Width="100" FontSize="20" Height="50" Margin="10" Click="Refresh_Click"/>
|
|
|
<Button x:Name="Add" Content="新增一列" Background="#2B7EE6" Foreground="White" Width="100" FontSize="20" Height="50" Margin="10" Click="Add_Click"/>
|
|
|
<Button x:Name="IsFinalSubmit" Content="最终提交" Background="Red" Foreground="White" Width="100" FontSize="20" Height="50" Margin="10" Click="Submit_Click"/>
|
|
|
<Button x:Name="Commit" Content="提交" Background="#2B7EE6" Foreground="White" Width="100" FontSize="20" Height="50" Margin="10" Click="Submit_Click"/>
|
|
|
<Button Content="关闭" Background="#2B7EE6" Foreground="White" Width="100" FontSize="20" Height="50" Margin="10" Click="Close_Click"/>
|
|
|
</StackPanel>
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="2" Grid.Row="2" VerticalAlignment="Bottom" HorizontalAlignment="Right">
|
|
|
<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 Orientation="Horizontal" Grid.Row="2" Margin="10,10,10,0">
|
|
|
<StackPanel Orientation="Vertical">
|
|
|
<TextBlock Text="填写要求" Style="{StaticResource TextBlockStyle}" HorizontalAlignment="Left" />
|
|
|
<TextBlock Text="1.产线组长在开线、品种转换时填写该表," Style="{StaticResource TextBlockStyle}" HorizontalAlignment="Left" />
|
|
|
<TextBlock Text="2.在“口”中勾选类别。" Style="{StaticResource TextBlockStyle}" HorizontalAlignment="Left" />
|
|
|
<TextBlock Text="3.“点检结果”,是填“√”,否填“x”,若有异常则填写实际情况。" Style="{StaticResource TextBlockStyle}" HorizontalAlignment="Left" />
|
|
|
</StackPanel>
|
|
|
<StackPanel Width="500" Margin="600,0,0,20" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
|
|
|
<TextBlock Text="班组长签字:" Style="{StaticResource TextBlockStyle}" HorizontalAlignment="Right" />
|
|
|
<TextBlock x:Name="NickName" Text="" Style="{StaticResource TextBlockStyle}" HorizontalAlignment="Right" />
|
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
</Window>
|