реализация View Model

This commit is contained in:
Альфия Тукаева 2023-04-03 17:26:05 +03:00
parent efce665f58
commit 6cb34fba44
9 changed files with 158 additions and 0 deletions

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SchoolContracts.ViewModels
{
public class CircleViewModel
{
public int Id { get; set; }
[DisplayName("Дата начала кружка")]
public DateTime StartDate { get; set; }
public int ClientId { get; set; }
public int LessonId { get; set; }
public Dictionary<int, string> CircleLessons { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SchoolContracts.ViewModels
{
public class ClientViewModel
{
public int Id { get; set; }
public string ClientName { get; set; }
public string ClientEmail { get; set; }
public string ClientPassword { get; set; }
public string ClientPhone { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SchoolContracts.ViewModels
{
public class EmployeeViewModel
{
public int Id { get; set; }
public string EmployeeName { get; set; }
public string EmployeeEmail { get; set; }
public string EmployeePhone { get; set; }
public string EmployeePassword { get; set;}
}
}

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SchoolContracts.ViewModels
{
public class LessonViewModel
{
public int Id { get; set; }
[DisplayName("Название занятия")]
public string LessonName { get; set; }
[DisplayName("стоимость занятия")]
public decimal LessonCost { get; set; }
public int? EmployeeId { get; set; }
public string EmployeeName { get; set; }
public Dictionary<int, (int, DateTime)> CircleLessons { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SchoolContracts.ViewModels
{
public class PaymentViewModel
{
public int Id { get; set; }
public decimal Sum { get; set; }
public decimal Remains { get; set; }
public DateTime? DateOfPayment { get; set; }
public int LessonId { get; set; }
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SchoolContracts.ViewModels
{
public class ReportCircleLessonViewModel
{
public DateTime? CircleDate { get; set; }
public List<string> Lessons { get; set; }
public int TotalCount { get; set; }
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SchoolContracts.ViewModels
{
public class ReportCircleViewModel
{
public DateTime DateCreate { get; set; }
public string ClientName { get; set; }
public decimal Sum { get; set; }
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SchoolContracts.ViewModels
{
public class ReportLessonCircleViewModel
{
public string Name { get; set; }
public List<DateTime> Circles { get; set; }
public int TotalCount { get; set; }
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SchoolContracts.ViewModels
{
public class ReportViewerLessonModel
{
public string Name { get; set; }
public int Count { get; set; }
}
}