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.
This commit is contained in:
Executable
+65
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using DataModel.Helpers;
|
||||
using DataModel.ViewModels;
|
||||
|
||||
namespace DataModel.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// JDE item (part type) unit model
|
||||
/// </summary>
|
||||
public class Item
|
||||
{
|
||||
/// <summary>
|
||||
/// Item unique short number
|
||||
/// </summary>
|
||||
public long ShortItemNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Item unique number
|
||||
/// </summary>
|
||||
public string ItemNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Item description
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Item master planning family
|
||||
/// </summary>
|
||||
public string PlanningFamily { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Item master stocking type code
|
||||
/// </summary>
|
||||
public string StockingType { 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);
|
||||
|
||||
/// <summary>
|
||||
/// Converts object to view model
|
||||
/// </summary>
|
||||
/// <returns>Projected view model for object</returns>
|
||||
public ItemViewModel ToViewModel()
|
||||
{
|
||||
return new ItemViewModel()
|
||||
{
|
||||
ItemNumber = ItemNumber,
|
||||
Description = Description
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user