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^zAgOd$Qz*lFSpXRFHRhyk~u1me9r}ovMMw}xFwJIB1r0*WvO&A`}
zlHG08^aKdiACDQy$Ay}7Wi^YD^o>GJ5t>qLbrr|i?!K1$pVTQGzy4q+1TaO$(ovhX
zR8#g&(wwt{iDdO;u5r~Cj@DMeADcP(r=~LxypIWCH|VxDptC+>)vkwnk6*{CpZt;0
z>r>E773uH3AwL-RMhguH@ss@v=!CraOe|&YSELx2p1#dk!*`?kM9}#ADJp8)Nczyk
zo(~iWwwo=&)!^Z6(ZmY0I_r3P3o@MB1R7AEOT$*{j?0&=1^AhK7%)(@!weecbiwV0
z9;_g7!s+uKnhsNoXWW$nJOOZie~j}
zpDKFj?*H11EuU9S5M7kLFt`JxBTCtip}2mW%?=k_?(|to{=WMcTyTFwcpzi
zJ-Kqr`U#W%OgLK0)o;83=hbeGs9^Tdp~>1{!aOp^N5O+YQmyR3bY7N3bVtM0PXol)wjH7(C45kZYIsHj3}AV89^$9?~Ifmv%UpAd}6EvRuc@8pyq
zOpUe-bn@WX#DNrWFv6`pYgl{5C!dEw>`l`c#OC0pctZzPs8sN^vu7>n%E@{IxCX(>
zT*4$DiDgPB(Qe$DsJlf5?x0Y@eDL83eoHvn6-pp+?GzwIK+4XMnd*D
zq~MsiUX(y%+nC=i8p3g#RJAwQUK#S>>Wn+e=r}(li)P~i!*njngB8oys<#G9yj{xx
zU`wzWHOydZ>`Y)%A0o4m1$K%_Az$=B{O~txVgyUdM^*tZz+KfeXe9L1A$VU=5U5IK_-l
zR#^ENCit=Le$l?XGlXLyF!`@f_hq)x options)
+ : base(options)
+ {
+ }
+
+
+
+ public virtual DbSet Cities { get; set; }
+
+ public virtual DbSet Clients { get; set; }
+
+ public virtual DbSet Dolzhnosts { get; set; }
+
+
+
+ public virtual DbSet Sotrudniks { get; set; }
+
+ public virtual DbSet StatusOrds { get; set; }
+
+
+
+ public virtual DbSet Tupes { get; set; }
+
+
+
+ public virtual DbSet Yslygis { get; set; }
+
+ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
+#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see https://go.microsoft.com/fwlink/?LinkId=723263.
+ => optionsBuilder.UseNpgsql("Host=localhost;Port=5432;Database=postgres;Username=postgres;Password=ffr404ffr");
+
+ protected override void OnModelCreating(ModelBuilder modelBuilder)
+ {
+
+
+ modelBuilder.Entity(entity =>
+ {
+ entity
+ .HasNoKey()
+ .ToTable("cities", "prielb");
+
+ entity.Property(e => e.CitiId)
+ .HasMaxLength(50)
+ .HasColumnName("Citi_id");
+ entity.Property(e => e.Id).HasColumnName("ID");
+ });
+
+ modelBuilder.Entity(entity =>
+ {
+ entity
+ .HasNoKey()
+ .ToTable("clients", "prielb");
+
+ entity.Property(e => e.ClientId).HasColumnName("Client_id");
+ entity.Property(e => e.EMail)
+ .HasMaxLength(50)
+ .HasColumnName("e-mail");
+ entity.Property(e => e.Index).HasColumnName("index");
+ entity.Property(e => e.NumberStreet).HasColumnName("Number_street");
+ entity.Property(e => e.Pasport).HasMaxLength(50);
+ entity.Property(e => e.Password)
+ .HasMaxLength(50)
+ .HasColumnName("password");
+ entity.Property(e => e.Street).HasMaxLength(50);
+ entity.Property(e => e.ДатаРождения)
+ .HasMaxLength(50)
+ .HasColumnName("Дата рождения");
+ entity.Property(e => e.Фио)
+ .HasMaxLength(50)
+ .HasColumnName("ФИО");
+ });
+
+ modelBuilder.Entity(entity =>
+ {
+ entity
+ .HasNoKey()
+ .ToTable("dolzhnost", "prielb");
+
+ entity.Property(e => e.DolzhnostId)
+ .HasMaxLength(50)
+ .HasColumnName("Dolzhnost_id");
+ entity.Property(e => e.Id).HasColumnName("ID");
+ });
+
+
+
+ modelBuilder.Entity(entity =>
+ {
+ entity
+ .HasNoKey()
+ .ToTable("sotrudnik", "prielb");
+
+ entity.Property(e => e.КодСотрудника)
+ .HasMaxLength(50)
+ .HasColumnName("Код сотрудника");
+ entity.Property(e => e.Логин)
+ .HasMaxLength(50)
+ .HasColumnName("Логин ");
+ entity.Property(e => e.Пароль).HasMaxLength(50);
+ entity.Property(e => e.ПоследнийВход)
+ .HasMaxLength(50)
+ .HasColumnName("Последний вход");
+ entity.Property(e => e.ТипВхода).HasColumnName("Тип входа");
+ entity.Property(e => e.Фио)
+ .HasMaxLength(50)
+ .HasColumnName("ФИО ");
+ });
+
+ modelBuilder.Entity(entity =>
+ {
+ entity
+ .HasNoKey()
+ .ToTable("status_ord", "prielb");
+
+ entity.Property(e => e.Id).HasColumnName("ID");
+ entity.Property(e => e.StatusId)
+ .HasMaxLength(50)
+ .HasColumnName("Status_id");
+ });
+
+
+
+ modelBuilder.Entity(entity =>
+ {
+ entity
+ .HasNoKey()
+ .ToTable("yslygi", "prielb");
+
+ entity.Property(e => e.Id).HasColumnName("ID");
+ entity.Property(e => e.КодУслуги)
+ .HasMaxLength(50)
+ .HasColumnName("Код услуги");
+ entity.Property(e => e.НаименованиеУслуги)
+ .HasMaxLength(50)
+ .HasColumnName("Наименование услуги");
+ entity.Property(e => e.СтоимостьРубЗаЧас).HasColumnName("Стоимость, руб. за час ");
+ });
+
+ OnModelCreatingPartial(modelBuilder);
+ }
+
+ partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
+}
diff --git a/demo-24.11/src/Prielb/Prielb/Models/City.cs b/demo-24.11/src/Prielb/Prielb/Models/City.cs
new file mode 100644
index 0000000..8dd0911
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/Models/City.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+
+namespace Prielb.Models;
+
+public partial class City
+{
+ public int? Id { get; set; }
+
+ public string? CitiId { get; set; }
+}
diff --git a/demo-24.11/src/Prielb/Prielb/Models/Client.cs b/demo-24.11/src/Prielb/Prielb/Models/Client.cs
new file mode 100644
index 0000000..a168574
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/Models/Client.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Collections.Generic;
+
+namespace Prielb.Models;
+
+public partial class Client
+{
+ public string? Фио { get; set; }
+
+ public int? ClientId { get; set; }
+
+ public string? Pasport { get; set; }
+
+ public string? ДатаРождения { get; set; }
+
+ public int? Index { get; set; }
+
+ public int? Cities { get; set; }
+
+ public int? NumberStreet { get; set; }
+
+ public int? Appart { get; set; }
+
+ public string? Street { get; set; }
+
+ public string? EMail { get; set; }
+
+ public string? Password { get; set; }
+}
diff --git a/demo-24.11/src/Prielb/Prielb/Models/Dolzhnost.cs b/demo-24.11/src/Prielb/Prielb/Models/Dolzhnost.cs
new file mode 100644
index 0000000..3f2d2ce
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/Models/Dolzhnost.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+
+namespace Prielb.Models;
+
+public partial class Dolzhnost
+{
+ public int? Id { get; set; }
+
+ public string? DolzhnostId { get; set; }
+}
diff --git a/demo-24.11/src/Prielb/Prielb/Models/Sotrudnik.cs b/demo-24.11/src/Prielb/Prielb/Models/Sotrudnik.cs
new file mode 100644
index 0000000..70c455b
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/Models/Sotrudnik.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+
+namespace Prielb.Models;
+
+public partial class Sotrudnik
+{
+ public string? КодСотрудника { get; set; }
+
+ public int? Должность { get; set; }
+
+ public string? Фио { get; set; }
+
+ public string? Логин { get; set; }
+
+ public string? Пароль { get; set; }
+
+ public string? ПоследнийВход { get; set; }
+
+ public int? ТипВхода { get; set; }
+}
diff --git a/demo-24.11/src/Prielb/Prielb/Models/StatusOrd.cs b/demo-24.11/src/Prielb/Prielb/Models/StatusOrd.cs
new file mode 100644
index 0000000..d00b78a
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/Models/StatusOrd.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+
+namespace Prielb.Models;
+
+public partial class StatusOrd
+{
+ public int? Id { get; set; }
+
+ public string? StatusId { get; set; }
+}
diff --git a/demo-24.11/src/Prielb/Prielb/Models/Tupe.cs b/demo-24.11/src/Prielb/Prielb/Models/Tupe.cs
new file mode 100644
index 0000000..2239493
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/Models/Tupe.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+
+namespace Prielb.Models;
+
+public partial class Tupe
+{
+ public int? Id { get; set; }
+
+ public string? TupeId { get; set; }
+}
diff --git a/demo-24.11/src/Prielb/Prielb/Models/Yslygi.cs b/demo-24.11/src/Prielb/Prielb/Models/Yslygi.cs
new file mode 100644
index 0000000..d3f411f
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/Models/Yslygi.cs
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+
+namespace Prielb.Models;
+
+public partial class Yslygi
+{
+ public int? Id { get; set; }
+
+ public string? НаименованиеУслуги { get; set; }
+
+ public string? КодУслуги { get; set; }
+
+ public int? СтоимостьРубЗаЧас { get; set; }
+}
diff --git a/demo-24.11/src/Prielb/Prielb/Prielb.csproj b/demo-24.11/src/Prielb/Prielb/Prielb.csproj
new file mode 100644
index 0000000..89754a8
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/Prielb.csproj
@@ -0,0 +1,34 @@
+
+
+ WinExe
+ net10.0
+ enable
+ app.manifest
+
+
+
+
+
+
+
+
+
+
+
+
+
+ None
+ All
+
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
+
+
diff --git a/demo-24.11/src/Prielb/Prielb/Program.cs b/demo-24.11/src/Prielb/Prielb/Program.cs
new file mode 100644
index 0000000..9782129
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/Program.cs
@@ -0,0 +1,24 @@
+using Avalonia;
+using System;
+
+namespace Prielb;
+
+sealed 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/demo-24.11/src/Prielb/Prielb/ViewLocator.cs b/demo-24.11/src/Prielb/Prielb/ViewLocator.cs
new file mode 100644
index 0000000..3af8bb1
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/ViewLocator.cs
@@ -0,0 +1,37 @@
+using System;
+using System.Diagnostics.CodeAnalysis;
+using Avalonia.Controls;
+using Avalonia.Controls.Templates;
+using Prielb.ViewModels;
+
+namespace Prielb;
+
+///
+/// Given a view model, returns the corresponding view if possible.
+///
+[RequiresUnreferencedCode(
+ "Default implementation of ViewLocator involves reflection which may be trimmed away.",
+ Url = "https://docs.avaloniaui.net/docs/concepts/view-locator")]
+public class ViewLocator : IDataTemplate
+{
+ public Control? Build(object? param)
+ {
+ if (param is null)
+ return null;
+
+ var name = param.GetType().FullName!.Replace("ViewModel", "View", StringComparison.Ordinal);
+ var type = Type.GetType(name);
+
+ if (type != null)
+ {
+ return (Control)Activator.CreateInstance(type)!;
+ }
+
+ return new TextBlock { Text = "Not Found: " + name };
+ }
+
+ public bool Match(object? data)
+ {
+ return data is ViewModelBase;
+ }
+}
\ No newline at end of file
diff --git a/demo-24.11/src/Prielb/Prielb/ViewModels/MainViewModel.cs b/demo-24.11/src/Prielb/Prielb/ViewModels/MainViewModel.cs
new file mode 100644
index 0000000..e9eb709
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/ViewModels/MainViewModel.cs
@@ -0,0 +1,8 @@
+using CommunityToolkit.Mvvm.ComponentModel;
+
+namespace Prielb.ViewModels;
+
+public partial class MainViewModel : ViewModelBase
+{
+ [ObservableProperty] public partial string Greeting { get; set; } = "Welcome to Avalonia!";
+}
\ No newline at end of file
diff --git a/demo-24.11/src/Prielb/Prielb/ViewModels/ViewModelBase.cs b/demo-24.11/src/Prielb/Prielb/ViewModels/ViewModelBase.cs
new file mode 100644
index 0000000..3773139
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/ViewModels/ViewModelBase.cs
@@ -0,0 +1,7 @@
+using CommunityToolkit.Mvvm.ComponentModel;
+
+namespace Prielb.ViewModels;
+
+public abstract class ViewModelBase : ObservableObject
+{
+}
\ No newline at end of file
diff --git a/demo-24.11/src/Prielb/Prielb/Views/MainWindow.axaml b/demo-24.11/src/Prielb/Prielb/Views/MainWindow.axaml
new file mode 100644
index 0000000..81577f8
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/Views/MainWindow.axaml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/demo-24.11/src/Prielb/Prielb/Views/MainWindow.axaml.cs b/demo-24.11/src/Prielb/Prielb/Views/MainWindow.axaml.cs
new file mode 100644
index 0000000..6736a67
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/Views/MainWindow.axaml.cs
@@ -0,0 +1,36 @@
+using Avalonia.Controls;
+using Avalonia.Interactivity;
+using Microsoft.EntityFrameworkCore;
+using Prielb.Data;
+
+namespace Prielb.Views;
+
+public partial class MainWindow : Window
+{
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+
+
+ private async void OnSubmitClick(object sender, RoutedEventArgs e)
+ {
+ using var db = new StudentDbContext();
+ var user = await db.Sotrudniks.FirstOrDefaultAsync(p =>
+ p.Логин == NameTextBox.Text && p.Пароль == PasswordTextBox.Text);
+ if (user != null)
+ {
+ new Window().ShowDialog(this);
+ }
+
+
+
+
+
+ }
+}
+
+
+
+
+
diff --git a/demo-24.11/src/Prielb/Prielb/Views/cyk.axaml b/demo-24.11/src/Prielb/Prielb/Views/cyk.axaml
new file mode 100644
index 0000000..6d90eb3
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/Views/cyk.axaml
@@ -0,0 +1,9 @@
+
+ Welcome to Avalonia!
+
diff --git a/demo-24.11/src/Prielb/Prielb/Views/cyk.axaml.cs b/demo-24.11/src/Prielb/Prielb/Views/cyk.axaml.cs
new file mode 100644
index 0000000..615f256
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/Views/cyk.axaml.cs
@@ -0,0 +1,13 @@
+using Avalonia;
+using Avalonia.Controls;
+using Avalonia.Markup.Xaml;
+
+namespace Prielb.Views;
+
+public partial class cyk : Window
+{
+ public cyk()
+ {
+ InitializeComponent();
+ }
+}
\ No newline at end of file
diff --git a/demo-24.11/src/Prielb/Prielb/app.manifest b/demo-24.11/src/Prielb/Prielb/app.manifest
new file mode 100644
index 0000000..d746cd0
--- /dev/null
+++ b/demo-24.11/src/Prielb/Prielb/app.manifest
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+