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.

177 lines
11 KiB
Plaintext

1 year ago
<Window x:Class="XGLFinishPro.Views.LanJu_Conversion_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"
WindowState="Maximized"
WindowStyle="None"
Loaded="MainWindow_OnLoaded"
Height="1000" Width="1900">
<Window.Resources>
<Style 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"
ClickMode="Press"
Focusable="false"
Click="ToggleButton_Click"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
HorizontalContentAlignment="Stretch"
VerticalContentAlignment="Stretch">
<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="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
<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>
</Window.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="*" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<Grid Background="White">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="2*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="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"/>
2 weeks ago
<Button x:Name="Commit" Content="保存" Background="#2B7EE6" Foreground="White" Width="100" FontSize="20" Height="50" Margin="10" Click="Submit_Click"/>
1 year ago
<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="1">
<TextBlock Text="中山榄菊日化实业有限公司" Grid.Column="1" 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}"/>
1 year ago
<ComboBox x:Name="ProductName" DisplayMemberPath="WorkName" Width="400" SelectionChanged="LeftProductName_SelectionChanged"/>
1 year ago
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="1">
<TextBlock Text="生成产线:" Style="{StaticResource TextBlockStyle}"/>
<TextBlock x:Name="Line" Style="{StaticResource TextBlockStyle}"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Column="2" Grid.Row="1">
<TextBlock Text="检查人:" Style="{StaticResource TextBlockStyle}"/>
<TextBlock x:Name="NickName" Style="{StaticResource TextBlockStyle}"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Column="2" Grid.Row="2">
<TextBlock Text="检查日期:" Style="{StaticResource TextBlockStyle}"/>
1 year ago
<DatePicker x:Name="CheckDate" FontSize="20" VerticalAlignment="Center" SelectedDateChanged="LeftCheckDate_SelectedDateChanged_1"/>
1 year ago
</StackPanel>
</Grid>
<Grid x:Name="MainGrid" Grid.Row="1" Margin="10,10,10,0">
1 year ago
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1467*"/>
<ColumnDefinition Width="413*"/>
</Grid.ColumnDefinitions>
1 year ago
</Grid>
<Border BorderThickness="1" Grid.Row="2" BorderBrush="Black" Margin="10,0,10,10" Height="100">
<StackPanel Orientation="Horizontal">
<TextBlock Text="异常处理:" FontSize="20" Margin="10"/>
<TextBox x:Name="ExceptionDesc" Width="1770" Height="90" TextWrapping="Wrap" FontSize="20"/>
</StackPanel>
</Border>
<StackPanel Margin="10,0,10,10" Grid.Row="3">
<TextBlock Text="备注:" FontSize="20"/>
<TextBlock Text="每两小时进行一次检查无异常的打√有异常的打x并在下方“异常处理”处填写异常及对应处理措施" FontSize="20"/>
</StackPanel>
</Grid>
</Window>