cambios casi terminados. Falta pasar horas a semanas y poner los excels separados
This commit is contained in:
@@ -57,19 +57,7 @@ namespace bdHerramientaCACOA
|
||||
public bool EsPorUsos { get; set; } = true;
|
||||
public double CostesProduccionTrabProf { get; set; } = 0;
|
||||
|
||||
double _beneficio = 19;
|
||||
public double Beneficio
|
||||
{
|
||||
get
|
||||
{
|
||||
return _beneficio;
|
||||
}
|
||||
//set
|
||||
//{
|
||||
// _beneficio = value;
|
||||
// CalcularHorasSuperficie();
|
||||
//}
|
||||
}
|
||||
public double Beneficio { get; set; } = 19;
|
||||
|
||||
public double PrecioTrabProf { get; set; } = 0;
|
||||
|
||||
@@ -86,6 +74,8 @@ namespace bdHerramientaCACOA
|
||||
Variables.HorasProduccionMedia = (int)bd.enumeraciones.First(x => x.Codigo == "VARCASA.HORPRODMEDIA").ValorNumerico1;
|
||||
Variables.IPCCosteIndirecto = (double) bd.enumeraciones.First(x => x.Codigo == "VARCASA.IPCCD").ValorNumerico1;
|
||||
|
||||
Beneficio = (double)bd.enumeraciones.First(x => x.Codigo == "VARCASA.GG+BI").ValorNumerico1;
|
||||
|
||||
|
||||
idGradSup = bd.enumeraciones.First(x => x.Codigo == "PUESTOTRABAJO.TECGRADSUP").idEnumeracion;
|
||||
idGradMed = bd.enumeraciones.First(x => x.Codigo == "PUESTOTRABAJO.GESTPROY").idEnumeracion;
|
||||
@@ -201,6 +191,7 @@ namespace bdHerramientaCACOA
|
||||
public double coefIntervencionTotal { get; set; } = 0;
|
||||
public double fasesEncargadas { get; set; } = 0;
|
||||
public double horasProduccion { get; set; } = 0;
|
||||
public double horasProduccionEstimacion { get; set; } = 0;
|
||||
public double horasPorcentaje { get; set; } = 0;
|
||||
public double horasDocumentacion { get; set; } = 0;
|
||||
public double plazoMedio { get; set; } = 0;
|
||||
@@ -247,6 +238,8 @@ namespace bdHerramientaCACOA
|
||||
// COMPROBAR SI ESTO ESTÁ BIEN, SINO EL COSTE HORA DE PRODUCCIÓN NO CAMBIA
|
||||
horasPorcentaje = FasesTrabajo.Where(x=>x.Seleccionado).Sum(x => x.Porcentaje);
|
||||
horasDocumentacion = Math.Round(superficie * coefSupTotal * coefTipoTotal * coefIntervencionTotal * (horasPorcentaje / 100), 2, MidpointRounding.AwayFromZero);
|
||||
|
||||
horasProduccionEstimacion = horasProduccion;
|
||||
}
|
||||
else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user