Files
jdescopingtool/OLD/DataModel/Models/RouteMaster.cs
T
Joseph Doherty 26ff8d9b4f Initial commit: JDE Scoping Tool migration project
Set up repository with legacy .NET Framework 4.8 source (OLD/),
new .NET 10 Blazor solution (NEW/), OpenSpec specifications,
documentation, and project configuration.
2026-01-02 07:43:29 -05:00

77 lines
2.1 KiB
C#
Executable File

using System;
using DataModel.Helpers;
namespace DataModel.Models
{
/// <summary>
/// JDE item router master model
/// </summary>
public class RouteMaster
{
/// <summary>
/// Unique code for branch
/// </summary>
public string BranchCode { get; set; }
/// <summary>
/// Unique number for item
/// </summary>
public string ItemNumber { get; set; }
/// <summary>
/// Router type
/// </summary>
public string RoutingType { get; set; }
/// <summary>
/// Job step operation number
/// </summary>
public decimal SequenceNumber { get;set; }
/// <summary>
/// Job step function code
/// </summary>
public string FunctionCode { get; set; }
/// <summary>
/// Work center unique code
/// </summary>
public string WorkCenterCode { get; set; }
/// <summary>
/// Numeric representation of date record effectivity starts
/// </summary>
public int StartDate_Date { get; set; }
/// <summary>
/// Date record effectivity starts
/// </summary>
public DateTime StartDate => StartDate_Date.FromJDEDate();
/// <summary>
/// Numeric representation of date record effectivity ends
/// </summary>
public int? EndDate_Date { get; set; }
/// <summary>
/// Date record effectivity ends
/// </summary>
public DateTime? EndDate => EndDate_Date?.FromJDEDate();
/// <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);
}
}