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

82 lines
2.2 KiB
C#
Executable File

using System;
using DataModel.Helpers;
namespace DataModel.Models
{
/// <summary>
/// JDE work order step model
/// </summary>
public class WorkOrderStep
{
/// <summary>
/// Unique number for workorder
/// </summary>
public long WorkOrderNumber { get; set; }
/// <summary>
/// Unique code for branch
/// </summary>
public string BranchCode { get; set; }
/// <summary>
/// Unique code for work center
/// </summary>
public string WorkCenterCode { get; set; }
/// <summary>
/// Operation sequence number
/// </summary>
public decimal StepNumber { get; set; }
/// <summary>
/// Operation sequence description
/// </summary>
public string StepDescription { get; set; }
/// <summary>
/// Function operation description (long text)
/// </summary>
public string FunctionOperationDescription { get; set; }
/// <summary>
/// Operation sequence type
/// </summary>
public string StepTypeCode { get; set; }
/// <summary>
/// Timestamp when work step began
/// </summary>
public DateTime? StartDT { get; set; }
/// <summary>
/// Timestamp when work step ended
/// </summary>
public DateTime? EndDT { get; set; }
/// <summary>
/// Operation function code
/// </summary>
public string FunctionCode { get; set; }
/// <summary>
/// Quantity scrapped/cancelled
/// </summary>
public decimal ScrappedQuantity { 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);
}
}