26ff8d9b4f
Set up repository with legacy .NET Framework 4.8 source (OLD/), new .NET 10 Blazor solution (NEW/), OpenSpec specifications, documentation, and project configuration.
42 lines
1.1 KiB
C#
Executable File
42 lines
1.1 KiB
C#
Executable File
using System;
|
|
using DataModel.Helpers;
|
|
|
|
namespace DataModel.Models
|
|
{
|
|
/// <summary>
|
|
/// Organization hierarchy (profit center -> work center mapping) model
|
|
/// </summary>
|
|
public class OrgHierarchy
|
|
{
|
|
/// <summary>
|
|
/// Work center unique code
|
|
/// </summary>
|
|
public string WorkCenterCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Branch unit code
|
|
/// </summary>
|
|
public string BranchCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Profit center unique code
|
|
/// </summary>
|
|
public string ProfitCenterCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// Date of last update to record
|
|
/// </summary>
|
|
private int LastUpdateDate { get; }
|
|
|
|
/// <summary>
|
|
/// Time of day of last update to record
|
|
/// </summary>
|
|
private int LastUpdateTime { get; }
|
|
|
|
/// <summary>
|
|
/// Timestamp of last update to record
|
|
/// </summary>
|
|
public DateTime LastUpdateDT => LastUpdateDate.FromJDEDate().FromJDEDateTime(LastUpdateTime);
|
|
}
|
|
}
|