59 lines
2.6 KiB
XML
59 lines
2.6 KiB
XML
<UserControl
|
||
x:Class="XLIMS.PSV.Views.BadView"
|
||
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="2">
|
||
<TextBlock Text="Причина непригодности:" />
|
||
<TextBox Margin="2"
|
||
Text="{Binding Reason, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
||
</StackPanel>
|
||
<StackPanel Grid.Row="3" Grid.ColumnSpan="3">
|
||
<TextBlock Text="Дата поверки:"/>
|
||
<DatePicker
|
||
Margin="0,5,0,5"
|
||
VerticalAlignment="Center"
|
||
SelectedDate="{Binding PovDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
||
</StackPanel>
|
||
<StackPanel Grid.Row="4" Grid.ColumnSpan="3">
|
||
<TextBlock Text="Поверитель:"/>
|
||
<ComboBox
|
||
Margin="0,5,0,5"
|
||
VerticalAlignment="Center"
|
||
DisplayMemberPath="Person"
|
||
ItemsSource="{Binding AllPersonals}"
|
||
SelectedItem="{Binding CurrentPersonal, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
||
</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 Number,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
|
||
</DockPanel>
|
||
<TextBlock Text="Дата извещения:"/>
|
||
<DatePicker
|
||
Margin="0,5,0,5"
|
||
VerticalAlignment="Center"
|
||
SelectedDate="{Binding DocDate, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
||
</StackPanel>
|
||
</Grid>
|
||
</UserControl>
|