169 lines
7.1 KiB
Plaintext
169 lines
7.1 KiB
Plaintext
@using System.Globalization
|
|
<div class="row">
|
|
|
|
<div class="mt-3">
|
|
<div style="height: 24px;">
|
|
<b>Costes Asociados a los Servicios de Arquitectura</b>
|
|
</div>
|
|
<table class="table tablaCACOA tablaCACOA2 mb-0">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th class="colorB fw-bold" style="width:60%;">Concepto</th>
|
|
<th class="colorB fw-bold text-end"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="colorFilasIntro w4">
|
|
<div class="puntoInfo">
|
|
@if (!string.IsNullOrEmpty(objetoLicitaciones.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 34).Descripcion))
|
|
{
|
|
@UtilidadesCASA.CreateTooltip(objetoLicitaciones.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 34).Descripcion)
|
|
}
|
|
Plazo de presentación de la documentación:
|
|
|
|
</div>
|
|
@if (objetoLicitaciones.IncrementoUrgencia > 0)
|
|
{
|
|
<br />
|
|
<span class="fw-normal" style="font-size:10px;">Incremento del @objetoLicitaciones.IncrementoUrgencia% en los costes de producción de la documentación por plazo de presentación reducido</span>
|
|
}
|
|
</td>
|
|
<td class="text-end">
|
|
<div class="d-flex" style="gap:3px;">
|
|
@* <InputNumber TValue="int" Locale="es-ES" Min="0" class="inputForm formatoMoneda inputTabla" Value="@objetoLicitaciones.PlazoPresentacionDocumentos" ValueExpression="() => objetoLicitaciones.PlazoPresentacionDocumentos" ValueChanged="(value) => PlazoPresentacionDocumentosCambiado(value)"></InputNumber> meses *@
|
|
<InputNumber TValue="double" @bind-Value="objetoLicitaciones.PlazoPresentacionDocumentos"
|
|
step="any"
|
|
@oninput="e => controlarMeses(e.Value?.ToString())"
|
|
class="inputForm formatoMoneda inputTabla text-end" /> meses
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
@if (objetoLicitaciones.EsPorUsos == true)
|
|
{
|
|
<tr>
|
|
<td class="colorB w4">Estimación de horas necesarias</td>
|
|
<td class="text-end">
|
|
<span>
|
|
@objetoLicitaciones.horasProduccionEstimacion.MilesYDecimales() h
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
}
|
|
|
|
|
|
|
|
<tr>
|
|
<td class="colorB w4">Horas del trabajo profesional Edificación <span style="margin-left:60px;">@UtilidadesCASA.pasarHorasASemana(objetoLicitaciones.horasProduccion).MilesYDecimales() semanas</span></td>
|
|
<td class="text-end">
|
|
<div class="d-flex" style="gap: 3px;">
|
|
<InputNumber TValue="double" @onblur="calcularHoras" @bind-Value="@objetoLicitaciones.horasProduccion" Min="0" class="inputForm inputTabla tdAlineadoDerecha" />h
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="colorB w4">Coste hora de producción</td>
|
|
<td class="text-end"><span>@objetoLicitaciones.costeHoraProduccion.MilesYDecimales() €/h</span>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="tdAlter fw-bold w4 TotalesTabla">COSTE DE PRODUCCIÓN DEL TRABAJO PROFESIONAL</td>
|
|
<td class="text-end tdAlter TotalesTabla"><span> @objetoLicitaciones.CostesProduccionTrabProf.MilesYDecimales() €</span></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="TotalesTabla colorB w4">
|
|
|
|
<div class="puntoInfo">
|
|
@if (!string.IsNullOrEmpty(objetoLicitaciones.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 35).Descripcion))
|
|
{
|
|
@UtilidadesCASA.CreateTooltip(objetoLicitaciones.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 35).Descripcion)
|
|
}
|
|
G.G. + B.I.
|
|
<span class="fw-normal" style="font-size:10px;">(40/19 Junta Consultiva de Contratación Pública del Estado)</span>
|
|
|
|
</div>
|
|
</td>
|
|
<td class="TotalesTabla text-end" style="align-content:center;">
|
|
<div class="d-flex" style="justify-content: end; gap:3px;">
|
|
@objetoLicitaciones.Beneficio %
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
@* <tr>
|
|
<td class="colorB fw-bold w4">COSTE DEL TRABAJO PROFESIONAL</td>
|
|
<td class="text-end"><span> @objetoLicitaciones.PrecioTrabProf.MilesYDecimales() €</span></td>
|
|
</tr> *@
|
|
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="2" class="text-end fw-bold TotalesTabla tablaCACOA">
|
|
Precio del trabajo profesional: <span>@objetoLicitaciones.PrecioTrabProf.MilesYDecimales() € </span>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
@code {
|
|
[Parameter]
|
|
public LICITACIONES objetoLicitaciones { get; set; } = new LICITACIONES();
|
|
|
|
List<CASA.OtrosTrabajos> listOtrosTrabajos = new List<CASA.OtrosTrabajos>();
|
|
|
|
[CascadingParameter]
|
|
public Licitaciones _Parent { get; set; }
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
listOtrosTrabajos = objetoLicitaciones.OtrosTrabajos.ToList();
|
|
}
|
|
|
|
private async void PlazoPresentacionDocumentosCambiado(double e)
|
|
{
|
|
objetoLicitaciones.PlazoPresentacionDocumentos = e;
|
|
objetoLicitaciones.CalcularHorasSuperficie();
|
|
objetoLicitaciones.CalcularCostesProduccion();
|
|
|
|
await InvokeAsync(StateHasChanged);
|
|
_Parent.RefreshState();
|
|
}
|
|
|
|
private void controlarMeses(string meses)
|
|
{
|
|
|
|
if (double.TryParse(meses, out var valor))
|
|
{
|
|
string parseado = meses.ToString().Replace(",", ".");
|
|
objetoLicitaciones.PlazoPresentacionDocumentos = double.Parse(parseado, CultureInfo.InvariantCulture);
|
|
}
|
|
|
|
PlazoPresentacionDocumentosCambiado(objetoLicitaciones.PlazoPresentacionDocumentos);
|
|
}
|
|
|
|
private async void calcularHoras()
|
|
{
|
|
bool guardarSeleccion = objetoLicitaciones.EsPorUsos;
|
|
|
|
objetoLicitaciones.EsPorUsos = false;
|
|
|
|
objetoLicitaciones.CalcularHorasSuperficie();
|
|
|
|
objetoLicitaciones.EsPorUsos = guardarSeleccion;
|
|
|
|
await InvokeAsync(StateHasChanged);
|
|
_Parent.RefreshState();
|
|
}
|
|
}
|