Files
jdescopingtool/OLD/DataModel/Models/WorkOrderComponent.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

57 lines
1.5 KiB
C#
Executable File

using System;
using DataModel.Helpers;
namespace DataModel.Models
{
/// <summary>
/// Work order component usage model
/// </summary>
public class WorkOrderComponent
{
/// <summary>
/// Record unique / PK ID
/// </summary>
public long UniqueID { get; set; }
/// <summary>
/// Work order unique number
/// </summary>
public long WorkOrderNumber { get; set; }
/// <summary>
/// Lot number of component
/// </summary>
public string LotNumber { get; set; }
/// <summary>
/// Component issuance branch code
/// </summary>
public string BranchCode { get; set; }
/// <summary>
/// Component item short number
/// </summary>
public long? ShortItemNumber { get; set; }
/// <summary>
/// Transaction quantity
/// </summary>
public decimal Quantity { 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);
}
}