Files
XLIMS/XLIMS.PSV/Views/GoodView.xaml
Курнат Андрей f0e11d6379 first edit
2026-01-31 16:11:36 +03:00

77 lines
3.5 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<UserControl
x:Class="XLIMS.PSV.Views.GoodView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid Margin="10" MinWidth="350">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" >
<TextBlock Text="Температура:"/>
<TextBox Margin="2"
Text="{Binding Temp, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
</StackPanel>
<StackPanel Grid.Row="1" >
<TextBlock Text="Влажность:" />
<TextBox Margin="2"
Text="{Binding Hum, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
</StackPanel>
<StackPanel Grid.Row="2">
<TextBlock Text="Давление:" />
<TextBox Margin="2"
Text="{Binding Press, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
</StackPanel>
<StackPanel Grid.Row="3" Grid.ColumnSpan="3">
<TextBlock Text="Дата поверки:"/>
<DatePicker
Margin="0,5,0,5"
VerticalAlignment="Center"
SelectedDate="{Binding DTMKFK, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
</StackPanel>
<StackPanel Grid.Row="4" Grid.ColumnSpan="3">
<TextBlock Text="Поверитель:"/>
<ComboBox
Margin="0,5,0,5"
VerticalAlignment="Center"
DisplayMemberPath="Prfio"
ItemsSource="{Binding AllPRSN}"
SelectedItem="{Binding CurrentPRSN, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
</StackPanel>
<StackPanel Grid.Row="5" Grid.ColumnSpan="3">
<TextBlock Text="Номер наклейки:"/>
<TextBox
Margin="0,5,0,5"
VerticalAlignment="Center"
Text="{Binding NNNKL, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}"
TextWrapping="WrapWithOverflow" />
</StackPanel>
<StackPanel Grid.Row="6" Grid.ColumnSpan="3">
<TextBlock Text="Свидетельство о поверке:"/>
<DockPanel LastChildFill="True">
<ComboBox ItemsSource="{Binding AllBooks}"
SelectedItem="{Binding CurrentBook,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
DockPanel.Dock="Left" Width="125" Margin="0,0,5,0"/>
<TextBox Text="{Binding NND,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,ValidatesOnDataErrors=True}"/>
</DockPanel>
<TextBlock Text="Дата свидетельства:"/>
<DatePicker
Margin="0,5,0,5"
VerticalAlignment="Center"
SelectedDate="{Binding DTD, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
</StackPanel>
</Grid>
</UserControl>