Files
Backend-Api/Company.Domain/LeaveAgg/Leave.cs
2024-07-05 21:36:15 +03:30

59 lines
2.2 KiB
C#

using System;
using _0_Framework.Domain;
using static System.Net.Mime.MediaTypeNames;
namespace Company.Domain.LeaveAgg;
public class Leave: EntityBase
{
public Leave(DateTime startLeave, DateTime endLeave,
string leaveHourses, long workshopId, long employeeId,
string paidLeaveType, string leaveType, string employeeFullName, string workshopName, bool isAccepted, string decription, int year, int month)
{
StartLeave = startLeave;
EndLeave = endLeave;
LeaveHourses = leaveHourses;
WorkshopId = workshopId;
EmployeeId = employeeId;
PaidLeaveType = paidLeaveType;
LeaveType = leaveType;
EmployeeFullName = employeeFullName;
WorkshopName = workshopName;
IsAccepted = isAccepted;
Decription = decription;
Year = year;
Month = month;
}
public DateTime StartLeave { get; private set; }
public DateTime EndLeave { get; private set; }
public string LeaveHourses { get; private set; }
public long WorkshopId { get; private set; }
public long EmployeeId { get; private set; }
public string PaidLeaveType { get; private set; }
public string LeaveType { get; private set; }
public string EmployeeFullName { get; private set; }
public string WorkshopName { get; private set; }
public bool IsAccepted { get; private set; }
public string Decription { get; private set; }
public int Year { get; private set; }
public int Month { get; private set; }
public void Edit(DateTime startLeave, DateTime endLeave,
string leaveHourses, long workshopId, long employeeId,
string paidLeaveType, string leaveType, string employeeFullName, string workshopName, bool isAccepted, string decription, int year, int month)
{
StartLeave = startLeave;
EndLeave = endLeave;
LeaveHourses = leaveHourses;
WorkshopId = workshopId;
EmployeeId = employeeId;
PaidLeaveType = paidLeaveType;
LeaveType = leaveType;
EmployeeFullName = employeeFullName;
WorkshopName = workshopName;
IsAccepted = isAccepted;
Decription = decription;
Year = year;
Month = month;
}
}