To Be Continued
parent
aeb0013a06
commit
70111810c1
|
|
@ -25,6 +25,7 @@
|
|||
</PackageReference>
|
||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.1"/>
|
||||
<PackageReference Include="FreeSpire.XLS" Version="14.2.0" />
|
||||
<PackageReference Include="MessageBox.Avalonia" Version="3.3.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.5" />
|
||||
<PackageReference Include="MySqlConnector" Version="2.5.0" />
|
||||
</ItemGroup>
|
||||
|
|
|
|||
|
|
@ -70,7 +70,21 @@ public class EmployeeRepository : BaseRepository<Employee>, IDisposable
|
|||
|
||||
public override bool Delete(int id)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
string sql = "DELETE FROM `Employees` WHERE Id = @Id";
|
||||
try
|
||||
{
|
||||
using (var mc = new MySqlCommand(sql, connection))
|
||||
{
|
||||
mc.Parameters.AddWithValue("@Id", id);
|
||||
mc.ExecuteNonQuery();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine(e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Update(Employee item)
|
||||
|
|
@ -110,6 +124,7 @@ public class EmployeeRepository : BaseRepository<Employee>, IDisposable
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
base.Dispose();
|
||||
|
|
|
|||
|
|
@ -80,6 +80,41 @@ public class EquipmentRepository : BaseRepository<Equipment>, IDisposable
|
|||
}
|
||||
}
|
||||
|
||||
public List<Equipment> DoesEmployeeHaveEquipments(int EmployeeId)
|
||||
{
|
||||
List<Equipment> result = new List<Equipment>();
|
||||
string sql = "select * from `Equipment` where CurrentEmployeeId=@CurrentEmployeeId";
|
||||
try
|
||||
{
|
||||
using (var mc = new MySqlCommand(sql, connection))
|
||||
{
|
||||
mc.Parameters.AddWithValue("@CurrentEmployeeId", EmployeeId);
|
||||
using (var reader = mc.ExecuteReader())
|
||||
{
|
||||
while (reader.Read())
|
||||
{
|
||||
Equipment item = new Equipment()
|
||||
{
|
||||
Id = reader.GetInt32("Id"),
|
||||
Name = reader.GetString("Name"),
|
||||
InvNumber = reader.GetString("InvNumber"),
|
||||
Date = reader.GetDateOnly("PurchaseDate"),
|
||||
Cost = reader.GetDecimal("Cost"),
|
||||
IsWrittenOff = reader.GetBoolean("IsWrittenOff"),
|
||||
CurrentEmployeeId = reader.GetInt32("CurrentEmployeeId")
|
||||
};
|
||||
result.Add(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine(e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
public override bool Add(Equipment item)
|
||||
{
|
||||
string sql = "INSERT INTO TechInventory.Equipment (InvNumber, Name, PurchaseDate, Cost, IsWrittenOff, CurrentEmployeeId) VALUES(@InvNum, @Name, @Date, @Cost, @IsWrittenOff, @CurrentEmployeeId)";
|
||||
|
|
|
|||
|
|
@ -63,17 +63,60 @@ public class PositionRepository : BaseRepository<Position>, IDisposable
|
|||
|
||||
public override bool Delete(int id)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
string sql = "DELETE FROM Positions WHERE Id = @Id";
|
||||
try
|
||||
{
|
||||
using (var mc = new MySqlCommand(sql, connection))
|
||||
{
|
||||
mc.Parameters.AddWithValue("@Id", id);
|
||||
mc.ExecuteNonQuery();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine(e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Update(Position item)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
string sql = "UPDATE Positions SET Name = @Name WHERE Id = @Id";
|
||||
try
|
||||
{
|
||||
using (var mc = new MySqlCommand(sql, connection))
|
||||
{
|
||||
mc.Parameters.AddWithValue("@Name", item.Name);
|
||||
mc.Parameters.AddWithValue("@Id", item.Id);
|
||||
mc.ExecuteNonQuery();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine(e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Add(Position item)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
string sql = "INSERT INTO Positions (Name) VALUES (@Name)";
|
||||
try
|
||||
{
|
||||
using (var mc = new MySqlCommand(sql, connection))
|
||||
{
|
||||
mc.Parameters.AddWithValue("@Name", item.Name);
|
||||
mc.ExecuteNonQuery();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine(e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
|
|
|||
|
|
@ -2,5 +2,10 @@ namespace AvaloniaApplication14_Inventory_300326.Models.Models;
|
|||
|
||||
public class Position : DBObj
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Name { get; set; } = "";
|
||||
|
||||
public bool IsNew()
|
||||
{
|
||||
return Name == "";
|
||||
}
|
||||
}
|
||||
|
|
@ -1,11 +1,18 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Avalonia.Controls;
|
||||
using AvaloniaApplication14_Inventory_300326.Models.DataBase;
|
||||
using AvaloniaApplication14_Inventory_300326.Models.Models;
|
||||
using AvaloniaApplication14_Inventory_300326.Views;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using MsBox.Avalonia;
|
||||
using MsBox.Avalonia.Enums;
|
||||
using Tmds.DBus.Protocol;
|
||||
|
||||
namespace AvaloniaApplication14_Inventory_300326.ViewModels;
|
||||
|
||||
|
|
@ -16,7 +23,7 @@ public partial class EmployeeEditingWindowViewModel : ViewModelBase
|
|||
private bool _isEditing;
|
||||
private Employee _employee;
|
||||
|
||||
[ObservableProperty] private string _name;
|
||||
[ObservableProperty] private string _fullName;
|
||||
[ObservableProperty] private ObservableCollection<Position> _positions;
|
||||
[ObservableProperty] private Position _selectedPosition;
|
||||
|
||||
|
|
@ -27,23 +34,60 @@ public partial class EmployeeEditingWindowViewModel : ViewModelBase
|
|||
}
|
||||
|
||||
[RelayCommand]
|
||||
private void Confirm()
|
||||
private async Task Fire()
|
||||
{
|
||||
_employee.FullName = Name;
|
||||
_employee.PositionId = SelectedPosition.Id;
|
||||
using (var repo = _serviceProvider.GetService<EmployeeRepository>())
|
||||
List<Equipment> temp = null;
|
||||
using (var repo = _serviceProvider.GetService<EquipmentRepository>())
|
||||
{
|
||||
if (_isEditing)
|
||||
temp = repo.DoesEmployeeHaveEquipments(_employee.Id);
|
||||
}
|
||||
|
||||
if (temp != null)
|
||||
{
|
||||
if (temp.Count > 0)
|
||||
{
|
||||
repo.Update(_employee);
|
||||
}
|
||||
else
|
||||
{
|
||||
repo.Add(_employee);
|
||||
string errorMessage = "За выбранным сотрудником числится следующие вещи: \n";
|
||||
foreach (var item in temp)
|
||||
{
|
||||
errorMessage += $"{item.Name} \n";
|
||||
}
|
||||
var win = MessageBoxManager.GetMessageBoxStandard("Ошибка", errorMessage, ButtonEnum.Ok, Icon.Error);
|
||||
await win.ShowWindowDialogAsync(_currentWindow);
|
||||
}
|
||||
}
|
||||
_currentWindow.Close();
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private async Task Confirm()
|
||||
{
|
||||
bool allow = true;
|
||||
if (string.IsNullOrEmpty(FullName))
|
||||
{
|
||||
var win = MessageBoxManager.GetMessageBoxStandard("Ошибка", "Имя работника пустое", ButtonEnum.Ok,
|
||||
Icon.Error, null, WindowStartupLocation.CenterOwner);
|
||||
await win.ShowWindowDialogAsync(_currentWindow);
|
||||
allow = false;
|
||||
}
|
||||
|
||||
if (allow)
|
||||
{
|
||||
_employee.FullName = FullName;
|
||||
_employee.PositionId = SelectedPosition.Id;
|
||||
using (var repo = _serviceProvider.GetService<EmployeeRepository>())
|
||||
{
|
||||
if (_isEditing)
|
||||
{
|
||||
repo.Update(_employee);
|
||||
}
|
||||
else
|
||||
{
|
||||
repo.Add(_employee);
|
||||
}
|
||||
}
|
||||
_currentWindow.Close();
|
||||
}
|
||||
}
|
||||
|
||||
public EmployeeEditingWindowViewModel(IServiceProvider serviceProvider, Employee employee)
|
||||
{
|
||||
_isEditing=!employee.IsNew();
|
||||
|
|
@ -53,11 +97,14 @@ public partial class EmployeeEditingWindowViewModel : ViewModelBase
|
|||
{
|
||||
Positions = new ObservableCollection<Position>(repo.GetAll());
|
||||
}
|
||||
|
||||
Name = employee.FullName;
|
||||
|
||||
if (_isEditing)
|
||||
{
|
||||
FullName = employee.FullName;
|
||||
SelectedPosition = Positions.FirstOrDefault(p => p.Id == employee.PositionId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void SetScreen(EmployeeEditingWindow window)
|
||||
{
|
||||
_currentWindow = window;
|
||||
|
|
|
|||
|
|
@ -1,13 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Data;
|
||||
using Avalonia.Input;
|
||||
using Avalonia.LogicalTree;
|
||||
using AvaloniaApplication14_Inventory_300326.Models.DataBase;
|
||||
using AvaloniaApplication14_Inventory_300326.Models.Factories;
|
||||
using AvaloniaApplication14_Inventory_300326.Models.Factoryes;
|
||||
|
|
@ -16,6 +10,9 @@ using AvaloniaApplication14_Inventory_300326.Views;
|
|||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using MsBox.Avalonia;
|
||||
using MsBox.Avalonia.Dto;
|
||||
using MsBox.Avalonia.Enums;
|
||||
|
||||
namespace AvaloniaApplication14_Inventory_300326.ViewModels;
|
||||
|
||||
|
|
@ -33,6 +30,30 @@ public partial class MainWindowViewModel : ViewModelBase
|
|||
[ObservableProperty] private EmployeeVisual _selectedEmployeeVisual;
|
||||
[ObservableProperty] private Position _selectedPosition;
|
||||
|
||||
[RelayCommand]
|
||||
private async Task Fire()
|
||||
{
|
||||
List<Equipment> temp = null;
|
||||
using (var repo = _serviceProvider.GetService<EquipmentRepository>())
|
||||
{
|
||||
temp = repo.DoesEmployeeHaveEquipments(SelectedEmployeeVisual.Id);
|
||||
}
|
||||
|
||||
if (temp != null)
|
||||
{
|
||||
if (temp.Count > 0)
|
||||
{
|
||||
string errorMessage = "За выбранным сотрудником числится следующие вещи: \n";
|
||||
foreach (var item in temp)
|
||||
{
|
||||
errorMessage += $"{item.Name} \n";
|
||||
}
|
||||
var win = MessageBoxManager.GetMessageBoxStandard("Ошибка", errorMessage, ButtonEnum.Ok, Icon.Error);
|
||||
await win.ShowWindowDialogAsync(_currentWindow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[RelayCommand]
|
||||
private async Task AddEntity()
|
||||
|
|
@ -186,9 +207,13 @@ public partial class MainWindowViewModel : ViewModelBase
|
|||
GetEmployees();
|
||||
}
|
||||
|
||||
private void DoubleTappedPositionDataGrid()
|
||||
private async Task DoubleTappedPositionDataGrid()
|
||||
{
|
||||
|
||||
var PositionVm = ActivatorUtilities.CreateInstance<PositionEditingWindowViewModel>(_serviceProvider, SelectedPosition);
|
||||
var win = ActivatorUtilities.CreateInstance<PositionEditingWindow>(_serviceProvider, PositionVm);
|
||||
await win.ShowDialog(_currentWindow);
|
||||
ShowPositions();
|
||||
GetPositions();
|
||||
}
|
||||
|
||||
public List<EquipmentVisual> ConvertListEqToEqVis(List<Equipment> equipments)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,43 @@
|
|||
using System;
|
||||
using AvaloniaApplication14_Inventory_300326.Models.Models;
|
||||
using AvaloniaApplication14_Inventory_300326.Views;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
|
||||
namespace AvaloniaApplication14_Inventory_300326.ViewModels;
|
||||
|
||||
public class PositionEditingWindowViewModel : ViewModelBase
|
||||
public partial class PositionEditingWindowViewModel : ViewModelBase
|
||||
{
|
||||
private IServiceProvider _serviceProvider;
|
||||
private bool _isEditing;
|
||||
private PositionEditingWindow _currentWindow;
|
||||
|
||||
[ObservableProperty] private string _positionName;
|
||||
|
||||
[RelayCommand]
|
||||
private void Cancel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
private void Confirm()
|
||||
{
|
||||
|
||||
}
|
||||
public PositionEditingWindowViewModel(IServiceProvider serviceProvider, Position position)
|
||||
{
|
||||
_serviceProvider = serviceProvider;
|
||||
_isEditing = !position.IsNew();
|
||||
if (_isEditing)
|
||||
{
|
||||
PositionName = position.Name;
|
||||
}
|
||||
}
|
||||
|
||||
public void SetWindow(PositionEditingWindow window)
|
||||
{
|
||||
_currentWindow = window;
|
||||
_currentWindow.ConfirmButton.Content = _isEditing ? "Изменить" : "Добавить";
|
||||
}
|
||||
}
|
||||
|
|
@ -11,24 +11,24 @@
|
|||
WindowStartupLocation="CenterOwner">
|
||||
|
||||
<StackPanel>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label Content="Фамилия Имя отчество: "></Label>
|
||||
<TextBox Watermark="ФИО" Text="{Binding Name}"></TextBox>
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label Content="Должность: "></Label>
|
||||
<ComboBox ItemsSource="{Binding Positions}" SelectedItem="{Binding SelectedPosition}">
|
||||
<Grid RowDefinitions="Auto Auto *" ColumnDefinitions="Auto * *">
|
||||
|
||||
<Label Grid.Row="0" Grid.Column="0" Content="Фамилия Имя отчество: "></Label>
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Watermark="ФИО" Text="{Binding FullName}" MinWidth="100"></TextBox>
|
||||
|
||||
<Label Grid.Row="1" Grid.Column="0" Content="Должность: "></Label>
|
||||
<ComboBox Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" ItemsSource="{Binding Positions}" SelectedItem="{Binding SelectedPosition}">
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Label Content="{Binding Name}"></Label>
|
||||
</DataTemplate>
|
||||
</ComboBox.ItemTemplate>
|
||||
</ComboBox>
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Button x:Name="ConfirmButton" Command="{Binding ConfirmCommand}"></Button>
|
||||
<Button Content="Назад" Command="{Binding CancelCommand}"></Button>
|
||||
</StackPanel>
|
||||
|
||||
<Button Grid.Row="2" Grid.Column="0" x:Name="ConfirmButton" Command="{Binding ConfirmCommand}" VerticalAlignment="Bottom"></Button>
|
||||
<Button Grid.Row="2" Grid.Column="1" Content="Назад" Command="{Binding CancelCommand}" VerticalAlignment="Bottom"></Button>
|
||||
<Button Grid.Row="2" Grid.Column="2" Content="Уволить" Command="{Binding FireCommand}" VerticalAlignment="Bottom"></Button>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
|
||||
</Window>
|
||||
|
|
|
|||
|
|
@ -36,11 +36,16 @@
|
|||
</ScrollViewer>
|
||||
|
||||
<ScrollViewer Grid.Row="1" x:Name="ScrollViewerDataGridEmpl">
|
||||
<DataGrid x:Name="DataGridEmployees" ItemsSource="{Binding Employees}" IsReadOnly="True">
|
||||
<DataGrid x:Name="DataGridEmployees" ItemsSource="{Binding Employees}" SelectedItem="{Binding SelectedEmployeeVisual}" IsReadOnly="True">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="ФИО" Binding="{Binding FullName}"></DataGridTextColumn>
|
||||
<DataGridTextColumn Header="Должность" Binding="{Binding Position.Name}"></DataGridTextColumn>
|
||||
</DataGrid.Columns>
|
||||
<DataGrid.ContextMenu>
|
||||
<ContextMenu>
|
||||
<Button Content="Уволить" Command="{Binding FireCommand}"></Button>
|
||||
</ContextMenu>
|
||||
</DataGrid.ContextMenu>
|
||||
</DataGrid>
|
||||
</ScrollViewer>
|
||||
|
||||
|
|
|
|||
|
|
@ -2,8 +2,17 @@
|
|||
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.PositionEditingWindow"
|
||||
x:DataType="vm:PositionEditingWindowViewModel"
|
||||
Title="PositionEditingWindow">
|
||||
|
||||
<Grid RowDefinitions="* *" ColumnDefinitions="* *">
|
||||
<Label Content="Название должности: "></Label>
|
||||
<TextBox Grid.Row="0" Grid.Column="1"></TextBox>
|
||||
<Button Grid.Row="1" Grid.Column="0" x:Name="ConfirmButton" Command="{Binding ConfirmCommand}"></Button>
|
||||
<Button Grid.Row="1" Grid.Column="1" Command="{Binding CancelCommand}"></Button>
|
||||
</Grid>
|
||||
|
||||
</Window>
|
||||
|
|
|
|||
|
|
@ -76,6 +76,10 @@
|
|||
"target": "Package",
|
||||
"version": "[14.2.0, )"
|
||||
},
|
||||
"MessageBox.Avalonia": {
|
||||
"target": "Package",
|
||||
"version": "[3.3.1.1, )"
|
||||
},
|
||||
"Microsoft.Extensions.Hosting": {
|
||||
"target": "Package",
|
||||
"version": "[10.0.5, )"
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<Import Project="$(NuGetPackageRoot)skiasharp.nativeassets.webassembly/2.88.9/buildTransitive/netstandard1.0/SkiaSharp.NativeAssets.WebAssembly.props" Condition="Exists('$(NuGetPackageRoot)skiasharp.nativeassets.webassembly/2.88.9/buildTransitive/netstandard1.0/SkiaSharp.NativeAssets.WebAssembly.props')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets/10.0.5/buildTransitive/net8.0/Microsoft.Extensions.Configuration.UserSecrets.props" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets/10.0.5/buildTransitive/net8.0/Microsoft.Extensions.Configuration.UserSecrets.props')" />
|
||||
<Import Project="$(NuGetPackageRoot)harfbuzzsharp.nativeassets.webassembly/8.3.1.1/buildTransitive/netstandard1.0/HarfBuzzSharp.NativeAssets.WebAssembly.props" Condition="Exists('$(NuGetPackageRoot)harfbuzzsharp.nativeassets.webassembly/8.3.1.1/buildTransitive/netstandard1.0/HarfBuzzSharp.NativeAssets.WebAssembly.props')" />
|
||||
<Import Project="$(NuGetPackageRoot)avalonia/11.3.4/buildTransitive/Avalonia.props" Condition="Exists('$(NuGetPackageRoot)avalonia/11.3.4/buildTransitive/Avalonia.props')" />
|
||||
<Import Project="$(NuGetPackageRoot)harfbuzzsharp.nativeassets.webassembly/8.3.1.1/buildTransitive/netstandard1.0/HarfBuzzSharp.NativeAssets.WebAssembly.props" Condition="Exists('$(NuGetPackageRoot)harfbuzzsharp.nativeassets.webassembly/8.3.1.1/buildTransitive/netstandard1.0/HarfBuzzSharp.NativeAssets.WebAssembly.props')" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<PkgAvalonia_BuildServices Condition=" '$(PkgAvalonia_BuildServices)' == '' ">/home/student/.nuget/packages/avalonia.buildservices/0.0.31</PkgAvalonia_BuildServices>
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@
|
|||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.options/10.0.5/buildTransitive/net8.0/Microsoft.Extensions.Options.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.options/10.0.5/buildTransitive/net8.0/Microsoft.Extensions.Options.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.binder/10.0.5/buildTransitive/netstandard2.0/Microsoft.Extensions.Configuration.Binder.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.binder/10.0.5/buildTransitive/netstandard2.0/Microsoft.Extensions.Configuration.Binder.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets/10.0.5/buildTransitive/net8.0/Microsoft.Extensions.Configuration.UserSecrets.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets/10.0.5/buildTransitive/net8.0/Microsoft.Extensions.Configuration.UserSecrets.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)harfbuzzsharp.nativeassets.webassembly/8.3.1.1/buildTransitive/netstandard1.0/HarfBuzzSharp.NativeAssets.WebAssembly.targets" Condition="Exists('$(NuGetPackageRoot)harfbuzzsharp.nativeassets.webassembly/8.3.1.1/buildTransitive/netstandard1.0/HarfBuzzSharp.NativeAssets.WebAssembly.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)communitytoolkit.mvvm/8.2.1/buildTransitive/netstandard2.1/CommunityToolkit.Mvvm.targets" Condition="Exists('$(NuGetPackageRoot)communitytoolkit.mvvm/8.2.1/buildTransitive/netstandard2.1/CommunityToolkit.Mvvm.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)avalonia.buildservices/0.0.31/buildTransitive/Avalonia.BuildServices.targets" Condition="Exists('$(NuGetPackageRoot)avalonia.buildservices/0.0.31/buildTransitive/Avalonia.BuildServices.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)avalonia/11.3.4/buildTransitive/Avalonia.targets" Condition="Exists('$(NuGetPackageRoot)avalonia/11.3.4/buildTransitive/Avalonia.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)harfbuzzsharp.nativeassets.webassembly/8.3.1.1/buildTransitive/netstandard1.0/HarfBuzzSharp.NativeAssets.WebAssembly.targets" Condition="Exists('$(NuGetPackageRoot)harfbuzzsharp.nativeassets.webassembly/8.3.1.1/buildTransitive/netstandard1.0/HarfBuzzSharp.NativeAssets.WebAssembly.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)communitytoolkit.mvvm/8.2.1/buildTransitive/netstandard2.1/CommunityToolkit.Mvvm.targets" Condition="Exists('$(NuGetPackageRoot)communitytoolkit.mvvm/8.2.1/buildTransitive/netstandard2.1/CommunityToolkit.Mvvm.targets')" />
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
|
|
@ -24,6 +24,7 @@
|
|||
/home/student/.nuget/packages/avalonia.win32/11.3.4/lib/net8.0/Avalonia.Win32.dll
|
||||
/home/student/.nuget/packages/avalonia.x11/11.3.4/lib/net8.0/Avalonia.X11.dll
|
||||
/home/student/.nuget/packages/communitytoolkit.mvvm/8.2.1/lib/net6.0/CommunityToolkit.Mvvm.dll
|
||||
/home/student/.nuget/packages/dialoghost.avalonia/0.8.1/lib/netstandard2.0/DialogHost.Avalonia.dll
|
||||
/home/student/.nuget/packages/harfbuzzsharp/8.3.1.1/lib/net8.0/HarfBuzzSharp.dll
|
||||
/home/student/.nuget/packages/microcom.runtime/0.11.0/lib/net5.0/MicroCom.Runtime.dll
|
||||
/home/student/.dotnet/packs/Microsoft.NETCore.App.Ref/9.0.13/ref/net9.0/Microsoft.CSharp.dll
|
||||
|
|
@ -58,6 +59,7 @@
|
|||
/home/student/.dotnet/packs/Microsoft.NETCore.App.Ref/9.0.13/ref/net9.0/Microsoft.VisualBasic.dll
|
||||
/home/student/.dotnet/packs/Microsoft.NETCore.App.Ref/9.0.13/ref/net9.0/Microsoft.Win32.Primitives.dll
|
||||
/home/student/.dotnet/packs/Microsoft.NETCore.App.Ref/9.0.13/ref/net9.0/Microsoft.Win32.Registry.dll
|
||||
/home/student/.nuget/packages/messagebox.avalonia/3.3.1.1/lib/netstandard2.0/MsBox.Avalonia.dll
|
||||
/home/student/.dotnet/packs/Microsoft.NETCore.App.Ref/9.0.13/ref/net9.0/mscorlib.dll
|
||||
/home/student/.nuget/packages/mysqlconnector/2.5.0/lib/net9.0/MySqlConnector.dll
|
||||
/home/student/.dotnet/packs/Microsoft.NETCore.App.Ref/9.0.13/ref/net9.0/netstandard.dll
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -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+147ed9b1e85ec232bec24cd3ec30a7c4c274fb3a")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+aeb0013a062acd378099c740807360d515c81abe")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("AvaloniaApplication14_Inventory_300326")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("AvaloniaApplication14_Inventory_300326")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
8a899368f07641840a01d1306cc38ae23bb799c2cc2003defe76e2e5a69b0e4b
|
||||
202b4e7895223083a77909f91fbe1a27b39e500114519106f4377d3e9113ba9a
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
5bc4c528ec3f534aa8ca0cf3a075bf3146165660900677036c54b6cf77df99d8
|
||||
40dcb0cffdab5c0643c31952ff7fdad779ded408c005a8c22e32baa5f4058328
|
||||
|
|
|
|||
|
|
@ -116,3 +116,5 @@
|
|||
/home/student/RiderProjects/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326/obj/Debug/net9.0/AvaloniaApplication14_Inventory_300326.genruntimeconfig.cache
|
||||
/home/student/RiderProjects/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326/obj/Debug/net9.0/ref/AvaloniaApplication14_Inventory_300326.dll
|
||||
/home/student/RiderProjects/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326/bin/Debug/net9.0/Avalonia.Controls.DataGrid.dll
|
||||
/home/student/RiderProjects/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326/bin/Debug/net9.0/DialogHost.Avalonia.dll
|
||||
/home/student/RiderProjects/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326/bin/Debug/net9.0/MsBox.Avalonia.dll
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -357,6 +357,22 @@
|
|||
"buildTransitive/netstandard2.1/CommunityToolkit.Mvvm.targets": {}
|
||||
}
|
||||
},
|
||||
"DialogHost.Avalonia/0.8.1": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Avalonia": "11.1.0"
|
||||
},
|
||||
"compile": {
|
||||
"lib/netstandard2.0/DialogHost.Avalonia.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/DialogHost.Avalonia.dll": {
|
||||
"related": ".xml"
|
||||
}
|
||||
}
|
||||
},
|
||||
"FreeSpire.XLS/14.2.0": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
|
|
@ -502,6 +518,19 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"MessageBox.Avalonia/3.3.1.1": {
|
||||
"type": "package",
|
||||
"dependencies": {
|
||||
"Avalonia": "11.1.5",
|
||||
"DialogHost.Avalonia": "0.8.1"
|
||||
},
|
||||
"compile": {
|
||||
"lib/netstandard2.0/MsBox.Avalonia.dll": {}
|
||||
},
|
||||
"runtime": {
|
||||
"lib/netstandard2.0/MsBox.Avalonia.dll": {}
|
||||
}
|
||||
},
|
||||
"MicroCom.Runtime/0.11.0": {
|
||||
"type": "package",
|
||||
"compile": {
|
||||
|
|
@ -1975,6 +2004,21 @@
|
|||
"lib/netstandard2.1/CommunityToolkit.Mvvm.xml"
|
||||
]
|
||||
},
|
||||
"DialogHost.Avalonia/0.8.1": {
|
||||
"sha512": "RLBOMqjJPgSmwe0i1pzX3Q7Pn0i4xE/E1b774krd4VyEkaorz1AYMdYQHyIfuhtQv5NntZyS0MuQbxJl/PhzBg==",
|
||||
"type": "package",
|
||||
"path": "dialoghost.avalonia/0.8.1",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"README.md",
|
||||
"dialoghost.avalonia.0.8.1.nupkg.sha512",
|
||||
"dialoghost.avalonia.nuspec",
|
||||
"icon.png",
|
||||
"lib/netstandard2.0/DialogHost.Avalonia.dll",
|
||||
"lib/netstandard2.0/DialogHost.Avalonia.xml"
|
||||
]
|
||||
},
|
||||
"FreeSpire.XLS/14.2.0": {
|
||||
"sha512": "hh27gKg+nRO2QM8ZB+P0T7UL54SWbk45Z/1i5vHetYqxQMUI4JxpCxTVtADxwMgIVU0oLExUTBn1+GO8bWaSaA==",
|
||||
"type": "package",
|
||||
|
|
@ -2149,6 +2193,19 @@
|
|||
"runtimes/win-x86/native/libHarfBuzzSharp.dll"
|
||||
]
|
||||
},
|
||||
"MessageBox.Avalonia/3.3.1.1": {
|
||||
"sha512": "a0NocLvE0ipg0REevrMtilNI+ud+tFTJW7YrPtploeM93ew8S3Y6hEybqZ7W9q5Yqa9u+xOrOjAlG1lTihWhnQ==",
|
||||
"type": "package",
|
||||
"path": "messagebox.avalonia/3.3.1.1",
|
||||
"files": [
|
||||
".nupkg.metadata",
|
||||
".signature.p7s",
|
||||
"icon.jpg",
|
||||
"lib/netstandard2.0/MsBox.Avalonia.dll",
|
||||
"messagebox.avalonia.3.3.1.1.nupkg.sha512",
|
||||
"messagebox.avalonia.nuspec"
|
||||
]
|
||||
},
|
||||
"MicroCom.Runtime/0.11.0": {
|
||||
"sha512": "MEnrZ3UIiH40hjzMDsxrTyi8dtqB5ziv3iBeeU4bXsL/7NLSal9F1lZKpK+tfBRnUoDSdtcW3KufE4yhATOMCA==",
|
||||
"type": "package",
|
||||
|
|
@ -3835,6 +3892,7 @@
|
|||
"Avalonia.Themes.Fluent >= 11.3.4",
|
||||
"CommunityToolkit.Mvvm >= 8.2.1",
|
||||
"FreeSpire.XLS >= 14.2.0",
|
||||
"MessageBox.Avalonia >= 3.3.1.1",
|
||||
"Microsoft.Extensions.Hosting >= 10.0.5",
|
||||
"MySqlConnector >= 2.5.0"
|
||||
]
|
||||
|
|
@ -3914,6 +3972,10 @@
|
|||
"target": "Package",
|
||||
"version": "[14.2.0, )"
|
||||
},
|
||||
"MessageBox.Avalonia": {
|
||||
"target": "Package",
|
||||
"version": "[3.3.1.1, )"
|
||||
},
|
||||
"Microsoft.Extensions.Hosting": {
|
||||
"target": "Package",
|
||||
"version": "[10.0.5, )"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "5/jarL7CRng=",
|
||||
"dgSpecHash": "tf6TrHiISRE=",
|
||||
"success": true,
|
||||
"projectFilePath": "/home/student/RiderProjects/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326.csproj",
|
||||
"expectedPackageFiles": [
|
||||
|
|
@ -21,12 +21,14 @@
|
|||
"/home/student/.nuget/packages/avalonia.win32/11.3.4/avalonia.win32.11.3.4.nupkg.sha512",
|
||||
"/home/student/.nuget/packages/avalonia.x11/11.3.4/avalonia.x11.11.3.4.nupkg.sha512",
|
||||
"/home/student/.nuget/packages/communitytoolkit.mvvm/8.2.1/communitytoolkit.mvvm.8.2.1.nupkg.sha512",
|
||||
"/home/student/.nuget/packages/dialoghost.avalonia/0.8.1/dialoghost.avalonia.0.8.1.nupkg.sha512",
|
||||
"/home/student/.nuget/packages/freespire.xls/14.2.0/freespire.xls.14.2.0.nupkg.sha512",
|
||||
"/home/student/.nuget/packages/harfbuzzsharp/8.3.1.1/harfbuzzsharp.8.3.1.1.nupkg.sha512",
|
||||
"/home/student/.nuget/packages/harfbuzzsharp.nativeassets.linux/8.3.1.1/harfbuzzsharp.nativeassets.linux.8.3.1.1.nupkg.sha512",
|
||||
"/home/student/.nuget/packages/harfbuzzsharp.nativeassets.macos/8.3.1.1/harfbuzzsharp.nativeassets.macos.8.3.1.1.nupkg.sha512",
|
||||
"/home/student/.nuget/packages/harfbuzzsharp.nativeassets.webassembly/8.3.1.1/harfbuzzsharp.nativeassets.webassembly.8.3.1.1.nupkg.sha512",
|
||||
"/home/student/.nuget/packages/harfbuzzsharp.nativeassets.win32/8.3.1.1/harfbuzzsharp.nativeassets.win32.8.3.1.1.nupkg.sha512",
|
||||
"/home/student/.nuget/packages/messagebox.avalonia/3.3.1.1/messagebox.avalonia.3.3.1.1.nupkg.sha512",
|
||||
"/home/student/.nuget/packages/microcom.runtime/0.11.0/microcom.runtime.0.11.0.nupkg.sha512",
|
||||
"/home/student/.nuget/packages/microsoft.extensions.configuration/10.0.5/microsoft.extensions.configuration.10.0.5.nupkg.sha512",
|
||||
"/home/student/.nuget/packages/microsoft.extensions.configuration.abstractions/10.0.5/microsoft.extensions.configuration.abstractions.10.0.5.nupkg.sha512",
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
"restore":{"projectUniqueName":"/home/student/RiderProjects/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326.csproj","projectName":"AvaloniaApplication14_Inventory_300326","projectPath":"/home/student/RiderProjects/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326.csproj","outputPath":"/home/student/RiderProjects/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net9.0"],"sources":{"http://192.168.200.81:8081/repository/nuget.org-proxy/index.json":{}},"frameworks":{"net9.0":{"targetAlias":"net9.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]},"restoreAuditProperties":{"enableAudit":"true","auditLevel":"low","auditMode":"direct"},"SdkAnalysisLevel":"9.0.300"}"frameworks":{"net9.0":{"targetAlias":"net9.0","dependencies":{"Avalonia":{"target":"Package","version":"[11.3.4, )"},"Avalonia.Controls.DataGrid":{"target":"Package","version":"[11.3.4, )"},"Avalonia.Desktop":{"target":"Package","version":"[11.3.4, )"},"Avalonia.Diagnostics":{"target":"Package","version":"[11.3.4, )"},"Avalonia.Fonts.Inter":{"target":"Package","version":"[11.3.4, )"},"Avalonia.Themes.Fluent":{"target":"Package","version":"[11.3.4, )"},"CommunityToolkit.Mvvm":{"target":"Package","version":"[8.2.1, )"},"FreeSpire.XLS":{"target":"Package","version":"[14.2.0, )"},"Microsoft.Extensions.Hosting":{"target":"Package","version":"[10.0.5, )"},"MySqlConnector":{"target":"Package","version":"[2.5.0, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/home/student/.dotnet/sdk/9.0.311/PortableRuntimeIdentifierGraph.json"}}
|
||||
"restore":{"projectUniqueName":"/home/student/RiderProjects/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326.csproj","projectName":"AvaloniaApplication14_Inventory_300326","projectPath":"/home/student/RiderProjects/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326.csproj","outputPath":"/home/student/RiderProjects/AvaloniaApplication14_Inventory_300326/AvaloniaApplication14_Inventory_300326/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net9.0"],"sources":{"http://192.168.200.81:8081/repository/nuget.org-proxy/index.json":{}},"frameworks":{"net9.0":{"targetAlias":"net9.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]},"restoreAuditProperties":{"enableAudit":"true","auditLevel":"low","auditMode":"direct"},"SdkAnalysisLevel":"9.0.300"}"frameworks":{"net9.0":{"targetAlias":"net9.0","dependencies":{"Avalonia":{"target":"Package","version":"[11.3.4, )"},"Avalonia.Controls.DataGrid":{"target":"Package","version":"[11.3.4, )"},"Avalonia.Desktop":{"target":"Package","version":"[11.3.4, )"},"Avalonia.Diagnostics":{"target":"Package","version":"[11.3.4, )"},"Avalonia.Fonts.Inter":{"target":"Package","version":"[11.3.4, )"},"Avalonia.Themes.Fluent":{"target":"Package","version":"[11.3.4, )"},"CommunityToolkit.Mvvm":{"target":"Package","version":"[8.2.1, )"},"FreeSpire.XLS":{"target":"Package","version":"[14.2.0, )"},"MessageBox.Avalonia":{"target":"Package","version":"[3.3.1.1, )"},"Microsoft.Extensions.Hosting":{"target":"Package","version":"[10.0.5, )"},"MySqlConnector":{"target":"Package","version":"[2.5.0, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/home/student/.dotnet/sdk/9.0.311/PortableRuntimeIdentifierGraph.json"}}
|
||||
|
|
@ -1 +1 @@
|
|||
17751742412854983
|
||||
17763047588415830
|
||||
|
|
@ -1 +1 @@
|
|||
17751742412854983
|
||||
17763047593305837
|
||||
Loading…
Reference in New Issue