protected Boolean construirComboChofer(int idAuto) { ComboBox frmAutomovilComboChofer = (ComboBox)this.Controls["grupoDatosAutomovil"].Controls["comboChofer"]; if (!MetodosGlobales.armarComboSeleccionSegunRol(obtenerAdaptadorParaConsulta(idAuto), frmAutomovilComboChofer)) { dispararMensajeYCancelarAccion(); this.Close(); return(false); } return(true); }
public static Boolean construirComboChofer(Form formulario, String tipo, String titulo) { GD1C2017DataSetTableAdapters.PRC_BUSCAR_CHOFER_HABILITADOTableAdapter adaptador = new GD1C2017DataSetTableAdapters.PRC_BUSCAR_CHOFER_HABILITADOTableAdapter(); DataTable tblChofer = adaptador.obtenerListadoChoferesHabilitados(); ComboBox frmRendirViajeComboChofer = (ComboBox)formulario.Controls["comboChofer"]; if (!MetodosGlobales.armarComboSeleccionSegunRol(tblChofer, frmRendirViajeComboChofer)) { dispararMensajeYCancelarAccion(tipo, titulo); formulario.Close(); return(false); } return(true); }
private Boolean construirComboCliente() { GD1C2017DataSetTableAdapters.PRC_BUSCAR_CLIENTE_HABILITADOTableAdapter adaptador = new GD1C2017DataSetTableAdapters.PRC_BUSCAR_CLIENTE_HABILITADOTableAdapter(); DataTable tblCliente = adaptador.obtenerListadoClientesHabilitados(); ComboBox frmRendirViajeComboCliente = (ComboBox)this.Controls["comboCliente"]; if (!MetodosGlobales.armarComboSeleccionSegunRol(tblCliente, frmRendirViajeComboCliente)) { MetodosGlobales.dispararMensajeYCancelarAccion("Clientes", "Registrar Viaje"); this.Close(); return(false); } return(true); }
protected Boolean construirComboChofer() { GD1C2017DataSetTableAdapters.PRC_LISTA_CHOFERES_NO_ASIGTableAdapter adaptador = new GD1C2017DataSetTableAdapters.PRC_LISTA_CHOFERES_NO_ASIGTableAdapter(); DataTable tblChofer = adaptador.obtenerChoferesHabilitados(); ComboBox frmAutomovilComboChofer = (ComboBox)this.Controls["grupoDatosAutomovil"].Controls["comboChofer"]; if (!MetodosGlobales.armarComboSeleccionSegunRol(tblChofer, frmAutomovilComboChofer)) { dispararMensajeYCancelarAccion(); this.Close(); return(false); } return(true); }