cbd4a90d01
- Correzione MSE i MSEModel x naming - fix e test vari su app CORE (IOC/SPEC/TAB3/MON)
54 lines
2.0 KiB
C#
54 lines
2.0 KiB
C#
using MP.Core.DTO;
|
|
using MP.Data.DbModels;
|
|
|
|
namespace MP.Data.Translate
|
|
{
|
|
public class DbDto
|
|
{
|
|
/// <summary>
|
|
/// Converter da record originale a DTO x invio a componenti Client WASM senza EFCore
|
|
/// </summary>
|
|
/// <param name="origRec"></param>
|
|
/// <returns></returns>
|
|
public static MappaStatoExplDTO Mse2DTO(MappaStatoExplModel? origRec)
|
|
{
|
|
MappaStatoExplDTO result = new MappaStatoExplDTO();
|
|
if (origRec != null)
|
|
{
|
|
result = new MappaStatoExplDTO()
|
|
{
|
|
CodArticolo = origRec.CodArticolo,
|
|
CodMacchina = origRec.CodMacchina,
|
|
DataInizioOdl = origRec.DataInizioOdl,
|
|
DescrizioneStato = origRec.DescrizioneStato,
|
|
Disegno = origRec.Disegno,
|
|
Durata = origRec.Durata,
|
|
IdxMacchina = origRec.IdxMacchina,
|
|
IdxOdl = origRec.IdxOdl,
|
|
IdxPOdl = origRec.IdxPOdl,
|
|
IdxStato = origRec.IdxStato,
|
|
LastUpdate = origRec.LastUpdate,
|
|
Nome = origRec.Nome,
|
|
NumPezzi = origRec.NumPezzi,
|
|
PezziConf = origRec.PezziConf,
|
|
PezziProd = origRec.PezziProd,
|
|
RowNum = origRec.RowNum,
|
|
Semaforo = origRec.Semaforo,
|
|
TCAssegnato = origRec.TCAssegnato,
|
|
TCEff = origRec.TCEff,
|
|
TCEffRT = origRec.TCEffRT,
|
|
TCLav = origRec.TCLav,
|
|
TCLavRT = origRec.TCLavRT,
|
|
TCMedio = origRec.TCMedio,
|
|
TCMedioRt = origRec.TCMedioRt,
|
|
TempoAuto = origRec.TempoAuto,
|
|
TempoOn = origRec.TempoOn,
|
|
TempoRun = origRec.TempoRun,
|
|
Url = origRec.Url
|
|
};
|
|
}
|
|
return result;
|
|
}
|
|
}
|
|
}
|