Пример #1
0
        public void DatoToInterfazUsuario(ListadoVerificacionTorresLuzBO bo)
        {
            #region General
            this.vista.tienePresionLlantas       = bo.TienePresionLlantas.HasValue ? bo.TienePresionLlantas : null;
            this.vista.tieneBandaVentilador      = bo.TieneBandaVentilador.HasValue ? bo.TieneBandaVentilador : null;
            this.vista.tieneManguerasAbrazaderas = bo.TieneManguerasAbrazaderas.HasValue ? bo.TieneManguerasAbrazaderas : null;
            this.vista.tieneCartuchoFiltroAire   = bo.TieneCartuchoFiltroAire.HasValue ? bo.TieneCartuchoFiltroAire : null;
            this.vista.tieneCableLevanteTorre    = bo.TieneCableLevanteTorre.HasValue ? bo.TieneCableLevanteTorre : null;
            #endregion
            #region Niveles de fluidos
            this.vista.tieneCombustible         = bo.TieneCombustible.HasValue ? bo.TieneCombustible : null;
            this.vista.tieneAceiteMotor         = bo.TieneAceiteMotor.HasValue ? bo.TieneAceiteMotor : null;
            this.vista.tieneLiquidoRefrigerante = bo.TieneLiquidoRefrigerante.HasValue ? bo.TieneLiquidoRefrigerante : null;
            this.vista.tieneBateria             = bo.TieneBateria.HasValue ? bo.TieneBateria : null;

            #endregion
            #region Funciones Electricas
            this.vista.tieneLucesTorre      = bo.TieneLucesTorre.HasValue ? bo.TieneLucesTorre : null;
            this.vista.tieneLamparasTablero = bo.TieneLamparasTablero.HasValue ? bo.TieneLamparasTablero : null;
            #endregion
            #region Controles
            this.vista.tieneLucesAdvertencia = bo.TieneLucesAdvertencia.HasValue ? bo.TieneLucesAdvertencia : null;
            this.vista.tieneSwitchEncendido  = bo.TieneSwitchEncendido.HasValue ? bo.TieneSwitchEncendido : null;
            this.vista.tieneVelocidadMinima  = bo.TieneVelocidadMinima.HasValue ? bo.TieneVelocidadMinima : null;
            this.vista.tieneVelocidadMaxima  = bo.TieneVelocidadMaxima.HasValue ? bo.TieneVelocidadMaxima : null;
            #endregion

            #region Miscelaneos

            this.vista.tieneTapaCombustible   = bo.TieneTapaCombustible.HasValue ? bo.TieneTapaCombustible : null;
            this.vista.tieneCondicionLLantas  = bo.TieneCondicionLlantas.HasValue ? bo.TieneCondicionLlantas : null;
            this.vista.tieneCondicionPintura  = bo.TieneCondicionPintura.HasValue ? bo.TieneCondicionPintura : null;
            this.vista.tieneCondicionCalcas   = bo.TieneCondicionCalcas.HasValue ? bo.TieneCondicionCalcas : null;
            this.vista.tieneSimbolosSeguridad = bo.TieneSimbolosSeguridad.HasValue ? bo.TieneSimbolosSeguridad : null;
            this.vista.tieneEstructuraChasis  = bo.TieneEstructuraChasis.HasValue ? bo.TieneEstructuraChasis : null;
            this.vista.tieneAntenasMonitoreo  = bo.TieneAntenasMonitoreo.HasValue ? bo.TieneAntenasMonitoreo : null;

            #endregion
        }
Пример #2
0
 public void Registrar()
 {
     ListadoVerificacionTorresLuzBO bo = (ListadoVerificacionTorresLuzBO)this.InterfazUsuarioADato();
 }
Пример #3
0
        public object InterfazUsuarioADato()
        {
            ListadoVerificacionTorresLuzBO bo = new ListadoVerificacionTorresLuzBO();

            #region General

            if (this.vista.tienePresionLlantas.HasValue)
            {
                bo.TienePresionLlantas = this.vista.tienePresionLlantas.Value;
            }

            if (this.vista.tieneBandaVentilador.HasValue)
            {
                bo.TieneBandaVentilador = this.vista.tieneBandaVentilador.Value;
            }

            if (this.vista.tieneManguerasAbrazaderas.HasValue)
            {
                bo.TieneManguerasAbrazaderas = this.vista.tieneManguerasAbrazaderas.Value;
            }

            if (this.vista.tieneCartuchoFiltroAire.HasValue)
            {
                bo.TieneCartuchoFiltroAire = this.vista.tieneCartuchoFiltroAire.Value;
            }

            if (this.vista.tieneCableLevanteTorre.HasValue)
            {
                bo.TieneCableLevanteTorre = this.vista.tieneCableLevanteTorre.Value;
            }

            #endregion
            #region Niveles de fluidos

            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.tieneLiquidoRefrigerante.HasValue)
            {
                bo.TieneLiquidoRefrigerante = this.vista.tieneLiquidoRefrigerante.Value;
            }

            if (this.vista.tieneBateria.HasValue)
            {
                bo.TieneBateria = this.vista.tieneBateria.Value;
            }

            #endregion
            #region Funciones Electricas

            if (this.vista.tieneLucesTorre.HasValue)
            {
                bo.TieneLucesTorre = this.vista.tieneLucesTorre.Value;
            }

            if (this.vista.tieneLamparasTablero.HasValue)
            {
                bo.TieneLamparasTablero = this.vista.tieneLamparasTablero.Value;
            }


            #endregion
            #region Controles

            if (this.vista.tieneLucesAdvertencia.HasValue)
            {
                bo.TieneLucesAdvertencia = this.vista.tieneLucesAdvertencia.Value;
            }

            if (this.vista.tieneSwitchEncendido.HasValue)
            {
                bo.TieneSwitchEncendido = this.vista.tieneSwitchEncendido.Value;
            }

            if (this.vista.tieneVelocidadMinima.HasValue)
            {
                bo.TieneVelocidadMinima = this.vista.tieneVelocidadMinima.Value;
            }

            if (this.vista.tieneVelocidadMaxima.HasValue)
            {
                bo.TieneVelocidadMaxima = this.vista.tieneVelocidadMaxima.Value;
            }

            #endregion

            #region Miscelaneos

            if (this.vista.tieneTapaCombustible.HasValue)
            {
                bo.TieneTapaCombustible = this.vista.tieneTapaCombustible.Value;
            }

            if (this.vista.tieneCondicionLLantas.HasValue)
            {
                bo.TieneCondicionLlantas = this.vista.tieneCondicionLLantas.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.tieneSimbolosSeguridad.HasValue)
            {
                bo.TieneSimbolosSeguridad = this.vista.tieneSimbolosSeguridad.Value;
            }

            if (this.vista.tieneEstructuraChasis.HasValue)
            {
                bo.TieneEstructuraChasis = this.vista.tieneEstructuraChasis.Value;
            }

            if (this.vista.tieneAntenasMonitoreo.HasValue)
            {
                bo.TieneAntenasMonitoreo = this.vista.tieneAntenasMonitoreo.Value;
            }

            #endregion

            return(bo);
        }