33 lines
965 B
C#
33 lines
965 B
C#
using Marco.Pms.Model.Employees;
|
|
using Marco.Pms.Model.Utilities;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Marco.Pms.Model.ServiceProject
|
|
{
|
|
public class JobAttendance : TenantRelation
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid JobTcketId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("JobTcketId")]
|
|
public JobTicket? JobTicket { get; set; }
|
|
public TAGGING_MARK_TYPE Action { get; set; }
|
|
public Guid EmployeeId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("EmployeeId")]
|
|
public Employee? Employee { get; set; }
|
|
public DateTime TaggedInTime { get; set; }
|
|
public DateTime? TaggedOutTime { get; set; }
|
|
public DateTime TaggedInAt { get; set; }
|
|
public DateTime? TaggedOutAt { get; set; }
|
|
}
|
|
|
|
public enum TAGGING_MARK_TYPE
|
|
{
|
|
TAG_IN = 0, TAG_OUT = 1
|
|
}
|
|
}
|