Files
Backend-Api/Company.Domain/RollCallEmployeeAgg/IRollCallEmployeeRepository.cs

38 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using _0_Framework.Domain;
using CompanyManagment.App.Contracts.RollCallEmployee;
namespace Company.Domain.RollCallEmployeeAgg;
public interface IRollCallEmployeeRepository : IRepository<long, RollCallEmployee>
{
bool HasRollCallRecord(long employeeId, long workshopId, DateTime contractStart, DateTime contractEnd);
List<RollCallEmployeeViewModel> GetByWorkshopId(long workshopId);
EditRollCallEmployee GetDetails(long id);
RollCallEmployeeViewModel GetByEmployeeIdAndWorkshopId(long employeeId, long workshopId);
List<RollCallEmployeeViewModel> GetPersonnelRollCallListPaginate(RollCallEmployeeSearchModel command);
//rollcallEmployeeIncludeStatus
RollCallEmployee GetWithRollCallStatus(long id);
int activedPerson(long workshopId);
#region Pooya
List<RollCallEmployeeViewModel> GetRollCallEmployeesByWorkshopId(long workshopId);
List<RollCallEmployeeViewModel> GetByEmployeeIdWithStatuses(long employeeId);
List<RollCallEmployeeViewModel> GetActivePersonnelByWorkshopId(long workshopId);
List<RollCallEmployeeViewModel> GetEmployeeRollCalls(long workshopId);
List<RollCallEmployeeViewModel> GetPersonnelRollCallListAll(long workshopId);
#endregion
#region Farokhi&Mahan
bool HasEmployees(long workshopId);
(int activeEmployees, int deActiveEmployees) GetActiveAndDeActiveRollCallEmployees(long workshopId);
RollCallEmployee GetBy(long employeeId, long workshopId);
#endregion
}