71 lines
2.1 KiB
C#
71 lines
2.1 KiB
C#
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<OperationResult> Create(CreateLeftWorkTemp command);
|
|
|
|
/// <summary>
|
|
/// گرفتن اطلاعات برای مودال جزئیات شروع به کار موقت یا ترک کار موقت
|
|
/// </summary>
|
|
/// <param name="employeeId"></param>
|
|
/// <param name="workshopId"></param>
|
|
/// <returns></returns>
|
|
Task<GetStartWorkTempDetails> GetStartAndLeftWorkDetails(long employeeId,long workshopId);
|
|
|
|
/// <summary>
|
|
/// تایید شروع به کار موقت
|
|
/// </summary>
|
|
/// <param name="command"></param>
|
|
/// <returns></returns>
|
|
Task<OperationResult> AcceptStartWork(AcceptStartWorkTemp command);
|
|
|
|
/// <summary>
|
|
/// تایید ترک کار موقت
|
|
/// </summary>
|
|
/// <param name="command"></param>
|
|
/// <returns></returns>
|
|
Task<OperationResult> AcceptLeftWork(AcceptLeftWorkTemp command);
|
|
}
|
|
|
|
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<LeftWorkTempDetailsViewModel> 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; }
|
|
} |