Files
Backend-Api/CompanyManagment.App.Contracts/LeftWorkInsurance/ILeftWorkInsuranceApplication.cs
2024-07-05 21:36:15 +03:30

34 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using _0_Framework.Application;
using CompanyManagment.App.Contracts.InsuranceList;
using CompanyManagment.App.Contracts.PersonnleCode;
namespace CompanyManagment.App.Contracts.LeftWorkInsurance;
public interface ILeftWorkInsuranceApplication
{
OperationResult Create(CreateLeftWorkInsurance command);
OperationResult Edit(EditLeftWorkInsurance command);
EditLeftWorkInsurance GetDetails(long id);
List<LeftWorkInsuranceViewModel> search(LeftWorkInsuranceSearchModel searchModel);
string StartWork(long employeeId, long workshopId, string leftWork);
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 itemEmployeeId);
OperationResult CreateLeftWorkInsurance(InformationLeftworkInsurance command);
OperationResult CreateLeftworkInsuranceByLeftworkGroups(string employeeFullName, long commandEmployeeId, List<PersonnelCodeViewModel> commandPersonnelCode, List<LeftWorkInsuranceGroup> leftWorkGroups);
OperationResult CheckDeleteLeftWorkInsurance(long workshopId, long employeeId, string date, int type);
OperationResult CheckEditLeftWorkInsurance(long workshopId, long employeeId, string date, int type);
OperationResult CheckBeforeSaveLeftWorkInsurance(long workshopId, long employeeId, string date, int type);
}