Compare commits
2 Commits
61e55497e3
...
702c097c32
| Author | SHA1 | Date | |
|---|---|---|---|
| 702c097c32 | |||
| 71a7f453ee |
@@ -18,8 +18,8 @@
|
|||||||
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
|
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
<script src="_content/Blazor.Bootstrap/blazor.bootstrap.js"></script>
|
<script src="_content/Blazor.Bootstrap/blazor.bootstrap.js"></script>
|
||||||
<script src="_framework/blazor.web.js"></script>
|
|
||||||
<script src="Scripts/Util.js"></script>
|
<script src="Scripts/Util.js"></script>
|
||||||
|
<script src="_framework/blazor.web.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
@inject UserState UserState
|
@inject UserState UserState
|
||||||
@inject IHttpContextAccessor HttpContextAccessor
|
@inject IHttpContextAccessor HttpContextAccessor
|
||||||
@inject NavigationManager Navigation
|
@inject NavigationManager Navigation
|
||||||
|
@inject IJSRuntime JS
|
||||||
|
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
@@ -12,7 +13,7 @@
|
|||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet" />
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet" />
|
||||||
<link href="_content/Blazor.Bootstrap/blazor.bootstrap.css" rel="stylesheet" />
|
<link href="_content/Blazor.Bootstrap/blazor.bootstrap.css" rel="stylesheet" />
|
||||||
<link href="_content/Blazor.Bootstrap/Blazor.Bootstrap.bundle.scp.css" rel="stylesheet" />
|
<link href="_content/Blazor.Bootstrap/Blazor.Bootstrap.bundle.scp.css" rel="stylesheet" />
|
||||||
<link href="Content/Site.css?v=0.9" rel="stylesheet" />
|
<link href="Content/Site.css?v=0.62" rel="stylesheet" />
|
||||||
<link href="Content/all.min.css" rel="stylesheet" />
|
<link href="Content/all.min.css" rel="stylesheet" />
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||||||
<script src="Scripts/jquery.min.js"></script>
|
<script src="Scripts/jquery.min.js"></script>
|
||||||
@@ -39,22 +40,38 @@
|
|||||||
|
|
||||||
@code{
|
@code{
|
||||||
|
|
||||||
protected override void OnAfterRender(bool firstRender)
|
|
||||||
|
string? urlAnterior = "";
|
||||||
|
|
||||||
|
bool urlVaida = true;
|
||||||
|
string rutaActual = "";
|
||||||
|
|
||||||
|
|
||||||
|
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||||
{
|
{
|
||||||
if (firstRender)
|
if (firstRender)
|
||||||
{
|
{
|
||||||
string? urlAnterior = HttpContextAccessor.HttpContext?.Request.Headers["Referer"].ToString();
|
if (!string.IsNullOrEmpty(urlAnterior))
|
||||||
string rutaActual = Navigation.ToBaseRelativePath(Navigation.Uri);
|
{
|
||||||
|
urlAnterior = await JS.InvokeAsync<string>("eval", "document.referer");
|
||||||
|
|
||||||
|
rutaActual = Navigation.ToBaseRelativePath(Navigation.Uri);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (rutaActual != "Denegado")
|
if (rutaActual != "Denegado")
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(urlAnterior) || urlAnterior.Contains("cacoa.es"))
|
if (!string.IsNullOrEmpty(urlAnterior) && urlAnterior.Contains("cacoa.es"))
|
||||||
{
|
{
|
||||||
Navigation.NavigateTo("/Denegado", true);
|
Navigation.NavigateTo("/Denegado", true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
StateHasChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet" />
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css" rel="stylesheet" />
|
||||||
<link href="_content/Blazor.Bootstrap/blazor.bootstrap.css" rel="stylesheet" />
|
<link href="_content/Blazor.Bootstrap/blazor.bootstrap.css" rel="stylesheet" />
|
||||||
<link href="_content/Blazor.Bootstrap/Blazor.Bootstrap.bundle.scp.css" rel="stylesheet" />
|
<link href="_content/Blazor.Bootstrap/Blazor.Bootstrap.bundle.scp.css" rel="stylesheet" />
|
||||||
<link href="Content/Site.css?v=0.62" rel="stylesheet" />
|
<link href="Content/Site.css?v=0.64" rel="stylesheet" />
|
||||||
<link href="Content/all.min.css" rel="stylesheet" />
|
<link href="Content/all.min.css" rel="stylesheet" />
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||||||
<script src="Scripts/jquery.min.js"></script>
|
<script src="Scripts/jquery.min.js"></script>
|
||||||
|
|||||||
@@ -384,7 +384,7 @@
|
|||||||
var fullHtml = $@"
|
var fullHtml = $@"
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset='UTF-8'>
|
<meta charset='UTF-8'/>
|
||||||
<style>{cssContent}</style>
|
<style>{cssContent}</style>
|
||||||
<link href='https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css' rel='stylesheet' integrity='sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN' crossorigin='anonymous'>
|
<link href='https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css' rel='stylesheet' integrity='sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN' crossorigin='anonymous'>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -149,7 +149,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-10 mx-auto d-flex justify-content-center" style="align-items: flex-end; margin-top:150px;">
|
<div class="col-10 mx-auto d-flex justify-content-center" style="@estiloTrabajos">
|
||||||
<div class="col-md-10 row ">
|
<div class="col-md-10 row ">
|
||||||
<div class="TituloTablaImprimir">
|
<div class="TituloTablaImprimir">
|
||||||
<b>Trabajo profesional</b>
|
<b>Trabajo profesional</b>
|
||||||
@@ -208,15 +208,20 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 mx-auto mb-5">
|
<div class="col-12 mx-auto" >
|
||||||
@* TABLA COSTES ASOCIADOS A LOS SEVICIOS DE ARQUITECTURA *@
|
@* TABLA COSTES ASOCIADOS A LOS SEVICIOS DE ARQUITECTURA *@
|
||||||
|
|
||||||
<div class="col-8 mx-auto mb-4">
|
<div class="col-8 mx-auto" style=" margin-top:70px;">
|
||||||
<div class="TituloTablaImprimir">
|
<div class="TituloTablaImprimir">
|
||||||
<b>Costes Asociados a los Servicios de Arquitectura</b>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="tablaAlter" style="width:100%">
|
<div class="TituloTablaImprimir" style=" margin-top:70px;">
|
||||||
|
<p>
|
||||||
|
<b>Costes Asociados a los Servicios de Arquitectura</b>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<table class="tablaAlter" style="width:100%;">
|
||||||
<tbody style="font-size:9pt;">
|
<tbody style="font-size:9pt;">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="TotalesTabla" > COSTES DE PRODUCCIÓN DEL TRABAJO PROFESIONAL: </td>
|
<td class="TotalesTabla" > COSTES DE PRODUCCIÓN DEL TRABAJO PROFESIONAL: </td>
|
||||||
@@ -324,6 +329,7 @@
|
|||||||
|
|
||||||
public tsHerramientasCACOA bd;
|
public tsHerramientasCACOA bd;
|
||||||
|
|
||||||
|
public string estiloTrabajos = "";
|
||||||
|
|
||||||
|
|
||||||
MarkupString msTextoEncabezado => (MarkupString)textoEncabezado;
|
MarkupString msTextoEncabezado => (MarkupString)textoEncabezado;
|
||||||
@@ -339,6 +345,7 @@
|
|||||||
bd = tsHerramientasCACOA.NuevoContexto(SoloLectura: false);
|
bd = tsHerramientasCACOA.NuevoContexto(SoloLectura: false);
|
||||||
totalUsos = objetoCASA.TrabajoProfesional.Usos.Count;
|
totalUsos = objetoCASA.TrabajoProfesional.Usos.Count;
|
||||||
|
|
||||||
|
estiloTrabajos = objetoCASA.TrabajoProfesional.Usos.Count != 0 ? "align-items: flex-end; margin-top:50px;" : "align-items: flex-end; margin-top:150px;";
|
||||||
|
|
||||||
textoEncabezado = bd.enumeraciones.First(x => x.Codigo.Contains("PDFCASA")).ValorAlfabeticoLargo;
|
textoEncabezado = bd.enumeraciones.First(x => x.Codigo.Contains("PDFCASA")).ValorAlfabeticoLargo;
|
||||||
|
|
||||||
|
|||||||
@@ -12,10 +12,12 @@
|
|||||||
|
|
||||||
<div class="d-flex flex-column mt-3">
|
<div class="d-flex flex-column mt-3">
|
||||||
<label>Simulación: <span class="NombreSimulacionImprimir">@objetoURBAN.NombreSimulacion</span></label>
|
<label>Simulación: <span class="NombreSimulacionImprimir">@objetoURBAN.NombreSimulacion</span></label>
|
||||||
|
<br />
|
||||||
<label>Fecha de creación: <span class="NombreSimulacionImprimir">@DateTime.Now</span></label>
|
<label>Fecha de creación: <span class="NombreSimulacionImprimir">@DateTime.Now</span></label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@* COSTE HORA DE LOS TRABAJOS *@
|
||||||
<div class="col-8 mx-auto" style="align-items: flex-end;">
|
<div class="col-8 mx-auto" style="align-items: flex-end;">
|
||||||
<div class="TituloTablaImprimir">
|
<div class="TituloTablaImprimir">
|
||||||
<b>Coste hora de los trabajos realizados por el despacho profesional</b>
|
<b>Coste hora de los trabajos realizados por el despacho profesional</b>
|
||||||
@@ -59,6 +61,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@* COSTE HORA EXTERNALIZACION *@
|
||||||
<div class="col-8 mx-auto" style="margin-top:50px;">
|
<div class="col-8 mx-auto" style="margin-top:50px;">
|
||||||
|
|
||||||
<div class="TituloTablaImprimir" >
|
<div class="TituloTablaImprimir" >
|
||||||
@@ -97,8 +100,10 @@
|
|||||||
|
|
||||||
@* TRABAJAO PROFESIONAL *@
|
@* TRABAJAO PROFESIONAL *@
|
||||||
<div class="@separacionTabla">
|
<div class="@separacionTabla">
|
||||||
<div class="col-12 d-flex justify-content-center" style="gap:20px;">
|
<div class="col-8 mx-auto" style="margin-top:50px;">
|
||||||
<div class="formatoCampos pt-2" style="font-size:9pt;">
|
|
||||||
|
<div class="table-responsive espacioTablas">
|
||||||
|
@* <div class="formatoCampos pt-2" style="font-size:9pt;">
|
||||||
<label class="tituloLbl">Tipo de Documento:</label>
|
<label class="tituloLbl">Tipo de Documento:</label>
|
||||||
@if (objetoURBAN.TrabajoProfesional.idTipoDocumentacion != 0)
|
@if (objetoURBAN.TrabajoProfesional.idTipoDocumentacion != 0)
|
||||||
{
|
{
|
||||||
@@ -119,10 +124,47 @@
|
|||||||
{
|
{
|
||||||
<label>No Seleccionado</label>
|
<label>No Seleccionado</label>
|
||||||
}
|
}
|
||||||
|
</div> *@
|
||||||
|
|
||||||
|
<table class="mb-0" style="width:100%;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th >Tipo de Documento:</th>
|
||||||
|
<th>Documento:</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="text-end">
|
||||||
|
@if (objetoURBAN.TrabajoProfesional.idTipoDocumentacion != 0)
|
||||||
|
{
|
||||||
|
<label>@CultureInfo.CurrentCulture.TextInfo.ToTitleCase(@objetoURBAN.Enumerados.TiposDeDocumentos.First(x => x.idEnumeracion == objetoURBAN.TrabajoProfesional.idTipoDocumentacion).Descripcion.ToLower())</label>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<label>No Seleccionado</label>
|
||||||
|
}
|
||||||
|
</td>
|
||||||
|
<td class="text-end">
|
||||||
|
@if (objetoURBAN.TrabajoProfesional.idTipoDocumentacion != 0)
|
||||||
|
{
|
||||||
|
<label>@objetoURBAN.Enumerados.ProyectosPorTipo(objetoURBAN.TrabajoProfesional.idTipoDocumentacion).First(x => x.idtipoproyectos == objetoURBAN.TrabajoProfesional.idTipoProyecto).Descripcion</label>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<label>No Seleccionado</label>
|
||||||
|
}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@* TABLAS DE DATOS MINIMOS Y OPCIONALES *@
|
@* TABLAS DE DATOS MINIMOS Y OPCIONALES *@
|
||||||
<div class="col-11 mx-auto" style="margin-top:200px;">
|
<div class="col-11 mx-auto" style="margin-top:50px;">
|
||||||
@* TABLA DE DATOS MINIMOS *@
|
@* TABLA DE DATOS MINIMOS *@
|
||||||
|
|
||||||
<div class="TituloTablaImprimir" style="margin-top:50px;">
|
<div class="TituloTablaImprimir" style="margin-top:50px;">
|
||||||
@@ -158,7 +200,10 @@
|
|||||||
|
|
||||||
@* TABLA DE DATOS OPCIONALES *@
|
@* TABLA DE DATOS OPCIONALES *@
|
||||||
|
|
||||||
<div class="TituloTablaImprimir" style="margin-top:50px;">
|
<div class="TituloTablaImprimir" style="margin-top:80px;">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="TituloTablaImprimir" style="margin-top:80px;">
|
||||||
<b>Documentación Opcional:</b>
|
<b>Documentación Opcional:</b>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive espacioTablas">
|
<div class="table-responsive espacioTablas">
|
||||||
@@ -299,7 +344,10 @@
|
|||||||
@* INNOVACIÓN INSTRUMENTOS*@
|
@* INNOVACIÓN INSTRUMENTOS*@
|
||||||
<div class="col-11 mx-auto mb-5">
|
<div class="col-11 mx-auto mb-5">
|
||||||
<div>
|
<div>
|
||||||
<div class="mt-3 mb-3 TituloTablaImprimir"><b>Innovacion de los instrumentos</b></div>
|
<div class="TituloTablaImprimir" style="margin-top:80px;">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mb-3 TituloTablaImprimir" style="margin-top:80px;"><b>Innovacion de los instrumentos</b></div>
|
||||||
<p style="font-size:9pt;" class="col-6">
|
<p style="font-size:9pt;" class="col-6">
|
||||||
<label>@objetoURBAN.TrabajoProfesional.valorInstrumentos %</label>
|
<label>@objetoURBAN.TrabajoProfesional.valorInstrumentos %</label>
|
||||||
</p>
|
</p>
|
||||||
@@ -324,7 +372,7 @@
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
<div style="font-size:9pt;" class="fw-bold">
|
<div style="font-size:9pt;" class="fw-bold mt-2">
|
||||||
<label>HORAS TRABAJO PROFESIONAL URBANISMO: <span>@objetoURBAN.TrabajoProfesional.horasTrabProfesional.MilesYDecimales() h</span></label>
|
<label>HORAS TRABAJO PROFESIONAL URBANISMO: <span>@objetoURBAN.TrabajoProfesional.horasTrabProfesional.MilesYDecimales() h</span></label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -336,7 +384,7 @@
|
|||||||
<div class="col-11 mx-auto mb-5" >
|
<div class="col-11 mx-auto mb-5" >
|
||||||
<div class="row justify-content-center align-content-center align-items-center">
|
<div class="row justify-content-center align-content-center align-items-center">
|
||||||
|
|
||||||
<div class="col-9 mb-5 ">
|
<div class="col-9 mb-5 mb-0" style="width:100%;">
|
||||||
<div class="TituloTablaImprimir" >
|
<div class="TituloTablaImprimir" >
|
||||||
<b>Trabajo profesional</b>
|
<b>Trabajo profesional</b>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,27 +1,29 @@
|
|||||||
|
|
||||||
<div id="LicitacionesCASAImprimir" class="d-flex flex-column align-items-center pagePrincipal">
|
<div id="LicitacionesCASAImprimir" class="d-flex flex-column align-items-center pagePrincipal">
|
||||||
<div class="col-12 mx-auto mb-5">
|
<div class="col-12 mx-auto">
|
||||||
@* ENCABEZADO DE LA PAGINA *@
|
@* ENCABEZADO DE LA PAGINA *@
|
||||||
<div class="EncabezadoImprimir">
|
@* A esta se le pone un margin bottom diferente para que cuando los usos esten vacios que entre en una sola página *@
|
||||||
|
<div class="EncabezadoImprimir" style="margin-bottom: 80px !important;">
|
||||||
<p>
|
<p>
|
||||||
@msTextoEncabezado
|
@msTextoEncabezado
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="d-flex flex-column mt-3">
|
<div class="d-flex flex-column mt-3">
|
||||||
<label>Simulación: <span class="NombreSimulacionImprimir">@objetoLicitaciones.Descripcion</span></label>
|
<label>Simulación: <span class="NombreSimulacionImprimir">@objetoLicitaciones.Descripcion</span></label>
|
||||||
|
<br />
|
||||||
<label>Fecha de creación: <span class="NombreSimulacionImprimir">@DateTime.Now</span></label>
|
<label>Fecha de creación: <span class="NombreSimulacionImprimir">@DateTime.Now</span></label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@* TABLA USOS TIPOLOGIAS *@
|
@* TABLA USOS TIPOLOGIAS *@
|
||||||
<div class="col-11 mx-auto mb-5" style="align-items: flex-end;">
|
<div class="col-11 mx-auto mb-4" style="align-items: flex-end;">
|
||||||
<div class="TituloTablaImprimir">
|
<div class="TituloTablaImprimir">
|
||||||
<b>Usos/Tipologías</b>
|
<b>Usos/Tipologías</b>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="table-responsive">
|
<div class="table-responsive espacioTablas">
|
||||||
|
|
||||||
<table class="TablaImprimir mb-0 espacioTablas" style="width:100%;">
|
<table class="TablaImprimir mb-0" style="width:100%;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="15%">Superficie (m²)</th>
|
<th width="15%">Superficie (m²)</th>
|
||||||
@@ -53,7 +55,7 @@
|
|||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="4" class="text-start fw-bold colorC TotalesTabla">
|
<td colspan="4" class="text-start fw-bold colorC TotalesTabla">
|
||||||
<div style="height:28px; align-content:center;">
|
<div style="height:20px; align-content:center;">
|
||||||
Total superficie: <span> @objetoLicitaciones.Usos.Sum(x => x.superficie).MilesYDecimales() m²</span>
|
Total superficie: <span> @objetoLicitaciones.Usos.Sum(x => x.superficie).MilesYDecimales() m²</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@@ -84,8 +86,8 @@
|
|||||||
{
|
{
|
||||||
<tr>
|
<tr>
|
||||||
<td>@fase.Denominacion</td>
|
<td>@fase.Denominacion</td>
|
||||||
<td class="text-end">
|
<td >
|
||||||
<div>
|
<div class="centrarChecksImprimir text-end">
|
||||||
<span style="margin-right:5px;">@fase.Porcentaje</span>
|
<span style="margin-right:5px;">@fase.Porcentaje</span>
|
||||||
@if (fase.Seleccionado)
|
@if (fase.Seleccionado)
|
||||||
{
|
{
|
||||||
@@ -138,7 +140,7 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
@* TABLA COSTES DE PRODUCCION *@
|
@* TABLA COSTES DE PRODUCCION *@
|
||||||
<div class="col-8 mx-auto" style="align-items: flex-end; margin-top:800px;">
|
<div class="col-8 mx-auto" style="align-items: flex-end; margin-top:35px;">
|
||||||
<div class="TituloTablaImprimir" >
|
<div class="TituloTablaImprimir" >
|
||||||
<b>Costes de producción</b>
|
<b>Costes de producción</b>
|
||||||
</div>
|
</div>
|
||||||
@@ -196,7 +198,8 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="FooterImprimir">
|
@* A esta se le pone un margin top diferente para que cuando los usos esten vacios que entre en una sola página *@
|
||||||
|
<div class="FooterImprimir" style="margin-top: 55px !important;">
|
||||||
<p>
|
<p>
|
||||||
@mspie1
|
@mspie1
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -11,12 +11,16 @@
|
|||||||
|
|
||||||
<div class="d-flex flex-column mt-3">
|
<div class="d-flex flex-column mt-3">
|
||||||
<label>Simulación: <span class="NombreSimulacionImprimir">@objetoLicitacionUrban.NombreSimulacion</span></label>
|
<label>Simulación: <span class="NombreSimulacionImprimir">@objetoLicitacionUrban.NombreSimulacion</span></label>
|
||||||
|
<br />
|
||||||
<label>Fecha de creación: <span class="NombreSimulacionImprimir">@DateTime.Now</span></label>
|
<label>Fecha de creación: <span class="NombreSimulacionImprimir">@DateTime.Now</span></label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 d-flex justify-content-center" style="gap:20px;">
|
<div class="col-8 mx-auto" style="margin-top:50px;">
|
||||||
<div class="formatoCampos pt-2" style="font-size:9pt;">
|
|
||||||
|
<div class="table-responsive espacioTablas">
|
||||||
|
|
||||||
|
@* <div class="formatoCampos pt-2" style="font-size:9pt;">
|
||||||
<label class="tituloLbl">Tipo de Documento:</label>
|
<label class="tituloLbl">Tipo de Documento:</label>
|
||||||
@if (objetoLicitacionUrban.TrabajoProfesional.idTipoDocumentacion != 0)
|
@if (objetoLicitacionUrban.TrabajoProfesional.idTipoDocumentacion != 0)
|
||||||
{
|
{
|
||||||
@@ -37,6 +41,43 @@
|
|||||||
{
|
{
|
||||||
<label>No Seleccionado</label>
|
<label>No Seleccionado</label>
|
||||||
}
|
}
|
||||||
|
</div> *@
|
||||||
|
|
||||||
|
<table class="mb-0" style="width:100%;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Tipo de Documento:</th>
|
||||||
|
<th>Documento:</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="text-end">
|
||||||
|
@if (objetoLicitacionUrban.TrabajoProfesional.idTipoDocumentacion != 0)
|
||||||
|
{
|
||||||
|
<label>@CultureInfo.CurrentCulture.TextInfo.ToTitleCase(@objetoLicitacionUrban.Enumerados.TiposDeDocumentos.First(x => x.idEnumeracion == objetoLicitacionUrban.TrabajoProfesional.idTipoDocumentacion).Descripcion.ToLower())</label>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<label>No Seleccionado</label>
|
||||||
|
}
|
||||||
|
</td>
|
||||||
|
<td class="text-end">
|
||||||
|
@if (objetoLicitacionUrban.TrabajoProfesional.idTipoDocumentacion != 0)
|
||||||
|
{
|
||||||
|
<label>@objetoLicitacionUrban.Enumerados.ProyectosPorTipo(objetoLicitacionUrban.TrabajoProfesional.idTipoDocumentacion).First(x => x.idtipoproyectos == objetoLicitacionUrban.TrabajoProfesional.idTipoProyecto).Descripcion</label>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<label>No Seleccionado</label>
|
||||||
|
}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@* TABLAS DE DATOS MINIMOS Y OPCIONALES *@
|
@* TABLAS DE DATOS MINIMOS Y OPCIONALES *@
|
||||||
@@ -75,7 +116,10 @@
|
|||||||
|
|
||||||
@* TABLA DE DATOS OPCIONALES *@
|
@* TABLA DE DATOS OPCIONALES *@
|
||||||
|
|
||||||
<div class="TituloTablaImprimir" style=" margin-top:50px;">
|
<div class="TituloTablaImprimir" style="@espacioDocumentos">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="TituloTablaImprimir" style="@espacioDocumentos">
|
||||||
<b>Documentación Opcional:</b>
|
<b>Documentación Opcional:</b>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-responsive espacioTablas">
|
<div class="table-responsive espacioTablas">
|
||||||
@@ -374,6 +418,7 @@
|
|||||||
public tsHerramientasCACOA bd;
|
public tsHerramientasCACOA bd;
|
||||||
|
|
||||||
string espacioTabla = "margin-bottom:400px;";
|
string espacioTabla = "margin-bottom:400px;";
|
||||||
|
string espacioDocumentos = "";
|
||||||
|
|
||||||
|
|
||||||
MarkupString msTextoEncabezado => (MarkupString)textoEncabezado;
|
MarkupString msTextoEncabezado => (MarkupString)textoEncabezado;
|
||||||
@@ -394,6 +439,15 @@
|
|||||||
espacioTabla = "";
|
espacioTabla = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (objetoLicitacionUrban.TrabajoProfesional.idTipoDocumentacion != 0)
|
||||||
|
{
|
||||||
|
espacioDocumentos = "margin-top:300px;";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
espacioDocumentos = "margin-top:50px;";
|
||||||
|
}
|
||||||
|
|
||||||
textoEncabezado = bd.enumeraciones.First(x => x.Codigo.Contains("PDFURBANLIC")).ValorAlfabeticoLargo;
|
textoEncabezado = bd.enumeraciones.First(x => x.Codigo.Contains("PDFURBANLIC")).ValorAlfabeticoLargo;
|
||||||
|
|
||||||
pie1 = bd.enumeraciones.First(x => x.Codigo.Contains(".PDFPIE1")).ValorAlfabeticoLargo;
|
pie1 = bd.enumeraciones.First(x => x.Codigo.Contains(".PDFPIE1")).ValorAlfabeticoLargo;
|
||||||
|
|||||||
@@ -29,4 +29,5 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
@inject IHttpContextAccessor HttpContextAccessor
|
@inject IHttpContextAccessor HttpContextAccessor
|
||||||
@inject NavigationManager Navigation
|
@inject NavigationManager Navigation
|
||||||
@inject UserState UserState
|
@inject UserState UserState
|
||||||
|
@inject IJSRuntime JS
|
||||||
|
|
||||||
|
|
||||||
<div class="fondo">
|
<div class="fondo">
|
||||||
@@ -16,7 +17,7 @@
|
|||||||
<img src="Content/Imagenes/CACOA-6.png" height="49" />
|
<img src="Content/Imagenes/CACOA-6.png" height="49" />
|
||||||
<h4 class="mt-2">Acceso a la Herramienta</h4>
|
<h4 class="mt-2">Acceso a la Herramienta</h4>
|
||||||
<hr />
|
<hr />
|
||||||
<EditForm Model="login" FormName="loginForm" OnValidSubmit="Acceder" >
|
<EditForm Model="login" FormName="loginForm" OnValidSubmit="Acceder">
|
||||||
<DataAnnotationsValidator></DataAnnotationsValidator>
|
<DataAnnotationsValidator></DataAnnotationsValidator>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -27,7 +28,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Password</label>
|
<label>Password</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<PasswordInput Class="form-control" @bind-Value="@login.password" Id="pass"/>
|
<PasswordInput Class="form-control" @bind-Value="@login.password" Id="pass" />
|
||||||
</div>
|
</div>
|
||||||
<ValidationMessage For="() => login.password" />
|
<ValidationMessage For="() => login.password" />
|
||||||
</div>
|
</div>
|
||||||
@@ -56,10 +57,15 @@
|
|||||||
private string mensajeError = "";
|
private string mensajeError = "";
|
||||||
private bool recuerda = false;
|
private bool recuerda = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
protected override async Task OnInitializedAsync()
|
||||||
{
|
{
|
||||||
bd = tsHerramientasCACOA.NuevoContexto(SoloLectura: false);
|
bd = tsHerramientasCACOA.NuevoContexto(SoloLectura: false);
|
||||||
|
|
||||||
|
|
||||||
await ProtectedLocalStore.SetAsync("idUsuario", 0);
|
await ProtectedLocalStore.SetAsync("idUsuario", 0);
|
||||||
await ProtectedLocalStore.SetAsync("EsAdmin", false);
|
await ProtectedLocalStore.SetAsync("EsAdmin", false);
|
||||||
|
|
||||||
|
|||||||
@@ -19,10 +19,21 @@ namespace HerramientaCASA
|
|||||||
GlobalSettings = {
|
GlobalSettings = {
|
||||||
PaperSize = PaperKind.A4,
|
PaperSize = PaperKind.A4,
|
||||||
Orientation = Orientation.Portrait,
|
Orientation = Orientation.Portrait,
|
||||||
|
Margins= new MarginSettings
|
||||||
|
{
|
||||||
|
Top = 11.8,
|
||||||
|
Left = 0,
|
||||||
|
Right = 0,
|
||||||
|
Bottom = 10
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Objects = {
|
Objects = {
|
||||||
new ObjectSettings() {
|
new ObjectSettings() {
|
||||||
HtmlContent = html
|
HtmlContent = html,
|
||||||
|
HeaderSettings = new HeaderSettings
|
||||||
|
{
|
||||||
|
HtmUrl = Path.Combine(Environment.CurrentDirectory, "wwwroot", "Imprimir", "HeaderImprimir.html")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
},
|
},
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
//"WriteConnection": "Server=localhost;Port=22222;Database=herramientascacoa;User Id=cacoa;Password=cacoa2018-;",
|
//"WriteConnection": "Server=localhost;Port=22222;Database=herramientascacoa;User Id=cacoa;Password=cacoa2018-;",
|
||||||
//"ReadOnlyConnection": "Server=localhost;Port=22222;Database=herramientascacoa;User Id=cacoa;Password=cacoa2018-;",
|
//"ReadOnlyConnection": "Server=localhost;Port=22222;Database=herramientascacoa;User Id=cacoa;Password=cacoa2018-;"
|
||||||
"WriteConnection": "Server=77.229.174.85;Port=22222;Database=herramientascacoa;User Id=cacoa;Password=cacoa2018-;",
|
"WriteConnection": "Server=77.229.174.85;Port=22222;Database=herramientascacoa;User Id=cacoa;Password=cacoa2018-;",
|
||||||
"ReadOnlyConnection": "Server=77.229.174.85;Port=22222;Database=herramientascacoa;User Id=cacoa;Password=cacoa2018-;"
|
"ReadOnlyConnection": "Server=77.229.174.85;Port=22222;Database=herramientascacoa;User Id=cacoa;Password=cacoa2018-;"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -4,6 +4,15 @@ body {
|
|||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
color: white;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.logoCacoa {
|
.logoCacoa {
|
||||||
border-radius: 10px !important;
|
border-radius: 10px !important;
|
||||||
}
|
}
|
||||||
@@ -886,3 +895,9 @@ div.content {
|
|||||||
.espacioTablas {
|
.espacioTablas {
|
||||||
margin: 20px;
|
margin: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.centrarChecksImprimir {
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-end;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
21
HerramientaCASA/wwwroot/Imprimir/HeaderImprimir.html
Normal file
21
HerramientaCASA/wwwroot/Imprimir/HeaderImprimir.html
Normal file
File diff suppressed because one or more lines are too long
@@ -33,3 +33,12 @@ window.descargarPdf = function (fileName, base64Data) {
|
|||||||
link.download = fileName;
|
link.download = fileName;
|
||||||
link.click();
|
link.click();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
window.verRutaReferrer = function () {
|
||||||
|
try {
|
||||||
|
return window.parent.location.href;
|
||||||
|
} catch (e) {
|
||||||
|
return document.referrer;
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user