new_order_without_OrderService;pdf

This commit is contained in:
Your Name 2025-03-02 16:05:35 +03:00
parent 9425badd58
commit a8277c9d7e
37 changed files with 734 additions and 19 deletions

View File

@ -5,8 +5,27 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="dmeo040225.NewOrder"
Title="NewOrder">
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Background="Gray" Height="30">
<Button Content="Назад" Click="Back_OnClick" Width="120" Background="LightGray" Foreground="Black" HorizontalAlignment="Left" DockPanel.Dock="Left"/>
<TextBlock x:Name="TimerText" Foreground="White" Margin="10,5,0,0" HorizontalAlignment="Center"/>
</StackPanel>
<Border Background="Bisque">
<DockPanel>
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Background="Gray" Height="30">
<Button Content="Назад" Click="Back_OnClick" Width="120" Background="LightGray" Foreground="Black" HorizontalAlignment="Left" DockPanel.Dock="Left"/>
<TextBlock x:Name="TimerText" Foreground="White" Margin="10,5,0,0" HorizontalAlignment="Center"/>
</StackPanel>
<StackPanel Spacing="5" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="ID заказа:"/>
<TextBox x:Name="OrderIdTextBox" IsReadOnly="True"/>
<TextBlock Text="Время проката в минутах:"/>
<TextBox x:Name="PeriodTextBox"/>
<TextBlock Text="Выберите клиента:"/>
<ComboBox x:Name="OrderClientComboBox"/>
<TextBlock Text="Выберите услуги:"/>
<ListBox x:Name="OrderServicesListBox" SelectionMode="Multiple"/>
<Button Content="Сформировать заказ" Click="CreateOrderButton_OnClick"/>
</StackPanel>
</DockPanel>
</Border>
</Window>

View File

@ -1,15 +1,36 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Avalonia.Controls;
using Avalonia.Interactivity;
using System.IO;
using ZXing;
using ZXing.Common;
using PdfSharpCore.Drawing;
using PdfSharpCore.Pdf;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using dmeo040225.Models;
using dmeo040225.Services;
namespace dmeo040225;
public partial class NewOrder : Window
{
public List<string> OrderServicesList { get; }
public List<string> OrderClientsList { get; }
public NewOrder()
{
InitializeComponent();
LoadOrderId();
using var context = new DatabaseContext();
OrderClientsList = context.Users.Select(it => it.Fio).ToList();
OrderClientComboBox.ItemsSource = OrderClientsList;
OrderServicesList = context.Services.Select(it => it.Name).ToList();
OrderServicesListBox.ItemsSource = OrderServicesList;
// Подключаемся к обновлениям таймера
TimerService.Instance.TimeUpdated += UpdateTimerText;
@ -39,4 +60,126 @@ public partial class NewOrder : Window
TimerService.Instance.TimerExpired -= LogoutUser;
base.OnClosed(e);
}
private void LoadOrderId()
{
using var context = new DatabaseContext();
var maxId = context.Orders.Any() ? context.Orders.Max(order => order.Id) : 0;
var newOrderId = maxId + 1;
OrderIdTextBox.Text = newOrderId.ToString();
}
private void CreateOrderButton_OnClick(object? sender, RoutedEventArgs e)
{
using var context = new DatabaseContext();
var maxId = context.Orders.Any() ? context.Orders.Max(order => order.Id) : 0;
var newOrderId = maxId + 1;
var newCodeOrder = $"{newOrderId}/{DateTime.Now:dd.MM.yyyy}";
var newPeriod = int.TryParse(PeriodTextBox.Text, out int period) ? period : 0;
var selectedClientFio = OrderClientComboBox.SelectedItem as string;
if (string.IsNullOrEmpty(selectedClientFio))
{
Console.WriteLine("Выберите клиента!");
return;
}
var client = context.Users.FirstOrDefault(it => it.Fio == selectedClientFio);
if (client == null)
{
Console.WriteLine("Ошибка: клиент не найден!");
return;
}
var selectedServices = OrderServicesListBox.SelectedItems.Cast<string>().ToList();
if (selectedServices.Count == 0)
{
Console.WriteLine("Выберите хотя бы одну услугу!");
return;
}
var services = context.Services.Where(s => selectedServices.Contains(s.Name)).ToList();
var newOrder = new Order
{
Id = newOrderId,
Code = newCodeOrder,
Orderdata = DateTime.Now,
Ordertime = TimeOnly.FromDateTime(DateTime.Now),
UserId = client.Id,
Status = "Открыт",
Prokattime = newPeriod
};
context.Orders.Add(newOrder);
context.SaveChanges();
// foreach (var service in services)
// {
// var orderService = new OrdersService
// {
// OrderId = newOrder.Id,
// ServiceId = service.Id
// };
// context.OrdersServices.Add(orderService);
// }
context.SaveChanges();
LoadOrderId();
Console.WriteLine("Заказ создан");
GenerateBarcodeAndSavePdf(newOrderId, DateTime.Now, newPeriod);
}
public void GenerateBarcodeAndSavePdf(int orderId, DateTime orderDate, int rentalPeriod)
{
var random = new Random();
string uniqueCode = string.Concat(Enumerable.Range(0, 6).Select(_ => random.Next(0, 10)));
string barcodeData = $"{orderId}{orderDate:ddMMyy}{rentalPeriod}{uniqueCode}";
var writer = new BarcodeWriterPixelData
{
Format = BarcodeFormat.CODE_128,
Options = new EncodingOptions
{
Height = 229,
Width = 350,
Margin = 0
}
};
var pixelData = writer.Write(barcodeData);
using var image = new Image<Rgba32>(pixelData.Width, pixelData.Height);
image.Mutate(ctx =>
{
for (int y = 0; y < pixelData.Height; y++)
{
for (int x = 0; x < pixelData.Width; x++)
{
byte value = pixelData.Pixels[(y * pixelData.Width + x) * 4];
image[x, y] = new Rgba32(value, value, value, 255);
}
}
});
using var ms = new MemoryStream();
image.SaveAsPng(ms);
ms.Position = 0;
using var document = new PdfDocument();
var page = document.AddPage();
var gfx = XGraphics.FromPdfPage(page);
using var img = XImage.FromStream(() => new MemoryStream(ms.ToArray()));
gfx.DrawImage(img, 10, 10, 150, 50);
gfx.DrawString(barcodeData, new XFont("Arial", 10), XBrushes.Black, new XPoint(10, 70));
string filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), $"Order_{orderId}.pdf");
document.Save(filePath);
Console.WriteLine($"PDF сохранен: {filePath}");
}
}

23
NewOrderWindow.axaml Normal file
View File

@ -0,0 +1,23 @@
<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"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="dmeo040225.NewOrderWindow"
Title="NewOrderWindow">
<StackPanel Spacing="5" VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock Text="ID заказа:"/>
<TextBox x:Name="OrderIdTextBox" IsReadOnly="True"/>
<TextBlock Text="Время проката в минутах:"/>
<TextBox x:Name="PeriodTextBox"/>
<TextBlock Text="Выберите клиента:"/>
<ComboBox x:Name="OrderClientComboBox"/>
<TextBlock Text="Выберите услуги:"/>
<ListBox x:Name="OrderServicesListBox" SelectionMode="Multiple"/>
<Button Content="Сформировать заказ" Click="CreateOrderButton_OnClick"/>
</StackPanel>
</Window>

158
NewOrderWindow.axaml.cs Normal file
View File

@ -0,0 +1,158 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Avalonia.Controls;
using Avalonia.Interactivity;
using ZXing;
using ZXing.Common;
using PdfSharpCore.Drawing;
using PdfSharpCore.Pdf;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using dmeo040225.Models;
using dmeo040225.Models;
namespace dmeo040225;
public partial class NewOrderWindow : Window
{
public List<string> OrderServicesList { get; }
public List<string> OrderClientsList { get; }
public NewOrderWindow()
{
InitializeComponent();
LoadOrderId();
using var context = new DatabaseContext();
OrderClientsList = context.Users.Select(it => it.Fio).ToList();
OrderClientComboBox.ItemsSource = OrderClientsList;
OrderServicesList = context.Services.Select(it => it.Name).ToList();
OrderServicesListBox.ItemsSource = OrderServicesList;
}
private void LoadOrderId()
{
using var context = new DatabaseContext();
var maxId = context.Orders.Any() ? context.Orders.Max(order => order.Id) : 0;
var newOrderId = maxId + 1;
OrderIdTextBox.Text = newOrderId.ToString();
}
private void CreateOrderButton_OnClick(object? sender, RoutedEventArgs e)
{
using var context = new DatabaseContext();
var maxId = context.Orders.Any() ? context.Orders.Max(order => order.Id) : 0;
var newOrderId = maxId + 1;
var newCodeOrder = $"{newOrderId}/{DateTime.Now:dd.MM.yyyy}";
var newPeriod = int.TryParse(PeriodTextBox.Text, out int period) ? period : 0;
var selectedClientFio = OrderClientComboBox.SelectedItem as string;
if (string.IsNullOrEmpty(selectedClientFio))
{
Console.WriteLine("Выберите клиента!");
return;
}
var client = context.Users.FirstOrDefault(it => it.Fio == selectedClientFio);
if (client == null)
{
Console.WriteLine("Ошибка: клиент не найден!");
return;
}
var selectedServices = OrderServicesListBox.SelectedItems.Cast<string>().ToList();
if (selectedServices.Count == 0)
{
Console.WriteLine("Выберите хотя бы одну услугу!");
return;
}
var services = context.Services.Where(s => selectedServices.Contains(s.Name)).ToList();
var newOrder = new Order
{
Id = newOrderId,
Code = newCodeOrder,
Orderdata = DateTime.Now,
Ordertime = TimeOnly.FromDateTime(DateTime.Now),
UserId = client.Id,
Status = "Открыт",
Prokattime = newPeriod
};
context.Orders.Add(newOrder);
context.SaveChanges();
foreach (var service in services)
{
var orderService = new OrdersService
{
OrderId = newOrder.Id,
ServiceId = service.Id
};
context.OrdersServices.Add(orderService);
}
context.SaveChanges();
LoadOrderId();
Console.WriteLine("Заказ создан");
GenerateBarcodeAndSavePdf(newOrderId, DateTime.Now, newPeriod);
}
public void GenerateBarcodeAndSavePdf(int orderId, DateTime orderDate, int rentalPeriod)
{
var random = new Random();
string uniqueCode = string.Concat(Enumerable.Range(0, 6).Select(_ => random.Next(0, 10)));
string barcodeData = $"{orderId}{orderDate:ddMMyy}{rentalPeriod}{uniqueCode}";
var writer = new BarcodeWriterPixelData
{
Format = BarcodeFormat.CODE_128,
Options = new EncodingOptions
{
Height = 229,
Width = 350,
Margin = 0
}
};
var pixelData = writer.Write(barcodeData);
using var image = new Image<Rgba32>(pixelData.Width, pixelData.Height);
image.Mutate(ctx =>
{
for (int y = 0; y < pixelData.Height; y++)
{
for (int x = 0; x < pixelData.Width; x++)
{
byte value = pixelData.Pixels[(y * pixelData.Width + x) * 4];
image[x, y] = new Rgba32(value, value, value, 255);
}
}
});
using var ms = new MemoryStream();
image.SaveAsPng(ms);
ms.Position = 0;
using var document = new PdfDocument();
var page = document.AddPage();
var gfx = XGraphics.FromPdfPage(page);
using var img = XImage.FromStream(() => new MemoryStream(ms.ToArray()));
gfx.DrawImage(img, 10, 10, 150, 50);
gfx.DrawString(barcodeData, new XFont("Arial", 10), XBrushes.Black, new XPoint(10, 70));
string filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), $"Order_{orderId}.pdf");
document.Save(filePath);
Console.WriteLine($"PDF сохранен: {filePath}");
}
}

Binary file not shown.

BIN
bin/Debug/net8.0/PdfSharpCore.dll Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -15,7 +15,9 @@
"Avalonia.Themes.Fluent": "11.2.1",
"Microsoft.EntityFrameworkCore": "8.0.10",
"Microsoft.EntityFrameworkCore.Design": "8.0.10",
"Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.10"
"Npgsql.EntityFrameworkCore.PostgreSQL": "8.0.10",
"PdfSharpCore": "1.3.65",
"ZXing.Net": "0.16.10"
},
"runtime": {
"dmeo040225.dll": {}
@ -767,6 +769,48 @@
}
}
},
"PdfSharpCore/1.3.65": {
"dependencies": {
"SharpZipLib": "1.4.2",
"SixLabors.Fonts": "1.0.0-beta17",
"SixLabors.ImageSharp": "1.0.4"
},
"runtime": {
"lib/net8.0/PdfSharpCore.dll": {
"assemblyVersion": "1.3.65.0",
"fileVersion": "1.3.65.0"
}
},
"resources": {
"lib/net8.0/de/PdfSharpCore.resources.dll": {
"locale": "de"
}
}
},
"SharpZipLib/1.4.2": {
"runtime": {
"lib/net6.0/ICSharpCode.SharpZipLib.dll": {
"assemblyVersion": "1.4.2.13",
"fileVersion": "1.4.2.13"
}
}
},
"SixLabors.Fonts/1.0.0-beta17": {
"runtime": {
"lib/netcoreapp3.1/SixLabors.Fonts.dll": {
"assemblyVersion": "1.0.0.0",
"fileVersion": "1.0.0.0"
}
}
},
"SixLabors.ImageSharp/1.0.4": {
"runtime": {
"lib/netcoreapp3.1/SixLabors.ImageSharp.dll": {
"assemblyVersion": "1.0.0.0",
"fileVersion": "1.0.4.0"
}
}
},
"SkiaSharp/2.88.8": {
"dependencies": {
"SkiaSharp.NativeAssets.Win32": "2.88.8",
@ -938,6 +982,14 @@
"fileVersion": "0.20.0.0"
}
}
},
"ZXing.Net/0.16.10": {
"runtime": {
"lib/net8.0/zxing.dll": {
"assemblyVersion": "0.16.10.0",
"fileVersion": "0.16.10.0"
}
}
}
}
},
@ -1276,6 +1328,34 @@
"path": "npgsql.entityframeworkcore.postgresql/8.0.10",
"hashPath": "npgsql.entityframeworkcore.postgresql.8.0.10.nupkg.sha512"
},
"PdfSharpCore/1.3.65": {
"type": "package",
"serviceable": true,
"sha512": "sha512-mkN1EZ1VtH4+x97DEvmno5goRU3j4myuWD7IxO9MuxRcc1iOcUfhq75RmxZSAH9dQCZhpGpLUJSkwlRRnzElAg==",
"path": "pdfsharpcore/1.3.65",
"hashPath": "pdfsharpcore.1.3.65.nupkg.sha512"
},
"SharpZipLib/1.4.2": {
"type": "package",
"serviceable": true,
"sha512": "sha512-yjj+3zgz8zgXpiiC3ZdF/iyTBbz2fFvMxZFEBPUcwZjIvXOf37Ylm+K58hqMfIBt5JgU/Z2uoUS67JmTLe973A==",
"path": "sharpziplib/1.4.2",
"hashPath": "sharpziplib.1.4.2.nupkg.sha512"
},
"SixLabors.Fonts/1.0.0-beta17": {
"type": "package",
"serviceable": true,
"sha512": "sha512-qubgVovAoSR7vyv9tJ68gSzRIPWz7HBjTM9rwAaLjpcJ6T50arnX+GHAZcC0r2mVagyRMknCNda3DGoe8StUUQ==",
"path": "sixlabors.fonts/1.0.0-beta17",
"hashPath": "sixlabors.fonts.1.0.0-beta17.nupkg.sha512"
},
"SixLabors.ImageSharp/1.0.4": {
"type": "package",
"serviceable": true,
"sha512": "sha512-H2rPiEr2ddBOltOuqRYhpLBAsQXDAhbzMMhhuksnBG2oefup1MXMchALe7yYkKJksNbtxbZHKeM6dn/68I75qw==",
"path": "sixlabors.imagesharp/1.0.4",
"hashPath": "sixlabors.imagesharp.1.0.4.nupkg.sha512"
},
"SkiaSharp/2.88.8": {
"type": "package",
"serviceable": true,
@ -1408,6 +1488,13 @@
"sha512": "sha512-2gkt2kuYPhDKd8gtl34jZSJOnn4nRJfFngCDcTZT/uySbK++ua0YQx2418l9Rn1Y4dE5XNq6zG9ZsE5ltLlNNw==",
"path": "tmds.dbus.protocol/0.20.0",
"hashPath": "tmds.dbus.protocol.0.20.0.nupkg.sha512"
},
"ZXing.Net/0.16.10": {
"type": "package",
"serviceable": true,
"sha512": "sha512-9avtcn21T7Ndcl8PQ1LHR7/wEoCruX1QKKHvO6zBPTsDW9IdvR5vKOmd618AY+DtDWZz8NaFDTkpbZdgaF4l4w==",
"path": "zxing.net/0.16.10",
"hashPath": "zxing.net.0.16.10.nupkg.sha512"
}
}
}

Binary file not shown.

Binary file not shown.

BIN
bin/Debug/net8.0/zxing.dll Executable file

Binary file not shown.

View File

@ -9,10 +9,10 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="11.2.1"/>
<PackageReference Include="Avalonia.Desktop" Version="11.2.1"/>
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.2.1"/>
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.2.1"/>
<PackageReference Include="Avalonia" Version="11.2.1" />
<PackageReference Include="Avalonia.Desktop" Version="11.2.1" />
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.2.1" />
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.2.1" />
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
<PackageReference Include="Avalonia.Diagnostics" Version="11.2.1">
<IncludeAssets Condition="'$(Configuration)' != 'Debug'">None</IncludeAssets>
@ -24,5 +24,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.10" />
<PackageReference Include="PdfSharpCore" Version="1.3.65" />
<PackageReference Include="ZXing.Net" Version="0.16.10" />
</ItemGroup>
</Project>

View File

@ -1 +1 @@
9c5a83e323ce663250b73e7575c34163289414f249acdba51b22aba1084d01f2
dcee2ff9ab40261eababb0bda80a1213a097f630882dc250b9c305771c0c60e5

View File

@ -23,6 +23,7 @@
/Users/rinchi/.nuget/packages/avalonia.win32/11.2.1/lib/net8.0/Avalonia.Win32.dll
/Users/rinchi/.nuget/packages/avalonia.x11/11.2.1/lib/net8.0/Avalonia.X11.dll
/Users/rinchi/.nuget/packages/harfbuzzsharp/7.3.0.2/lib/net6.0/HarfBuzzSharp.dll
/Users/rinchi/.nuget/packages/sharpziplib/1.4.2/lib/net6.0/ICSharpCode.SharpZipLib.dll
/Users/rinchi/.nuget/packages/microcom.runtime/0.11.0/lib/net5.0/MicroCom.Runtime.dll
/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.8/ref/net8.0/Microsoft.CSharp.dll
/Users/rinchi/.nuget/packages/microsoft.entityframeworkcore.abstractions/8.0.10/lib/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll
@ -45,6 +46,9 @@
/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.8/ref/net8.0/netstandard.dll
/Users/rinchi/.nuget/packages/npgsql/8.0.5/lib/net8.0/Npgsql.dll
/Users/rinchi/.nuget/packages/npgsql.entityframeworkcore.postgresql/8.0.10/lib/net8.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll
/Users/rinchi/.nuget/packages/pdfsharpcore/1.3.65/lib/net8.0/PdfSharpCore.dll
/Users/rinchi/.nuget/packages/sixlabors.fonts/1.0.0-beta17/lib/netcoreapp3.1/SixLabors.Fonts.dll
/Users/rinchi/.nuget/packages/sixlabors.imagesharp/1.0.4/lib/netcoreapp3.1/SixLabors.ImageSharp.dll
/Users/rinchi/.nuget/packages/skiasharp/2.88.8/lib/net6.0/SkiaSharp.dll
/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.8/ref/net8.0/System.AppContext.dll
/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.8/ref/net8.0/System.Buffers.dll
@ -204,3 +208,4 @@
/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.8/ref/net8.0/System.Xml.XPath.XDocument.dll
/Users/rinchi/.nuget/packages/tmds.dbus.protocol/0.20.0/lib/net8.0/Tmds.DBus.Protocol.dll
/usr/local/share/dotnet/packs/Microsoft.NETCore.App.Ref/8.0.8/ref/net8.0/WindowsBase.dll
/Users/rinchi/.nuget/packages/zxing.net/0.16.10/lib/net8.0/zxing.dll

Binary file not shown.

View File

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("dmeo040225")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+24fcb4b4bdec7f65156773fbaab0680cea833382")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9425badd58264bf54d3df7b654468fb3dae859ad")]
[assembly: System.Reflection.AssemblyProductAttribute("dmeo040225")]
[assembly: System.Reflection.AssemblyTitleAttribute("dmeo040225")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
619dff8a150155e86bea2906fa1ba070e670274bf639e016b092abdd96b0f3a8
b11ea1593792717964ae904d80c98bb22d4fc3dfa03cb4c0d43a71cbebe1429f

View File

@ -40,6 +40,9 @@ build_metadata.AdditionalFiles.SourceItemGroup = AvaloniaXaml
[/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/NewOrder.axaml]
build_metadata.AdditionalFiles.SourceItemGroup = AvaloniaXaml
[/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/NewOrderWindow.axaml]
build_metadata.AdditionalFiles.SourceItemGroup = AvaloniaXaml
[/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/OlderWindow.axaml]
build_metadata.AdditionalFiles.SourceItemGroup = AvaloniaXaml

View File

@ -1 +1 @@
0b05098f3f71254ca45e1232f99c259a51d1496f0902c9f964f503e1b88344d5
8b5634db08a8828528f53df4df6209bd6d04c5d6962844fc6083067c58d2ad06

View File

@ -146,3 +146,9 @@
/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll
/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll
/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll
/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/bin/Debug/net8.0/PdfSharpCore.dll
/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/bin/Debug/net8.0/ICSharpCode.SharpZipLib.dll
/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/bin/Debug/net8.0/SixLabors.Fonts.dll
/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/bin/Debug/net8.0/SixLabors.ImageSharp.dll
/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/bin/Debug/net8.0/zxing.dll
/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/bin/Debug/net8.0/de/PdfSharpCore.resources.dll

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -76,6 +76,14 @@
"Npgsql.EntityFrameworkCore.PostgreSQL": {
"target": "Package",
"version": "[8.0.10, )"
},
"PdfSharpCore": {
"target": "Package",
"version": "[1.3.65, )"
},
"ZXing.Net": {
"target": "Package",
"version": "[0.16.10, )"
}
},
"imports": [

View File

@ -1035,6 +1035,64 @@
}
}
},
"PdfSharpCore/1.3.65": {
"type": "package",
"dependencies": {
"SharpZipLib": "1.4.2",
"SixLabors.Fonts": "1.0.0-beta17",
"SixLabors.ImageSharp": "1.0.4"
},
"compile": {
"lib/net8.0/PdfSharpCore.dll": {}
},
"runtime": {
"lib/net8.0/PdfSharpCore.dll": {}
},
"resource": {
"lib/net8.0/de/PdfSharpCore.resources.dll": {
"locale": "de"
}
}
},
"SharpZipLib/1.4.2": {
"type": "package",
"compile": {
"lib/net6.0/ICSharpCode.SharpZipLib.dll": {
"related": ".pdb;.xml"
}
},
"runtime": {
"lib/net6.0/ICSharpCode.SharpZipLib.dll": {
"related": ".pdb;.xml"
}
}
},
"SixLabors.Fonts/1.0.0-beta17": {
"type": "package",
"compile": {
"lib/netcoreapp3.1/SixLabors.Fonts.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/netcoreapp3.1/SixLabors.Fonts.dll": {
"related": ".xml"
}
}
},
"SixLabors.ImageSharp/1.0.4": {
"type": "package",
"compile": {
"lib/netcoreapp3.1/SixLabors.ImageSharp.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/netcoreapp3.1/SixLabors.ImageSharp.dll": {
"related": ".xml"
}
}
},
"SkiaSharp/2.88.8": {
"type": "package",
"dependencies": {
@ -1370,6 +1428,19 @@
"runtime": {
"lib/net8.0/Tmds.DBus.Protocol.dll": {}
}
},
"ZXing.Net/0.16.10": {
"type": "package",
"compile": {
"lib/net8.0/zxing.dll": {
"related": ".XML"
}
},
"runtime": {
"lib/net8.0/zxing.dll": {
"related": ".XML"
}
}
}
}
},
@ -2962,6 +3033,94 @@
"postgresql.png"
]
},
"PdfSharpCore/1.3.65": {
"sha512": "mkN1EZ1VtH4+x97DEvmno5goRU3j4myuWD7IxO9MuxRcc1iOcUfhq75RmxZSAH9dQCZhpGpLUJSkwlRRnzElAg==",
"type": "package",
"path": "pdfsharpcore/1.3.65",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE.md",
"README.md",
"lib/net5.0/PdfSharpCore.dll",
"lib/net5.0/de/PdfSharpCore.resources.dll",
"lib/net6.0/PdfSharpCore.dll",
"lib/net6.0/de/PdfSharpCore.resources.dll",
"lib/net7.0/PdfSharpCore.dll",
"lib/net7.0/de/PdfSharpCore.resources.dll",
"lib/net8.0/PdfSharpCore.dll",
"lib/net8.0/de/PdfSharpCore.resources.dll",
"lib/netcoreapp3.1/PdfSharpCore.dll",
"lib/netcoreapp3.1/de/PdfSharpCore.resources.dll",
"lib/netstandard2.0/PdfSharpCore.dll",
"lib/netstandard2.0/de/PdfSharpCore.resources.dll",
"pdfsharpcore.1.3.65.nupkg.sha512",
"pdfsharpcore.nuspec"
]
},
"SharpZipLib/1.4.2": {
"sha512": "yjj+3zgz8zgXpiiC3ZdF/iyTBbz2fFvMxZFEBPUcwZjIvXOf37Ylm+K58hqMfIBt5JgU/Z2uoUS67JmTLe973A==",
"type": "package",
"path": "sharpziplib/1.4.2",
"files": [
".nupkg.metadata",
".signature.p7s",
"images/sharpziplib-nuget-256x256.png",
"lib/net6.0/ICSharpCode.SharpZipLib.dll",
"lib/net6.0/ICSharpCode.SharpZipLib.pdb",
"lib/net6.0/ICSharpCode.SharpZipLib.xml",
"lib/netstandard2.0/ICSharpCode.SharpZipLib.dll",
"lib/netstandard2.0/ICSharpCode.SharpZipLib.pdb",
"lib/netstandard2.0/ICSharpCode.SharpZipLib.xml",
"lib/netstandard2.1/ICSharpCode.SharpZipLib.dll",
"lib/netstandard2.1/ICSharpCode.SharpZipLib.pdb",
"lib/netstandard2.1/ICSharpCode.SharpZipLib.xml",
"sharpziplib.1.4.2.nupkg.sha512",
"sharpziplib.nuspec"
]
},
"SixLabors.Fonts/1.0.0-beta17": {
"sha512": "qubgVovAoSR7vyv9tJ68gSzRIPWz7HBjTM9rwAaLjpcJ6T50arnX+GHAZcC0r2mVagyRMknCNda3DGoe8StUUQ==",
"type": "package",
"path": "sixlabors.fonts/1.0.0-beta17",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/netcoreapp3.1/SixLabors.Fonts.dll",
"lib/netcoreapp3.1/SixLabors.Fonts.xml",
"lib/netstandard2.0/SixLabors.Fonts.dll",
"lib/netstandard2.0/SixLabors.Fonts.xml",
"lib/netstandard2.1/SixLabors.Fonts.dll",
"lib/netstandard2.1/SixLabors.Fonts.xml",
"sixlabors.fonts.1.0.0-beta17.nupkg.sha512",
"sixlabors.fonts.128.png",
"sixlabors.fonts.nuspec"
]
},
"SixLabors.ImageSharp/1.0.4": {
"sha512": "H2rPiEr2ddBOltOuqRYhpLBAsQXDAhbzMMhhuksnBG2oefup1MXMchALe7yYkKJksNbtxbZHKeM6dn/68I75qw==",
"type": "package",
"path": "sixlabors.imagesharp/1.0.4",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net472/SixLabors.ImageSharp.dll",
"lib/net472/SixLabors.ImageSharp.xml",
"lib/netcoreapp2.1/SixLabors.ImageSharp.dll",
"lib/netcoreapp2.1/SixLabors.ImageSharp.xml",
"lib/netcoreapp3.1/SixLabors.ImageSharp.dll",
"lib/netcoreapp3.1/SixLabors.ImageSharp.xml",
"lib/netstandard1.3/SixLabors.ImageSharp.dll",
"lib/netstandard1.3/SixLabors.ImageSharp.xml",
"lib/netstandard2.0/SixLabors.ImageSharp.dll",
"lib/netstandard2.0/SixLabors.ImageSharp.xml",
"lib/netstandard2.1/SixLabors.ImageSharp.dll",
"lib/netstandard2.1/SixLabors.ImageSharp.xml",
"sixlabors.imagesharp.1.0.4.nupkg.sha512",
"sixlabors.imagesharp.128.png",
"sixlabors.imagesharp.nuspec"
]
},
"SkiaSharp/2.88.8": {
"sha512": "bRkp3uKp5ZI8gXYQT57uKwil1uobb2p8c69n7v5evlB/2JNcMAXVcw9DZAP5Ig3WSvgzGm2YSn27UVeOi05NlA==",
"type": "package",
@ -3469,6 +3628,93 @@
"tmds.dbus.protocol.0.20.0.nupkg.sha512",
"tmds.dbus.protocol.nuspec"
]
},
"ZXing.Net/0.16.10": {
"sha512": "9avtcn21T7Ndcl8PQ1LHR7/wEoCruX1QKKHvO6zBPTsDW9IdvR5vKOmd618AY+DtDWZz8NaFDTkpbZdgaF4l4w==",
"type": "package",
"path": "zxing.net/0.16.10",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/native/zxing.XML",
"lib/native/zxing.pri",
"lib/native/zxing.winmd",
"lib/net20-cf/zxing.ce2.0.dll",
"lib/net20-cf/zxing.ce2.0.xml",
"lib/net20/zxing.XML",
"lib/net20/zxing.dll",
"lib/net35-cf/zxing.ce3.5.dll",
"lib/net35-cf/zxing.ce3.5.xml",
"lib/net35/zxing.XML",
"lib/net35/zxing.dll",
"lib/net40/zxing.XML",
"lib/net40/zxing.dll",
"lib/net40/zxing.presentation.XML",
"lib/net40/zxing.presentation.dll",
"lib/net45/zxing.XML",
"lib/net45/zxing.dll",
"lib/net45/zxing.presentation.XML",
"lib/net45/zxing.presentation.dll",
"lib/net461/zxing.XML",
"lib/net461/zxing.dll",
"lib/net461/zxing.presentation.XML",
"lib/net461/zxing.presentation.dll",
"lib/net47/zxing.XML",
"lib/net47/zxing.dll",
"lib/net47/zxing.presentation.XML",
"lib/net47/zxing.presentation.dll",
"lib/net48/zxing.XML",
"lib/net48/zxing.dll",
"lib/net48/zxing.presentation.XML",
"lib/net48/zxing.presentation.dll",
"lib/net5.0/zxing.XML",
"lib/net5.0/zxing.dll",
"lib/net6.0/zxing.XML",
"lib/net6.0/zxing.dll",
"lib/net7.0/zxing.XML",
"lib/net7.0/zxing.dll",
"lib/net8.0/zxing.XML",
"lib/net8.0/zxing.dll",
"lib/net9.0/zxing.XML",
"lib/net9.0/zxing.dll",
"lib/netcoreapp3.0/zxing.dll",
"lib/netcoreapp3.0/zxing.xml",
"lib/netcoreapp3.1/zxing.dll",
"lib/netcoreapp3.1/zxing.xml",
"lib/netstandard1.0/zxing.dll",
"lib/netstandard1.0/zxing.xml",
"lib/netstandard1.1/zxing.dll",
"lib/netstandard1.1/zxing.xml",
"lib/netstandard1.3/zxing.dll",
"lib/netstandard1.3/zxing.xml",
"lib/netstandard2.0/zxing.dll",
"lib/netstandard2.0/zxing.xml",
"lib/netstandard2.1/zxing.dll",
"lib/netstandard2.1/zxing.xml",
"lib/portable-win+net40+sl4+sl5+wp7+wp71+wp8/zxing.portable.XML",
"lib/portable-win+net40+sl4+sl5+wp7+wp71+wp8/zxing.portable.dll",
"lib/sl3-wp/zxing.wp7.0.XML",
"lib/sl3-wp/zxing.wp7.0.dll",
"lib/sl4-wp71/zxing.wp7.1.XML",
"lib/sl4-wp71/zxing.wp7.1.dll",
"lib/sl4/zxing.sl4.XML",
"lib/sl4/zxing.sl4.dll",
"lib/sl5/zxing.sl5.XML",
"lib/sl5/zxing.sl5.dll",
"lib/uap10/zxing.dll",
"lib/uap10/zxing.pri",
"lib/uap10/zxing.xml",
"lib/windows8-managed/zxing.winrt.XML",
"lib/windows8-managed/zxing.winrt.dll",
"lib/windows8/zxing.XML",
"lib/windows8/zxing.pri",
"lib/windows8/zxing.winmd",
"lib/wp8/zxing.wp8.0.XML",
"lib/wp8/zxing.wp8.0.dll",
"logo.jpg",
"zxing.net.0.16.10.nupkg.sha512",
"zxing.net.nuspec"
]
}
},
"projectFileDependencyGroups": {
@ -3480,7 +3726,9 @@
"Avalonia.Themes.Fluent >= 11.2.1",
"Microsoft.EntityFrameworkCore >= 8.0.10",
"Microsoft.EntityFrameworkCore.Design >= 8.0.10",
"Npgsql.EntityFrameworkCore.PostgreSQL >= 8.0.10"
"Npgsql.EntityFrameworkCore.PostgreSQL >= 8.0.10",
"PdfSharpCore >= 1.3.65",
"ZXing.Net >= 0.16.10"
]
},
"packageFolders": {
@ -3558,6 +3806,14 @@
"Npgsql.EntityFrameworkCore.PostgreSQL": {
"target": "Package",
"version": "[8.0.10, )"
},
"PdfSharpCore": {
"target": "Package",
"version": "[1.3.65, )"
},
"ZXing.Net": {
"target": "Package",
"version": "[0.16.10, )"
}
},
"imports": [

View File

@ -1,6 +1,6 @@
{
"version": 2,
"dgSpecHash": "fZqrd+Lq+sc=",
"dgSpecHash": "yuNlRNOVNzo=",
"success": true,
"projectFilePath": "/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/dmeo040225.csproj",
"expectedPackageFiles": [
@ -51,6 +51,10 @@
"/Users/rinchi/.nuget/packages/mono.texttemplating/2.2.1/mono.texttemplating.2.2.1.nupkg.sha512",
"/Users/rinchi/.nuget/packages/npgsql/8.0.5/npgsql.8.0.5.nupkg.sha512",
"/Users/rinchi/.nuget/packages/npgsql.entityframeworkcore.postgresql/8.0.10/npgsql.entityframeworkcore.postgresql.8.0.10.nupkg.sha512",
"/Users/rinchi/.nuget/packages/pdfsharpcore/1.3.65/pdfsharpcore.1.3.65.nupkg.sha512",
"/Users/rinchi/.nuget/packages/sharpziplib/1.4.2/sharpziplib.1.4.2.nupkg.sha512",
"/Users/rinchi/.nuget/packages/sixlabors.fonts/1.0.0-beta17/sixlabors.fonts.1.0.0-beta17.nupkg.sha512",
"/Users/rinchi/.nuget/packages/sixlabors.imagesharp/1.0.4/sixlabors.imagesharp.1.0.4.nupkg.sha512",
"/Users/rinchi/.nuget/packages/skiasharp/2.88.8/skiasharp.2.88.8.nupkg.sha512",
"/Users/rinchi/.nuget/packages/skiasharp.nativeassets.linux/2.88.8/skiasharp.nativeassets.linux.2.88.8.nupkg.sha512",
"/Users/rinchi/.nuget/packages/skiasharp.nativeassets.macos/2.88.8/skiasharp.nativeassets.macos.2.88.8.nupkg.sha512",
@ -69,7 +73,8 @@
"/Users/rinchi/.nuget/packages/system.runtime.compilerservices.unsafe/6.0.0/system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512",
"/Users/rinchi/.nuget/packages/system.text.encoding.codepages/6.0.0/system.text.encoding.codepages.6.0.0.nupkg.sha512",
"/Users/rinchi/.nuget/packages/system.threading.channels/6.0.0/system.threading.channels.6.0.0.nupkg.sha512",
"/Users/rinchi/.nuget/packages/tmds.dbus.protocol/0.20.0/tmds.dbus.protocol.0.20.0.nupkg.sha512"
"/Users/rinchi/.nuget/packages/tmds.dbus.protocol/0.20.0/tmds.dbus.protocol.0.20.0.nupkg.sha512",
"/Users/rinchi/.nuget/packages/zxing.net/0.16.10/zxing.net.0.16.10.nupkg.sha512"
],
"logs": []
}

View File

@ -1 +1 @@
"restore":{"projectUniqueName":"/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/dmeo040225.csproj","projectName":"dmeo040225","projectPath":"/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/dmeo040225.csproj","outputPath":"/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net8.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net8.0":{"targetAlias":"net8.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]},"restoreAuditProperties":{"enableAudit":"true","auditLevel":"low","auditMode":"direct"}}"frameworks":{"net8.0":{"targetAlias":"net8.0","dependencies":{"Avalonia":{"target":"Package","version":"[11.2.1, )"},"Avalonia.Desktop":{"target":"Package","version":"[11.2.1, )"},"Avalonia.Diagnostics":{"target":"Package","version":"[11.2.1, )"},"Avalonia.Fonts.Inter":{"target":"Package","version":"[11.2.1, )"},"Avalonia.Themes.Fluent":{"target":"Package","version":"[11.2.1, )"},"Microsoft.EntityFrameworkCore":{"target":"Package","version":"[8.0.10, )"},"Microsoft.EntityFrameworkCore.Design":{"include":"Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive","suppressParent":"All","target":"Package","version":"[8.0.10, )"},"Npgsql.EntityFrameworkCore.PostgreSQL":{"target":"Package","version":"[8.0.10, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/local/share/dotnet/sdk/8.0.402/PortableRuntimeIdentifierGraph.json"}}
"restore":{"projectUniqueName":"/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/dmeo040225.csproj","projectName":"dmeo040225","projectPath":"/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/dmeo040225.csproj","outputPath":"/Users/rinchi/RiderProjects/dmeo040225/dmeo040225/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net8.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net8.0":{"targetAlias":"net8.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]},"restoreAuditProperties":{"enableAudit":"true","auditLevel":"low","auditMode":"direct"}}"frameworks":{"net8.0":{"targetAlias":"net8.0","dependencies":{"Avalonia":{"target":"Package","version":"[11.2.1, )"},"Avalonia.Desktop":{"target":"Package","version":"[11.2.1, )"},"Avalonia.Diagnostics":{"target":"Package","version":"[11.2.1, )"},"Avalonia.Fonts.Inter":{"target":"Package","version":"[11.2.1, )"},"Avalonia.Themes.Fluent":{"target":"Package","version":"[11.2.1, )"},"Microsoft.EntityFrameworkCore":{"target":"Package","version":"[8.0.10, )"},"Microsoft.EntityFrameworkCore.Design":{"include":"Runtime, Build, Native, ContentFiles, Analyzers, BuildTransitive","suppressParent":"All","target":"Package","version":"[8.0.10, )"},"Npgsql.EntityFrameworkCore.PostgreSQL":{"target":"Package","version":"[8.0.10, )"},"PdfSharpCore":{"target":"Package","version":"[1.3.65, )"},"ZXing.Net":{"target":"Package","version":"[0.16.10, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/local/share/dotnet/sdk/8.0.402/PortableRuntimeIdentifierGraph.json"}}

View File

@ -1 +1 @@
17386674969008260
17409191325846449

View File

@ -1 +1 @@
17386674969008260
17409191358158990