|
|
|
|
|
<Window x:Class="XGLFinishPro.Views.LanJu_First_Inspection_Reprot"
|
|
|
|
|
|
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"
|
|
|
|
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
|
|
|
|
|
Loaded="Window_Loaded"
|
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
|
WindowState="Maximized"
|
|
|
|
|
|
WindowStyle="None"
|
|
|
|
|
|
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>
|
|
|
|
|
|
</ResourceDictionary>
|
|
|
|
|
|
</Window.Resources>
|
|
|
|
|
|
<Grid>
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
<RowDefinition Height="auto"/>
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
<RowDefinition Height="auto"/>
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
<Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3">
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
<Grid >
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
|
<RowDefinition Height="2*"/>
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="4" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.ColumnSpan="3">
|
|
|
|
|
|
<Button Content="刷新" Background="#2B7EE6" Foreground="White" Width="100" FontSize="20" Height="50" Margin="10" Click="Refresh_Click"/>
|
|
|
|
|
|
<Button Content="新增一列" Background="#2B7EE6" Foreground="White" Width="100" FontSize="20" Height="50" Margin="10" Click="Add_Click"/>
|
|
|
|
|
|
<Button 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="0" Grid.Row="0">
|
|
|
|
|
|
<Image Source="/Resources/logo.png" Width="160" Height="50"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Grid.Column="0" Grid.ColumnSpan="6">
|
|
|
|
|
|
<TextBlock Text="中山榄菊日化实业有限公司" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="40" TextWrapping="Wrap" />
|
|
|
|
|
|
<TextBlock Text="产品首检记录表" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="40" TextWrapping="Wrap" />
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="1">
|
|
|
|
|
|
<TextBlock Text="生产车间:黑蚊香车间" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.Row="2">
|
|
|
|
|
|
<TextBlock Text="产品名称:" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
<TextBlock x:Name="LeftProductName" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="1">
|
|
|
|
|
|
<TextBlock Text="生成产线:" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
<TextBlock x:Name="LeftLine" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="2" Grid.Row="1">
|
|
|
|
|
|
<TextBlock Text="检查人:" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
<TextBlock x:Name="LeftNickName" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="2" Grid.Row="2">
|
|
|
|
|
|
<TextBlock Text="检查日期:" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
<TextBlock x:Name="LeftCheckDate" Width="160" FontSize="20" VerticalAlignment="Center"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="3" Grid.Row="1">
|
|
|
|
|
|
<TextBlock Text="生产车间:黑蚊香车间" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="3" Grid.Row="2">
|
|
|
|
|
|
<TextBlock Text="产品名称:" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
<TextBlock x:Name="RightProductName" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="4" Grid.Row="1">
|
|
|
|
|
|
<TextBlock Text="生成产线:" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
<TextBlock x:Name="RightLine" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="5" Grid.Row="1">
|
|
|
|
|
|
<TextBlock Text="检查人:" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
<TextBlock x:Name="RightNickName" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="5" Grid.Row="2">
|
|
|
|
|
|
<TextBlock Text="检查日期:" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
<TextBlock x:Name="RightCheckDate" Style="{StaticResource TextBlockStyle}"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
<Grid Grid.Row="1" Margin="10,0,10,0">
|
|
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
<ColumnDefinition Width="10"/>
|
|
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
|
|
|
|
|
|
|
<Grid Grid.Column="0" x:Name="LeftGrid">
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
<Grid Grid.Column="2" x:Name="RightGrid">
|
|
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
<Border Height="100" Grid.Row="2" BorderBrush="Black" BorderThickness="1" Margin="10,0,10,10">
|
|
|
|
|
|
<StackPanel>
|
|
|
|
|
|
<TextBlock Text="备注:" Style="{StaticResource TextBlockStyle}" HorizontalAlignment="Left"/>
|
|
|
|
|
|
<TextBlock Text="1、无异常的打√,有异常的描述异常及数量比例,有数据的需要填写数据" Style="{StaticResource TextBlockStyle}" HorizontalAlignment="Left"/>
|
|
|
|
|
|
<TextBlock Text="2、正式开工前、更换产品或版本、关键设备故障维护后需进行首件确认并填写记录" Style="{StaticResource TextBlockStyle}" HorizontalAlignment="Left"/>
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
|
</Border>
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
</Window>
|