diff --git a/.Accounting for the results of the session.vpp.lck b/.Accounting for the results of the session.vpp.lck new file mode 100644 index 0000000..e69de29 diff --git a/Accounting for the results of the session.vpp b/Accounting for the results of the session.vpp new file mode 100644 index 0000000..0fbcf12 Binary files /dev/null and b/Accounting for the results of the session.vpp differ diff --git a/Accounting for the results of the session.vpp.bak_000f b/Accounting for the results of the session.vpp.bak_000f new file mode 100644 index 0000000..0fbcf12 Binary files /dev/null and b/Accounting for the results of the session.vpp.bak_000f differ diff --git a/ProjectSession/ProjectSession/Entities/Discipline.cs b/ProjectSession/ProjectSession/Entities/Discipline.cs new file mode 100644 index 0000000..976b64b --- /dev/null +++ b/ProjectSession/ProjectSession/Entities/Discipline.cs @@ -0,0 +1,19 @@ +namespace YourNamespace.Entities +{ + public class Discipline + { + public int Id { get; private set; } + public string Name { get; private set; } = string.Empty; + public int Estimation { get; private set; } + + public static Discipline CreateDiscipline(int id, string name, int estimation) + { + return new Discipline + { + Id = id, + Name = name, + Estimation = estimation + }; + } + } +} \ No newline at end of file diff --git a/ProjectSession/ProjectSession/Entities/Enums/DisciplineName.cs b/ProjectSession/ProjectSession/Entities/Enums/DisciplineName.cs new file mode 100644 index 0000000..8485a22 --- /dev/null +++ b/ProjectSession/ProjectSession/Entities/Enums/DisciplineName.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectSession.Entities.Enums; + +public enum DisciplineName +{ + OTP = 1, + OOP = 2, + PI = 3, + VM = 4, + OAIP = 5 +} diff --git a/ProjectSession/ProjectSession/Entities/Enums/TeacherName.cs b/ProjectSession/ProjectSession/Entities/Enums/TeacherName.cs new file mode 100644 index 0000000..c34d8e0 --- /dev/null +++ b/ProjectSession/ProjectSession/Entities/Enums/TeacherName.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectSession.Entities.Enums; + +public enum TeacherName +{ + Kuleshov = 1, + Skalkin = 2, + Ankilov = 3, + Voronina = 4, + Surkova = 5, + Egov = 6 +} diff --git a/ProjectSession/ProjectSession/Entities/Statament.cs b/ProjectSession/ProjectSession/Entities/Statament.cs new file mode 100644 index 0000000..773c0f5 --- /dev/null +++ b/ProjectSession/ProjectSession/Entities/Statament.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectSession.Entities; + +public class Statament +{ + public int Id { get; private set; } + public int TeacherID { get; private set; } + public int Discipline { get; private set; } + public string Date { get; private set; } = string.Empty; + + public static Statament CreateStatament(int id, int teacherID, int discoplineID, string date) + { + return new Statament + { + Id = id, + TeacherID = teacherID, + Discipline = discoplineID, + Date = date + }; + } +} diff --git a/ProjectSession/ProjectSession/Entities/Student.cs b/ProjectSession/ProjectSession/Entities/Student.cs new file mode 100644 index 0000000..f84d471 --- /dev/null +++ b/ProjectSession/ProjectSession/Entities/Student.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectSession.Entities; + +public class Student +{ + public int Id { get; private set; } + public string Name { get; private set; } = string.Empty; + public string FamilyStatus { get; private set; } = string.Empty; + public bool Dormitory { get; private set; } + + public static Student CreateStudent(int id, string name, string familyStatus, bool dormitory) + { + return new Student + { + Id = id, + Name = name, + FamilyStatus = familyStatus, + Dormitory = dormitory, + + }; + + } +} diff --git a/ProjectSession/ProjectSession/Entities/Student_Statament.cs b/ProjectSession/ProjectSession/Entities/Student_Statament.cs new file mode 100644 index 0000000..4f1ca02 --- /dev/null +++ b/ProjectSession/ProjectSession/Entities/Student_Statament.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectSession.Entities; + +public class Student_Statament +{ + public int StudentId { get; private set; } + public int StatamentID { get; private set; } + public static Student_Statament CreateStudent_Statament(int studentId, int statamentID) + { + return new Student_Statament + { + StudentId = studentId, + StatamentID = statamentID + }; + } +} diff --git a/ProjectSession/ProjectSession/Entities/Sumbission.cs b/ProjectSession/ProjectSession/Entities/Sumbission.cs new file mode 100644 index 0000000..98eb1ee --- /dev/null +++ b/ProjectSession/ProjectSession/Entities/Sumbission.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectSession.Entities; + +public class Sumbission +{ + public int Id { get; private set; } + public int StudentId { get; private set; } + public int DisciplineID { get; private set; } + public string Date { get; private set; } = string.Empty; + + public static Sumbission CreateSumbission(int id, int studentID, int disciplineID, string date) + { + return new Sumbission + { + Id = id, + Date = date, + DisciplineID = disciplineID , + StudentId = studentID + }; + } +} diff --git a/ProjectSession/ProjectSession/Entities/Teacher.cs b/ProjectSession/ProjectSession/Entities/Teacher.cs new file mode 100644 index 0000000..69ff3de --- /dev/null +++ b/ProjectSession/ProjectSession/Entities/Teacher.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectSession.Entities; + +public class Teacher +{ + public int Id { get; private set; } + public string Name { get; private set; } = string.Empty; + public DateTime Date { get; private set; } + + public static Teacher CreateTeacher(int id, string name, DateTime date) + { + return new Teacher + { + Id = id, + Name = name, + Date = date + }; + } +} diff --git a/ProjectSession/ProjectSession/Repositories/IDisciplineRepository.cs b/ProjectSession/ProjectSession/Repositories/IDisciplineRepository.cs new file mode 100644 index 0000000..b6311fa --- /dev/null +++ b/ProjectSession/ProjectSession/Repositories/IDisciplineRepository.cs @@ -0,0 +1,17 @@ +using ProjectSession.Entities; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectSession.Repositories; + +public interface IDisciplineRepository +{ + IEnumerable ReadDiscipline(); + Discipline ReadDisciplineID(int id); + void CreateDiscipline(Discipline teacher); + void UpdateDiscipline(Discipline teacher); + void DeleteDiscipline(int id); +} diff --git a/ProjectSession/ProjectSession/Repositories/IStatamentRepository.cs b/ProjectSession/ProjectSession/Repositories/IStatamentRepository.cs new file mode 100644 index 0000000..a0f4a1a --- /dev/null +++ b/ProjectSession/ProjectSession/Repositories/IStatamentRepository.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectSession.Repositories; + +public interface IStatamentRepository +{ + IEnumerable ReadStataments(DateTime? dateForm = null, DateTime? dateTo = null, int? teacherID = null, int? discoplineID, int? ) +} diff --git a/ProjectSession/ProjectSession/Repositories/IStudentRepository.cs b/ProjectSession/ProjectSession/Repositories/IStudentRepository.cs new file mode 100644 index 0000000..b4af1e8 --- /dev/null +++ b/ProjectSession/ProjectSession/Repositories/IStudentRepository.cs @@ -0,0 +1,19 @@ +using ProjectSession.Entities; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectSession.Repositories; + +public interface IStudentRepository +{ + IEnumerable ReadStudent(); + + Student ReadStudentID(int id); + + void CreateStudent(Student student); + void UpdateStudent(Student student); + void DeleteStident(int id); +} diff --git a/ProjectSession/ProjectSession/Repositories/ITeacherRepository.cs b/ProjectSession/ProjectSession/Repositories/ITeacherRepository.cs new file mode 100644 index 0000000..0ac158e --- /dev/null +++ b/ProjectSession/ProjectSession/Repositories/ITeacherRepository.cs @@ -0,0 +1,17 @@ +using ProjectSession.Entities; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectSession.Repositories; + +public interface ITeacherRepository +{ + IEnumerable ReadTeacher(); + Teacher ReadTeacherID(int id); + void CreateTeacher(Teacher teacher); + void UpdateTeacher(Teacher teacher); + void DeleteTeacher(int id); +}