26 lines
898 B
C#
26 lines
898 B
C#
namespace LCU.API.Internal.Operations.IncentiveApi.Models.Dayforce;
|
|
|
|
public class TerminatedEmployeeResult
|
|
{
|
|
public TerminatedEmployeeResult(IReadOnlyDictionary<string, string> row)
|
|
{
|
|
DisplayName = row["Employee_DisplayName"];
|
|
EmployeeNumber = row["EmployeeEmploymentStatus_EmployeeNumber"];
|
|
LoginName = row["IdLibrary_LoginName"];
|
|
|
|
if (row.ContainsKey("EmployeeManager_ManagerEmployeeNumber"))
|
|
{
|
|
ManagerKey = row["EmployeeManager_ManagerEmployeeNumber"];
|
|
}
|
|
|
|
var termDate = row["Employee_TerminationDate"];
|
|
TerminationDate = string.IsNullOrWhiteSpace(termDate) ? DateTime.Now : DateTime.Parse(termDate);
|
|
}
|
|
|
|
public string DisplayName { get; }
|
|
public string EmployeeNumber { get; }
|
|
public string LoginName { get; }
|
|
public string ManagerKey { get; }
|
|
public DateTime TerminationDate { get; }
|
|
}
|