agregado puntos info en HerramientaURBAN
This commit is contained in:
@@ -54,7 +54,14 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4 mb-3">
|
||||
<b>Costes variables</b>
|
||||
<div class="puntoInfo">
|
||||
@if (!string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.FirstOrDefault(x => x.idPuntosInformacion == 50).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 50).Descripcion)
|
||||
}
|
||||
<b>Costes variables</b>
|
||||
|
||||
</div>
|
||||
<div class="pt-1 col-md-12 d-flex" style="gap: 40px; height:25px;">
|
||||
<div class="d-flex">
|
||||
|
||||
@@ -132,8 +139,14 @@
|
||||
</div>
|
||||
<div class="col-md-4" style="align-items: flex-end;">
|
||||
<div style="height: 49px;">
|
||||
<div class="puntoInfo">
|
||||
@if (!string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.FirstOrDefault(x => x.idPuntosInformacion == 51).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 51).Descripcion)
|
||||
}
|
||||
<b>Coste hora Despacho Profesional</b>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
@@ -174,8 +187,14 @@
|
||||
<div class="col-md-4">
|
||||
|
||||
<div style="height: 49px;">
|
||||
<div class="puntoInfo">
|
||||
@if (!string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.FirstOrDefault(x => x.idPuntosInformacion == 52).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 52).Descripcion)
|
||||
}
|
||||
<b>Coste hora Externalización</b>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table tablaCACOA tablaCACOA2 mb-0">
|
||||
<thead>
|
||||
|
||||
@@ -16,7 +16,15 @@
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="TotalesTabla colorFilasIntro "><b>Beneficio</b> (antes de impuestos)</td>
|
||||
<td class="TotalesTabla colorFilasIntro ">
|
||||
<div class="puntoInfo">
|
||||
@if (!string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.FirstOrDefault(x => x.idPuntosInformacion == 54).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 54).Descripcion)
|
||||
}
|
||||
<b>Beneficio</b> (antes de impuestos)
|
||||
|
||||
</div></td>
|
||||
<td class="TotalesTabla text-end">
|
||||
<div class="d-flex" style="gap:3px;">
|
||||
<InputNumber TValue="double" Locale="es-ES" Min="0" class="inputForm formatoMoneda inputTabla" Value="@objetoURBAN.CostesProduccion.Beneficio" ValueExpression="() => objetoURBAN.CostesProduccion.Beneficio" ValueChanged="(value) => BeneficioCambiado(value)"></InputNumber> %
|
||||
|
||||
@@ -6,7 +6,15 @@
|
||||
<div class="col-md-6 row">
|
||||
<table class="table tablaCACOA tablaCACOA2 mb-0">
|
||||
<tr>
|
||||
<td class="colorFilasIntro fw-bold w4">Plazo de presentación de la documentación:</td>
|
||||
<td class="colorFilasIntro fw-bold w4">
|
||||
|
||||
<div class="puntoInfo">
|
||||
@if (!string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.FirstOrDefault(x => x.idPuntosInformacion == 53).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 53).Descripcion)
|
||||
}
|
||||
Plazo de presentación de la documentación:
|
||||
</div></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="@objetoURBAN.CostesProduccion.PlazoPresentacionDocumentos" ValueExpression="() => objetoURBAN.CostesProduccion.PlazoPresentacionDocumentos" ValueChanged="(value) => PlazoPresentacionDocumentosCambiado(value)"></InputNumber> meses *@
|
||||
|
||||
@@ -21,8 +21,14 @@
|
||||
Responsive="true">
|
||||
|
||||
<GridColumns>
|
||||
<GridColumn TItem="CASA.CosteIndirecto" HeaderTextAlignment="Alignment.Center" HeaderText="Concepto" PropertyName="Concepto" Class="colorFilasIntro">
|
||||
<GridColumn TItem="CASA.CosteIndirecto" HeaderTextAlignment="Alignment.Center" HeaderText="Concepto" PropertyName="Concepto" Class="colorFilasIntro columna30Ancho">
|
||||
<div class="puntoInfo">
|
||||
@if (context.idPuntoInformacion != 0 && !string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.FirstOrDefault(x => x.idPuntosInformacion == context.idPuntoInformacion).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == context.idPuntoInformacion).Descripcion)
|
||||
}
|
||||
@context.Concepto
|
||||
</div>
|
||||
</GridColumn>
|
||||
<GridColumn TItem="CASA.CosteIndirecto" HeaderTextAlignment="Alignment.Center" Class="formatoMoneda columna30Ancho" HeaderText="Importe" PropertyName="importe">
|
||||
<div class="d-flex separadorMoneda">
|
||||
|
||||
@@ -19,7 +19,12 @@
|
||||
<BodyTemplate>
|
||||
<div class="row">
|
||||
<div class="col-12 formatoCampos">
|
||||
<label class="tituloLbl">Denominación grupo:</label>
|
||||
<label class="tituloLbl">
|
||||
@if (!string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 37).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 37).Descripcion)
|
||||
}
|
||||
Denominación grupo:</label>
|
||||
<InputText @bind-Value="itemSeleccionadoTemporal.Nombre" class="inputForm" list="sugerenciasGrupo"></InputText>
|
||||
|
||||
<datalist id="sugerenciasGrupo">
|
||||
@@ -32,7 +37,12 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-6 formatoCampos">
|
||||
<label class="tituloLbl">Coste anual:</label>
|
||||
<label class="tituloLbl">
|
||||
@if (!string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 38).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 38).Descripcion)
|
||||
}
|
||||
Coste anual:</label>
|
||||
<div class="d-flex" style="gap:3px;">
|
||||
<NumberInput TValue="double" Min="0" @bind-Value="itemSeleccionadoTemporal.CosteAnual" class="inputForm derecha formatoMoneda"></NumberInput> €
|
||||
</div>
|
||||
@@ -40,6 +50,10 @@
|
||||
|
||||
<div class="col-6 formatoCampos">
|
||||
<label class="tituloLbl">
|
||||
@if (!string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 39).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 39).Descripcion)
|
||||
}
|
||||
Jornada laboral:
|
||||
</label>
|
||||
<div class="d-flex" style="gap:3px;">
|
||||
@@ -51,9 +65,10 @@
|
||||
|
||||
<div class="col-6 formatoCampos">
|
||||
<label class="tituloLbl">
|
||||
<Tooltip Title=@tituloInfo class="custom-tooltip" role="button">
|
||||
<Icon Name="IconName.InfoCircleFill" Class="text-primary"></Icon>
|
||||
</Tooltip>
|
||||
@if (!string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 40).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 40).Descripcion)
|
||||
}
|
||||
Porcentaje producción:
|
||||
</label>
|
||||
<div class="d-flex" style="gap:3px;">
|
||||
@@ -63,7 +78,12 @@
|
||||
</div>
|
||||
|
||||
<div class="col-6 formatoCampos">
|
||||
<label class="tituloLbl">Nº de trabajadores:</label>
|
||||
<label class="tituloLbl">
|
||||
@if (!string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 41).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 41).Descripcion)
|
||||
}
|
||||
Nº de trabajadores:</label>
|
||||
<NumberInput TValue="double" Step="1" @oninput="EvitarDecimalesTrabajores" Min="0" @bind-Value="itemSeleccionadoTemporal.NumTrabajadores" class="inputForm derecha"></NumberInput>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -29,7 +29,12 @@
|
||||
|
||||
<div class="row mt-3">
|
||||
<div class="col-4">
|
||||
<label class="tituloLbl">Documentación Mínima:</label>
|
||||
<label class="tituloLbl">
|
||||
@if (!string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.FirstOrDefault(x => x.idPuntosInformacion == 46).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 46).Descripcion)
|
||||
}
|
||||
Documentación Mínima:</label>
|
||||
<Grid TItem="URBAN.DocumentacionURBAN"
|
||||
Class="tablaCACOA table"
|
||||
Data="objetoURBAN.TrabajoProfesional.DocumentacionMinima"
|
||||
@@ -48,7 +53,12 @@
|
||||
</Grid>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<label class="tituloLbl">Documentación Opcional:</label>
|
||||
<label class="tituloLbl">
|
||||
@if (!string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.FirstOrDefault(x => x.idPuntosInformacion == 63).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 63).Descripcion)
|
||||
}
|
||||
Documentación Opcional:</label>
|
||||
<Grid TItem="URBAN.DocumentacionURBAN"
|
||||
Class="tablaCACOA table"
|
||||
Data="objetoURBAN.TrabajoProfesional.DocumentacionOpcional"
|
||||
@@ -73,7 +83,12 @@
|
||||
</Grid>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<label class="tituloLbl">Datos Necesarios:</label>
|
||||
<label class="tituloLbl">
|
||||
@if (!string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.FirstOrDefault(x => x.idPuntosInformacion == 47).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 47).Descripcion)
|
||||
}
|
||||
Datos Necesarios:</label>
|
||||
<Grid TItem="URBAN.DocumentacionURBAN"
|
||||
Class="tablaCACOA table"
|
||||
Data="objetoURBAN.TrabajoProfesional.DatosNecesarios"
|
||||
|
||||
@@ -6,7 +6,12 @@
|
||||
<Toasts class="p-3 font-weight-bold" Style="color:white;" AutoHide="true" Delay="4000" Messages="mensajes" Placement="ToastsPlacement.BottomCenter" />
|
||||
|
||||
<div class="d-flex justify-content-between mt-3">
|
||||
<div><b>Fases</b></div>
|
||||
<div class="puntoInfo">
|
||||
@if (!string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.FirstOrDefault(x => x.idPuntosInformacion == 48).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 48).Descripcion)
|
||||
}
|
||||
<b>Fases</b></div>
|
||||
</div>
|
||||
|
||||
<div style="position:relative;margin-bottom: 35px;">
|
||||
|
||||
@@ -9,7 +9,12 @@
|
||||
<Toasts class="p-3 font-weight-bold" Style="color:white;" AutoHide="true" Delay="4000" Messages="mensajes" Placement="ToastsPlacement.BottomCenter" />
|
||||
|
||||
<div>
|
||||
<div class="mt-3 mb-3"><b>Innovacion de los instrumentos</b></div>
|
||||
<div class="mt-3 mb-3 puntoInfo">
|
||||
@if (!string.IsNullOrEmpty(objetoURBAN.Enumerados.PuntosInformacion.FirstOrDefault(x => x.idPuntosInformacion == 49).Descripcion))
|
||||
{
|
||||
@UtilidadesCASA.CreateTooltip(objetoURBAN.Enumerados.PuntosInformacion.First(x => x.idPuntosInformacion == 49).Descripcion)
|
||||
}
|
||||
<b>Innovacion de los instrumentos</b></div>
|
||||
<p class="col-6">
|
||||
@* @if (!nuevaRedaccion)
|
||||
{ *@
|
||||
|
||||
@@ -14,6 +14,8 @@ namespace bdHerramientaCACOA.HerramientaURBAN
|
||||
public partial class URBAN {
|
||||
public class EnumeradosURBAN
|
||||
{
|
||||
public List<puntosinformacion> PuntosInformacion { get; set; } = new List<puntosinformacion>();
|
||||
|
||||
public List<FasesURBAN> FasesTrabajo { get; set; } = new List<FasesURBAN>();
|
||||
public List<enumeracionesCASA> ListaInstrumentos { get; set; } = new List<enumeracionesCASA>();
|
||||
public List<enumeracionesCASA> Periodos { get; set; } = new List<enumeracionesCASA>();
|
||||
|
||||
@@ -75,12 +75,14 @@ namespace bdHerramientaCACOA.HerramientaURBAN
|
||||
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);
|
||||
}
|
||||
}
|
||||
checkListCostIndirectos(listaCosteIndirectos);
|
||||
|
||||
Enumerados.PuntosInformacion = bd.puntosinformacion.Where(x => x.idTipoHerramienta == 34 || x.idTipoHerramienta == 31).ToList();
|
||||
|
||||
//Cargamos las Fases
|
||||
var grupoFases = bd.gruposenumeraciones.FirstOrDefault(x => x.Grupo == "FASURB");
|
||||
var listaFases = bd.enumeraciones.Where(x => x.idGrupoEnumeracion == grupoFases.idGrupoEnumeracion).ToList();
|
||||
|
||||
Reference in New Issue
Block a user