Поручитель contracts n dtamodels in proccess
This commit is contained in:
parent
1d1630ad51
commit
0700b2cc3d
@ -17,6 +17,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TravelCompanyContracts", "T
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TravelCompanyDataModels", "TravelCompanyDataModels\TravelCompanyDataModels.csproj", "{091C17F5-84EC-4DFC-8BA5-200E41ED9F05}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TravelCompanyDatabaseImplement", "TravelCompanyDatabaseImplement\TravelCompanyDatabaseImplement.csproj", "{7625604D-02E5-4833-86BC-5CC0731A7DFD}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@ -39,6 +41,10 @@ Global
|
||||
{091C17F5-84EC-4DFC-8BA5-200E41ED9F05}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{091C17F5-84EC-4DFC-8BA5-200E41ED9F05}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{091C17F5-84EC-4DFC-8BA5-200E41ED9F05}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{7625604D-02E5-4833-86BC-5CC0731A7DFD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7625604D-02E5-4833-86BC-5CC0731A7DFD}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7625604D-02E5-4833-86BC-5CC0731A7DFD}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7625604D-02E5-4833-86BC-5CC0731A7DFD}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyBusinessLogic.BusinessLogic
|
||||
{
|
||||
internal class ContractorLogic
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyBusinessLogic.BusinessLogic
|
||||
{
|
||||
public class GuarantorLogic
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -7,7 +7,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="BusinessLogic\" />
|
||||
<ProjectReference Include="..\TravelCompanyContracts\TravelCompanyContracts.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TravelCompanyDataModels.Models.Guarantor;
|
||||
|
||||
namespace TravelCompanyContracts.BindingModels.Guarantor
|
||||
{
|
||||
// Реализация сущности поручитель (4 роль)
|
||||
public class GuarantorBindingModel : IGuarantorModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Surname { get; set; } = string.Empty;
|
||||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public string Patronymic { get; set; } = string.Empty;
|
||||
|
||||
public string Login { get; set; } = string.Empty;
|
||||
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
public string MobilePhone { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TravelCompanyContracts.BindingModels.Guarantor;
|
||||
using TravelCompanyContracts.SearchModels.Guarantor;
|
||||
using TravelCompanyContracts.ViewModels.Guarantor.ViewModels;
|
||||
|
||||
namespace TravelCompanyContracts.BusinessLogicsContracts.Guarantor
|
||||
{
|
||||
public interface IGuarantorLogic
|
||||
{
|
||||
List<GuarantorViewModel>? ReadList(GuarantorSearchModel? model);
|
||||
GuarantorViewModel? ReadElement(GuarantorSearchModel model);
|
||||
bool Create(GuarantorBindingModel model);
|
||||
bool Update(GuarantorBindingModel model);
|
||||
bool Delete(GuarantorBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyContracts.BusinessLogicsContracts.Guarantor
|
||||
{
|
||||
internal class IGuideLogic
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyContracts.BusinessLogicsContracts.Guarantor
|
||||
{
|
||||
internal class IPlaceLogic
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyContracts.BusinessLogicsContracts.Guarantor
|
||||
{
|
||||
internal class ITripLogic
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyContracts.SearchModels.Guarantor
|
||||
{
|
||||
// Поиск сущности Поручитель
|
||||
public class GuarantorSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
|
||||
public string? Name { get; set; } = string.Empty;
|
||||
|
||||
public string? Surname { get; set; } = string.Empty;
|
||||
|
||||
public string? Patronymic { get; set; } = string.Empty;
|
||||
public string? Login { get; set; } = string.Empty;
|
||||
public string? Password { get; set; } = string.Empty;
|
||||
public string? Email { get; set; } = string.Empty;
|
||||
public string? MobilePhone { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyContracts.SearchModels.Guarantor
|
||||
{
|
||||
// Поиск сущности ГИд
|
||||
public class GuideSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
|
||||
public string? GuideFIO { get; set; } = string.Empty;
|
||||
|
||||
public double? GuidePrice { get; set; }
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyContracts.SearchModels.Guarantor
|
||||
{
|
||||
// Поиск сущности места для посещения
|
||||
public class PlaceSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
|
||||
public string NamePlace { get; set; } = string.Empty;
|
||||
|
||||
public string DescriptionPlace { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyContracts.SearchModels.Guarantor
|
||||
{
|
||||
internal class TripSearchModel
|
||||
{
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TravelCompanyContracts.BindingModels;
|
||||
using TravelCompanyContracts.SearchModels.Guarantor;
|
||||
using TravelCompanyContracts.ViewModels.Guarantor.ViewModels;
|
||||
|
||||
namespace TravelCompanyContracts.StoragesModels.Guarantor
|
||||
{
|
||||
// интерфейся дл я хранилища поручилейе
|
||||
public interface IGuarantorStorage
|
||||
{
|
||||
List<GuarantorViewModel> GetFullList();
|
||||
|
||||
List<GuarantorViewModel> GetFilteredList(GuarantorSearchModel model);
|
||||
|
||||
GuarantorViewModel? GetElement(GuarantorSearchModel model);
|
||||
|
||||
GuarantorViewModel? Insert(GuarantorSearchModel model);
|
||||
|
||||
GuarantorViewModel? Update(GuarantorSearchModel model);
|
||||
|
||||
GuarantorViewModel? Delete(GuarantorSearchModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TravelCompanyContracts.BindingModels;
|
||||
using TravelCompanyContracts.SearchModels.Guarantor;
|
||||
using TravelCompanyContracts.ViewModels.Guarantor.ViewModels;
|
||||
|
||||
namespace TravelCompanyContracts.StoragesModels.Guarantor
|
||||
{
|
||||
// интерфейся дл я хранилища гида
|
||||
public interface IGuideStorage
|
||||
{
|
||||
List<GuideViewModel> GetFullList();
|
||||
|
||||
List<GuideViewModel> GetFilteredList(GuideSearchModel model);
|
||||
|
||||
GuideViewModel? GetElement(GuideSearchModel model);
|
||||
|
||||
GuideViewModel? Insert(GuideSearchModel model);
|
||||
|
||||
GuideViewModel? Update(GuideSearchModel model);
|
||||
|
||||
GuideViewModel? Delete(GuideSearchModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TravelCompanyContracts.SearchModels.Guarantor;
|
||||
using TravelCompanyContracts.ViewModels.Guarantor.ViewModels;
|
||||
|
||||
namespace TravelCompanyContracts.StoragesModels.Guarantor
|
||||
{
|
||||
// интерфейся дл я хранилища места для посещения
|
||||
public interface IPlaceStorage
|
||||
{
|
||||
List<PlaceViewModel> GetFullList();
|
||||
|
||||
List<PlaceViewModel> GetFilteredList(PlaceSearchModel model);
|
||||
|
||||
PlaceViewModel? GetElement(PlaceSearchModel model);
|
||||
|
||||
PlaceViewModel? Insert(PlaceSearchModel model);
|
||||
|
||||
PlaceViewModel? Update(PlaceSearchModel model);
|
||||
|
||||
PlaceViewModel? Delete(PlaceSearchModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyContracts.StoragesModels.Guarantor
|
||||
{
|
||||
internal class ITripStorage
|
||||
{
|
||||
}
|
||||
}
|
@ -7,10 +7,10 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="BusinessLogicsContracts\" />
|
||||
<Folder Include="SearchModels\" />
|
||||
<Folder Include="StoragesModels\" />
|
||||
<Folder Include="ViewModels\" />
|
||||
<Folder Include="BusinessLogicsContracts\Contractor\" />
|
||||
<Folder Include="SearchModels\Contractor\" />
|
||||
<Folder Include="StoragesModels\Contractor\" />
|
||||
<Folder Include="ViewModels\Contractor\ViewModels\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TravelCompanyDataModels.Models.Guarantor;
|
||||
|
||||
namespace TravelCompanyContracts.ViewModels.Guarantor.ViewModels
|
||||
{
|
||||
// Отображение информации о поручителях
|
||||
public class GuarantorViewModel : IGuarantorModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[DisplayName("Фамилия")]
|
||||
public string Surname { get; set; } = string.Empty;
|
||||
|
||||
[DisplayName("Имя")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[DisplayName("Отчество")]
|
||||
public string Patronymic { get; set; } = string.Empty;
|
||||
|
||||
[DisplayName("Логин")]
|
||||
public string Login { get; set; } = string.Empty;
|
||||
|
||||
[DisplayName("Пароль")]
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
[DisplayName("Почта")]
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
[DisplayName("Телефон")]
|
||||
public string MobilePhone { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TravelCompanyDataModels.Models.Guarantor;
|
||||
|
||||
namespace TravelCompanyContracts.ViewModels.Guarantor.ViewModels
|
||||
{
|
||||
// Отображение информации о гидах
|
||||
public class GuideViewModel : IGuideModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[DisplayName("ФИО гида")]
|
||||
public string GuideFIO { get; set; } = string.Empty;
|
||||
|
||||
[DisplayName("Телефон гида")]
|
||||
public string PhoneNumber { get; set; } = string.Empty;
|
||||
|
||||
[DisplayName("Цена гида")]
|
||||
public double GuidePrice { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TravelCompanyDataModels.Models.Guarantor;
|
||||
|
||||
namespace TravelCompanyContracts.ViewModels.Guarantor.ViewModels
|
||||
{
|
||||
// Отображение информации о местах для посещения
|
||||
public class PlaceViewModel : IPlaceModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[DisplayName("Название места")]
|
||||
public string NamePlace { get; set; } = string.Empty;
|
||||
|
||||
[DisplayName("Описание места")]
|
||||
public string DescriptionPlace { get; set; } = string.Empty;
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyContracts.ViewModels.Guarantor.ViewModels
|
||||
{
|
||||
internal class TripViewModel
|
||||
{
|
||||
}
|
||||
}
|
@ -13,6 +13,6 @@ namespace TravelCompanyDataModels.Models.Guarantor
|
||||
|
||||
string PhoneNumber { get; }
|
||||
|
||||
string GuidePrice { get; }
|
||||
double GuidePrice { get; }
|
||||
}
|
||||
}
|
||||
|
@ -9,6 +9,8 @@ namespace TravelCompanyDataModels.Models.Guarantor
|
||||
{
|
||||
public interface ITripModel : IId
|
||||
{
|
||||
int GuarantorId { get; }
|
||||
|
||||
string TripName { get; }
|
||||
|
||||
DateTime TripDate { get; }
|
||||
|
@ -1,19 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TravelCompanyDataModels.Models
|
||||
{
|
||||
public interface IUserModel : IId
|
||||
{
|
||||
string Surname { get; }
|
||||
string Name { get; }
|
||||
string Patronymic { get; }
|
||||
string Login { get; }
|
||||
string Password { get; }
|
||||
string Email { get; }
|
||||
string MobilePhone { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Implements\" />
|
||||
<Folder Include="Models\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\TravelCompanyContracts\TravelCompanyContracts.csproj" />
|
||||
<ProjectReference Include="..\TravelCompanyDataModels\TravelCompanyDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user