poya changesc added

This commit is contained in:
SamSys
2024-08-29 15:00:22 +03:30
parent 4d0370aa70
commit 9eec22e9e4
61 changed files with 8530 additions and 1300 deletions

View File

@@ -0,0 +1,11 @@
using _0_Framework.Domain;
using CompanyManagment.App.Contracts.RollCallEmployeeStatus;
using System.Collections.Generic;
namespace Company.Domain.RollCallEmployeeStatusAgg
{
public interface IRollCallEmployeeStatusRepository : IRepository<long, RollCallEmployeeStatus>
{
List<RollCallEmployeeStatusViewModel> GetAll();
}
}

View File

@@ -0,0 +1,40 @@
using _0_Framework.Application;
using _0_Framework.Domain;
using Company.Domain.RollCallEmployeeAgg;
using System;
namespace Company.Domain.RollCallEmployeeStatusAgg
{
public class RollCallEmployeeStatus : EntityBaseWithoutCreationDate
{
public long RollCallEmployeeId { get; private set; }
public RollCallEmployee RollCallEmployee { get; private set; }
public DateTime StartDate { get; private set; }
public DateTime EndDate { get; private set; }
public RollCallEmployeeStatus(long rollCallEmployeeId, DateTime startDate, DateTime endDate)
{
RollCallEmployeeId = rollCallEmployeeId;
StartDate = startDate;
EndDate = endDate;
}
public RollCallEmployeeStatus(long rollCallEmployeeId, DateTime startDate)
{
RollCallEmployeeId = rollCallEmployeeId;
StartDate = startDate;
EndDate = Tools.GetUndefinedDateTime();
}
public void Edit(DateTime startDate, DateTime endDate)
{
StartDate = startDate;
EndDate = endDate;
}
public void Deactivate(DateTime endDate)
{
EndDate = endDate;
}
}
}