From 7efb696971fdbac4b08b5b066b95ec8bb984928d Mon Sep 17 00:00:00 2001 From: Sergio Date: Fri, 25 Jul 2025 13:40:39 +0200 Subject: [PATCH 1/3] prueba 2 --- HerramientaCASA/wwwroot/app.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HerramientaCASA/wwwroot/app.css b/HerramientaCASA/wwwroot/app.css index 2bd9b78..7abbc85 100644 --- a/HerramientaCASA/wwwroot/app.css +++ b/HerramientaCASA/wwwroot/app.css @@ -5,7 +5,7 @@ html, body { a, .btn-link { color: #006bb7; } - + .btn-primary { color: #fff; background-color: #1b6ec2; From 4fd3b09eb0477dc5bd481b081f19b65df284bf50 Mon Sep 17 00:00:00 2001 From: Sergio Date: Fri, 25 Jul 2025 13:41:06 +0200 Subject: [PATCH 2/3] prueba --- HerramientaCASA/wwwroot/Scripts/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HerramientaCASA/wwwroot/Scripts/Util.js b/HerramientaCASA/wwwroot/Scripts/Util.js index 8454c2a..86f655e 100644 --- a/HerramientaCASA/wwwroot/Scripts/Util.js +++ b/HerramientaCASA/wwwroot/Scripts/Util.js @@ -9,7 +9,7 @@ document.getElementById(pestana).classList.add("linkNavActivo") } } - + function eliminarCookies(id, cut) { var theCookies = document.cookie.split(';'); for (var i = 0; i < theCookies.length; i++) { From e4a9271ed0ecbf022b4ca9fbda778fdffaad24c4 Mon Sep 17 00:00:00 2001 From: Sergio Date: Mon, 28 Jul 2025 12:27:10 +0200 Subject: [PATCH 3/3] =?UTF-8?q?a=C3=B1adido=20incremento=20en=20licitacion?= =?UTF-8?q?es=20CASA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CostesProLicitaciones.razor | 9 +++- bdHerramientaCACOA/HerramientaUrban/URBAN.cs | 24 ++++++++++ bdHerramientaCACOA/LICITACIONES.cs | 47 +++++++++++++++++-- 3 files changed, 74 insertions(+), 6 deletions(-) diff --git a/HerramientaCASA/Components/Pages/LicitacionesGrids/CostesProLicitaciones.razor b/HerramientaCASA/Components/Pages/LicitacionesGrids/CostesProLicitaciones.razor index fae5e23..03ba451 100644 --- a/HerramientaCASA/Components/Pages/LicitacionesGrids/CostesProLicitaciones.razor +++ b/HerramientaCASA/Components/Pages/LicitacionesGrids/CostesProLicitaciones.razor @@ -15,7 +15,14 @@ - Plazo de presentación de la documentación: + + Plazo de presentación de la documentación: + @if (objetoLicitaciones.IncrementoUrgencia > 0) + { +
+ Incremento del @objetoLicitaciones.IncrementoUrgencia% en los costes de producción de la documentación por plazo de presentación reducido + } +
@* meses *@ diff --git a/bdHerramientaCACOA/HerramientaUrban/URBAN.cs b/bdHerramientaCACOA/HerramientaUrban/URBAN.cs index 510c0aa..456ca31 100644 --- a/bdHerramientaCACOA/HerramientaUrban/URBAN.cs +++ b/bdHerramientaCACOA/HerramientaUrban/URBAN.cs @@ -317,5 +317,29 @@ namespace bdHerramientaCACOA.HerramientaURBAN } #endregion + + //public double CalcularIncremento() + //{ + // double incremento = 3.5; + + // var listaPlazos = TrabajoProfesional.FasesTrabajo.Where(x => x.Porcentaje > 0 && x.PlazoMinimo != null).ToList(); + // if (listaPlazos.Count > 0) + // { + // double meses = (double)listaPlazos.Sum(x => x.PlazoMinimo); + // if (CostesProduccion.PlazoPresentacionDocumentos < meses) + // { + // return (meses - CostesProduccion.PlazoPresentacionDocumentos) * incremento; + // } + // else + // { + // return 0; + // } + // } + // else + // { + // return 0; + // } + + //} } } diff --git a/bdHerramientaCACOA/LICITACIONES.cs b/bdHerramientaCACOA/LICITACIONES.cs index 5875ba5..6b93fd2 100644 --- a/bdHerramientaCACOA/LICITACIONES.cs +++ b/bdHerramientaCACOA/LICITACIONES.cs @@ -50,7 +50,7 @@ namespace bdHerramientaCACOA public int idGradMed { get; set; } = 0; public int idDelin { get; set; } = 0; - + public double IncrementoUrgencia { get; set; } = 0; public double PlazoPresentacionDocumentos { get; set; } = 0; public double CostesProduccionTrabProf { get; set; } = 0; @@ -102,7 +102,7 @@ namespace bdHerramientaCACOA ft.Codigo = enu.Codigo; ft.Denominacion = enu.ValorAlfabetico1; ft.Porcentaje = (double)enu.ValorNumerico1; - + ft.PlazoMinimo = enu.ValorNumerico2 == null ? null : (double)enu.ValorNumerico2; FasesTrabajo.Add(ft); } } @@ -295,14 +295,29 @@ namespace bdHerramientaCACOA // calcular coste hora de produccion costeHoraProduccion = CosteCDCI * (1 + tasaCostesVariables); + if (PlazoPresentacionDocumentos == 0) { CostesProduccionTrabProf = 0; } - else { - CostesProduccionTrabProf = (horasProduccion * coefPlazos * costeHoraProduccion).DosDecimales(); + else + { + IncrementoUrgencia = CalcularIncremento(); + if (IncrementoUrgencia == 0) + { + CostesProduccionTrabProf = (horasProduccion * coefPlazos * costeHoraProduccion).DosDecimales(); + } + else + { + var incr = 1 + (IncrementoUrgencia / 100); + CostesProduccionTrabProf = ((horasProduccion * incr) * + (coefPlazos * incr) * + (costeHoraProduccion * incr)).DosDecimales(); + } } - PrecioTrabProf = (CostesProduccionTrabProf * (1 + (Beneficio / 100))).DosDecimales(); + + + PrecioTrabProf = (CostesProduccionTrabProf * (1 + (Beneficio / 100))).DosDecimales(); CostesProduccionTrabProf = Math.Round(CostesProduccionTrabProf, 2, MidpointRounding.AwayFromZero); PrecioTrabProf = Math.Round(PrecioTrabProf, 2, MidpointRounding.AwayFromZero); @@ -465,7 +480,29 @@ namespace bdHerramientaCACOA return listaCDCI; } + public double CalcularIncremento() + { + double incremento = 3.5; + var listaPlazos = FasesTrabajo.Where(x => x.Porcentaje > 0 && x.PlazoMinimo != null && x.Seleccionado==true).ToList(); + if (listaPlazos.Count > 0) + { + double meses = (double)listaPlazos.Sum(x => x.PlazoMinimo); + if (PlazoPresentacionDocumentos < meses) + { + return (meses - PlazoPresentacionDocumentos) * incremento; + } + else + { + return 0; + } + } + else + { + return 0; + } + + } public class ConvenioColectivoConcurso { public int idConvenioColectivo { get; set; } = 0;