public void DatoToInterfazUsuario(ListadoVerificacionPlataformaTijerasBO bo) { #region General (Campos booleanos) this.vista.tieneConjuntoBarandillas = bo.TieneConjuntoBarandillas.HasValue ? bo.TieneConjuntoBarandillas : false; this.vista.tienePlataforma = bo.TienePlataforma.HasValue ? bo.TienePlataforma : false; this.vista.tieneBrazosTijera = bo.TieneBrazosTijera.HasValue ? bo.TieneBrazosTijera : false; this.vista.tienePasadoresPivote = bo.TienePasadoresPivote.HasValue ? bo.TienePasadoresPivote : false; this.vista.tieneCilindroElevador = bo.TieneCilindroElevador.HasValue ? bo.TieneCilindroElevador : false; this.vista.tieneChasis = bo.TieneChasis.HasValue ? bo.TieneChasis : false; this.vista.tieneConjuntoNeumaticosRuedas = bo.TieneConjuntoNeumaticosRuedas.HasValue ? bo.TieneConjuntoNeumaticosRuedas : false; this.vista.tieneAlmohadillas = bo.TieneAlmohadillas.HasValue ? bo.TieneAlmohadillas : false; this.vista.tieneCilindroDireccion = bo.TieneCilindroDireccion.HasValue ? bo.TieneCilindroDireccion : false; this.vista.tieneBarrasDireccion = bo.TieneBarrasDireccion.HasValue ? bo.TieneBarrasDireccion : false; this.vista.tieneControlesTierra = bo.TieneControlesTierra.HasValue ? bo.TieneControlesTierra : false; this.vista.tieneControlesPlataforma = bo.TieneControlesPlataforma.HasValue ? bo.TieneControlesPlataforma : false; this.vista.tieneFarosEmergencia = bo.TieneFarosEmergencia.HasValue ? bo.TieneFarosEmergencia : false; this.vista.tieneVelocidadTransitoRetraida = bo.TieneVelocidadTransitoRetraida.HasValue ? bo.TieneVelocidadTransitoRetraida : false; this.vista.tieneVelocidadTransitoExtendida = bo.TieneVelocidadTransitoExtendida.HasValue ? bo.TieneVelocidadTransitoExtendida : false; this.vista.tienePruebaSwitchPothole = bo.TienePruebaSwitchPothole.HasValue ? bo.TienePruebaSwitchPothole : false; #endregion #region Niveles Flujos (Campos booleanos) this.vista.tieneBateria = bo.TieneBateria.HasValue ? bo.TieneBateria : false; this.vista.tieneAceiteHidraulico = bo.TieneAceiteHidraulico.HasValue ? bo.TieneAceiteHidraulico : false; this.vista.tieneReductoresTransito = bo.TieneReductoresTransito.HasValue ? bo.TieneReductoresTransito : false; this.vista.tieneAceiteMotor = bo.TieneAceiteMotor.HasValue ? bo.TieneAceiteMotor : false; this.vista.tieneRefrigerante = bo.TieneRefrigerante.HasValue ? bo.TieneRefrigerante : false; #endregion #region Lubricación (Campos booleanos) this.vista.tienePivotesDireccion = bo.TienePivotesDireccion.HasValue ? bo.TienePivotesDireccion : false; #endregion #region Funciones Electricias (Campos numericos) #endregion #region Controles (Campos booleanos) #endregion #region Miscelaneo (Campos numericos) #endregion }
public object InterfazUsuarioADato() { ListadoVerificacionPlataformaTijerasBO bo = new ListadoVerificacionPlataformaTijerasBO(); #region General (Campos booleanos) if (this.vista.tieneConjuntoBarandillas != null) { bo.TieneConjuntoBarandillas = this.vista.tieneConjuntoBarandillas.Value; } if (this.vista.tienePlataforma != null) { bo.TienePlataforma = this.vista.tienePlataforma.Value; } if (this.vista.tieneBrazosTijera != null) { bo.TieneBrazosTijera = this.vista.tieneBrazosTijera.Value; } if (this.vista.tienePasadoresPivote != null) { bo.TienePasadoresPivote = this.vista.tienePasadoresPivote.Value; } if (this.vista.tieneCilindroElevador != null) { bo.TieneCilindroElevador = this.vista.tieneCilindroElevador.Value; } if (this.vista.tieneChasis != null) { bo.TieneChasis = this.vista.tieneChasis.Value; } if (this.vista.tieneConjuntoNeumaticosRuedas != null) { bo.TieneConjuntoNeumaticosRuedas = this.vista.tieneConjuntoNeumaticosRuedas.Value; } if (this.vista.tieneAlmohadillas != null) { bo.TieneAlmohadillas = this.vista.tieneAlmohadillas.Value; } if (this.vista.tieneCilindroDireccion != null) { bo.TieneCilindroDireccion = this.vista.tieneCilindroDireccion.Value; } if (this.vista.tieneBarrasDireccion != null) { bo.TieneBarrasDireccion = this.vista.tieneBarrasDireccion.Value; } if (this.vista.tieneControlesTierra != null) { bo.TieneControlesTierra = this.vista.tieneControlesTierra.Value; } if (this.vista.tieneControlesPlataforma != null) { bo.TieneControlesPlataforma = this.vista.tieneControlesPlataforma.Value; } if (this.vista.tieneFarosEmergencia != null) { bo.TieneFarosEmergencia = this.vista.tieneFarosEmergencia.Value; } if (this.vista.tieneVelocidadTransitoRetraida != null) { bo.TieneVelocidadTransitoRetraida = this.vista.tieneVelocidadTransitoRetraida.Value; } if (this.vista.tieneVelocidadTransitoExtendida != null) { bo.TieneVelocidadTransitoExtendida = this.vista.tieneVelocidadTransitoExtendida.Value; } if (this.vista.tienePruebaSwitchPothole != null) { bo.TienePruebaSwitchPothole = this.vista.tienePruebaSwitchPothole.Value; } #endregion #region Niveles Flujos (Campos booleanos) if (this.vista.tieneBateria != null) { bo.TieneBateria = this.vista.tieneBateria.Value; } if (this.vista.tieneAceiteHidraulico != null) { bo.TieneAceiteHidraulico = this.vista.tieneAceiteHidraulico.Value; } if (this.vista.tieneReductoresTransito != null) { bo.TieneReductoresTransito = this.vista.tieneReductoresTransito.Value; } if (this.vista.tieneAceiteMotor != null) { bo.TieneAceiteMotor = this.vista.tieneAceiteMotor.Value; } if (this.vista.tieneRefrigerante != null) { bo.TieneRefrigerante = this.vista.tieneRefrigerante.Value; } #endregion #region Lubricación (Campos booleanos) if (this.vista.tienePivotesDireccion != null) { bo.TienePivotesDireccion = this.vista.tienePivotesDireccion.Value; } #endregion #region Funciones Electricias (Campos numericos) #endregion #region Controles (Campos booleanos) #endregion #region Miscelaneo (Campos numericos) #endregion return(bo); }
public void Registrar() { ListadoVerificacionPlataformaTijerasBO bo = (ListadoVerificacionPlataformaTijerasBO)this.InterfazUsuarioADato(); }