generated from admin/template
start
This commit is contained in:
@@ -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
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<Application xmlns="https://github.com/avaloniaui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
x:Class="AvaloniaPostgresApp.App"
|
||||||
|
RequestedThemeVariant="Default">
|
||||||
|
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
|
||||||
|
|
||||||
|
<Application.Styles>
|
||||||
|
<FluentTheme />
|
||||||
|
</Application.Styles>
|
||||||
|
</Application>
|
||||||
@@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>WinExe</OutputType>
|
||||||
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Avalonia" Version="12.1.4" />
|
||||||
|
<PackageReference Include="Avalonia.Desktop" Version="12.1.4" />
|
||||||
|
<PackageReference Include="Avalonia.Themes.Fluent" Version="12.1.4" />
|
||||||
|
<PackageReference Include="Avalonia.Fonts.Inter" Version="12.1.4" />
|
||||||
|
<PackageReference Include="AvaloniaUI.DiagnosticsSupport" Version="2.2.3">
|
||||||
|
<IncludeAssets Condition="'$(Configuration)' != 'Debug'">None</IncludeAssets>
|
||||||
|
<PrivateAssets Condition="'$(Configuration)' != 'Debug'">All</PrivateAssets>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.*">
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
</PackageReference>
|
||||||
|
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.*" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<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="AvaloniaPostgresApp.MainWindow"
|
||||||
|
Title="AvaloniaPostgresApp">
|
||||||
|
Welcome to Avalonia!
|
||||||
|
</Window>
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
using Avalonia.Controls;
|
||||||
|
|
||||||
|
namespace AvaloniaPostgresApp;
|
||||||
|
|
||||||
|
public partial class MainWindow : Window
|
||||||
|
{
|
||||||
|
public MainWindow()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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<App>()
|
||||||
|
.UsePlatformDetect()
|
||||||
|
#if DEBUG
|
||||||
|
.WithDeveloperTools()
|
||||||
|
#endif
|
||||||
|
.WithInterFont()
|
||||||
|
.LogToTrace();
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<!-- This manifest is used on Windows only.
|
||||||
|
Don't remove it as it might cause problems with window transparency and embedded controls.
|
||||||
|
For more details visit https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests -->
|
||||||
|
<assemblyIdentity version="1.0.0.0" name="AvaloniaPostgresApp.Desktop"/>
|
||||||
|
|
||||||
|
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||||
|
<application>
|
||||||
|
<!-- A list of the Windows versions that this application has been tested on
|
||||||
|
and is designed to work with. Uncomment the appropriate elements
|
||||||
|
and Windows will automatically select the most compatible environment. -->
|
||||||
|
|
||||||
|
<!-- Windows 10 -->
|
||||||
|
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
|
||||||
|
</application>
|
||||||
|
</compatibility>
|
||||||
|
</assembly>
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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)
|
||||||
|
);
|
||||||
Binary file not shown.
Reference in New Issue
Block a user