122 lines
3.2 KiB
C#
122 lines
3.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using static MagMan.Core.Enums;
|
|
|
|
namespace MagMan.Data.Tenant.DbModels
|
|
{
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
/// <summary>
|
|
/// Tabella dei LOG Macchina (per macchina)
|
|
/// </summary>
|
|
[Table("LogMachine")]
|
|
[Index(nameof(MachineID))]
|
|
[Index(nameof(KeyNum))]
|
|
public class LogMachineModel
|
|
{
|
|
[Key, Column("DbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int LogDbId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Id macchina (diMagMan)
|
|
/// </summary>
|
|
public int MachineID { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Key di riferimento per il progetto
|
|
/// </summary>
|
|
public int KeyNum { get; set; } = 0;
|
|
|
|
#if false
|
|
/// <summary>
|
|
/// Codice Allarme
|
|
/// </summary>
|
|
[Column("AlarmCode")]
|
|
public string AlarmCode { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Data Evento
|
|
/// </summary>
|
|
[Column("AlarmDtEvent")]
|
|
public DateTime AlarmDatetime { get; set; } = DateTime.Now;
|
|
|
|
/// <summary>
|
|
/// Messaggio Allarme
|
|
/// </summary>
|
|
[Column("AlarmMessage")]
|
|
public string AlarmMessage { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Alarm Operation
|
|
/// </summary>
|
|
[Column("AlarmOperation")]
|
|
public int AlarmOperation { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Alarm Type
|
|
/// </summary>
|
|
[Column("AlarmType")]
|
|
public int AlarmType { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Esaecuzione comando corretta
|
|
/// </summary>
|
|
[Column("CommExecuted")]
|
|
public bool CommandExecutedCorrectly { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// Stato da enum Core
|
|
/// </summary>
|
|
[Column("CommandState")]
|
|
public Core.ConstMachComm.CommandStates CommandState { get; set; } = Core.ConstMachComm.CommandStates.NULL;
|
|
|
|
/// <summary>
|
|
/// Tipo Comando da enum Core
|
|
/// </summary>
|
|
[Column("CommandType")]
|
|
public Core.ConstMachComm.LogCommandTypes CommandType { get; set; } = Core.ConstMachComm.LogCommandTypes.NULL;
|
|
|
|
/// <summary>
|
|
/// Descrizione
|
|
/// </summary>
|
|
[Column("Description")]
|
|
public string Description { get; set; } = "";
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// New OP State
|
|
/// </summary>
|
|
[Column("NewOpState")]
|
|
public int NewOpState { get; set; } = 0;
|
|
#endif
|
|
|
|
/// <summary>
|
|
/// Stato da enum Core
|
|
/// </summary>
|
|
[Column("ResultType")]
|
|
public ResultTypes ResultType { get; set; } = ResultTypes.NULL;
|
|
|
|
/// <summary>
|
|
/// Indirizzo VAR
|
|
/// </summary>
|
|
[Column("VarAddress")]
|
|
public string VarAddress { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Valore VAR
|
|
/// </summary>
|
|
[Column("VarValue")]
|
|
public string VarValue { get; set; } = "";
|
|
|
|
|
|
}
|
|
}
|