agregado puntos de informacion
agregado tabla estadisticas
This commit is contained in:
@@ -46,6 +46,8 @@ namespace bdHerramientaCACOA
|
||||
|
||||
public class EnumeradosLicitacionesURBAN
|
||||
{
|
||||
public List<puntosinformacion> PuntosInformacion { get; set; } = new List<puntosinformacion>();
|
||||
|
||||
public List<ConvenioColectivoConcurso> ListaConvenioColectivo { get; set; } = new List<ConvenioColectivoConcurso>();
|
||||
public List<CosteDirectoIndirecto> ListaCDCI { get; set; } = new List<CosteDirectoIndirecto>();
|
||||
|
||||
@@ -159,6 +161,8 @@ namespace bdHerramientaCACOA
|
||||
|
||||
checkListFasesURBAN(listaFases);
|
||||
|
||||
Enumerados.PuntosInformacion = bd.puntosinformacion.Where(x => x.idTipoHerramienta == 35).ToList();
|
||||
|
||||
|
||||
Enumerados.FasesTrabajo = JsonSerializer.Deserialize<List<FasesURBAN>>(JsonSerializer.Serialize(TrabajoProfesional.FasesTrabajoProfesional));
|
||||
}
|
||||
|
||||
@@ -43,8 +43,6 @@ public partial class enumeraciones
|
||||
|
||||
public virtual gruposenumeraciones? idGrupoEnumeracionNavigation { get; set; }
|
||||
|
||||
public virtual ICollection<puntosinformacion> puntosinformacion { get; set; } = new List<puntosinformacion>();
|
||||
|
||||
public virtual ICollection<simulaciones> simulaciones { get; set; } = new List<simulaciones>();
|
||||
|
||||
public virtual ICollection<tipologias> tipologias { get; set; } = new List<tipologias>();
|
||||
|
||||
41
bdHerramientaCACOA/db/estadisticas.cs
Normal file
41
bdHerramientaCACOA/db/estadisticas.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace bdHerramientaCACOA.db;
|
||||
|
||||
public partial class estadisticas
|
||||
{
|
||||
public int idEstadistica { get; set; }
|
||||
|
||||
public int? idSimulacion { get; set; }
|
||||
|
||||
public double? costeDirecto { get; set; }
|
||||
|
||||
public double? costeIndirecto { get; set; }
|
||||
|
||||
public double? costeVariable { get; set; }
|
||||
|
||||
public double? costeHoraDespachoProf { get; set; }
|
||||
|
||||
public int? totalFases { get; set; }
|
||||
|
||||
public double? horasTPEDocumentacion { get; set; }
|
||||
|
||||
public double? horasTPEDireccionObra { get; set; }
|
||||
|
||||
public double? horasTPE { get; set; }
|
||||
|
||||
public int? porcentajeExternalizacion { get; set; }
|
||||
|
||||
public double? plazoPresentacion { get; set; }
|
||||
|
||||
public double? costeProduccion { get; set; }
|
||||
|
||||
public double? totalOtrosTrabajos { get; set; }
|
||||
|
||||
public int? porcentajeBeneficio { get; set; }
|
||||
|
||||
public int? numeroTrabajadores { get; set; }
|
||||
|
||||
public virtual simulaciones? idSimulacionNavigation { get; set; }
|
||||
}
|
||||
@@ -12,6 +12,4 @@ public partial class puntosinformacion
|
||||
public string? Descripcion { get; set; }
|
||||
|
||||
public int? idTipoHerramienta { get; set; }
|
||||
|
||||
public virtual enumeraciones? idTipoHerramientaNavigation { get; set; }
|
||||
}
|
||||
|
||||
@@ -27,6 +27,8 @@ public partial class simulaciones
|
||||
|
||||
public double? CostesVariables { get; set; }
|
||||
|
||||
public virtual ICollection<estadisticas> estadisticas { get; set; } = new List<estadisticas>();
|
||||
|
||||
public virtual usuarios idCodigoNavigation { get; set; } = null!;
|
||||
|
||||
public virtual ficheros idFicheroJSONNavigation { get; set; } = null!;
|
||||
|
||||
@@ -26,6 +26,8 @@ public partial class herramientascacoaContext : DbContext
|
||||
|
||||
public virtual DbSet<enumeraciones> enumeraciones { get; set; }
|
||||
|
||||
public virtual DbSet<estadisticas> estadisticas { get; set; }
|
||||
|
||||
public virtual DbSet<factorescorreccion> factorescorreccion { get; set; }
|
||||
|
||||
public virtual DbSet<ficheros> ficheros { get; set; }
|
||||
@@ -156,6 +158,24 @@ public partial class herramientascacoaContext : DbContext
|
||||
.HasConstraintName("FK_enumeraciones_gruposenumeracion");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<estadisticas>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.idEstadistica).HasName("PRIMARY");
|
||||
|
||||
entity.HasIndex(e => e.idSimulacion, "FK_estadisticas_simulaciones_idx");
|
||||
|
||||
entity.Property(e => e.idEstadistica).HasColumnType("int(11)");
|
||||
entity.Property(e => e.idSimulacion).HasColumnType("int(11)");
|
||||
entity.Property(e => e.numeroTrabajadores).HasColumnType("int(11)");
|
||||
entity.Property(e => e.porcentajeBeneficio).HasColumnType("int(11)");
|
||||
entity.Property(e => e.porcentajeExternalizacion).HasColumnType("int(11)");
|
||||
entity.Property(e => e.totalFases).HasColumnType("int(11)");
|
||||
|
||||
entity.HasOne(d => d.idSimulacionNavigation).WithMany(p => p.estadisticas)
|
||||
.HasForeignKey(d => d.idSimulacion)
|
||||
.HasConstraintName("FK_estadisticas_simulaciones");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<factorescorreccion>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.idFactorCorreccion).HasName("PRIMARY");
|
||||
@@ -238,16 +258,10 @@ public partial class herramientascacoaContext : DbContext
|
||||
{
|
||||
entity.HasKey(e => e.idPuntosInformacion).HasName("PRIMARY");
|
||||
|
||||
entity.HasIndex(e => e.idTipoHerramienta, "FK_enumeraciones_idEnumeracion_idx");
|
||||
|
||||
entity.Property(e => e.idPuntosInformacion).HasColumnType("int(11)");
|
||||
entity.Property(e => e.Descripcion).HasMaxLength(400);
|
||||
entity.Property(e => e.Titulo).HasMaxLength(60);
|
||||
entity.Property(e => e.idTipoHerramienta).HasColumnType("int(11)");
|
||||
|
||||
entity.HasOne(d => d.idTipoHerramientaNavigation).WithMany(p => p.puntosinformacion)
|
||||
.HasForeignKey(d => d.idTipoHerramienta)
|
||||
.HasConstraintName("FK_enumeraciones_idEnumeracion");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<simulaciones>(entity =>
|
||||
|
||||
@@ -43,6 +43,10 @@
|
||||
"Name": "enumeraciones",
|
||||
"ObjectType": 0
|
||||
},
|
||||
{
|
||||
"Name": "estadisticas",
|
||||
"ObjectType": 0
|
||||
},
|
||||
{
|
||||
"Name": "factorescorreccion",
|
||||
"ObjectType": 0
|
||||
|
||||
Reference in New Issue
Block a user