using JdeScoping.Core.Helpers;
namespace JdeScoping.Core.Models.Lookup;
///
/// JDE work order status code lookup entity
///
public class StatusCode
{
///
/// Status code unique code
///
public string Code { get; set; } = string.Empty;
///
/// Status code description
///
public string Description { get; set; } = string.Empty;
///
/// JDE date of last update to record (private backing field for Dapper mapping)
///
private int LastUpdateDate { get; set; }
///
/// JDE time of day of last update to record (private backing field for Dapper mapping)
///
private int LastUpdateTime { get; set; }
///
/// Timestamp of last update to record (computed from JDE date/time)
///
public DateTime? LastUpdateDt => JdeDateConverter.ToDateTime(LastUpdateDate, LastUpdateTime);
}