Files
Backend-Api/CompanyManagment.App.Contracts/RollCallEmployee/IRollCallEmployeeApplication.cs

42 lines
1.6 KiB
C#

using _0_Framework.Application;
using System.Collections.Generic;
using System.Linq;
namespace CompanyManagment.App.Contracts.RollCallEmployee;
public interface IRollCallEmployeeApplication
{
OperationResult Create(CreateRollCallEmployee command);
OperationResult Active(long id);
OperationResult DeActive(long id);
OperationResult UploadedImage(long Employeeid, long WorkshopId);
List<RollCallEmployeeViewModel> GetByWorkshopId(long workshopId);
EditRollCallEmployee GetDetails(long id);
RollCallEmployeeViewModel GetByEmployeeIdAndWorkshopId(long employeeId, long workshopId);
List<RollCallEmployeeViewModel> GetPersonnelRollCallListPaginate(RollCallEmployeeSearchModel command);
List<RollCallEmployeeViewModel> GetActivePersonnelByWorkshopId(long workshopId);
bool IsEmployeeRollCallActive(long employeeId, long workshopId);
int activedPerson(long workshopId);
#region pooya
/// <summary>
/// دریافت لیست پرسنل کارگاه برای حضور غیاب دستی
/// </summary>
List<RollCallEmployeeViewModel> GetRollCallEmployeesByWorkshopId(long workshopId);
List<RollCallEmployeeViewModel> GetEmployeeRollCalls(long workshopId);
//List<RollCallEmployeeViewModel> GetPersonnelRollCallListAll(long workshopId);
OperationResult ChangeEmployeeRollCallName(long rollCallEmployeeId, string fName, string lName);
#endregion
#region Farpkhi&Mahan
(int activeEmployees, int deActiveEmployees) GetActiveAndDeActiveRollCallEmployees(long workshopId);
bool HasEmployees(long workshopId);
#endregion
}