Files
tbf/TBF/Rig/Output/DB/SensusOracle/OrderDetails.cs
T

53 lines
1.7 KiB
C#

///
/// Copyright (c) 2021 Sensus Slovensko a.s.
///
using System;
namespace TBF.Rig.Output.DB.SensusOracle
{
public class OrderDetails : Common.IOrderInfo
{
///
/// Fixed
///
public string POName { get; set; } /// Production order
public string VariantCode { get; set; } /// Spec
public string ModuleParam { get; set; }
public int PiecesCount { get; set; } /// Target pieces count
public string SNPrefix { get; set; } /// S/N prefix
public int SNFirst { get; set; } /// First S/N
public int SNDigitsCount { get; set; }
public string SNSuffix { get; set; } /// S/N suffix
public string RAPrefix { get; set; }
public int RAFirst { get; set; }
public string RASuffix { get; set; }
public string Remark { get; set; }
public DateTime Created;
public DateTime DueDate;
public int Zaehlwerk; /// SAP number of the counter
public int LastSerialNr;
public int LastRadioAddress;
///
/// Incremented
///
public int CurrentPcsCount { get; set; }
public int CurrentSN { get; set; }
public int CurrentRA { get; set; }
public OrderDetails()
{
SNPrefix = string.Empty;
SNSuffix = string.Empty;
Remark = string.Empty;
ModuleParam = string.Empty;
RAPrefix = string.Empty;
RASuffix = string.Empty;
}
public override string ToString()
{
return string.Format("{0} [{1}] {2}", POName, PiecesCount, VariantCode);
}
}
}