Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 protected override DataTable obtenerAdaptadorParaConsulta(int datoNoUtilizado)
 {
     GD1C2017DataSetTableAdapters.PRC_LISTA_CHOFERES_NO_ASIGTableAdapter adaptador =
         new GD1C2017DataSetTableAdapters.PRC_LISTA_CHOFERES_NO_ASIGTableAdapter();
     return(adaptador.obtenerChoferesHabilitados());
 }