Utopia-Canteen-System/Models/HrmsEmployeeInfo.cs

32 lines
1.8 KiB
C#

namespace UtopiaCanteenSystem.Models;
/// <summary>
/// Employee info loaded from local HRMS by RFID (employee_rfid_tag → employee → department).
/// </summary>
public class HrmsEmployeeInfo
{
/// <summary>Employee document id (employee.id); used to fetch photo from hrms.employee_photo.</summary>
public string ParentDocumentId { get; set; } = string.Empty;
/// <summary>Employee serial number (employee.serial_number).</summary>
public string EmployeeId { get; set; } = string.Empty;
/// <summary>uind_serial from employee_rfid_tag (production lunch_order.employee_serial_number).</summary>
public string UindSerial { get; set; } = string.Empty;
/// <summary>function_id from employee_rfid_tag.</summary>
public int FunctionId { get; set; }
/// <summary>department_id from employee_rfid_tag (production lunch_order.department_id).</summary>
public int DepartmentId { get; set; }
/// <summary>date_time_created from employee_rfid_tag (production lunch_order.created_at).</summary>
public DateTime? TagCreatedAtUtc { get; set; }
/// <summary>created_by from employee_rfid_tag (production lunch_order.created_by).</summary>
public string TagCreatedBy { get; set; } = string.Empty;
public string FirstName { get; set; } = string.Empty;
public string MiddleName { get; set; } = string.Empty;
public string DepartmentTitle { get; set; } = string.Empty;
public string DepartmentType { get; set; } = string.Empty;
/// <summary>Site from employee_rfid_tag.location_site_id; used for menu lookup (lunch_menu_week).</summary>
public string LocationSiteId { get; set; } = string.Empty;
public string GradeType { get; set; } = string.Empty;
/// <summary>employee.position_title (job title / designation).</summary>
public string PositionTitle { get; set; } = string.Empty;
}