adasd
This commit is contained in:
@@ -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>
|
||||||
@@ -38,7 +39,39 @@
|
|||||||
|
|
||||||
|
|
||||||
@code{
|
@code{
|
||||||
|
|
||||||
|
|
||||||
|
string? urlAnterior = "";
|
||||||
|
|
||||||
|
bool urlVaida = true;
|
||||||
|
string rutaActual = "";
|
||||||
|
|
||||||
|
|
||||||
|
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||||
|
{
|
||||||
|
if (firstRender)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(urlAnterior))
|
||||||
|
{
|
||||||
|
urlAnterior = await JS.InvokeAsync<string>("eval", "document.referer");
|
||||||
|
|
||||||
|
rutaActual = Navigation.ToBaseRelativePath(Navigation.Uri);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if (rutaActual != "Denegado")
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(urlAnterior) && urlAnterior.Contains("cacoa.es"))
|
||||||
|
{
|
||||||
|
Navigation.NavigateTo("/Denegado", true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
StateHasChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
<InputText @bind-Value="casa.NombreSimulacion" class="form-control inputForm formatoMoneda inputTabla " style="text-align:left;font-weight:bold;"></InputText>
|
<InputText @bind-Value="casa.NombreSimulacion" class="form-control inputForm formatoMoneda inputTabla " style="text-align:left;font-weight:bold;"></InputText>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex ml-auto impriManual">
|
<div class="d-flex ml-auto impriManual">
|
||||||
<button @onclick="imprimir" class="btnBlue d-flex align-items-center ms-1" style="background-color: #65b7c3 !important;"> <i class="fas fa-print pe-2"></i>Imprimir</button>
|
@* <button @onclick="imprimir" class="btnBlue d-flex align-items-center ms-1" style="background-color: #65b7c3 !important;"> <i class="fas fa-print pe-2"></i>Imprimir</button> *@
|
||||||
<button @onclick="VerManual" class="btnBlue d-flex align-items-center ms-1" style="background-color: #65b7c3 !important;"> <i class="fas fa-book pe-2"></i>Manual</button>
|
<button @onclick="VerManual" class="btnBlue d-flex align-items-center ms-1" style="background-color: #65b7c3 !important;"> <i class="fas fa-book pe-2"></i>Manual</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
<InputText @bind-Value="urban.NombreSimulacion" class="form-control inputForm formatoMoneda inputTabla " style="text-align:left;font-weight:bold;"></InputText>
|
<InputText @bind-Value="urban.NombreSimulacion" class="form-control inputForm formatoMoneda inputTabla " style="text-align:left;font-weight:bold;"></InputText>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex ml-auto impriManual">
|
<div class="d-flex ml-auto impriManual">
|
||||||
<button @onclick="imprimir" class="btnBlue d-flex align-items-center ms-1" style="background-color: #65b7c3 !important;"> <i class="fas fa-print pe-2"></i>Imprimir</button>
|
@* <button @onclick="imprimir" class="btnBlue d-flex align-items-center ms-1" style="background-color: #65b7c3 !important;"> <i class="fas fa-print pe-2"></i>Imprimir</button> *@
|
||||||
<button @onclick="VerManual" class="btnBlue d-flex align-items-center ms-1" style="background-color: #65b7c3 !important;"> <i class="fas fa-book pe-2"></i>Manual</button>
|
<button @onclick="VerManual" class="btnBlue d-flex align-items-center ms-1" style="background-color: #65b7c3 !important;"> <i class="fas fa-book pe-2"></i>Manual</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -208,7 +208,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 mx-auto " >
|
<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" style=" margin-top:70px;">
|
<div class="col-8 mx-auto" style=" margin-top:70px;">
|
||||||
|
|||||||
@@ -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,7 +41,44 @@
|
|||||||
{
|
{
|
||||||
<label>No Seleccionado</label>
|
<label>No Seleccionado</label>
|
||||||
}
|
}
|
||||||
</div>
|
</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>
|
||||||
@* TABLAS DE DATOS MINIMOS Y OPCIONALES *@
|
@* TABLAS DE DATOS MINIMOS Y OPCIONALES *@
|
||||||
<div class="col-11 mx-auto">
|
<div class="col-11 mx-auto">
|
||||||
@@ -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;
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
<InputText @bind-Value="objetoLicitaciones.Descripcion" class="form-control inputForm formatoMoneda inputTabla " style="text-align:left;font-weight:bold;"></InputText>
|
<InputText @bind-Value="objetoLicitaciones.Descripcion" class="form-control inputForm formatoMoneda inputTabla " style="text-align:left;font-weight:bold;"></InputText>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex ml-auto impriManual">
|
<div class="d-flex ml-auto impriManual">
|
||||||
<button @onclick="imprimir" class="btnBlue d-flex align-items-center ms-1" style="background-color: #65b7c3 !important;"> <i class="fas fa-print pe-2"></i>Imprimir</button>
|
@* <button @onclick="imprimir" class="btnBlue d-flex align-items-center ms-1" style="background-color: #65b7c3 !important;"> <i class="fas fa-print pe-2"></i>Imprimir</button> *@
|
||||||
<button @onclick="VerManual" class="btnBlue d-flex align-items-center ms-1" style="background-color: #65b7c3 !important;"> <i class="fas fa-book pe-2"></i>Manual</button>
|
<button @onclick="VerManual" class="btnBlue d-flex align-items-center ms-1" style="background-color: #65b7c3 !important;"> <i class="fas fa-book pe-2"></i>Manual</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -23,11 +23,6 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<a href="https://www.cacoa.es" class="enlaceCACOA">Ir a la web del CACOA</a>
|
<a href="https://www.cacoa.es" class="enlaceCACOA">Ir a la web del CACOA</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<label>Ruta anterior: @urlAnterior</label>
|
|
||||||
<label>Ruta rutaActual: @urlAnterior</label>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -35,15 +30,4 @@
|
|||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
|
||||||
|
|
||||||
string? urlAnterior = "";
|
|
||||||
string? rutaActual = "";
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
|
||||||
{
|
|
||||||
urlAnterior = HttpContextAccessor.HttpContext?.Request.Headers["Referer"].ToString();
|
|
||||||
rutaActual = Navigation.ToBaseRelativePath(Navigation.Uri);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,8 +11,6 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="fondo">
|
<div class="fondo">
|
||||||
@if (urlVaida)
|
|
||||||
{
|
|
||||||
<div class="back">
|
<div class="back">
|
||||||
<div class="div-center arealogin">
|
<div class="div-center arealogin">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
@@ -51,10 +49,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
<label>Ruta anterior: @urlAnterior</label>
|
|
||||||
</div>
|
</div>
|
||||||
@code {
|
@code {
|
||||||
|
|
||||||
@@ -63,35 +57,14 @@
|
|||||||
private string mensajeError = "";
|
private string mensajeError = "";
|
||||||
private bool recuerda = false;
|
private bool recuerda = false;
|
||||||
|
|
||||||
string? urlAnterior = "";
|
|
||||||
|
|
||||||
bool urlVaida = true;
|
|
||||||
|
|
||||||
private bool jsCargado = false;
|
|
||||||
|
|
||||||
// protected override async Task OnAfterRenderAsync(bool firstRender)
|
|
||||||
// {
|
|
||||||
// if (firstRender && !jsCargado)
|
|
||||||
// {
|
|
||||||
// if (string.IsNullOrEmpty(urlAnterior))
|
|
||||||
// {
|
|
||||||
// urlAnterior = await JS.InvokeAsync<string>("eval", "document.referer");
|
|
||||||
// }
|
|
||||||
// // Actualiza la UI
|
|
||||||
// StateHasChanged();
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
protected override async Task OnInitializedAsync()
|
||||||
{
|
{
|
||||||
bd = tsHerramientasCACOA.NuevoContexto(SoloLectura: false);
|
bd = tsHerramientasCACOA.NuevoContexto(SoloLectura: false);
|
||||||
|
|
||||||
// if (string.IsNullOrEmpty(urlAnterior))
|
|
||||||
// {
|
|
||||||
// urlAnterior = await JS.InvokeAsync<string>("eval", "document.referer");
|
|
||||||
// }
|
|
||||||
|
|
||||||
// StateHasChanged();
|
|
||||||
|
|
||||||
await ProtectedLocalStore.SetAsync("idUsuario", 0);
|
await ProtectedLocalStore.SetAsync("idUsuario", 0);
|
||||||
await ProtectedLocalStore.SetAsync("EsAdmin", false);
|
await ProtectedLocalStore.SetAsync("EsAdmin", false);
|
||||||
|
|||||||
Reference in New Issue
Block a user