private void CargarCombos() { tb_pais_Bus neg = new tb_pais_Bus(); cmbNacionalidad.DataSource = neg.Get_List_pais(); cmbNacionalidad.SelectedValue = "1"; }
void CargarCombo() { try { LstInfoPais = busPais.Get_List_pais(); cmbPais.Properties.DataSource = LstInfoPais; } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void llenarGrid() { try { list = BusPais.Get_List_pais(); gridControlPais.DataSource = list; } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void CargarComboPais() { try { // Pais lstInfoPais = busPais.Get_List_pais(); cmbPais.Properties.DataSource = lstInfoPais; } catch (Exception ex) { string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name; MessageBox.Show(NameMetodo + " - " + ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString()); } }
void CargarCombo() { try { lstPais = busPais.Get_List_pais(); lista_region = bus_region.Get_List_Region(); cmbPais.Properties.DataSource = lstPais; cmb_region.Properties.DataSource = lista_region; } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void cargar_combos() { try { string mensaje = ""; lst_moneda = bus_moneda.Get_List_Moneda(); cmb_moneda_destino.Properties.DataSource = lst_moneda; cmb_moneda_origen.Properties.DataSource = lst_moneda; lst_pais = bus_pais.Get_List_pais(); cmb_pais_embarque.Properties.DataSource = lst_pais; cmb_pais_origen.Properties.DataSource = lst_pais; lst_producto = bus_producto.Get_list_Producto(param.IdEmpresa); cmb_producto_det.DataSource = lst_producto; lst_proveedor = bus_proveedor.Get_List_proveedor(param.IdEmpresa); cmb_proveedor.Properties.DataSource = lst_proveedor; lst_unidad_medida = bus_unidad_medida.Get_list_UnidadMedida(); cmb_unidad_medida_det.DataSource = lst_unidad_medida; lst_plancta = bus_plancta.Get_List_Plancta_x_ctas_Movimiento(param.IdEmpresa, ref mensaje); cmb_plancta.Properties.DataSource = lst_plancta; List <imp_catalogo_Info> lst_catalogo = new List <imp_catalogo_Info>(); imp_catalogo_Bus bus_catalogo = new imp_catalogo_Bus(); lst_catalogo = bus_catalogo.get_list(Convert.ToInt32(Cl_Enumeradores.eImp_catalogo.VIAS)); cmb_catalogo_vias.Properties.DataSource = lst_catalogo; lst_catalogo = bus_catalogo.get_list(Convert.ToInt32(Cl_Enumeradores.eImp_catalogo.FORMA_PAGO)); cmb_catalogo_forma_pago.Properties.DataSource = lst_catalogo; lst_ciudad = bus_ciudad.Get_List_Ciudad(); cmb_ciudad_destino.Properties.DataSource = lst_ciudad; de_Fecha.DateTime = DateTime.Now.Date; gridControl_det.DataSource = blst_det; } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void CargarCombo() { try { tb_pais_Bus oBus = new tb_pais_Bus(); cmbPais.Properties.DataSource = oBus.Get_List_pais(); cmbPais.Properties.DisplayMember = "Nombre"; cmbPais.Properties.ValueMember = "IdPais"; } catch (Exception ex) { string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name; MessageBox.Show(NameMetodo + " - " + ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString()); } }
public void CargarCombos() { try { // Con quien vive el alumno Aca_Catalogo_Bus neg = new Aca_Catalogo_Bus(); cmbConQuienVive.Properties.DataSource = neg.Get_List_CatalogoXtipo("GRP_FAM_CONV"); // Religion cmbReligion.Properties.DataSource = neg.Get_List_CatalogoXtipo("RELIG"); //Idioma Nativo cmbIdiomaNativo.Properties.DataSource = neg.Get_List_CatalogoXtipo("IDIOMA"); //Tipo Sangre cmbTipoSangre.Properties.DataSource = neg.Get_List_CatalogoXtipo("GRUP_SAN"); //Sede Aca_Sede_Bus negSede = new Aca_Sede_Bus(); cmbSede.Properties.DataSource = negSede.Get_List_Sede(param.IdInstitucion); Aca_Anio_Lectivo_Bus negPeriodoLec = new Aca_Anio_Lectivo_Bus(); cmbAnioLectivo.Properties.DataSource = negPeriodoLec.Get_List_Anio_Lectivo(param.IdInstitucion); Aca_Jornada_Bus negJornada = new Aca_Jornada_Bus(); cmbJornada.Properties.DataSource = negJornada.Get_Lista_Jornada(param.IdInstitucion); Aca_Curso_Bus negCurwso = new Aca_Curso_Bus(); cmbCurso.Properties.DataSource = negCurwso.Get_Lista_Curso(param.IdInstitucion); Aca_Seccion_Bus negSeccion = new Aca_Seccion_Bus(); cmbSeccion.Properties.DataSource = negSeccion.Get_Lista_Seccion(param.IdInstitucion); tb_pais_Bus negPais = new tb_pais_Bus(); cmbNacionalidad.DataSource = negPais.Get_List_pais(); cmbNacionalidad.SelectedValue = "1"; } catch (Exception ex) { string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name; MessageBox.Show(NameMetodo + " " + param.Get_Mensaje_sys(enum_Mensajes_sys.Error_comunicarse_con_sistemas) + ex.Message + " ", param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString()); } }
public void CargarCombos() { try { tb_pais_Bus negPais = new tb_pais_Bus(); cmbNacionalidad.DataSource = negPais.Get_List_pais(); cmbNacionalidad.SelectedValue = "1"; ucGe_PaisProvinciaCiudad.CargarComboPais(); ucGe_PaisProvinciaCiudad.cmbCiudad.EditValue = "1"; ucGe_PaisProvinciaCiudad.cmbPais.EditValue = "1"; ucGe_PaisProvinciaCiudad.cmbProvincia.EditValue = "1"; ucGe_NaturalezaPersona1.cargar_Combo(); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show("Error " + ex.Message.ToString(), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Information); } }