To Be Continued
parent
780c9aad7c
commit
211c219a7b
|
|
@ -7,6 +7,7 @@
|
|||
<entry key="AvaloniaApplication14_Inventory_300326/Views/EmployeeEditingWindow.axaml" value="AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326.csproj" />
|
||||
<entry key="AvaloniaApplication14_Inventory_300326/Views/EquipmentEditingWindow.axaml" value="AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326.csproj" />
|
||||
<entry key="AvaloniaApplication14_Inventory_300326/Views/MainWindow.axaml" value="AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326.csproj" />
|
||||
<entry key="AvaloniaApplication14_Inventory_300326/Views/PositionEditingWindow.axaml" value="AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326.csproj" />
|
||||
</map>
|
||||
</option>
|
||||
</component>
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ sealed class Program
|
|||
service.AddTransient<EmployeeRepository>();
|
||||
service.AddTransient<EquipmentRepository>();
|
||||
service.AddTransient<PositionRepository>();
|
||||
service.AddTransient<EquipmentEditingWindow>();
|
||||
|
||||
}).Build();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,12 @@
|
|||
using AvaloniaApplication14_Inventory_300326.Views;
|
||||
|
||||
namespace AvaloniaApplication14_Inventory_300326.ViewModels;
|
||||
|
||||
public class EquipmentEditingWindowViewModel : ViewModelBase
|
||||
{
|
||||
|
||||
private EquipmentEditingWindow _currentWindow;
|
||||
public void SetWindow(EquipmentEditingWindow window)
|
||||
{
|
||||
_currentWindow = window;
|
||||
}
|
||||
}
|
||||
|
|
@ -5,5 +5,41 @@
|
|||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||
x:Class="AvaloniaApplication14_Inventory_300326.Views.EquipmentEditingWindow"
|
||||
Title="EquipmentEditingWindow">
|
||||
<StackPanel HorizontalAlignment="Center">
|
||||
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label Content="Инвентарный номер: "></Label>
|
||||
<TextBox></TextBox>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label Content="Название: "></Label>
|
||||
<TextBox></TextBox>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label Content="Дата приобретения: "></Label>
|
||||
<DatePicker></DatePicker>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label Content="Цена: "></Label>
|
||||
<TextBox></TextBox>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label Content="Списано ли: "></Label>
|
||||
<TextBox></TextBox>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label Content="Текущий ответственный: "></Label>
|
||||
<ComboBox></ComboBox>
|
||||
</StackPanel>
|
||||
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button x:Name="OkButton"></Button>
|
||||
<Button Content="Отменить"></Button>
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Window>
|
||||
|
|
|
|||
|
|
@ -1,13 +1,16 @@
|
|||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using AvaloniaApplication14_Inventory_300326.ViewModels;
|
||||
|
||||
namespace AvaloniaApplication14_Inventory_300326.Views;
|
||||
|
||||
public partial class EquipmentEditingWindow : Window
|
||||
{
|
||||
public EquipmentEditingWindow()
|
||||
public EquipmentEditingWindow(EquipmentEditingWindowViewModel viewModel)
|
||||
{
|
||||
DataContext = viewModel;
|
||||
InitializeComponent();
|
||||
viewModel.SetWindow(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -13,7 +13,7 @@ using System.Reflection;
|
|||
[assembly: System.Reflection.AssemblyCompanyAttribute("AvaloniaApplication14_Inventory_300326")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+cbf2b3c1d343b3e775109533b3de5382ddf0d55c")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+780c9aad7c6af2565938cf22ec4549263f45beda")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("AvaloniaApplication14_Inventory_300326")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("AvaloniaApplication14_Inventory_300326")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
579358abf2419881fdf5be6d074ce09167d36f918fb2742d80f5fe41cf044223
|
||||
beec506b9d2b5f03e2d47924c1154535ad2de3f1cf50518116adabdbdcfd24be
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
bf4cf4167d1af19dcdd79f28d74d6e280f089043cf069c74a3cde874464ff374
|
||||
806493d39e5a14b7d6db72aa25a7c7887da7ba0828275029c2fe7758240bdf47
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue