diff --git a/HerramientaCASA/Components/Layout/MainLayout.razor b/HerramientaCASA/Components/Layout/MainLayout.razor index 8b92af6..2a97131 100644 --- a/HerramientaCASA/Components/Layout/MainLayout.razor +++ b/HerramientaCASA/Components/Layout/MainLayout.razor @@ -12,7 +12,7 @@ - + diff --git a/HerramientaCASA/Components/Pages/Comun/OtrosTrabajos.razor b/HerramientaCASA/Components/Pages/Comun/OtrosTrabajos.razor index 3946f0a..9d1ec3c 100644 --- a/HerramientaCASA/Components/Pages/Comun/OtrosTrabajos.razor +++ b/HerramientaCASA/Components/Pages/Comun/OtrosTrabajos.razor @@ -58,8 +58,15 @@
+
+ + @if (!string.IsNullOrEmpty(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 30).Descripcion)) + { + @UtilidadesCASA.CreateTooltip(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 30).Descripcion) + } Otros trabajos incluidos en el Encargo
+
- Beneficio (antes de impuestos) + + +
+ + @if (!string.IsNullOrEmpty(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 29).Descripcion)) + { + @UtilidadesCASA.CreateTooltip(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 29).Descripcion) + } + Beneficio (antes de impuestos) +
% diff --git a/HerramientaCASA/Components/Pages/HerramientaCASATabs/CostesProduccionComponents/CostesVariables.razor b/HerramientaCASA/Components/Pages/HerramientaCASATabs/CostesProduccionComponents/CostesVariables.razor index dd6a4e1..54290bb 100644 --- a/HerramientaCASA/Components/Pages/HerramientaCASATabs/CostesProduccionComponents/CostesVariables.razor +++ b/HerramientaCASA/Components/Pages/HerramientaCASATabs/CostesProduccionComponents/CostesVariables.razor @@ -53,7 +53,15 @@
- Costes variables +
+ + @if (!string.IsNullOrEmpty(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 25).Descripcion)) + { + @UtilidadesCASA.CreateTooltip(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 25).Descripcion) + } + Costes variables + +
@@ -129,8 +137,15 @@
+
+ + @if (!string.IsNullOrEmpty(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 26).Descripcion)) + { + @UtilidadesCASA.CreateTooltip(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 26).Descripcion) + } Coste hora Despacho Profesional
+
@@ -173,8 +188,15 @@
+
+ + @if (!string.IsNullOrEmpty(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 27).Descripcion)) + { + @UtilidadesCASA.CreateTooltip(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 27).Descripcion) + } Coste hora Externalización
+
diff --git a/HerramientaCASA/Components/Pages/HerramientaCASATabs/CostesProduccionComponents/HorasCostes.razor b/HerramientaCASA/Components/Pages/HerramientaCASATabs/CostesProduccionComponents/HorasCostes.razor index 60f3a96..58b181b 100644 --- a/HerramientaCASA/Components/Pages/HerramientaCASATabs/CostesProduccionComponents/HorasCostes.razor +++ b/HerramientaCASA/Components/Pages/HerramientaCASATabs/CostesProduccionComponents/HorasCostes.razor @@ -5,7 +5,16 @@
- +
Plazo de presentación de la documentación: + +
+ + @if (!string.IsNullOrEmpty(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 28).Descripcion)) + { + @UtilidadesCASA.CreateTooltip(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 28).Descripcion) + } + Plazo de presentación de la documentación: +
- - @context.Concepto + + +
+ @if (context.idPuntoInformacion != 0 && !string.IsNullOrEmpty(objetoCASA.Enumerados.PuntosInformacion.FirstOrDefault(x => x.idPuntosInformacion == context.idPuntoInformacion).Descripcion)) + { + @UtilidadesCASA.CreateTooltip(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == context.idPuntoInformacion).Descripcion) + } + @context.Concepto +
+
diff --git a/HerramientaCASA/Components/Pages/HerramientaCASATabs/DespachoProfesionalComponents/TrabajadorGrid.razor b/HerramientaCASA/Components/Pages/HerramientaCASATabs/DespachoProfesionalComponents/TrabajadorGrid.razor index 3e25a52..b258a4d 100644 --- a/HerramientaCASA/Components/Pages/HerramientaCASATabs/DespachoProfesionalComponents/TrabajadorGrid.razor +++ b/HerramientaCASA/Components/Pages/HerramientaCASATabs/DespachoProfesionalComponents/TrabajadorGrid.razor @@ -18,7 +18,12 @@
- + @@ -31,14 +36,24 @@
- +
- +
h/sem
@@ -48,9 +63,10 @@
@@ -60,7 +76,12 @@
- +
diff --git a/HerramientaCASA/Components/Pages/HerramientaCASATabs/TrabajoProfesionalComponents/CoeficientesCorrectoresGrid.razor b/HerramientaCASA/Components/Pages/HerramientaCASATabs/TrabajoProfesionalComponents/CoeficientesCorrectoresGrid.razor index 3ef6315..30a1f09 100644 --- a/HerramientaCASA/Components/Pages/HerramientaCASATabs/TrabajoProfesionalComponents/CoeficientesCorrectoresGrid.razor +++ b/HerramientaCASA/Components/Pages/HerramientaCASATabs/TrabajoProfesionalComponents/CoeficientesCorrectoresGrid.razor @@ -22,7 +22,15 @@ +
+ + @if (!string.IsNullOrEmpty(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == context.idPuntoInformacion).Descripcion)) + { + @UtilidadesCASA.CreateTooltip(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == context.idPuntoInformacion).Descripcion) + } + @context.Nombre +
@@ -55,7 +63,14 @@ - @context.Nombre +
+ @if (!string.IsNullOrEmpty(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == context.idPuntoInformacion).Descripcion)) + { + @UtilidadesCASA.CreateTooltip(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == context.idPuntoInformacion).Descripcion) + } + @context.Nombre +
+
diff --git a/HerramientaCASA/Components/Pages/HerramientaCASATabs/TrabajoProfesionalComponents/FasesTrabajoProfesionalGrid.razor b/HerramientaCASA/Components/Pages/HerramientaCASATabs/TrabajoProfesionalComponents/FasesTrabajoProfesionalGrid.razor index 40aa57d..7426447 100644 --- a/HerramientaCASA/Components/Pages/HerramientaCASATabs/TrabajoProfesionalComponents/FasesTrabajoProfesionalGrid.razor +++ b/HerramientaCASA/Components/Pages/HerramientaCASATabs/TrabajoProfesionalComponents/FasesTrabajoProfesionalGrid.razor @@ -4,7 +4,12 @@
-
Fases
+
+ @if (!string.IsNullOrEmpty(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 12).Descripcion)) + { + @UtilidadesCASA.CreateTooltip(objetoCASA.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 12).Descripcion) + } + Fases
diff --git a/HerramientaCASA/Components/Pages/HerramientaCASATabs/TrabajoProfesionalComponents/UsosTipologiaGrid.razor b/HerramientaCASA/Components/Pages/HerramientaCASATabs/TrabajoProfesionalComponents/UsosTipologiaGrid.razor index ad02e5a..943df83 100644 --- a/HerramientaCASA/Components/Pages/HerramientaCASATabs/TrabajoProfesionalComponents/UsosTipologiaGrid.razor +++ b/HerramientaCASA/Components/Pages/HerramientaCASATabs/TrabajoProfesionalComponents/UsosTipologiaGrid.razor @@ -19,7 +19,13 @@
- +
- + @foreach (var intervencion in intervencionesAux) { @@ -85,7 +96,7 @@ Style="table-layout:fixed !important" PageSizeSelectorVisible="false" Responsive="true"> - + diff --git a/HerramientaCASA/Components/Pages/HerramientaURBANTabs/DespachoProfURBAN/TrabajadorGridURBAN.razor b/HerramientaCASA/Components/Pages/HerramientaURBANTabs/DespachoProfURBAN/TrabajadorGridURBAN.razor index 298e0ab..d728dc9 100644 --- a/HerramientaCASA/Components/Pages/HerramientaURBANTabs/DespachoProfURBAN/TrabajadorGridURBAN.razor +++ b/HerramientaCASA/Components/Pages/HerramientaURBANTabs/DespachoProfURBAN/TrabajadorGridURBAN.razor @@ -40,7 +40,6 @@
diff --git a/HerramientaCASA/Components/Pages/Imprimir/HerramientaCASAImprimir.razor b/HerramientaCASA/Components/Pages/Imprimir/HerramientaCASAImprimir.razor index 96ec9cf..9ad1188 100644 --- a/HerramientaCASA/Components/Pages/Imprimir/HerramientaCASAImprimir.razor +++ b/HerramientaCASA/Components/Pages/Imprimir/HerramientaCASAImprimir.razor @@ -9,7 +9,7 @@
- +
diff --git a/HerramientaCASA/Components/Pages/Imprimir/HerramientaURBANImprimir.razor b/HerramientaCASA/Components/Pages/Imprimir/HerramientaURBANImprimir.razor index e86a00f..5ccec93 100644 --- a/HerramientaCASA/Components/Pages/Imprimir/HerramientaURBANImprimir.razor +++ b/HerramientaCASA/Components/Pages/Imprimir/HerramientaURBANImprimir.razor @@ -12,7 +12,7 @@
- +
diff --git a/HerramientaCASA/Components/Pages/Imprimir/LicitacionesCASAImprimir.razor b/HerramientaCASA/Components/Pages/Imprimir/LicitacionesCASAImprimir.razor index 36d770f..830845e 100644 --- a/HerramientaCASA/Components/Pages/Imprimir/LicitacionesCASAImprimir.razor +++ b/HerramientaCASA/Components/Pages/Imprimir/LicitacionesCASAImprimir.razor @@ -10,7 +10,7 @@
- +
diff --git a/HerramientaCASA/Components/Pages/Imprimir/LicitacionesURBANImprimir.razor b/HerramientaCASA/Components/Pages/Imprimir/LicitacionesURBANImprimir.razor index 45d0281..556c29d 100644 --- a/HerramientaCASA/Components/Pages/Imprimir/LicitacionesURBANImprimir.razor +++ b/HerramientaCASA/Components/Pages/Imprimir/LicitacionesURBANImprimir.razor @@ -12,7 +12,7 @@
- +
diff --git a/HerramientaCASA/wwwroot/Content/Site.css b/HerramientaCASA/wwwroot/Content/Site.css index 2a5b0c0..10fe411 100644 --- a/HerramientaCASA/wwwroot/Content/Site.css +++ b/HerramientaCASA/wwwroot/Content/Site.css @@ -848,4 +848,10 @@ div.content { padding-right: 20px; margin-top: 100px; font-size: 9pt; +} + + +.puntoInfo{ + display:flex; + gap:5px; } \ No newline at end of file diff --git a/bdHerramientaCACOA/CASA.cs b/bdHerramientaCACOA/CASA.cs index 199b427..01afa2d 100644 --- a/bdHerramientaCACOA/CASA.cs +++ b/bdHerramientaCACOA/CASA.cs @@ -34,6 +34,7 @@ namespace bdHerramientaCACOA public double OtrosCostes { get; set; } = 0.03; } public class EnumeradosCASA { + public List PuntosInformacion { get; set; } = new List(); public List Periodos { get; set; } = new List(); public List GruposTipologias { get; set; } = new List(); public List Intervenciones { get; set; } = new List(); @@ -98,6 +99,7 @@ namespace bdHerramientaCACOA ci.Concepto = enu.ValorAlfabetico1; ci.idPeriodicidad = perMensual.idEnumeracion; ci.valorPeriodo = (double)perMensual.ValorNumerico1; + ci.idPuntoInformacion = string.IsNullOrEmpty(enu.ValorAlfabetico4) ? 0 : int.Parse(enu.ValorAlfabetico4); DespachoProfesional.CostesIndirectos.Add(ci); } } @@ -105,6 +107,9 @@ namespace bdHerramientaCACOA checkListCostIndirectos(listaCosteIndirectos); + Enumerados.PuntosInformacion = bd.puntosinformacion.Where(x=>x.idTipoHerramienta == 31).ToList(); + + Enumerados.ListaFactoresCorrecion = ListaFactoresCorreccionCASA(bd.factorescorreccion.ToList()); //Cargamos los coeficientes correctores //Complejidad @@ -118,6 +123,7 @@ namespace bdHerramientaCACOA fc.idTipoFactor = enu.idEnumeracion; fc.Nombre = enu.ValorAlfabetico1; fc.idCorrecion = Enumerados.FactoresCorreccionPorGrupo(fc.idTipoFactor).First(x => x.Coeficiente == 0).idFactorCorreccion; + fc.idPuntoInformacion = string.IsNullOrEmpty(enu.ValorAlfabetico4) ? 0 : int.Parse(enu.ValorAlfabetico4); TrabajoProfesional.FactoresComplejidad.Add(fc); } @@ -134,7 +140,7 @@ namespace bdHerramientaCACOA fc.idTipoFactor = enu.idEnumeracion; fc.Nombre = enu.ValorAlfabetico1; fc.idCorrecion = Enumerados.FactoresCorreccionPorGrupo(fc.idTipoFactor).First(x => x.Coeficiente == 0).idFactorCorreccion; - + fc.idPuntoInformacion = string.IsNullOrEmpty(enu.ValorAlfabetico4) ? 0 : int.Parse(enu.ValorAlfabetico4); TrabajoProfesional.FactoresRendimiento.Add(fc); } } @@ -757,6 +763,7 @@ namespace bdHerramientaCACOA public double importe { get; set; } = 0; public int idPeriodicidad { get; set; } = 0; public double valorPeriodo { get; set; } = 0; + public int idPuntoInformacion { get; set; } = 0; public double coste { get; set; } = 0; } public class CostesPersonal @@ -831,6 +838,7 @@ namespace bdHerramientaCACOA public string Nombre { get; set; } = ""; public int idCorrecion { get; set; } = 0; public double coeficiente { get; set; } = 0; + public int idPuntoInformacion { get; set; } = 0; } public class FasesTrabajo { @@ -907,6 +915,7 @@ namespace bdHerramientaCACOA Descripcion = enu.Descripcion, ValorAlfabetico1 = enu.ValorAlfabetico1, ValorAlfabetico2 = enu.ValorAlfabetico2, + idPuntoInformacion = string.IsNullOrEmpty( enu.ValorAlfabetico4) ? null : int.Parse(enu.ValorAlfabetico4), ValorNumerico1 = enu.ValorNumerico1 }; } @@ -923,7 +932,7 @@ namespace bdHerramientaCACOA public string? ValorAlfabetico1 { get; set; } public string? ValorAlfabetico2 { get; set; } - + public int? idPuntoInformacion { get; set; } public double? ValorNumerico1 { get; set; } public bool Seleccionado { get; set; } = false!; diff --git a/bdHerramientaCACOA/db/enumeraciones.cs b/bdHerramientaCACOA/db/enumeraciones.cs index 9437607..b4be263 100644 --- a/bdHerramientaCACOA/db/enumeraciones.cs +++ b/bdHerramientaCACOA/db/enumeraciones.cs @@ -43,6 +43,8 @@ public partial class enumeraciones public virtual gruposenumeraciones? idGrupoEnumeracionNavigation { get; set; } + public virtual ICollection puntosinformacion { get; set; } = new List(); + public virtual ICollection simulaciones { get; set; } = new List(); public virtual ICollection tipologias { get; set; } = new List(); diff --git a/bdHerramientaCACOA/db/puntosinformacion.cs b/bdHerramientaCACOA/db/puntosinformacion.cs new file mode 100644 index 0000000..59bd045 --- /dev/null +++ b/bdHerramientaCACOA/db/puntosinformacion.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace bdHerramientaCACOA.db; + +public partial class puntosinformacion +{ + public int idPuntosInformacion { get; set; } + + public string? Titulo { get; set; } + + public string? Descripcion { get; set; } + + public int? idTipoHerramienta { get; set; } + + public virtual enumeraciones? idTipoHerramientaNavigation { get; set; } +} diff --git a/bdHerramientaCACOA/dbcontext/herramientascacoaContext.cs b/bdHerramientaCACOA/dbcontext/herramientascacoaContext.cs index 7bcbde2..e4e3b96 100644 --- a/bdHerramientaCACOA/dbcontext/herramientascacoaContext.cs +++ b/bdHerramientaCACOA/dbcontext/herramientascacoaContext.cs @@ -36,6 +36,8 @@ public partial class herramientascacoaContext : DbContext public virtual DbSet provincias { get; set; } + public virtual DbSet puntosinformacion { get; set; } + public virtual DbSet simulaciones { get; set; } public virtual DbSet tipologias { get; set; } @@ -232,6 +234,22 @@ public partial class herramientascacoaContext : DbContext entity.Property(e => e.Nombre).HasMaxLength(80); }); + modelBuilder.Entity(entity => + { + 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(entity => { entity.HasKey(e => e.idSimulacion).HasName("PRIMARY"); diff --git a/bdHerramientaCACOA/efpt.config.json b/bdHerramientaCACOA/efpt.config.json index 998edea..851a7f3 100644 --- a/bdHerramientaCACOA/efpt.config.json +++ b/bdHerramientaCACOA/efpt.config.json @@ -4,6 +4,7 @@ "ContextNamespace": null, "FilterSchemas": false, "IncludeConnectionString": false, + "MinimumProductVersion": "2.6.1080", "ModelNamespace": null, "OutputContextPath": "dbcontext", "OutputPath": "db", @@ -62,6 +63,10 @@ "Name": "provincias", "ObjectType": 0 }, + { + "Name": "puntosinformacion", + "ObjectType": 0 + }, { "Name": "simulaciones", "ObjectType": 0