implementato modulo HR

This commit is contained in:
2025-12-04 02:12:34 +01:00
parent ed2472febc
commit 500a3197e2
41 changed files with 12556 additions and 674 deletions

View File

@@ -0,0 +1,15 @@
using System;
namespace Zentral.Domain.Entities.HR;
public class Assenza : BaseEntity
{
public int DipendenteId { get; set; }
public Dipendente Dipendente { get; set; } = null!;
public DateTime DataInizio { get; set; }
public DateTime DataFine { get; set; }
public string TipoAssenza { get; set; } = string.Empty;
public string Stato { get; set; } = "Richiesta";
public string? Note { get; set; }
}

View File

@@ -0,0 +1,17 @@
using System;
namespace Zentral.Domain.Entities.HR;
public class Contratto : BaseEntity
{
public int DipendenteId { get; set; }
public Dipendente Dipendente { get; set; } = null!;
public DateTime DataInizio { get; set; }
public DateTime? DataFine { get; set; }
public string TipoContratto { get; set; } = string.Empty;
public string? Livello { get; set; }
public decimal RetribuzioneLorda { get; set; }
public string? Note { get; set; }
public bool Attivo { get; set; } = true;
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
namespace Zentral.Domain.Entities.HR;
public class Dipendente : BaseEntity
{
public string Nome { get; set; } = string.Empty;
public string Cognome { get; set; } = string.Empty;
public string? CodiceFiscale { get; set; }
public string? Email { get; set; }
public string? Telefono { get; set; }
public string? Indirizzo { get; set; }
public DateTime? DataNascita { get; set; }
public string? Ruolo { get; set; }
public List<Contratto> Contratti { get; set; } = new();
public List<Assenza> Assenze { get; set; } = new();
public List<Pagamento> Pagamenti { get; set; } = new();
public List<Rimborso> Rimborsi { get; set; } = new();
}

View File

@@ -0,0 +1,14 @@
using System;
namespace Zentral.Domain.Entities.HR;
public class Pagamento : BaseEntity
{
public int DipendenteId { get; set; }
public Dipendente Dipendente { get; set; } = null!;
public DateTime DataPagamento { get; set; }
public decimal ImportoNetto { get; set; }
public string Descrizione { get; set; } = string.Empty;
public bool Pagato { get; set; } = false;
}

View File

@@ -0,0 +1,14 @@
using System;
namespace Zentral.Domain.Entities.HR;
public class Rimborso : BaseEntity
{
public int DipendenteId { get; set; }
public Dipendente Dipendente { get; set; } = null!;
public DateTime DataSpesa { get; set; }
public decimal Importo { get; set; }
public string Descrizione { get; set; } = string.Empty;
public string Stato { get; set; } = "Richiesto";
}