2024-10-29 13:50:35 +04:00
|
|
|
|
using StudentProgressRecord.Entity.Enums;
|
2024-12-02 20:25:45 +04:00
|
|
|
|
using System.ComponentModel;
|
2024-10-29 13:50:35 +04:00
|
|
|
|
|
|
|
|
|
namespace StudentProgressRecord.Entity
|
|
|
|
|
{
|
|
|
|
|
public class StudentTransition
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
2024-12-02 20:25:45 +04:00
|
|
|
|
[Browsable(false)]
|
2024-10-29 13:50:35 +04:00
|
|
|
|
public long StudentId { get; set; }
|
|
|
|
|
|
2024-12-02 20:25:45 +04:00
|
|
|
|
[DisplayName("Студент")]
|
|
|
|
|
public string StudentName { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[DisplayName("Тип операции")]
|
2024-10-29 13:50:35 +04:00
|
|
|
|
public Operations Operation { get; set; }
|
|
|
|
|
|
2024-12-02 20:25:45 +04:00
|
|
|
|
[DisplayName("Дата")]
|
2024-11-18 14:55:50 +04:00
|
|
|
|
public DateTime Date { get; set; }
|
2024-10-29 13:50:35 +04:00
|
|
|
|
|
2024-12-07 15:09:21 +04:00
|
|
|
|
|
2024-10-29 13:50:35 +04:00
|
|
|
|
public static StudentTransition CreateOperation(long id, long studentId, Operations operation, DateTime time)
|
|
|
|
|
{
|
|
|
|
|
return new StudentTransition
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
|
|
|
|
StudentId = studentId,
|
|
|
|
|
Operation = operation,
|
2024-11-18 14:55:50 +04:00
|
|
|
|
Date = time
|
2024-10-29 13:50:35 +04:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|