|
@@ -0,0 +1,684 @@
|
|
|
+<UserControl
|
|
|
+ x:Class="UniformMaterialManagementSystem.Views.FactoryLicense.FactoryLicenseManagePage"
|
|
|
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
+ xmlns:behaviors="clr-namespace:UniformMaterialManagementSystem.Behaviors"
|
|
|
+ xmlns:control="http://FilterDataGrid.Control.com/2024"
|
|
|
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
+ xmlns:local="clr-namespace:UniformMaterialManagementSystem.Views"
|
|
|
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
+ xmlns:utils="clr-namespace:UniformMaterialManagementSystem.Utils"
|
|
|
+ d:DesignHeight="450"
|
|
|
+ d:DesignWidth="800"
|
|
|
+ mc:Ignorable="d">
|
|
|
+ <UserControl.Resources>
|
|
|
+ <!-- 定义一个全局的TextBlock样式 -->
|
|
|
+ <Style TargetType="TextBlock">
|
|
|
+ <Setter Property="FontSize" Value="14" />
|
|
|
+ <Setter Property="Margin" Value="5" />
|
|
|
+ <Setter Property="VerticalAlignment" Value="Center" />
|
|
|
+ <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ValidationErrorTemplate}" />
|
|
|
+ </Style>
|
|
|
+ <Style TargetType="RadioButton">
|
|
|
+ <Setter Property="FontSize" Value="14" />
|
|
|
+ <Setter Property="VerticalAlignment" Value="Center" />
|
|
|
+ </Style>
|
|
|
+ <Style TargetType="ComboBox">
|
|
|
+ <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ValidationErrorTemplate}" />
|
|
|
+ </Style>
|
|
|
+ <Style TargetType="DatePicker">
|
|
|
+ <Setter Property="Height" Value="25" />
|
|
|
+ <Setter Property="FontSize" Value="14" />
|
|
|
+ <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ValidationErrorTemplate}" />
|
|
|
+ </Style>
|
|
|
+ <Style TargetType="TextBox">
|
|
|
+ <Setter Property="Height" Value="25" />
|
|
|
+ <Setter Property="FontSize" Value="14" />
|
|
|
+ <Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
+ <Setter Property="Validation.ErrorTemplate" Value="{StaticResource ValidationErrorTemplate}" />
|
|
|
+ </Style>
|
|
|
+ <ControlTemplate x:Key="CustomColumnHeaderTemplate" TargetType="DataGridColumnHeader">
|
|
|
+ <Border BorderBrush="LightSlateGray" BorderThickness="0,0,1,1">
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition />
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Border
|
|
|
+ Grid.Column="0"
|
|
|
+ BorderBrush="#E9ECF1"
|
|
|
+ BorderThickness="0,0,0,1">
|
|
|
+ <ContentPresenter
|
|
|
+ Margin="5,0"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center" />
|
|
|
+ </Border>
|
|
|
+ <Path
|
|
|
+ x:Name="SortArrow"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="0,0,5,0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Data="M 0 0 L 10 0 L 5 5 Z"
|
|
|
+ Fill="Gray"
|
|
|
+ Visibility="Collapsed" />
|
|
|
+ <Thumb
|
|
|
+ x:Name="PART_RightHeaderGripper"
|
|
|
+ Grid.Column="2"
|
|
|
+ Width="1"
|
|
|
+ Height="25"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ BorderBrush="#E9ECF1"
|
|
|
+ BorderThickness="1"
|
|
|
+ Cursor="SizeWE" />
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="SortDirection" Value="Ascending">
|
|
|
+ <Setter TargetName="SortArrow" Property="Data" Value="M 0 5 L 10 5 L 5 0 Z" />
|
|
|
+ <Setter TargetName="SortArrow" Property="Visibility" Value="Visible" />
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="SortDirection" Value="Descending">
|
|
|
+ <Setter TargetName="SortArrow" Property="Data" Value="M 0 0 L 10 0 L 5 5 Z" />
|
|
|
+ <Setter TargetName="SortArrow" Property="Visibility" Value="Visible" />
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+
|
|
|
+ <Style x:Key="CustomColumnHeaderStyle" TargetType="DataGridColumnHeader">
|
|
|
+ <Setter Property="Background" Value="White" />
|
|
|
+ <Setter Property="Foreground" Value="Black" />
|
|
|
+ <Setter Property="FontWeight" Value="Bold" />
|
|
|
+ <Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
+ <Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
+ <Setter Property="Height" Value="40" />
|
|
|
+ <Setter Property="Template" Value="{StaticResource CustomColumnHeaderTemplate}" />
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <Style x:Key="CustomRowHeaderStyle" TargetType="DataGridRowHeader">
|
|
|
+ <Setter Property="Background" Value="White" />
|
|
|
+ <Setter Property="Foreground" Value="Black" />
|
|
|
+ <Setter Property="BorderThickness" Value="0,0,1,1" />
|
|
|
+ <Setter Property="BorderBrush" Value="LightSlateGray" />
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <Style x:Key="CustomRowStyle" TargetType="DataGridRow">
|
|
|
+ <Setter Property="Background" Value="White" />
|
|
|
+ <Setter Property="FontSize" Value="13" />
|
|
|
+ <Setter Property="Height" Value="26" />
|
|
|
+
|
|
|
+ <Style.Triggers>
|
|
|
+ <Trigger Property="AlternationIndex" Value="1">
|
|
|
+ <Setter Property="Background" Value="WhiteSmoke" />
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsSelected" Value="True">
|
|
|
+ <Setter Property="Background" Value="LightBlue" />
|
|
|
+ </Trigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ <Style
|
|
|
+ x:Key="CustomCellStyle"
|
|
|
+ BasedOn="{StaticResource {x:Type DataGridCell}}"
|
|
|
+ TargetType="DataGridCell">
|
|
|
+ <Setter Property="Background" Value="White" />
|
|
|
+ <Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
+ <Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
+ <Setter Property="Padding" Value="10" />
|
|
|
+ <Style.Triggers>
|
|
|
+ <Trigger Property="IsSelected" Value="True">
|
|
|
+ <Setter Property="Background" Value="LightBlue" />
|
|
|
+ <Setter Property="Foreground" Value="Black" />
|
|
|
+ </Trigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ </UserControl.Resources>
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ <ColumnDefinition Width="2*" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid Grid.Column="0">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="Auto" />
|
|
|
+ <RowDefinition Height="*" />
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid Grid.Row="0">
|
|
|
+ <!-- 菜单项 -->
|
|
|
+ <Border
|
|
|
+ Grid.Row="0"
|
|
|
+ BorderBrush="Gray"
|
|
|
+ BorderThickness="1">
|
|
|
+ <Grid Background="White">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <StackPanel
|
|
|
+ Grid.Column="0"
|
|
|
+ FlowDirection="LeftToRight"
|
|
|
+ Orientation="Horizontal" />
|
|
|
+ <ToolBarPanel Grid.Column="1">
|
|
|
+ <ToolBar Background="White" ToolBarTray.IsLocked="True">
|
|
|
+
|
|
|
+ <Button Command="{Binding LoadDataCommand}">
|
|
|
+ <Button.Template>
|
|
|
+ <ControlTemplate>
|
|
|
+ <Border
|
|
|
+ Width="40"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ CornerRadius="5">
|
|
|
+ <StackPanel HorizontalAlignment="Center" Orientation="Vertical">
|
|
|
+ <TextBlock
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ FontFamily="{StaticResource FluentSystemIconsRegular}"
|
|
|
+ FontSize="20"
|
|
|
+ Text="{x:Static utils:RegularFontUtil.Document_Search_16}" />
|
|
|
+ <TextBlock Text="刷新" />
|
|
|
+ </StackPanel>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
|
+ <Setter Property="Background" Value="LightGray" />
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ <Separator />
|
|
|
+ <Button Command="{Binding RemoveFactoryLicenseCommand}">
|
|
|
+ <Button.Template>
|
|
|
+ <ControlTemplate>
|
|
|
+ <Border
|
|
|
+ Width="70"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ CornerRadius="5">
|
|
|
+ <StackPanel HorizontalAlignment="Center" Orientation="Vertical">
|
|
|
+ <TextBlock
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ FontFamily="{StaticResource FluentSystemIconsRegular}"
|
|
|
+ FontSize="20"
|
|
|
+ Text="{x:Static utils:RegularFontUtil.Delete_48}" />
|
|
|
+ <TextBlock Text="删除许可证" />
|
|
|
+ </StackPanel>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
|
+ <Setter Property="Background" Value="LightGray" />
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ <Separator />
|
|
|
+ <!--<Button Command="{Binding AddFactoryLicenceCommand}">
|
|
|
+ <Button.Template>
|
|
|
+ <ControlTemplate>
|
|
|
+ <Border
|
|
|
+ Width="40"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ CornerRadius="5">
|
|
|
+ <StackPanel HorizontalAlignment="Center" Orientation="Vertical">
|
|
|
+ <TextBlock
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ FontFamily="{StaticResource FluentSystemIconsRegular}"
|
|
|
+ FontSize="20"
|
|
|
+ Text="{x:Static utils:RegularFontUtil.Add_Circle_32}" />
|
|
|
+ <TextBlock Text="新增" />
|
|
|
+ </StackPanel>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
|
+ <Setter Property="Background" Value="LightGray" />
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>-->
|
|
|
+ <!--<Button Command="{Binding SaveFactoryLicenceCommand}">
|
|
|
+ <Button.Template>
|
|
|
+ <ControlTemplate>
|
|
|
+ <Border
|
|
|
+ Width="40"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ CornerRadius="5">
|
|
|
+ <StackPanel HorizontalAlignment="Center" Orientation="Vertical">
|
|
|
+ <TextBlock
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ FontFamily="{StaticResource FluentSystemIconsRegular}"
|
|
|
+ FontSize="20"
|
|
|
+ Text="{x:Static utils:RegularFontUtil.Save_32}" />
|
|
|
+ <TextBlock Text="保存" />
|
|
|
+ </StackPanel>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
|
+ <Setter Property="Background" Value="LightGray" />
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>-->
|
|
|
+ <Button Command="{Binding ExportFactoryLicenceCommand}">
|
|
|
+ <Button.Template>
|
|
|
+ <ControlTemplate>
|
|
|
+ <Border
|
|
|
+ Width="60"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ CornerRadius="5">
|
|
|
+ <StackPanel HorizontalAlignment="Center" Orientation="Vertical">
|
|
|
+ <TextBlock
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ FontFamily="{StaticResource FluentSystemIconsRegular}"
|
|
|
+ FontSize="20"
|
|
|
+ Text="{x:Static utils:RegularFontUtil.Dock_20}" />
|
|
|
+ <TextBlock Text="导出许可证" />
|
|
|
+ </StackPanel>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
|
+ <Setter Property="Background" Value="LightGray" />
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ <Button Command="{Binding ExportFactoryLicenceAttachedDocCommand}">
|
|
|
+ <Button.Template>
|
|
|
+ <ControlTemplate>
|
|
|
+ <Border
|
|
|
+ Width="60"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ CornerRadius="5">
|
|
|
+ <StackPanel HorizontalAlignment="Center" Orientation="Vertical">
|
|
|
+ <TextBlock
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ FontFamily="{StaticResource FluentSystemIconsRegular}"
|
|
|
+ FontSize="20"
|
|
|
+ Text="{x:Static utils:RegularFontUtil.Dock_20}" />
|
|
|
+ <TextBlock Text="导出附表" />
|
|
|
+ </StackPanel>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="IsMouseOver" Value="True">
|
|
|
+ <Setter Property="Background" Value="LightGray" />
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ <Separator />
|
|
|
+
|
|
|
+ </ToolBar>
|
|
|
+ </ToolBarPanel>
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+ <control:FilterDataGrid
|
|
|
+ x:Name="DataGridMain"
|
|
|
+ Grid.Row="1"
|
|
|
+ behaviors:DataGridBehavior.RowNumbers="True"
|
|
|
+ AutoGenerateColumns="False"
|
|
|
+ Background="White"
|
|
|
+ CanUserAddRows="False"
|
|
|
+ CanUserReorderColumns="True"
|
|
|
+ CellStyle="{StaticResource CustomCellStyle}"
|
|
|
+ ColumnHeaderStyle="{StaticResource CustomColumnHeaderStyle}"
|
|
|
+ FilterLanguage="SimplifiedChinese"
|
|
|
+ HeadersVisibility="All"
|
|
|
+ HorizontalGridLinesBrush="LightSlateGray"
|
|
|
+ ItemsSource="{Binding FactoryLicenses, Mode=TwoWay}"
|
|
|
+ RowHeaderStyle="{StaticResource CustomRowHeaderStyle}"
|
|
|
+ RowStyle="{StaticResource CustomRowStyle}"
|
|
|
+ SelectedItem="{Binding SelectedFactoryLicense, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ SelectionMode="Single"
|
|
|
+ ShowRowsCount="True"
|
|
|
+ ShowStatusBar="True"
|
|
|
+ VerticalGridLinesBrush="LightSlateGray">
|
|
|
+
|
|
|
+ <control:FilterDataGrid.Resources>
|
|
|
+ <!-- 非编辑模式下文本居中的样式 -->
|
|
|
+ <Style x:Key="TextColumnElementStyle" TargetType="TextBlock">
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Center" />
|
|
|
+ <Setter Property="VerticalAlignment" Value="Center" />
|
|
|
+ <Setter Property="TextAlignment" Value="Center" />
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <!-- 编辑模式下文本居中的样式 -->
|
|
|
+ <Style x:Key="TextColumnEditingElementStyle" TargetType="TextBox">
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Stretch" />
|
|
|
+ <Setter Property="VerticalAlignment" Value="Stretch" />
|
|
|
+ <Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
+ </Style>
|
|
|
+
|
|
|
+ <Style x:Key="CheckBoxColumnElementStyle" TargetType="CheckBox">
|
|
|
+ <Setter Property="HorizontalAlignment" Value="Center" />
|
|
|
+ <Setter Property="VerticalAlignment" Value="Center" />
|
|
|
+ <Setter Property="IsEnabled" Value="False" />
|
|
|
+ </Style>
|
|
|
+ </control:FilterDataGrid.Resources>
|
|
|
+
|
|
|
+ <control:FilterDataGrid.Columns>
|
|
|
+ <DataGridTextColumn
|
|
|
+ Width="60"
|
|
|
+ Binding="{Binding InspectApply.Year}"
|
|
|
+ EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
|
+ ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
|
+ Header="工作年度"
|
|
|
+ IsReadOnly="True" />
|
|
|
+ <control:FilterDataGridTextColumn
|
|
|
+ Width="300"
|
|
|
+ Binding="{Binding LicenseNo}"
|
|
|
+ EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
|
+ ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
|
+ Header="出厂许可证编号"
|
|
|
+ IsColumnFiltered="True"
|
|
|
+ IsReadOnly="True" />
|
|
|
+ <control:FilterDataGridTextColumn
|
|
|
+ Width="150"
|
|
|
+ Binding="{Binding LicenseListNo}"
|
|
|
+ EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
|
+ ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
|
+ Header="许可证清单号"
|
|
|
+ IsColumnFiltered="True"
|
|
|
+ IsReadOnly="True" />
|
|
|
+ <control:FilterDataGridTextColumn
|
|
|
+ Width="200"
|
|
|
+ Binding="{Binding InspectApply.Company}"
|
|
|
+ EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
|
+ ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
|
+ Header="生产企业"
|
|
|
+ IsColumnFiltered="True"
|
|
|
+ IsReadOnly="True" />
|
|
|
+ <control:FilterDataGridTextColumn
|
|
|
+ Width="120"
|
|
|
+ Binding="{Binding FactoryDate, StringFormat=yyyy-MM-dd}"
|
|
|
+ EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
|
+ ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
|
+ Header="出厂日期"
|
|
|
+ IsColumnFiltered="True"
|
|
|
+ IsReadOnly="True" />
|
|
|
+ <control:FilterDataGridTextColumn
|
|
|
+ Width="120"
|
|
|
+ Binding="{Binding FactoryQuantity}"
|
|
|
+ EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
|
+ ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
|
+ Header="出厂数量"
|
|
|
+ IsColumnFiltered="True"
|
|
|
+ IsReadOnly="True" />
|
|
|
+ <control:FilterDataGridTextColumn
|
|
|
+ Width="100"
|
|
|
+ Binding="{Binding EditUser}"
|
|
|
+ EditingElementStyle="{StaticResource TextColumnEditingElementStyle}"
|
|
|
+ ElementStyle="{StaticResource TextColumnElementStyle}"
|
|
|
+ Header="承办人"
|
|
|
+ IsColumnFiltered="True"
|
|
|
+ IsReadOnly="True" />
|
|
|
+
|
|
|
+ </control:FilterDataGrid.Columns>
|
|
|
+ </control:FilterDataGrid>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <GridSplitter
|
|
|
+ Grid.Column="1"
|
|
|
+ Width="2"
|
|
|
+ HorizontalAlignment="Stretch" />
|
|
|
+ <Grid Grid.Column="2" Background="White">
|
|
|
+ <ScrollViewer>
|
|
|
+ <Grid Grid.Background="White">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="50" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
+ <RowDefinition Height="40" />
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="3*" />
|
|
|
+ <ColumnDefinition Width="5*" />
|
|
|
+ <ColumnDefinition Width="3*" />
|
|
|
+ <ColumnDefinition Width="5*" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="0"
|
|
|
+ Grid.ColumnSpan="5"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontSize="25"
|
|
|
+ Text="军需物资质量检验出厂许可证" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="1"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="许可证编号:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="1"
|
|
|
+ Grid.Column="1"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="{Binding SelectedFactoryLicense.LicenseNo, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="1"
|
|
|
+ Grid.Column="2"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="清单号:" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="1"
|
|
|
+ Grid.Column="3"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="{Binding SelectedFactoryLicense.LicenseListNo, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="2"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="生产企业:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="2"
|
|
|
+ Grid.Column="1"
|
|
|
+ Text="{Binding SelectedFactoryLicense.InspectApply.Company}"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="2"
|
|
|
+ Grid.RowSpan="3"
|
|
|
+ Grid.Column="2"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="合同号:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBox
|
|
|
+ Grid.Row="2"
|
|
|
+ Grid.RowSpan="3"
|
|
|
+ Grid.Column="3"
|
|
|
+ Height="120"
|
|
|
+ IsReadOnly="True"
|
|
|
+ Text="{Binding SelectedFactoryLicense.ContractNos}"
|
|
|
+ VerticalScrollBarVisibility="Auto" />
|
|
|
+
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="3"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="产品名称:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="3"
|
|
|
+ Grid.Column="1"
|
|
|
+ Text="{Binding SelectedFactoryLicense.InspectApply.Material.Name}"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="4"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="产品规格:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="4"
|
|
|
+ Grid.Column="1"
|
|
|
+ Text="{Binding SelectedFactoryLicense.InspectApply.Material.Specification}"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="5"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="产品批号:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="5"
|
|
|
+ Grid.Column="1"
|
|
|
+ Text="{Binding SelectedFactoryLicense.InspectApply.BatchNo}"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="5"
|
|
|
+ Grid.Column="2"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="生产日期:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="5"
|
|
|
+ Grid.Column="3"
|
|
|
+ Text="{Binding SelectedFactoryLicense.ProductDate}"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="6"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="第三方检验报告编号:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="6"
|
|
|
+ Grid.Column="1"
|
|
|
+ Text="{Binding SelectedFactoryLicense.InspectApply.InspReportNo}"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="6"
|
|
|
+ Grid.Column="2"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="检验报告编号:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="6"
|
|
|
+ Grid.Column="3"
|
|
|
+ Text="{Binding SelectedFactoryLicense.InspectionReportNo}"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="7"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="*出厂数量:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <WrapPanel
|
|
|
+ Grid.Row="7"
|
|
|
+ Grid.Column="1"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FlowDirection="LeftToRight">
|
|
|
+ <TextBox
|
|
|
+ Width="120"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="{Binding SelectedFactoryLicense.FactoryQuantity, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBlock VerticalAlignment="Center" Text="{Binding SelectedFactoryLicense.InspectApply.Material.MeasureUnit}" />
|
|
|
+ </WrapPanel>
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="7"
|
|
|
+ Grid.Column="2"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="*出厂日期:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <DatePicker
|
|
|
+ Grid.Row="7"
|
|
|
+ Grid.Column="3"
|
|
|
+ Text="{Binding SelectedFactoryLicense.FactoryDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="8"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="*发证单位:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBox
|
|
|
+ Grid.Row="8"
|
|
|
+ Grid.Column="1"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="{Binding SelectedFactoryLicense.Department}" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="8"
|
|
|
+ Grid.Column="2"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="*签发日期:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <DatePicker
|
|
|
+ Grid.Row="8"
|
|
|
+ Grid.Column="3"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="{Binding SelectedFactoryLicense.SignDate}" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="9"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="*承办人:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBox
|
|
|
+ Grid.Row="9"
|
|
|
+ Grid.Column="1"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="{Binding SelectedFactoryLicense.EditUser}" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="9"
|
|
|
+ Grid.Column="2"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="*批准人:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBox
|
|
|
+ Grid.Row="9"
|
|
|
+ Grid.Column="3"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="{Binding SelectedFactoryLicense.ApproveUser}" />
|
|
|
+ <TextBlock
|
|
|
+ Grid.Row="10"
|
|
|
+ Grid.Column="0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="*审核人:"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
+ <TextBox
|
|
|
+ Grid.Row="10"
|
|
|
+ Grid.Column="1"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="{Binding SelectedFactoryLicense.AuditUser}" />
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </Grid>
|
|
|
+ </ScrollViewer>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
+</UserControl>
|