реализация View Model
This commit is contained in:
parent
efce665f58
commit
6cb34fba44
20
School/SchoolContracts/ViewModels/CircleViewModel.cs
Normal file
20
School/SchoolContracts/ViewModels/CircleViewModel.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
18
School/SchoolContracts/ViewModels/ClientViewModel.cs
Normal file
18
School/SchoolContracts/ViewModels/ClientViewModel.cs
Normal 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; }
|
||||
}
|
||||
|
||||
}
|
18
School/SchoolContracts/ViewModels/EmployeeViewModel.cs
Normal file
18
School/SchoolContracts/ViewModels/EmployeeViewModel.cs
Normal 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;}
|
||||
}
|
||||
|
||||
}
|
21
School/SchoolContracts/ViewModels/LessonViewModel.cs
Normal file
21
School/SchoolContracts/ViewModels/LessonViewModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
18
School/SchoolContracts/ViewModels/PaymentViewModel.cs
Normal file
18
School/SchoolContracts/ViewModels/PaymentViewModel.cs
Normal 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; }
|
||||
}
|
||||
|
||||
}
|
@ -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; }
|
||||
}
|
||||
|
||||
}
|
16
School/SchoolContracts/ViewModels/ReportCircleViewModel.cs
Normal file
16
School/SchoolContracts/ViewModels/ReportCircleViewModel.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
@ -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; }
|
||||
|
||||
}
|
||||
}
|
15
School/SchoolContracts/ViewModels/ReportViewerLessonModel.cs
Normal file
15
School/SchoolContracts/ViewModels/ReportViewerLessonModel.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user