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

34 lines
1.9 KiB
C#

using System;
using System.Collections.Generic;
using _0_Framework.Application;
using _0_Framework.Domain;
using CompanyManagment.App.Contracts.InsuranceList;
using CompanyManagment.App.Contracts.LeftWorkInsurance;
using CompanyManagment.App.Contracts.PersonnleCode;
namespace Company.Domain.LeftWorkInsuranceAgg;
public interface ILeftWorkInsuranceRepository : IRepository<long, LeftWorkInsurance>
{
EditLeftWorkInsurance GetDetails(long id);
string StartWork(long employeeId, long workshopId, string leftWork);
List<LeftWorkInsuranceViewModel> searchByWorkshopId(long workshopId);
List<LeftWorkInsuranceViewModel> search(LeftWorkInsuranceSearchModel searchModel);
OperationResult RemoveLeftWorkInsurance(long id);
OperationResult RemoveAllLeftWorkInsurance(long workshopId, long employeeId);
List<LeftWorkInsuranceViewModel> GetLeftPersonelByWorkshopId(List<long> workshopIds);
List<LeftWorkInsuranceViewModel> SearchForCreateInsuranceList(EmployeeForCreateInsuranceListSearchModel searchModel);
LeftWorkInsuranceViewModel GetLeftPersonelByWorkshopIdAndEmployeeId(long workshopId, long employeeId);
OperationResult RemoveAllLeftWorkInsuranceWithoutWorkshop(long employeeId);
OperationResult CreateLeftWorkInsurance(InformationLeftworkInsurance command);
OperationResult CreateLeftworkInsuranceByLeftworkGroups(string employeeFullName, long commandEmployeeId, List<PersonnelCodeViewModel> commandPersonnelCode, List<LeftWorkInsuranceGroup> leftworkInsuranceGroups);
OperationResult CheckDeleteLeftWorkInsurance(long workshopId, long employeeId, DateTime date, int type);
OperationResult CheckEditLeftWorkInsurance(long workshopId, long employeeId, DateTime date, int type);
OperationResult CheckBeforeSaveLeftWorkInsurance(long workshopId, long employeeId, DateTime toGeorgianDateTime, int type);
int TotalWorkingYears(long employeeId, long workshopId, DateTime startDate);
}