master
9 months ago
parent 7050ab32bc
commit a950e2a414

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

Loading…
Cancel
Save