Вырезан класс поручителя, проведено кодревью, убраны лищние using

This commit is contained in:
Никита Потапов 2024-04-27 23:27:55 +04:00
parent 4bb440036c
commit 4d68472a36
21 changed files with 7 additions and 190 deletions

View File

@ -1,11 +1,4 @@
using PolyclinicDataModels.Models; namespace PolyclinicContracts.BindingModels
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.BindingModels
{ {
public class MedicamentBindingModel : IMedicamentModel public class MedicamentBindingModel : IMedicamentModel
{ {

View File

@ -1,11 +1,4 @@
using PolyclinicDataModels.Models; namespace PolyclinicContracts.BindingModels
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.BindingModels
{ {
public class ProcedureBindingModel : IProcedureModel public class ProcedureBindingModel : IProcedureModel
{ {

View File

@ -1,11 +1,4 @@
using PolyclinicDataModels.Models; namespace PolyclinicContracts.BindingModels
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.BindingModels
{ {
public class RecipeBindingModel : IRecipeModel public class RecipeBindingModel : IRecipeModel
{ {

View File

@ -1,17 +0,0 @@
using PolyclinicDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.BindingModels
{
public class SuretorBindingModel : ISuretorModel
{
public int Id { get; set; }
public string FIO { get; set; } = string.Empty;
public string Password { get; set; } = "123";
public string Email { get; set; } = string.Empty;
}
}

View File

@ -1,11 +1,6 @@
using PolyclinicContracts.BindingModels; using PolyclinicContracts.BindingModels;
using PolyclinicContracts.SearchModels; using PolyclinicContracts.SearchModels;
using PolyclinicContracts.ViewModels; using PolyclinicContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.BusinessLogicsContracts namespace PolyclinicContracts.BusinessLogicsContracts
{ {

View File

@ -1,11 +1,6 @@
using PolyclinicContracts.BindingModels; using PolyclinicContracts.BindingModels;
using PolyclinicContracts.SearchModels; using PolyclinicContracts.SearchModels;
using PolyclinicContracts.ViewModels; using PolyclinicContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.BusinessLogicsContracts namespace PolyclinicContracts.BusinessLogicsContracts
{ {

View File

@ -1,11 +1,6 @@
using PolyclinicContracts.BindingModels; using PolyclinicContracts.BindingModels;
using PolyclinicContracts.SearchModels; using PolyclinicContracts.SearchModels;
using PolyclinicContracts.ViewModels; using PolyclinicContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.BusinessLogicsContracts namespace PolyclinicContracts.BusinessLogicsContracts
{ {

View File

@ -1,20 +0,0 @@
using PolyclinicContracts.BindingModels;
using PolyclinicContracts.SearchModels;
using PolyclinicContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.BusinessLogicsContracts
{
public interface ISuretorLogic
{
List<SuretorView>? ReadList(SuretorSearchModel? model);
SuretorView? ReadElement(SuretorSearchModel model);
bool Create(SuretorBindingModel model);
bool Update(SuretorBindingModel model);
bool Delete(SuretorBindingModel model);
}
}

View File

@ -1,10 +1,4 @@
using System; namespace PolyclinicContracts.SearchModels
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.SearchModels
{ {
public class MedicamentSearchModel public class MedicamentSearchModel
{ {

View File

@ -1,10 +1,4 @@
using System; namespace PolyclinicContracts.SearchModels
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.SearchModels
{ {
public class ProcedureSearchModel public class ProcedureSearchModel
{ {

View File

@ -1,14 +1,7 @@
using System; namespace PolyclinicContracts.SearchModels
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.SearchModels
{ {
public class RecipeSearchModel public class RecipeSearchModel
{ {
public int? Id { get; set; } public int? Id { get; set; }
public int? CountProcedures { get; set; }
} }
} }

View File

@ -1,15 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.SearchModels
{
public class SuretorSearchModel
{
public int? Id { get; set; }
public string? FIO { get; set; }
public DateTime? BirthDay { get; set; }
}
}

View File

@ -1,11 +1,6 @@
using PolyclinicContracts.BindingModels; using PolyclinicContracts.BindingModels;
using PolyclinicContracts.SearchModels; using PolyclinicContracts.SearchModels;
using PolyclinicContracts.ViewModels; using PolyclinicContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.StoragesContracts namespace PolyclinicContracts.StoragesContracts
{ {

View File

@ -1,11 +1,6 @@
using PolyclinicContracts.BindingModels; using PolyclinicContracts.BindingModels;
using PolyclinicContracts.SearchModels; using PolyclinicContracts.SearchModels;
using PolyclinicContracts.ViewModels; using PolyclinicContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.StoragesContracts namespace PolyclinicContracts.StoragesContracts
{ {

View File

@ -1,11 +1,6 @@
using PolyclinicContracts.BindingModels; using PolyclinicContracts.BindingModels;
using PolyclinicContracts.SearchModels; using PolyclinicContracts.SearchModels;
using PolyclinicContracts.ViewModels; using PolyclinicContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.StoragesContracts namespace PolyclinicContracts.StoragesContracts
{ {

View File

@ -1,21 +0,0 @@
using PolyclinicContracts.BindingModels;
using PolyclinicContracts.SearchModels;
using PolyclinicContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.StoragesContracts
{
public interface ISuretorStorage
{
List<SuretorView> GetFullList();
List<SuretorView> GetFilteredList(SuretorSearchModel model);
SuretorView? GetElement(SuretorSearchModel model);
SuretorView? Insert(SuretorBindingModel model);
SuretorView? Update(SuretorBindingModel model);
SuretorView? Delete(SuretorBindingModel model);
}
}

View File

@ -1,10 +1,5 @@
using PolyclinicDataModels.Models; using PolyclinicDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.ViewModels namespace PolyclinicContracts.ViewModels
{ {

View File

@ -1,10 +1,5 @@
using PolyclinicDataModels.Models; using PolyclinicDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.ViewModels namespace PolyclinicContracts.ViewModels
{ {

View File

@ -1,11 +1,5 @@
using PolyclinicDataModels.Models; using PolyclinicDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.ViewModels namespace PolyclinicContracts.ViewModels
{ {

View File

@ -1,24 +0,0 @@
using PolyclinicDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PolyclinicContracts.ViewModels
{
public class SuretorView : ISuretorModel
{
public int Id { get; set; }
[DisplayName("ФИО поручителя")]
public string FIO { get; set; } = string.Empty;
public string Password { get; set; } = "123";
[DisplayName("Почта")]
public string Email { get; set; } = string.Empty;
}
}

View File

@ -11,7 +11,7 @@ namespace PolyclinicView
// To customize application configuration such as set high DPI settings or default font, // To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration. // see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize(); ApplicationConfiguration.Initialize();
Application.Run(new Form1()); Application.Run();
} }
} }
} }