Continuo implementaizone JobTask
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
using EgwCoreLib.Lux.Data.DbModel.Utils;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
// <Auto-Generated>
|
||||
// This is here so CodeMaid doesn't reorganize this document
|
||||
// </Auto-Generated>
|
||||
namespace EgwCoreLib.Lux.Data.DbModel.Task
|
||||
{
|
||||
/// <summary>
|
||||
/// Definizione macro dei Cicli di Lavoro / Job
|
||||
/// </summary>
|
||||
[Table("task_job")]
|
||||
public class JobTaskModel
|
||||
{
|
||||
/// <summary>
|
||||
/// ID del record
|
||||
/// </summary>
|
||||
[Key]
|
||||
public int JobID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Descrizione del ciclo di lavoro
|
||||
/// </summary>
|
||||
public string Description { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Ordinale per visualizzazione
|
||||
/// </summary>
|
||||
public int Ordinal { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// indica protezione cancellazione
|
||||
/// </summary>
|
||||
public bool Lock { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Navigation verso JobStep
|
||||
/// </summary>
|
||||
public virtual ICollection<JobStepModel> JobStepNav { get; set; } = new List<JobStepModel>();
|
||||
|
||||
/// <summary>
|
||||
/// Numero Step compresi
|
||||
/// </summary>
|
||||
[NotMapped]
|
||||
public int NumChild
|
||||
{
|
||||
get => JobStepNav?.Count ?? 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user