|
|
|
|
@ -1,17 +1,19 @@
|
|
|
|
|
<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
|
|
|
|
|
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 TargetType="ComboBox" BasedOn="{x:Null}">
|
|
|
|
|
<Style BasedOn="{x:Null}" TargetType="ComboBox">
|
|
|
|
|
<Setter Property="Width" Value="50" />
|
|
|
|
|
<Setter Property="Height" Value="30" />
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
@ -23,45 +25,48 @@
|
|
|
|
|
<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
|
|
|
|
|
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"
|
|
|
|
|
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" />
|
|
|
|
|
<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>
|
|
|
|
|
@ -82,7 +87,7 @@
|
|
|
|
|
<Trigger Property="IsGrouping" Value="true">
|
|
|
|
|
<Setter Property="ScrollViewer.CanContentScroll" Value="false" />
|
|
|
|
|
</Trigger>
|
|
|
|
|
<!-- 新增的Trigger,用于在选择完成后将按钮颜色变回原来的颜色 -->
|
|
|
|
|
<!-- 新增的Trigger,用于在选择完成后将按钮颜色变回原来的颜色 -->
|
|
|
|
|
<Trigger Property="IsDropDownOpen" Value="false">
|
|
|
|
|
<Setter TargetName="ToggleButton" Property="Background" Value="White" />
|
|
|
|
|
</Trigger>
|
|
|
|
|
@ -92,10 +97,10 @@
|
|
|
|
|
</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"/>
|
|
|
|
|
<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" />
|
|
|
|
|
@ -110,44 +115,136 @@
|
|
|
|
|
</Window.Resources>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="auto"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="auto"/>
|
|
|
|
|
<RowDefinition Height="auto" />
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
<RowDefinition Height="auto" />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid Grid.Row="0">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
<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"/>
|
|
|
|
|
<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 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.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 Orientation="Horizontal" Grid.Row="2" Margin="10,10,10,0">
|
|
|
|
|
<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 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" />
|
|
|
|
|
<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" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom">
|
|
|
|
|
<TextBlock Text="班组长签字:" Style="{StaticResource TextBlockStyle}" HorizontalAlignment="Right" />
|
|
|
|
|
<TextBlock x:Name="NickName" Text="" Style="{StaticResource TextBlockStyle}" HorizontalAlignment="Right" />
|
|
|
|
|
<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>
|
|
|
|
|
|