Contracts -> ViewModels

This commit is contained in:
maxnes3 2023-03-26 20:08:05 +04:00
parent 28ebd2f868
commit 83e31651fd
9 changed files with 140 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace CaseAccountingContracts.SearchModels namespace CaseAccountingContracts.SearchModels
{ {
public class HearingModel public class HearingSearchModel
{ {
public int? Id { get; set; } public int? Id { get; set; }

View File

@ -10,6 +10,6 @@ namespace CaseAccountingContracts.SearchModels
{ {
public int? Id { get; set; } public int? Id { get; set; }
public int SpecializationId { get; set; } public int? SpecializationId { get; set; }
} }
} }

View File

@ -0,0 +1,30 @@
using CaseAccountingDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingContracts.ViewModels
{
public class CaseViewModel : ICaseModel
{
[DisplayName("Название")]
public string Name { get; set; } = string.Empty;
[DisplayName("Истец")]
public string Applicant { get; set; } = string.Empty;
[DisplayName("Ответчик")]
public string Defendant { get; set; } = string.Empty;
[DisplayName("Аннотация")]
public string Annotation { get; set; } = string.Empty;
[DisplayName("Дата составления")]
public DateTime Date { get; set; }
public int SpecializationId { get; set; }
[DisplayName("Специализация")]
public string Specialization { get; set; } = string.Empty;
public int UserId { get; set; }
[DisplayName("Номер")]
public int Id { get; set; }
}
}

View File

@ -0,0 +1,21 @@
using CaseAccountingDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingContracts.ViewModels
{
public class ContractViewModel : IContractModel
{
[DisplayName("Услуга")]
public string Service { get; set; } = string.Empty;
[DisplayName("Стоимость")]
public decimal Coast { get; set; }
[DisplayName("Дата подписания")]
public DateTime Date { get; set; }
public int Id { get; set; }
}
}

View File

@ -0,0 +1,21 @@
using CaseAccountingDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingContracts.ViewModels
{
public class DealViewModel : IDealModel
{
[DisplayName("Предмет договора")]
public string Subject { get; set; } = string.Empty;
[DisplayName("Обязанности")]
public string Responsibilities { get; set; } = string.Empty;
[DisplayName("Дата составления")]
public DateTime Date { get; set; }
public int Id { get; set; }
}
}

View File

@ -0,0 +1,22 @@
using CaseAccountingDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingContracts.ViewModels
{
public class HearingViewModel : IHearingModel
{
[DisplayName("Информация")]
public string Information { get; set; } = string.Empty;
[DisplayName("Дата проведения")]
public DateTime Date { get; set; }
[DisplayName("Номер дела")]
public int CaseId { get; set; }
public int Id { get; set; }
}
}

View File

@ -0,0 +1,26 @@
using CaseAccountingDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingContracts.ViewModels
{
public class LawyerViewModel : ILawyerModel
{
[DisplayName("Имя")]
public string Name { get; set; } = string.Empty;
[DisplayName("Фамилия")]
public string Surname { get; set; } = string.Empty;
[DisplayName("Отчество")]
public string Patronymic { get; set; } = string.Empty;
[DisplayName("Опыт работы")]
public int Experience { get; set; }
public int SpecializationId { get; set; }
[DisplayName("Специализация")]
public string Specialization { get; set; } = string.Empty;
public int Id { get; set; }
}
}

View File

@ -0,0 +1,17 @@
using CaseAccountingDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CaseAccountingContracts.ViewModels
{
public class SpecializationViewModel : ISpecializationModel
{
[DisplayName("Название")]
public string Name { get; set; } = string.Empty;
public int Id { get; set; }
}
}