diff --git a/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp.sln b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp.sln new file mode 100644 index 0000000..ee4a683 --- /dev/null +++ b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp.sln @@ -0,0 +1,16 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AvaloniaPostgresApp", "AvaloniaPostgresApp\AvaloniaPostgresApp.csproj", "{FC69417A-C0A1-4100-ABAF-95B4B507A889}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {FC69417A-C0A1-4100-ABAF-95B4B507A889}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FC69417A-C0A1-4100-ABAF-95B4B507A889}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FC69417A-C0A1-4100-ABAF-95B4B507A889}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FC69417A-C0A1-4100-ABAF-95B4B507A889}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/App.axaml b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/App.axaml new file mode 100644 index 0000000..33aa5d4 --- /dev/null +++ b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/App.axaml @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/App.axaml.cs b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/App.axaml.cs new file mode 100644 index 0000000..1099622 --- /dev/null +++ b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/App.axaml.cs @@ -0,0 +1,23 @@ +using Avalonia; +using Avalonia.Controls.ApplicationLifetimes; +using Avalonia.Markup.Xaml; + +namespace AvaloniaPostgresApp; + +public partial class App : Application +{ + public override void Initialize() + { + AvaloniaXamlLoader.Load(this); + } + + public override void OnFrameworkInitializationCompleted() + { + if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) + { + desktop.MainWindow = new MainWindow(); + } + + base.OnFrameworkInitializationCompleted(); + } +} \ No newline at end of file diff --git a/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/AvaloniaPostgresApp.csproj b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/AvaloniaPostgresApp.csproj new file mode 100644 index 0000000..c4f57af --- /dev/null +++ b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/AvaloniaPostgresApp.csproj @@ -0,0 +1,24 @@ + + + WinExe + net10.0 + enable + app.manifest + + + + + + + + + None + All + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + + diff --git a/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/MainWindow.axaml b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/MainWindow.axaml new file mode 100644 index 0000000..bd0b3e9 --- /dev/null +++ b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/MainWindow.axaml @@ -0,0 +1,9 @@ + + Welcome to Avalonia! + diff --git a/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/MainWindow.axaml.cs b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/MainWindow.axaml.cs new file mode 100644 index 0000000..86604d5 --- /dev/null +++ b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/MainWindow.axaml.cs @@ -0,0 +1,11 @@ +using Avalonia.Controls; + +namespace AvaloniaPostgresApp; + +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/Program.cs b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/Program.cs new file mode 100644 index 0000000..9f4baa6 --- /dev/null +++ b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/Program.cs @@ -0,0 +1,24 @@ +using Avalonia; +using System; + +namespace AvaloniaPostgresApp; + +class Program +{ + // Initialization code. Don't use any Avalonia, third-party APIs or any + // SynchronizationContext-reliant code before AppMain is called: things aren't initialized + // yet and stuff might break. + [STAThread] + public static void Main(string[] args) => BuildAvaloniaApp() + .StartWithClassicDesktopLifetime(args); + + // Avalonia configuration, don't remove; also used by visual designer. + public static AppBuilder BuildAvaloniaApp() + => AppBuilder.Configure() + .UsePlatformDetect() +#if DEBUG + .WithDeveloperTools() +#endif + .WithInterFont() + .LogToTrace(); +} \ No newline at end of file diff --git a/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/app.manifest b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/app.manifest new file mode 100644 index 0000000..bc768e7 --- /dev/null +++ b/Modul3/AvaloniaPostgresApp/AvaloniaPostgresApp/app.manifest @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + diff --git a/Модуль 1/import/Tovar.xlsx b/Модуль 1/import/Tovar.xlsx index 7493ae1..7862b59 100644 Binary files a/Модуль 1/import/Tovar.xlsx and b/Модуль 1/import/Tovar.xlsx differ diff --git a/Модуль 1/import/id_tovar.xlsx b/Модуль 1/import/brand_tovar.xlsx similarity index 63% rename from Модуль 1/import/id_tovar.xlsx rename to Модуль 1/import/brand_tovar.xlsx index 470e736..d14b81b 100644 Binary files a/Модуль 1/import/id_tovar.xlsx and b/Модуль 1/import/brand_tovar.xlsx differ diff --git a/Модуль 1/import/kategory_tovar.xlsx b/Модуль 1/import/kategory_tovar.xlsx new file mode 100644 index 0000000..9a660a5 Binary files /dev/null and b/Модуль 1/import/kategory_tovar.xlsx differ diff --git a/Модуль 1/import/name_tovar.xlsx b/Модуль 1/import/name_tovar.xlsx new file mode 100644 index 0000000..d4babc4 Binary files /dev/null and b/Модуль 1/import/name_tovar.xlsx differ diff --git a/Модуль 1/import/role_import.xlsx b/Модуль 1/import/role_user_import.xlsx similarity index 100% rename from Модуль 1/import/role_import.xlsx rename to Модуль 1/import/role_user_import.xlsx diff --git a/Модуль 1/import/supplier_tovar.xlsx b/Модуль 1/import/supplier_tovar.xlsx new file mode 100644 index 0000000..473098d Binary files /dev/null and b/Модуль 1/import/supplier_tovar.xlsx differ diff --git a/Модуль 1/import/~$Tovar.xlsx b/Модуль 1/import/~$user_import.xlsx similarity index 100% rename from Модуль 1/import/~$Tovar.xlsx rename to Модуль 1/import/~$user_import.xlsx diff --git a/Модуль 1/import/код базы.txt b/Модуль 1/import/код базы.txt new file mode 100644 index 0000000..7995fa3 --- /dev/null +++ b/Модуль 1/import/код базы.txt @@ -0,0 +1,46 @@ +create table brand_tovar ( +brand_tovar_id INTEGER generated always as identity primary key, +brand_name VARCHAR(200) not null +); + +create table kategory_tovar ( +kategory_tovar_id integer generated always as identity primary key, +kategory_name varchar(200) not null +); + +create table name_tovar ( +name_tovar_id integer generated ALWAYS as identity primary key, +name_tovar varchar(200) not null +); + +create table supplier_tovar ( +suplier_tovar_id integer generated always as identity primary key, +suplier_tovar varchar(200) not null +); + +create table tovar ( +articul integer generated always as identity primary key, +name_tovar_id integer not null references name_tovar(name_tovar_id), +unit varchar(100) not null, +price numeric(10) not null, +suplier_tovar_id integer not null references supplier_tovar(suplier_tovar_id), +brand_tovar_id integer not null references brand_tovar (brand_tovar_id), +kategory_tovar_id integer not null references kategory_tovar (kategory_tovar_id), +discount integer, +quantity_in_stock integer, +discription_tovar varchar(200), +photo TEXT +); + +create table role_import ( +role_import_id integer generated always as identity primary key, +role_employer varchar(100) not null +); + +create table user_import ( +user_import_id integer generated always as identity primary key, +name_user varchar(200) not null, +login varchar(200) not null unique, +password varchar(255) not null, +role_import_id integer not null references role_import (role_import_id) +); \ No newline at end of file diff --git a/Модуль 2/~$ил_3_ОЗ_КОД 09.02.07-2-2026-М2.docx b/Модуль 2/~$ил_3_ОЗ_КОД 09.02.07-2-2026-М2.docx new file mode 100644 index 0000000..6a39cd0 Binary files /dev/null and b/Модуль 2/~$ил_3_ОЗ_КОД 09.02.07-2-2026-М2.docx differ