лаба 3 без view модуля
This commit is contained in:
parent
52ad12538d
commit
d398882215
77
ClientRecordBuisinessLogic/BuisinessLogic/ClientLogic.cs
Normal file
77
ClientRecordBuisinessLogic/BuisinessLogic/ClientLogic.cs
Normal file
@ -0,0 +1,77 @@
|
||||
using ClientRecordContracts.BindingModels;
|
||||
using ClientRecordContracts.BusinessLogicContracts;
|
||||
using ClientRecordContracts.SearchModels;
|
||||
using ClientRecordContracts.StoragesContracts;
|
||||
using ClientRecordContracts.ViewModels;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ClientRecordBuisinessLogic.BuisinessLogic
|
||||
{
|
||||
public class ClientLogic : IClientLogic
|
||||
{
|
||||
public IClientStorage _clientStorage;
|
||||
public ClientLogic(IClientStorage clientStorage)
|
||||
{
|
||||
_clientStorage= clientStorage;
|
||||
}
|
||||
|
||||
public bool Create(ClientBindingModel model)
|
||||
{
|
||||
CheckModel(model);
|
||||
return _clientStorage.Insert(model)!= null;
|
||||
}
|
||||
|
||||
public bool Delete(ClientBindingModel model)
|
||||
{
|
||||
CheckModel(model);
|
||||
return _clientStorage.Delete(model) != null;
|
||||
}
|
||||
|
||||
public ClientViewModel? ReadElement(ClientSearchModel model)
|
||||
{
|
||||
if (model == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(model));
|
||||
}
|
||||
return _clientStorage.GetElement(model) ;
|
||||
}
|
||||
|
||||
public List<ClientViewModel>? ReadList(ClientSearchModel? model)
|
||||
{
|
||||
return model == null ? _clientStorage.GetFullList() : _clientStorage.GetFilteredList(model);
|
||||
}
|
||||
|
||||
public bool Update(ClientBindingModel model)
|
||||
{
|
||||
CheckModel(model);
|
||||
return _clientStorage.Update(model) != null;
|
||||
}
|
||||
private void CheckModel(ClientBindingModel model, bool withParams = true)
|
||||
{
|
||||
if (model == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(model));
|
||||
}
|
||||
if (!withParams)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(model.ClientFIO))
|
||||
{
|
||||
throw new ArgumentNullException("Нет ФИО клиента", nameof(model.ClientFIO));
|
||||
}
|
||||
if (model.StatusId <= 0)
|
||||
{
|
||||
throw new ArgumentNullException("Некорректный идентификатор статуса", nameof(model.StatusId));
|
||||
}
|
||||
var element = _clientStorage.GetElement(new ClientSearchModel
|
||||
{
|
||||
ClientFIO = model.ClientFIO
|
||||
});
|
||||
if (element != null && element.Id != model.Id)
|
||||
{
|
||||
throw new InvalidOperationException("Клиент с таким ФИО уже есть");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
72
ClientRecordBuisinessLogic/BuisinessLogic/StatusLogic.cs
Normal file
72
ClientRecordBuisinessLogic/BuisinessLogic/StatusLogic.cs
Normal file
@ -0,0 +1,72 @@
|
||||
using ClientRecordContracts.BindingModels;
|
||||
using ClientRecordContracts.BusinessLogicContracts;
|
||||
using ClientRecordContracts.SearchModels;
|
||||
using ClientRecordContracts.StoragesContracts;
|
||||
using ClientRecordContracts.ViewModels;
|
||||
|
||||
namespace ClientRecordBuisinessLogic.BuisinessLogic
|
||||
{
|
||||
public class StatusLogic : IStatusLogic
|
||||
{
|
||||
public IStatusStorage _statusStorage;
|
||||
public StatusLogic(IStatusStorage statusStorage)
|
||||
{
|
||||
_statusStorage = statusStorage;
|
||||
}
|
||||
|
||||
public bool Create(StatusBindingModel model)
|
||||
{
|
||||
CheckModel(model);
|
||||
return _statusStorage.Insert(model) != null;
|
||||
}
|
||||
|
||||
public bool Delete(StatusBindingModel model)
|
||||
{
|
||||
CheckModel(model);
|
||||
return _statusStorage.Delete(model) != null;
|
||||
}
|
||||
|
||||
public StatusViewModel? ReadElement(StatusSearchModel model)
|
||||
{
|
||||
if (model == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(model));
|
||||
}
|
||||
return _statusStorage.GetElement(model);
|
||||
}
|
||||
|
||||
public List<StatusViewModel>? ReadList(StatusSearchModel? model)
|
||||
{
|
||||
return model == null ? _statusStorage.GetFullList() : _statusStorage.GetFilteredList(model);
|
||||
}
|
||||
|
||||
public bool Update(StatusBindingModel model)
|
||||
{
|
||||
CheckModel(model);
|
||||
return _statusStorage.Update(model) != null;
|
||||
}
|
||||
private void CheckModel(StatusBindingModel model, bool withParams = true)
|
||||
{
|
||||
if (model == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(model));
|
||||
}
|
||||
if (!withParams)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(model.Name))
|
||||
{
|
||||
throw new ArgumentNullException("Нет названия статуса", nameof(model.Name));
|
||||
}
|
||||
var element = _statusStorage.GetElement(new StatusSearchModel
|
||||
{
|
||||
Name = model.Name
|
||||
});
|
||||
if (element != null && element.Id != model.Id)
|
||||
{
|
||||
throw new InvalidOperationException("Статус с таким названием уже есть");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
13
ClientRecordBuisinessLogic/ClientRecordBuisinessLogic.csproj
Normal file
13
ClientRecordBuisinessLogic/ClientRecordBuisinessLogic.csproj
Normal file
@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ClientRecordContracts\ClientRecordContracts.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
14
ClientRecordContracts/BindingModels/ClientBindingModel.cs
Normal file
14
ClientRecordContracts/BindingModels/ClientBindingModel.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using ClientRecordDataModels.Models;
|
||||
|
||||
namespace ClientRecordContracts.BindingModels
|
||||
{
|
||||
public class ClientBindingModel : IClientModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string? Reviews { get; set; }
|
||||
public string ClientFIO { get; set; } = string.Empty;
|
||||
public double? Amount { get; set; }
|
||||
public int StatusId { get; set; }
|
||||
|
||||
}
|
||||
}
|
10
ClientRecordContracts/BindingModels/StatusBindingModel.cs
Normal file
10
ClientRecordContracts/BindingModels/StatusBindingModel.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using ClientRecordDataModels.Models;
|
||||
|
||||
namespace ClientRecordContracts.BindingModels
|
||||
{
|
||||
public class StatusBindingModel : IStatusModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
20
ClientRecordContracts/BusinessLogicContracts/IClientLogic.cs
Normal file
20
ClientRecordContracts/BusinessLogicContracts/IClientLogic.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using ClientRecordContracts.BindingModels;
|
||||
using ClientRecordContracts.SearchModels;
|
||||
using ClientRecordContracts.ViewModels;
|
||||
|
||||
namespace ClientRecordContracts.BusinessLogicContracts
|
||||
{
|
||||
public interface IClientLogic
|
||||
{
|
||||
List<ClientViewModel>? ReadList(ClientSearchModel? model);
|
||||
|
||||
ClientViewModel? ReadElement(ClientSearchModel model);
|
||||
|
||||
bool Create(ClientBindingModel model);
|
||||
|
||||
bool Update(ClientBindingModel model);
|
||||
|
||||
bool Delete(ClientBindingModel model);
|
||||
|
||||
}
|
||||
}
|
19
ClientRecordContracts/BusinessLogicContracts/IStatusLogic.cs
Normal file
19
ClientRecordContracts/BusinessLogicContracts/IStatusLogic.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using ClientRecordContracts.BindingModels;
|
||||
using ClientRecordContracts.SearchModels;
|
||||
using ClientRecordContracts.ViewModels;
|
||||
|
||||
namespace ClientRecordContracts.BusinessLogicContracts
|
||||
{
|
||||
public interface IStatusLogic
|
||||
{
|
||||
List<StatusViewModel>? ReadList(StatusSearchModel? model);
|
||||
|
||||
StatusViewModel? ReadElement(StatusSearchModel model);
|
||||
|
||||
bool Create(StatusBindingModel model);
|
||||
|
||||
bool Update(StatusBindingModel model);
|
||||
|
||||
bool Delete(StatusBindingModel model);
|
||||
}
|
||||
}
|
13
ClientRecordContracts/ClientRecordContracts.csproj
Normal file
13
ClientRecordContracts/ClientRecordContracts.csproj
Normal file
@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ClientRecordDataModels\ClientRecordDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
9
ClientRecordContracts/SearchModels/ClientSearchModel.cs
Normal file
9
ClientRecordContracts/SearchModels/ClientSearchModel.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace ClientRecordContracts.SearchModels
|
||||
{
|
||||
public class ClientSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public int? StatusId { get; set; }
|
||||
public string? ClientFIO { get; set; }
|
||||
}
|
||||
}
|
8
ClientRecordContracts/SearchModels/StatusSearchModel.cs
Normal file
8
ClientRecordContracts/SearchModels/StatusSearchModel.cs
Normal file
@ -0,0 +1,8 @@
|
||||
namespace ClientRecordContracts.SearchModels
|
||||
{
|
||||
public class StatusSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? Name { get; set; }
|
||||
}
|
||||
}
|
22
ClientRecordContracts/StoragesContracts/IClientStorage.cs
Normal file
22
ClientRecordContracts/StoragesContracts/IClientStorage.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using ClientRecordContracts.BindingModels;
|
||||
using ClientRecordContracts.SearchModels;
|
||||
using ClientRecordContracts.ViewModels;
|
||||
|
||||
namespace ClientRecordContracts.StoragesContracts
|
||||
{
|
||||
public interface IClientStorage
|
||||
{
|
||||
List<ClientViewModel> GetFullList();
|
||||
|
||||
List<ClientViewModel> GetFilteredList(ClientSearchModel model);
|
||||
|
||||
ClientViewModel? GetElement(ClientSearchModel model);
|
||||
|
||||
ClientViewModel? Insert(ClientBindingModel model);
|
||||
|
||||
ClientViewModel? Update(ClientBindingModel model);
|
||||
|
||||
ClientViewModel? Delete(ClientBindingModel model);
|
||||
|
||||
}
|
||||
}
|
21
ClientRecordContracts/StoragesContracts/IStatusStorage.cs
Normal file
21
ClientRecordContracts/StoragesContracts/IStatusStorage.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using ClientRecordContracts.BindingModels;
|
||||
using ClientRecordContracts.SearchModels;
|
||||
using ClientRecordContracts.ViewModels;
|
||||
|
||||
namespace ClientRecordContracts.StoragesContracts
|
||||
{
|
||||
public interface IStatusStorage
|
||||
{
|
||||
List<StatusViewModel> GetFullList();
|
||||
|
||||
List<StatusViewModel> GetFilteredList(StatusSearchModel model);
|
||||
|
||||
StatusViewModel? GetElement(StatusSearchModel model);
|
||||
|
||||
StatusViewModel? Insert(StatusBindingModel model);
|
||||
|
||||
StatusViewModel? Update(StatusBindingModel model);
|
||||
|
||||
StatusViewModel? Delete(StatusBindingModel model);
|
||||
}
|
||||
}
|
23
ClientRecordContracts/ViewModels/ClientViewModel.cs
Normal file
23
ClientRecordContracts/ViewModels/ClientViewModel.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using ClientRecordDataModels.Models;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace ClientRecordContracts.ViewModels
|
||||
{
|
||||
public class ClientViewModel : IClientModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
[DisplayName("ФИО")]
|
||||
public string ClientFIO { get; set; } = string.Empty;
|
||||
[DisplayName("Отзывы")]
|
||||
public string? Reviews { get; set; }
|
||||
[DisplayName("Сумма покупок")]
|
||||
public double? Amount { get; set; }
|
||||
|
||||
public int StatusId { get; set; }
|
||||
|
||||
[DisplayName("Статус")]
|
||||
public string Status { get; set; } = string.Empty;
|
||||
|
||||
public string AmountString { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
13
ClientRecordContracts/ViewModels/StatusViewModel.cs
Normal file
13
ClientRecordContracts/ViewModels/StatusViewModel.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using ClientRecordDataModels.Models;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace ClientRecordContracts.ViewModels
|
||||
{
|
||||
public class StatusViewModel : IStatusModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[DisplayName("Название статуса")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
9
ClientRecordDataModels/ClientRecordDataModels.csproj
Normal file
9
ClientRecordDataModels/ClientRecordDataModels.csproj
Normal file
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
7
ClientRecordDataModels/IId.cs
Normal file
7
ClientRecordDataModels/IId.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace ClientRecordDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
10
ClientRecordDataModels/Models/IClientModel.cs
Normal file
10
ClientRecordDataModels/Models/IClientModel.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace ClientRecordDataModels.Models
|
||||
{
|
||||
public interface IClientModel : IId
|
||||
{
|
||||
string ClientFIO{ get; }
|
||||
string? Reviews{ get; }
|
||||
double? Amount{ get; }
|
||||
int StatusId{ get; }
|
||||
}
|
||||
}
|
7
ClientRecordDataModels/Models/IStatusModel.cs
Normal file
7
ClientRecordDataModels/Models/IStatusModel.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace ClientRecordDataModels.Models
|
||||
{
|
||||
public interface IStatusModel :IId
|
||||
{
|
||||
string Name { get; }
|
||||
}
|
||||
}
|
25
ClientRecordDatabaseImplement/ClientRecordDatabase.cs
Normal file
25
ClientRecordDatabaseImplement/ClientRecordDatabase.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using ClientRecordDatabaseImplement.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ClientRecordDatabaseImplement
|
||||
{
|
||||
public class ClientRecordDatabase : DbContext
|
||||
{
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
{
|
||||
if (optionsBuilder.IsConfigured == false)
|
||||
{
|
||||
optionsBuilder.UseNpgsql(@"Host=localhost;Database=Factory;Username=postgres;Password=postgres");
|
||||
}
|
||||
base.OnConfiguring(optionsBuilder);
|
||||
|
||||
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
|
||||
AppContext.SetSwitch("Npgsql.DisableDataTimeInfinityConversions", true);
|
||||
}
|
||||
public virtual DbSet<Client> Clients { set; get; }
|
||||
public virtual DbSet<Status> Statuses { set; get; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Migrations\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.35" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.35" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.35">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="6.0.29" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ClientRecordContracts\ClientRecordContracts.csproj" />
|
||||
<ProjectReference Include="..\ClientRecordDataModels\ClientRecordDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
103
ClientRecordDatabaseImplement/Implements/ClientStorage.cs
Normal file
103
ClientRecordDatabaseImplement/Implements/ClientStorage.cs
Normal file
@ -0,0 +1,103 @@
|
||||
using ClientRecordContracts.BindingModels;
|
||||
using ClientRecordContracts.SearchModels;
|
||||
using ClientRecordContracts.StoragesContracts;
|
||||
using ClientRecordContracts.ViewModels;
|
||||
using ClientRecordDatabaseImplement.Models;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace ClientRecordDatabaseImplement.Implements
|
||||
{
|
||||
public class ClientStorage : IClientStorage
|
||||
{
|
||||
public ClientViewModel? Delete(ClientBindingModel model)
|
||||
{
|
||||
using var context = new ClientRecordDatabase();
|
||||
var element = context.Clients.FirstOrDefault(rec => rec.Id == model.Id);
|
||||
if (element != null)
|
||||
{
|
||||
var deletedElement = context.Clients
|
||||
.Include(x => x.Status)
|
||||
.FirstOrDefault(x => x.Id == model.Id)
|
||||
?.GetViewModel;
|
||||
context.Clients.Remove(element);
|
||||
context.SaveChanges();
|
||||
return deletedElement;
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
public ClientViewModel? GetElement(ClientSearchModel model)
|
||||
{
|
||||
if (string.IsNullOrEmpty(model.ClientFIO) && !model.Id.HasValue)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
using var context = new ClientRecordDatabase();
|
||||
return context.Clients
|
||||
.Include(x => x.Status)
|
||||
.FirstOrDefault(x => !string.IsNullOrEmpty(model.ClientFIO) && x.ClientFIO == model.ClientFIO ||
|
||||
model.Id.HasValue && x.Id == model.Id)
|
||||
?.GetViewModel;
|
||||
|
||||
}
|
||||
|
||||
public List<ClientViewModel> GetFilteredList(ClientSearchModel model)
|
||||
{
|
||||
using var context = new ClientRecordDatabase();
|
||||
if (model.StatusId.HasValue)
|
||||
{
|
||||
return context.Clients
|
||||
.Include(x => x.Status)
|
||||
.Where(x => x.StatusId == model.StatusId)
|
||||
.Select(x => x.GetViewModel)
|
||||
.ToList();
|
||||
}
|
||||
return new();
|
||||
}
|
||||
|
||||
public List<ClientViewModel> GetFullList()
|
||||
{
|
||||
using var context = new ClientRecordDatabase();
|
||||
return context.Clients
|
||||
.Include(x => x.Status)
|
||||
.Select(x => x.GetViewModel)
|
||||
.ToList();
|
||||
|
||||
}
|
||||
|
||||
public ClientViewModel? Insert(ClientBindingModel model)
|
||||
{
|
||||
var newClient = Client.Create(model);
|
||||
if (newClient == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
using var context = new ClientRecordDatabase();
|
||||
context.Clients.Add(newClient);
|
||||
context.SaveChanges();
|
||||
return context.Clients
|
||||
.Include(x => x.Status)
|
||||
.FirstOrDefault(x => x.Id == newClient.Id)
|
||||
?.GetViewModel;
|
||||
|
||||
}
|
||||
|
||||
public ClientViewModel? Update(ClientBindingModel model)
|
||||
{
|
||||
using var context = new ClientRecordDatabase();
|
||||
var client = context.Clients.FirstOrDefault(x => x.Id == model.Id);
|
||||
if (client == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
client.Update(model);
|
||||
context.SaveChanges();
|
||||
return context.Clients
|
||||
.Include(x => x.Status)
|
||||
.FirstOrDefault(x => x.Id == model.Id)
|
||||
?.GetViewModel;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
90
ClientRecordDatabaseImplement/Implements/StatusStorage.cs
Normal file
90
ClientRecordDatabaseImplement/Implements/StatusStorage.cs
Normal file
@ -0,0 +1,90 @@
|
||||
using ClientRecordContracts.BindingModels;
|
||||
using ClientRecordContracts.SearchModels;
|
||||
using ClientRecordContracts.StoragesContracts;
|
||||
using ClientRecordContracts.ViewModels;
|
||||
using ClientRecordDatabaseImplement.Models;
|
||||
using System.Data;
|
||||
|
||||
namespace ClientRecordDatabaseImplement.Implements
|
||||
{
|
||||
public class StatusStorage : IStatusStorage
|
||||
{
|
||||
public StatusViewModel? Delete(StatusBindingModel model)
|
||||
{
|
||||
using var context = new ClientRecordDatabase();
|
||||
var element = context.Statuses.FirstOrDefault(rec => rec.Id == model.Id);
|
||||
if (element != null)
|
||||
{
|
||||
context.Statuses.Remove(element);
|
||||
context.SaveChanges();
|
||||
return element.GetViewModel;
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
public StatusViewModel? GetElement(StatusSearchModel model)
|
||||
{
|
||||
if (string.IsNullOrEmpty(model.Name) && !model.Id.HasValue)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
using var context = new ClientRecordDatabase();
|
||||
return context.Statuses
|
||||
.FirstOrDefault(x => !string.IsNullOrEmpty(model.Name) && x.Name == model.Name ||
|
||||
model.Id.HasValue && x.Id == model.Id)
|
||||
?.GetViewModel;
|
||||
|
||||
}
|
||||
|
||||
public List<StatusViewModel> GetFilteredList(StatusSearchModel model)
|
||||
{
|
||||
if (string.IsNullOrEmpty(model.Name))
|
||||
{
|
||||
return new();
|
||||
}
|
||||
using var context = new ClientRecordDatabase();
|
||||
return context.Statuses
|
||||
.Where(x => x.Name.Contains(model.Name))
|
||||
.Select(x => x.GetViewModel)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public List<StatusViewModel> GetFullList()
|
||||
{
|
||||
using var context = new ClientRecordDatabase();
|
||||
return context.Statuses
|
||||
.Select(x => x.GetViewModel)
|
||||
.ToList();
|
||||
|
||||
}
|
||||
|
||||
public StatusViewModel? Insert(StatusBindingModel model)
|
||||
{
|
||||
var newStatus = Status.Create(model);
|
||||
if (newStatus == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
using var context = new ClientRecordDatabase();
|
||||
context.Statuses.Add(newStatus);
|
||||
context.SaveChanges();
|
||||
return newStatus.GetViewModel;
|
||||
|
||||
}
|
||||
|
||||
public StatusViewModel? Update(StatusBindingModel model)
|
||||
{
|
||||
using var context = new ClientRecordDatabase();
|
||||
var status = context.Statuses.FirstOrDefault(x => x.Id == model.Id);
|
||||
if (status == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
status.Update(model);
|
||||
context.SaveChanges();
|
||||
return status.GetViewModel;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
93
ClientRecordDatabaseImplement/Migrations/20241029151814_init.Designer.cs
generated
Normal file
93
ClientRecordDatabaseImplement/Migrations/20241029151814_init.Designer.cs
generated
Normal file
@ -0,0 +1,93 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ClientRecordDatabaseImplement;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace ClientRecordDatabaseImplement.Migrations
|
||||
{
|
||||
[DbContext(typeof(ClientRecordDatabase))]
|
||||
[Migration("20241029151814_init")]
|
||||
partial class init
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "6.0.35")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("ClientRecordDatabaseImplement.Models.Client", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<double?>("Amount")
|
||||
.HasColumnType("double precision");
|
||||
|
||||
b.Property<string>("ClientFIO")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("ClientId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Reviews")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("StatusId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ClientId");
|
||||
|
||||
b.ToTable("Clients");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ClientRecordDatabaseImplement.Models.Status", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Statuses");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ClientRecordDatabaseImplement.Models.Client", b =>
|
||||
{
|
||||
b.HasOne("ClientRecordDatabaseImplement.Models.Status", "Status")
|
||||
.WithMany("Clients")
|
||||
.HasForeignKey("ClientId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Status");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ClientRecordDatabaseImplement.Models.Status", b =>
|
||||
{
|
||||
b.Navigation("Clients");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace ClientRecordDatabaseImplement.Migrations
|
||||
{
|
||||
public partial class init : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Statuses",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
Name = table.Column<string>(type: "text", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Statuses", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Clients",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
ClientFIO = table.Column<string>(type: "text", nullable: false),
|
||||
StatusId = table.Column<int>(type: "integer", nullable: false),
|
||||
ClientId = table.Column<int>(type: "integer", nullable: false),
|
||||
Reviews = table.Column<string>(type: "text", nullable: true),
|
||||
Amount = table.Column<double>(type: "double precision", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Clients", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Clients_Statuses_ClientId",
|
||||
column: x => x.ClientId,
|
||||
principalTable: "Statuses",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Clients_ClientId",
|
||||
table: "Clients",
|
||||
column: "ClientId");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "Clients");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Statuses");
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using ClientRecordDatabaseImplement;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace ClientRecordDatabaseImplement.Migrations
|
||||
{
|
||||
[DbContext(typeof(ClientRecordDatabase))]
|
||||
partial class ClientRecordDatabaseModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "6.0.35")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("ClientRecordDatabaseImplement.Models.Client", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<double?>("Amount")
|
||||
.HasColumnType("double precision");
|
||||
|
||||
b.Property<string>("ClientFIO")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("ClientId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Reviews")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("StatusId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("ClientId");
|
||||
|
||||
b.ToTable("Clients");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ClientRecordDatabaseImplement.Models.Status", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Statuses");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ClientRecordDatabaseImplement.Models.Client", b =>
|
||||
{
|
||||
b.HasOne("ClientRecordDatabaseImplement.Models.Status", "Status")
|
||||
.WithMany("Clients")
|
||||
.HasForeignKey("ClientId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Status");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ClientRecordDatabaseImplement.Models.Status", b =>
|
||||
{
|
||||
b.Navigation("Clients");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
58
ClientRecordDatabaseImplement/Models/Client.cs
Normal file
58
ClientRecordDatabaseImplement/Models/Client.cs
Normal file
@ -0,0 +1,58 @@
|
||||
using ClientRecordContracts.BindingModels;
|
||||
using ClientRecordContracts.ViewModels;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using ClientRecordDataModels.Models;
|
||||
|
||||
namespace ClientRecordDatabaseImplement.Models
|
||||
{
|
||||
public class Client : IClientModel
|
||||
{
|
||||
public int Id { get; private set; }
|
||||
|
||||
[Required]
|
||||
public string ClientFIO { get; set; } = string.Empty;
|
||||
[Required]
|
||||
public int StatusId { get; set; }
|
||||
public virtual Status Status { get; set; }
|
||||
public string? Reviews { get; set; }
|
||||
public double? Amount { get; set; }
|
||||
|
||||
public static Client? Create(ClientBindingModel model)
|
||||
{
|
||||
if (model == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return new Client()
|
||||
{
|
||||
Id = model.Id,
|
||||
ClientFIO = model.ClientFIO,
|
||||
StatusId = model.StatusId,
|
||||
Reviews = model.Reviews,
|
||||
Amount = model.Amount,
|
||||
};
|
||||
}
|
||||
|
||||
public void Update(ClientBindingModel model)
|
||||
{
|
||||
if (model == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
ClientFIO= model.ClientFIO;
|
||||
StatusId= model.StatusId;
|
||||
Reviews= model.Reviews;
|
||||
Amount = model.Amount;
|
||||
}
|
||||
|
||||
public ClientViewModel GetViewModel => new()
|
||||
{
|
||||
Id = Id,
|
||||
ClientFIO = ClientFIO,
|
||||
StatusId = StatusId,
|
||||
Reviews = Reviews,
|
||||
Amount = Amount,
|
||||
Status = Status.Name ?? string.Empty
|
||||
};
|
||||
}
|
||||
}
|
57
ClientRecordDatabaseImplement/Models/Status.cs
Normal file
57
ClientRecordDatabaseImplement/Models/Status.cs
Normal file
@ -0,0 +1,57 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel;
|
||||
using ClientRecordDataModels.Models;
|
||||
using System.Security.Principal;
|
||||
using ClientRecordContracts.BindingModels;
|
||||
using ClientRecordContracts.ViewModels;
|
||||
|
||||
namespace ClientRecordDatabaseImplement.Models
|
||||
{
|
||||
public class Status : IStatusModel
|
||||
{
|
||||
public int Id { get; private set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; private set; } = string.Empty;
|
||||
[ForeignKey("ClientId")]
|
||||
public virtual List<Client> Clients { get; set; } = new();
|
||||
|
||||
public static Status? Create(StatusBindingModel model)
|
||||
{
|
||||
if (model == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return new Status()
|
||||
{
|
||||
Id = model.Id,
|
||||
Name = model.Name,
|
||||
};
|
||||
}
|
||||
|
||||
public static Status Create(StatusViewModel model)
|
||||
{
|
||||
return new Status
|
||||
{
|
||||
Id = model.Id,
|
||||
Name = model.Name,
|
||||
};
|
||||
}
|
||||
|
||||
public void Update(StatusBindingModel model)
|
||||
{
|
||||
if (model == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Name = model.Name;
|
||||
}
|
||||
|
||||
public StatusViewModel GetViewModel => new()
|
||||
{
|
||||
Id = Id,
|
||||
Name = Name,
|
||||
};
|
||||
}
|
||||
}
|
28
ClientRecordView/ClientRecordView.csproj
Normal file
28
ClientRecordView/ClientRecordView.csproj
Normal file
@ -0,0 +1,28 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net6.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.35">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
|
||||
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ClientRecordBuisinessLogic\ClientRecordBuisinessLogic.csproj" />
|
||||
<ProjectReference Include="..\ClientRecordContracts\ClientRecordContracts.csproj" />
|
||||
<ProjectReference Include="..\ClientRecordDatabaseImplement\ClientRecordDatabaseImplement.csproj" />
|
||||
<ProjectReference Include="..\WinFormsLibrary\WinFormsLibraryRazubaev.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
39
ClientRecordView/FormClient.Designer.cs
generated
Normal file
39
ClientRecordView/FormClient.Designer.cs
generated
Normal file
@ -0,0 +1,39 @@
|
||||
namespace ClientRecordView
|
||||
{
|
||||
partial class FormClient
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Text = "Form1";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
10
ClientRecordView/FormClient.cs
Normal file
10
ClientRecordView/FormClient.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace ClientRecordView
|
||||
{
|
||||
public partial class FormClient : Form
|
||||
{
|
||||
public FormClient()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
120
ClientRecordView/FormClient.resx
Normal file
120
ClientRecordView/FormClient.resx
Normal file
@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
39
ClientRecordView/FormMain.Designer.cs
generated
Normal file
39
ClientRecordView/FormMain.Designer.cs
generated
Normal file
@ -0,0 +1,39 @@
|
||||
namespace ClientRecordView
|
||||
{
|
||||
partial class FormMain
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Text = "FormMain";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
20
ClientRecordView/FormMain.cs
Normal file
20
ClientRecordView/FormMain.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ClientRecordView
|
||||
{
|
||||
public partial class FormMain : Form
|
||||
{
|
||||
public FormMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
120
ClientRecordView/FormMain.resx
Normal file
120
ClientRecordView/FormMain.resx
Normal file
@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
39
ClientRecordView/FormStatuses.Designer.cs
generated
Normal file
39
ClientRecordView/FormStatuses.Designer.cs
generated
Normal file
@ -0,0 +1,39 @@
|
||||
namespace ClientRecordView
|
||||
{
|
||||
partial class FormStatuses
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Text = "FormStatuse";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
20
ClientRecordView/FormStatuses.cs
Normal file
20
ClientRecordView/FormStatuses.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ClientRecordView
|
||||
{
|
||||
public partial class FormStatuses : Form
|
||||
{
|
||||
public FormStatuses()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
120
ClientRecordView/FormStatuses.resx
Normal file
120
ClientRecordView/FormStatuses.resx
Normal file
@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
41
ClientRecordView/Program.cs
Normal file
41
ClientRecordView/Program.cs
Normal file
@ -0,0 +1,41 @@
|
||||
using ClientRecordBuisinessLogic.BuisinessLogic;
|
||||
using ClientRecordContracts.BusinessLogicContracts;
|
||||
using ClientRecordContracts.StoragesContracts;
|
||||
using ClientRecordDatabaseImplement.Implements;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace ClientRecordView
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
private static ServiceProvider? _serviceProvider;
|
||||
public static ServiceProvider? ServiceProvider => _serviceProvider;
|
||||
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
// To customize application configuration such as set high DPI settings or default font,
|
||||
// see https://aka.ms/applicationconfiguration.
|
||||
ApplicationConfiguration.Initialize();
|
||||
var services = new ServiceCollection();
|
||||
ConfigureServices(services);
|
||||
_serviceProvider = services.BuildServiceProvider();
|
||||
Application.Run(_serviceProvider.GetRequiredService<FormMain>());
|
||||
}
|
||||
|
||||
private static void ConfigureServices(ServiceCollection services)
|
||||
{
|
||||
services.AddTransient<IStatusStorage, StatusStorage>();
|
||||
services.AddTransient<IClientStorage, ClientStorage>();
|
||||
services.AddTransient<IStatusLogic, StatusLogic>();
|
||||
services.AddTransient<IClientLogic, ClientLogic>();
|
||||
services.AddTransient<FormMain>();
|
||||
services.AddTransient<FormClient>();
|
||||
services.AddTransient<FormStatuses>();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
40
WinForms.sln
40
WinForms.sln
@ -5,7 +5,17 @@ VisualStudioVersion = 17.4.33110.190
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinFormsLibraryRazubaev", "WinFormsLibrary\WinFormsLibraryRazubaev.csproj", "{FA2C000C-0815-44C4-BBA7-FB37C33DE121}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinForms", "WinForms\WinForms.csproj", "{AA566691-FB51-4E4C-BB7B-9BA77AD20FD1}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientRecordDataModels", "ClientRecordDataModels\ClientRecordDataModels.csproj", "{A7D71AAC-2AEE-4878-81DE-72429FBBA93B}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientRecordContracts", "ClientRecordContracts\ClientRecordContracts.csproj", "{B641C70B-17E3-454A-8749-E8D54928E733}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientRecordBuisinessLogic", "ClientRecordBuisinessLogic\ClientRecordBuisinessLogic.csproj", "{56768B0F-B9C4-48E5-AAC4-E82514B64BD8}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientRecordDatabaseImplement", "ClientRecordDatabaseImplement\ClientRecordDatabaseImplement.csproj", "{3272666F-969A-4350-8A71-C70CF2F13527}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClientRecordView", "ClientRecordView\ClientRecordView.csproj", "{F6A250F2-C027-4DA9-AABC-3C69C153F58B}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinForms", "WinForms\WinForms.csproj", "{CA2C31AC-090D-45CB-B6F2-292B8F823438}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@ -17,10 +27,30 @@ Global
|
||||
{FA2C000C-0815-44C4-BBA7-FB37C33DE121}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{FA2C000C-0815-44C4-BBA7-FB37C33DE121}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{FA2C000C-0815-44C4-BBA7-FB37C33DE121}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{AA566691-FB51-4E4C-BB7B-9BA77AD20FD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{AA566691-FB51-4E4C-BB7B-9BA77AD20FD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{AA566691-FB51-4E4C-BB7B-9BA77AD20FD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{AA566691-FB51-4E4C-BB7B-9BA77AD20FD1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{A7D71AAC-2AEE-4878-81DE-72429FBBA93B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{A7D71AAC-2AEE-4878-81DE-72429FBBA93B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{A7D71AAC-2AEE-4878-81DE-72429FBBA93B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{A7D71AAC-2AEE-4878-81DE-72429FBBA93B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{B641C70B-17E3-454A-8749-E8D54928E733}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{B641C70B-17E3-454A-8749-E8D54928E733}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{B641C70B-17E3-454A-8749-E8D54928E733}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{B641C70B-17E3-454A-8749-E8D54928E733}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{56768B0F-B9C4-48E5-AAC4-E82514B64BD8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{56768B0F-B9C4-48E5-AAC4-E82514B64BD8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{56768B0F-B9C4-48E5-AAC4-E82514B64BD8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{56768B0F-B9C4-48E5-AAC4-E82514B64BD8}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{3272666F-969A-4350-8A71-C70CF2F13527}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3272666F-969A-4350-8A71-C70CF2F13527}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3272666F-969A-4350-8A71-C70CF2F13527}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3272666F-969A-4350-8A71-C70CF2F13527}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F6A250F2-C027-4DA9-AABC-3C69C153F58B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F6A250F2-C027-4DA9-AABC-3C69C153F58B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F6A250F2-C027-4DA9-AABC-3C69C153F58B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F6A250F2-C027-4DA9-AABC-3C69C153F58B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{CA2C31AC-090D-45CB-B6F2-292B8F823438}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CA2C31AC-090D-45CB-B6F2-292B8F823438}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CA2C31AC-090D-45CB-B6F2-292B8F823438}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CA2C31AC-090D-45CB-B6F2-292B8F823438}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
Loading…
Reference in New Issue
Block a user