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.

252 lines
12 KiB
Plaintext

9 months ago
<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">
1 year ago
<Window.Resources>
<ResourceDictionary>
9 months ago
<Style BasedOn="{x:Null}" TargetType="ComboBox">
1 year ago
<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">
9 months ago
<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}" />
1 year ago
</ToggleButton>
9 months ago
<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" />
1 year ago
</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>
9 months ago
<!-- 新增的Trigger用于在选择完成后将按钮颜色变回原来的颜色 -->
1 year ago
<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">
9 months ago
<Setter Property="FontSize" Value="25" />
<Setter Property="Margin" Value="10,0,8,0" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="HorizontalAlignment" Value="Center" />
1 year ago
</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>
1 year ago
</ResourceDictionary>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
9 months ago
<RowDefinition Height="auto" />
<RowDefinition Height="*" />
<RowDefinition Height="auto" />
1 year ago
</Grid.RowDefinitions>
<Grid Grid.Row="0">
<Grid.RowDefinitions>
9 months ago
<RowDefinition Height="*" />
<RowDefinition Height="*" />
1 year ago
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
9 months ago
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
1 year ago
</Grid.ColumnDefinitions>
9 months ago
<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" />
1 year ago
</StackPanel>
9 months ago
<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" />
1 year ago
</StackPanel>
</Grid>
9 months ago
<Grid
x:Name="MainGrid"
Grid.Row="1"
Margin="10,10,10,0" />
<StackPanel
Grid.Row="2"
Margin="10,10,10,0"
Orientation="Horizontal">
1 year ago
<StackPanel Orientation="Vertical">
9 months ago
<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”,若有异常则填写实际情况。" />
1 year ago
</StackPanel>
9 months ago
<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="" />
1 year ago
</StackPanel>
</StackPanel>
</Grid>
</Window>