98 lines
6.0 KiB
Plaintext
98 lines
6.0 KiB
Plaintext
|
|
<UserControl x:Class="YY.Admin.Views.RubberQuickTestStd.RubberQuickTestStdDetailDialogView"
|
||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||
|
|
xmlns:prism="http://prismlibrary.com/"
|
||
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
||
|
|
mc:Ignorable="d"
|
||
|
|
Width="900"
|
||
|
|
MinHeight="520">
|
||
|
|
|
||
|
|
<Grid Background="{DynamicResource ThirdlyRegionBrush}">
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="Auto"/>
|
||
|
|
<RowDefinition Height="*"/>
|
||
|
|
<RowDefinition Height="Auto"/>
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
|
||
|
|
<hc:SimplePanel Margin="20">
|
||
|
|
<TextBlock FontSize="18" Foreground="{DynamicResource PrimaryTextBrush}"
|
||
|
|
Text="胶料快检实验标准详情" HorizontalAlignment="Left"/>
|
||
|
|
<Button Width="22" Height="22" Command="hc:ControlCommands.Close"
|
||
|
|
Style="{StaticResource ButtonIcon}" Foreground="{DynamicResource PrimaryBrush}"
|
||
|
|
hc:IconElement.Geometry="{StaticResource ErrorGeometry}"
|
||
|
|
Padding="0" HorizontalAlignment="Right" VerticalAlignment="Top"/>
|
||
|
|
</hc:SimplePanel>
|
||
|
|
|
||
|
|
<hc:ScrollViewer Grid.Row="1" IsInertiaEnabled="True">
|
||
|
|
<StackPanel Margin="20,0,20,0">
|
||
|
|
<hc:Row Gutter="10">
|
||
|
|
<hc:Col Span="12">
|
||
|
|
<hc:TextBox Text="{Binding Std.StdName, Mode=OneWay}" IsReadOnly="True"
|
||
|
|
hc:InfoElement.Title="标准名称" hc:InfoElement.TitleWidth="90" hc:InfoElement.TitlePlacement="Left"
|
||
|
|
Margin="0,0,0,12"/>
|
||
|
|
</hc:Col>
|
||
|
|
<hc:Col Span="12">
|
||
|
|
<hc:TextBox Text="{Binding Std.TestMethodName, Mode=OneWay}" IsReadOnly="True"
|
||
|
|
hc:InfoElement.Title="实验方法" hc:InfoElement.TitleWidth="90" hc:InfoElement.TitlePlacement="Left"
|
||
|
|
Margin="0,0,0,12"/>
|
||
|
|
</hc:Col>
|
||
|
|
<hc:Col Span="12">
|
||
|
|
<hc:TextBox Text="{Binding Std.RubberMaterialName, Mode=OneWay}" IsReadOnly="True"
|
||
|
|
hc:InfoElement.Title="胶料名称" hc:InfoElement.TitleWidth="90" hc:InfoElement.TitlePlacement="Left"
|
||
|
|
Margin="0,0,0,12"/>
|
||
|
|
</hc:Col>
|
||
|
|
<hc:Col Span="12">
|
||
|
|
<hc:TextBox Text="{Binding Std.IssueNumber, Mode=OneWay}" IsReadOnly="True"
|
||
|
|
hc:InfoElement.Title="发行编号" hc:InfoElement.TitleWidth="90" hc:InfoElement.TitlePlacement="Left"
|
||
|
|
Margin="0,0,0,12"/>
|
||
|
|
</hc:Col>
|
||
|
|
<hc:Col Span="12">
|
||
|
|
<hc:TextBox Text="{Binding Std.IssueDate, Mode=OneWay, StringFormat={}{0:yyyy-MM-dd}}" IsReadOnly="True"
|
||
|
|
hc:InfoElement.Title="发行日期" hc:InfoElement.TitleWidth="90" hc:InfoElement.TitlePlacement="Left"
|
||
|
|
Margin="0,0,0,12"/>
|
||
|
|
</hc:Col>
|
||
|
|
<hc:Col Span="12">
|
||
|
|
<hc:TextBox Text="{Binding Std.IssueDeptName, Mode=OneWay}" IsReadOnly="True"
|
||
|
|
hc:InfoElement.Title="发行部门" hc:InfoElement.TitleWidth="90" hc:InfoElement.TitlePlacement="Left"
|
||
|
|
Margin="0,0,0,12"/>
|
||
|
|
</hc:Col>
|
||
|
|
<hc:Col Span="12">
|
||
|
|
<hc:TextBox Text="{Binding Std.EnableStatusText, Mode=OneWay}" IsReadOnly="True"
|
||
|
|
hc:InfoElement.Title="启用状态" hc:InfoElement.TitleWidth="90" hc:InfoElement.TitlePlacement="Left"
|
||
|
|
Margin="0,0,0,12"/>
|
||
|
|
</hc:Col>
|
||
|
|
<hc:Col Span="12">
|
||
|
|
<hc:TextBox Text="{Binding Std.AuditStatusText, Mode=OneWay}" IsReadOnly="True"
|
||
|
|
hc:InfoElement.Title="审核状态" hc:InfoElement.TitleWidth="90" hc:InfoElement.TitlePlacement="Left"
|
||
|
|
Margin="0,0,0,12"/>
|
||
|
|
</hc:Col>
|
||
|
|
</hc:Row>
|
||
|
|
|
||
|
|
<TextBlock Text="标准明细(数据点上下限)" FontWeight="SemiBold" Margin="0,8,0,8"/>
|
||
|
|
<DataGrid ItemsSource="{Binding Lines}"
|
||
|
|
AutoGenerateColumns="False"
|
||
|
|
IsReadOnly="True"
|
||
|
|
HeadersVisibility="Column"
|
||
|
|
MaxHeight="280"
|
||
|
|
CanUserAddRows="False">
|
||
|
|
<DataGrid.Columns>
|
||
|
|
<DataGridTextColumn Header="数据点" Binding="{Binding PointName}" Width="*"/>
|
||
|
|
<DataGridTextColumn Header="下限值" Binding="{Binding LowerLimit}" Width="90"/>
|
||
|
|
<DataGridTextColumn Header="下警告" Binding="{Binding LowerWarn}" Width="90"/>
|
||
|
|
<DataGridTextColumn Header="目标值" Binding="{Binding TargetValue}" Width="90"/>
|
||
|
|
<DataGridTextColumn Header="上警告" Binding="{Binding UpperWarn}" Width="90"/>
|
||
|
|
<DataGridTextColumn Header="上限值" Binding="{Binding UpperLimit}" Width="90"/>
|
||
|
|
</DataGrid.Columns>
|
||
|
|
</DataGrid>
|
||
|
|
</StackPanel>
|
||
|
|
</hc:ScrollViewer>
|
||
|
|
|
||
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="20">
|
||
|
|
<Button Content="关闭" Command="{Binding CloseCommand}" Style="{StaticResource ButtonPrimary}" Width="100"/>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
</UserControl>
|