58 lines
2.9 KiB
XML
58 lines
2.9 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:vm="using:AvaloniaApplication14_Inventory_300326.ViewModels"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="AvaloniaApplication14_Inventory_300326.Views.EquipmentEditingWindow"
|
|
x:DataType="vm:EquipmentEditingWindowViewModel"
|
|
Title="EquipmentEditingWindow"
|
|
SizeToContent="WidthAndHeight"
|
|
WindowStartupLocation="CenterOwner">
|
|
<StackPanel HorizontalAlignment="Left">
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
<Label Content="Инвентарный номер: "></Label>
|
|
<TextBox Text="{Binding InvNumber}"></TextBox>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
<Label Content="Название: "></Label>
|
|
<TextBox Text="{Binding Name}"></TextBox>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
<Label Content="Дата приобретения: "></Label>
|
|
<DatePicker SelectedDate="{Binding Date}"></DatePicker>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
<Label Content="Цена: "></Label>
|
|
<TextBox Text="{Binding Cost}"></TextBox>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
<Label Content="Списано ли: "></Label>
|
|
<CheckBox x:Name="IsWrittenOffCheckBox" IsChecked="{Binding IsWrittenOff}"></CheckBox>
|
|
<Label x:Name="IsWrittenOffLabel" Content="{Binding IsWrittenOffString}"></Label>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal">
|
|
<Label Content="Текущий ответственный: "></Label>
|
|
<ComboBox x:Name="CurrentEmployeeBox" ItemsSource="{Binding Employees}" SelectedItem="{Binding CurrentEmployee}">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Label Content="{Binding FullName}"></Label>
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
<Label x:Name="CurrentEmployeeLabel" Content="{Binding CurrentEmployee.FullName}"></Label>
|
|
</StackPanel>
|
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
<Button x:Name="OkButton" Command="{Binding ConfrmCommand}"></Button>
|
|
<Button Content="Отменить" Command="{Binding CloseCommand}"></Button>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</Window>
|