public void DatoToInterfazUsuario(ListadoVerificacionExcavadoraBO bo) { this.vista.tieneZapatas = bo.TieneZapatas.HasValue ? bo.TieneZapatas : null; this.vista.tieneBrazoPluma = bo.TieneBrazoPluma.HasValue ? bo.TieneBrazoPluma : null; this.vista.tienesContrapeso = bo.TieneContrapeso.HasValue ? bo.TieneContrapeso : null; this.vista.tieneVastagosGatos = bo.TieneVastagosGatos.HasValue ? bo.TieneVastagosGatos : null; this.vista.tieneTensionCadena = bo.TieneTensionCadena.HasValue ? bo.TieneTensionCadena : null; this.vista.tieneRodillosTransito = bo.TieneRodillosTransito.HasValue ? bo.TieneRodillosTransito : null; this.vista.tieneEspejosRetrovisores = bo.TieneEspejosRetrovisores.HasValue ? bo.TieneEspejosRetrovisores : null; this.vista.tieneCristalesCabina = bo.TieneCristalesCabina.HasValue ? bo.TieneCristalesCabina : null; this.vista.tienePuertasCerraduras = bo.TienePuertasCerraduras.HasValue ? bo.TienePuertasCerraduras : null; this.vista.tieneBisagrasCofreMotor = bo.TieneBisagrasCofreMotor.HasValue ? bo.TieneBisagrasCofreMotor : null; this.vista.tieneBalancinBote = bo.TieneBalancinBote.HasValue ? bo.TieneBalancinBote : null; this.vista.tieneLucesTrabajo = bo.TieneLucesTrabajo.HasValue ? bo.TieneLucesTrabajo : null; this.vista.tieneLamparasTablero = bo.TieneLamparasTablero.HasValue ? bo.TieneLamparasTablero : null; this.vista.tieneInterruptorDesconexion = bo.TieneInterruptorDesconexion.HasValue ? bo.TieneInterruptorDesconexion : null; this.vista.tieneAlarmaReversa = bo.TieneAlarmaReversa.HasValue ? bo.TieneAlarmaReversa : null; this.vista.tieneHorometro = bo.TieneHorometro.HasValue ? bo.TieneHorometro : null; this.vista.tieneLimpiaparabrisas = bo.TieneLimpiaparabrisas.HasValue ? bo.TieneLimpiaparabrisas : null; this.vista.tieneCombustible = bo.TieneCombustible.HasValue ? bo.TieneCombustible : null; this.vista.tieneAceiteMotor = bo.TieneAceiteMotor.HasValue ? bo.TieneAceiteMotor : null; this.vista.tieneAceiteHidraulico = bo.TieneAceiteHidraulico.HasValue ? bo.TieneAceiteHidraulico : null; this.vista.tieneLiquidoRefrigerante = bo.TieneLiquidoRefrigerante.HasValue ? bo.TieneLiquidoRefrigerante : null; this.vista.tieneReductorEngranesTransito = bo.TieneReductorEngranesTransito.HasValue ? bo.TieneReductorEngranesTransito : null; this.vista.tieneReductorSwing = bo.TieneReductorSwing.HasValue ? bo.TieneReductorSwing : null; this.vista.tieneBateria = bo.TieneBateria.HasValue ? bo.TieneBateria : null; this.vista.tieneJoystick = bo.TieneJoystick.HasValue ? bo.TieneJoystick : null; this.vista.tieneLucesAdvertencia = bo.TieneLucesAdvertencia.HasValue ? bo.TieneLucesAdvertencia : null; this.vista.tieneIndicadores = bo.TieneIndicadores.HasValue ? bo.TieneIndicadores : null; this.vista.tienePalancaBloqueoPilotaje = bo.TienePalancaBloqueoPilotaje.HasValue ? bo.TienePalancaBloqueoPilotaje : null; this.vista.tieneAireAcondicionado = bo.TieneAireAcondicionado.HasValue ? bo.TieneAireAcondicionado : null; this.vista.tieneAutoaceleracion = bo.TieneAutoaceleracion.HasValue ? bo.TieneAutoaceleracion : null; this.vista.tieneVelocidadMinimaMotor = bo.TieneVelocidadMinimaMotor.HasValue ? bo.TieneVelocidadMinimaMotor : null; this.vista.tieneVelocidadMaximaMotor = bo.TieneVelocidadMaximaMotor.HasValue ? bo.TieneVelocidadMaximaMotor : null; this.vista.tienePasadoresBoom = bo.TienePasadoresBoom.HasValue ? bo.TienePasadoresBoom : null; this.vista.tienePasadoresBrazo = bo.TienePasadoresBrazo.HasValue ? bo.TienePasadoresBrazo : null; this.vista.tienePasadoresBote = bo.TienePasadoresBote.HasValue ? bo.TienePasadoresBote : null; this.vista.tieneTornameza = bo.TieneTornameza.HasValue ? bo.TieneTornameza : null; this.vista.tieneCentralEngrase = bo.TieneCentralEngrase.HasValue ? bo.TieneCentralEngrase : null; this.vista.tieneTapaCombustible = bo.TieneTapaCombustible.HasValue ? bo.TieneTapaCombustible : null; this.vista.tieneCondicionAsiento = bo.TieneCondicionAsiento.HasValue ? bo.TieneCondicionAsiento : null; this.vista.tieneCondicionPintura = bo.TieneCondicionPintura.HasValue ? bo.TieneCondicionPintura : null; this.vista.tieneCondicionCalcas = bo.TieneCondicionCalcas.HasValue ? bo.TieneCondicionCalcas : null; this.vista.tieneSimboloSeguridadMaquina = bo.TieneSimboloSeguridadMaquina.HasValue ? bo.TieneSimboloSeguridadMaquina : null; this.vista.tieneEstructuraChasis = bo.TieneEstructuraChasis.HasValue ? bo.TieneEstructuraChasis : null; this.vista.tieneAntenasMonitoreoSatelital = bo.TieneAntenasMonitoreoSatelital.HasValue ? bo.TieneAntenasMonitoreoSatelital : null; }
public void Registrar() { ListadoVerificacionExcavadoraBO bo = (ListadoVerificacionExcavadoraBO)this.InterfazUsuarioADato(); }
public object InterfazUsuarioADato() { ListadoVerificacionExcavadoraBO bo = new ListadoVerificacionExcavadoraBO(); if (this.vista.tieneZapatas.HasValue) { bo.TieneZapatas = this.vista.tieneZapatas.Value; } if (this.vista.tieneBrazoPluma.HasValue) { bo.TieneBrazoPluma = this.vista.tieneBrazoPluma.Value; } if (this.vista.tienesContrapeso.HasValue) { bo.TieneContrapeso = this.vista.tienesContrapeso.Value; } if (this.vista.tieneVastagosGatos.HasValue) { bo.TieneVastagosGatos = this.vista.tieneVastagosGatos.Value; } if (this.vista.tieneTensionCadena.HasValue) { bo.TieneTensionCadena = this.vista.tieneTensionCadena.Value; } if (this.vista.tieneRodillosTransito.HasValue) { bo.TieneRodillosTransito = this.vista.tieneRodillosTransito.Value; } if (this.vista.tieneEspejosRetrovisores.HasValue) { bo.TieneEspejosRetrovisores = this.vista.tieneEspejosRetrovisores.Value; } if (this.vista.tieneCristalesCabina.HasValue) { bo.TieneCristalesCabina = this.vista.tieneCristalesCabina.Value; } if (this.vista.tienePuertasCerraduras.HasValue) { bo.TienePuertasCerraduras = this.vista.tienePuertasCerraduras.Value; } if (this.vista.tieneBisagrasCofreMotor.HasValue) { bo.TieneBisagrasCofreMotor = this.vista.tieneBisagrasCofreMotor.Value; } if (this.vista.tieneBalancinBote.HasValue) { bo.TieneBalancinBote = this.vista.tieneBalancinBote.Value; } if (this.vista.tieneLucesTrabajo.HasValue) { bo.TieneLucesTrabajo = this.vista.tieneLucesTrabajo.Value; } if (this.vista.tieneLamparasTablero.HasValue) { bo.TieneLamparasTablero = this.vista.tieneLamparasTablero.Value; } if (this.vista.tieneInterruptorDesconexion.HasValue) { bo.TieneInterruptorDesconexion = this.vista.tieneInterruptorDesconexion.Value; } if (this.vista.tieneAlarmaReversa.HasValue) { bo.TieneAlarmaReversa = this.vista.tieneAlarmaReversa.Value; } if (this.vista.tieneHorometro.HasValue) { bo.TieneHorometro = this.vista.tieneHorometro.Value; } if (this.vista.tieneLimpiaparabrisas.HasValue) { bo.TieneLimpiaparabrisas = this.vista.tieneLimpiaparabrisas.Value; } if (this.vista.tieneCombustible.HasValue) { bo.TieneCombustible = this.vista.tieneCombustible.Value; } if (this.vista.tieneAceiteMotor.HasValue) { bo.TieneAceiteMotor = this.vista.tieneAceiteMotor.Value; } if (this.vista.tieneAceiteHidraulico.HasValue) { bo.TieneAceiteHidraulico = this.vista.tieneAceiteHidraulico.Value; } if (this.vista.tieneLiquidoRefrigerante.HasValue) { bo.TieneLiquidoRefrigerante = this.vista.tieneLiquidoRefrigerante.Value; } if (this.vista.tieneReductorEngranesTransito.HasValue) { bo.TieneReductorEngranesTransito = this.vista.tieneReductorEngranesTransito.Value; } if (this.vista.tieneReductorSwing.HasValue) { bo.TieneReductorSwing = this.vista.tieneReductorSwing.Value; } if (this.vista.tieneBateria.HasValue) { bo.TieneBateria = this.vista.tieneBateria.Value; } if (this.vista.tieneJoystick.HasValue) { bo.TieneJoystick = this.vista.tieneJoystick.Value; } if (this.vista.tieneLucesAdvertencia.HasValue) { bo.TieneLucesAdvertencia = this.vista.tieneLucesAdvertencia.Value; } if (this.vista.tieneIndicadores.HasValue) { bo.TieneIndicadores = this.vista.tieneIndicadores.Value; } if (this.vista.tienePalancaBloqueoPilotaje.HasValue) { bo.TienePalancaBloqueoPilotaje = this.vista.tienePalancaBloqueoPilotaje.Value; } if (this.vista.tieneAireAcondicionado.HasValue) { bo.TieneAireAcondicionado = this.vista.tieneAireAcondicionado.Value; } if (this.vista.tieneAutoaceleracion.HasValue) { bo.TieneAutoaceleracion = this.vista.tieneAutoaceleracion.Value; } if (this.vista.tieneVelocidadMinimaMotor.HasValue) { bo.TieneVelocidadMinimaMotor = this.vista.tieneVelocidadMinimaMotor.Value; } if (this.vista.tieneVelocidadMaximaMotor.HasValue) { bo.TieneVelocidadMaximaMotor = this.vista.tieneVelocidadMaximaMotor.Value; } if (this.vista.tienePasadoresBoom.HasValue) { bo.TienePasadoresBoom = this.vista.tienePasadoresBoom.Value; } if (this.vista.tienePasadoresBrazo.HasValue) { bo.TienePasadoresBrazo = this.vista.tienePasadoresBrazo.Value; } if (this.vista.tienePasadoresBote.HasValue) { bo.TienePasadoresBote = this.vista.tienePasadoresBote.Value; } if (this.vista.tieneTornameza.HasValue) { bo.TieneTornameza = this.vista.tieneTornameza.Value; } if (this.vista.tieneCentralEngrase.HasValue) { bo.TieneCentralEngrase = this.vista.tieneCentralEngrase.Value; } if (this.vista.tieneTapaCombustible.HasValue) { bo.TieneTapaCombustible = this.vista.tieneTapaCombustible.Value; } if (this.vista.tieneCondicionAsiento.HasValue) { bo.TieneCondicionAsiento = this.vista.tieneCondicionAsiento.Value; } if (this.vista.tieneCondicionPintura.HasValue) { bo.TieneCondicionPintura = this.vista.tieneCondicionPintura.Value; } if (this.vista.tieneCondicionCalcas.HasValue) { bo.TieneCondicionCalcas = this.vista.tieneCondicionCalcas.Value; } if (this.vista.tieneSimboloSeguridadMaquina.HasValue) { bo.TieneSimboloSeguridadMaquina = this.vista.tieneSimboloSeguridadMaquina.Value; } if (this.vista.tieneEstructuraChasis.HasValue) { bo.TieneEstructuraChasis = this.vista.tieneEstructuraChasis.Value; } if (this.vista.tieneAntenasMonitoreoSatelital.HasValue) { bo.TieneAntenasMonitoreoSatelital = this.vista.tieneAntenasMonitoreoSatelital.Value; } return(bo); }