Files
Backend-Api/CompanyManagment.App.Contracts/RollCallEmployeeStatus/IRollCallEmployeeStatusApplication.cs

24 lines
913 B
C#

using _0_Framework.Application;
using System;
using System.Collections.Generic;
namespace CompanyManagment.App.Contracts.RollCallEmployeeStatus
{
public interface IRollCallEmployeeStatusApplication
{
OperationResult Create(CreateRollCallEmployeeStatus cmd);
OperationResult Deactivate(long id);
OperationResult Edit(EditRollCallEmployeeStatus cmd);
/// <summary>
/// شرط صدور فبش حقوقی بر اساس حضور غیاب
/// </summary>
bool HasRollCallRecord(long employeeId, long workshopId, DateTime contractStart, DateTime contractEnd);
List<RollCallEmployeeStatusViewModel> GetActiveByWorkshopIdInDate(long workshopId, DateTime startDateGr, DateTime endDateGr);
bool IsActiveInPeriod(long employeeId, long workshopId, DateTime startDate, DateTime endDate);
void SyncRollCallEmployeeWithLeftWork(long rollCallEmployeeId);
}
}