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

27 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using _0_Framework.Application;
using _0_Framework.Domain;
using CompanyManagment.App.Contracts.LeftWork;
using CompanyManagment.App.Contracts.PersonnleCode;
namespace Company.Domain.LeftWorkAgg;
public interface ILeftWorkRepository : IRepository<long, LeftWork>
{
EditLeftWork GetDetails(long id);
string StartWork(long employeeId, long workshopId, string leftWork);
List<LeftWorkViewModel> searchByWorkshopId(long workshopId);
List<LeftWorkViewModel> search(LeftWorkSearchModel searchModel);
LeftWorkViewModel CheckoutleftWorkCheck(DateTime contractStart, long workshopId, long employeeId);
OperationResult RemoveLeftWork(long id);
List<LeftWorkViewModel> GetLeftPersonelByWorkshopId(List<long> workshopIds);
OperationResult RemoveAllLeftWork(long workshopId, long employeeId);
List<LeftWorkViewModel> SearchLeftWork(LeftWorkSearchModel searchModel);
OperationResult CreateLeftWork(InformationLeftwork informationLeftwork);
OperationResult CreateLeftWorkByLeftWorkGroups(string employeeFullName, long commandEmployeeId, List<PersonnelCodeViewModel> commandPersonnelCode, List<LeftWorkGroup> leftWorkGroups);
OperationResult CheckDeleteLeftWork(long workshopId, long employeeId, DateTime date, int type);
OperationResult CheckEditLeftWork(long workshopId, long employeeId, DateTime date, int type);
}