using System; using System.Collections.Generic; using System.Threading.Tasks; using _0_Framework.Application; using CompanyManagment.App.Contracts.LeftWork; namespace CompanyManagment.App.Contracts.LeftWorkTemp; public interface ILeftWorkTempApplication { Task Create(CreateLeftWorkTemp command); /// /// گرفتن اطلاعات برای مودال جزئیات شروع به کار موقت یا ترک کار موقت /// /// /// /// Task GetStartAndLeftWorkDetails(long employeeId,long workshopId); /// /// تایید شروع به کار موقت /// /// /// Task AcceptStartWork(AcceptStartWorkTemp command); /// /// تایید ترک کار موقت /// /// /// Task AcceptLeftWork(AcceptLeftWorkTemp command); Task> GetLeftWorkTempsByEmployeeId(long employeeId); List GetLeftWorksByWorkshopId(long workshopId); } public class LeftWorkTempViewModel { public long LeftWorkId { get; set; } public DateTime StartWork { get; set; } public DateTime LeftWork { get; set; } public DateTime LastDayStanding { get; set; } public long WorkshopId { get; set; } public long EmployeeId { get; set; } public long JobId { get; set; } public LeftWorkTempType LeftWorkType { get; set; } } public class AcceptLeftWorkTemp { public long LeftWorkTempId { get; set; } public string LeftWorkTime { get; set; } public string LastDayStanding { get; set; } } public class AcceptStartWorkTemp { public long LeftWorkTempId { get; set; } public string StartDateTime { get; set; } public long JobId { get; set; } } public class GetStartWorkTempDetails { public LeftWorkTempDetailsViewModel LeftWorkTemp { get; set; } public List PreviousLeftWorks { get; set; } public long JobId { get; set; } public string JobName { get; set; } public long WorkshopId { get; set; } public string WorkshopFullName { get; set; } public string EmployeeFullName { get; set; } public long EmployeeId { get; set; } public long PersonnelCode { get; set; } } public class LeftWorkTempDetailsViewModel { public long Id { get; set; } public string StartWork { get; set; } public string LeftWork { get; set; } public string LastDayStanding { get; set; } }