private void AgregarVehiculo_Load(object sender, EventArgs e) { CargarCombo(cmbTipoDoc, AD_Varios.ObtenerTiposDeDocumentos(), "nombre_tipo_documento", "id_tipo_documento", 1); //CargarCombosTipoDocumento(); CargarCombosMarcas(); CargarCombosTipoVehiculo(); }
private void cmbArticulos_SelectedIndexChanged(object sender, EventArgs e) { if (ban2 == true) { art = AD_Varios.ObtenerArticuloPorId(Convert.ToInt32(cmbArticulos.SelectedValue)); txtPrecio.Text = Convert.ToString(art.Precio_articulo); } }
private void reportViewer6_Load(object sender, EventArgs e) { DataTable tabla = new DataTable(); tabla = AD_Varios.ObtenerListadoArticulos(); ReportDataSource ds = new ReportDataSource("Articulos", tabla); reportViewer6.LocalReport.DataSources.Clear(); reportViewer6.LocalReport.DataSources.Add(ds); reportViewer6.LocalReport.Refresh(); }
private void reportViewer5_Load(object sender, EventArgs e) { DataTable tabla = new DataTable(); tabla = AD_Varios.ObtenerProfesionesXCliente(); ReportDataSource ds = new ReportDataSource("ProfesionesXCliente", tabla); reportViewer5.LocalReport.DataSources.Clear(); reportViewer5.LocalReport.DataSources.Add(ds); reportViewer5.LocalReport.Refresh(); }
private void reportViewer6_Load(object sender, EventArgs e) { DataTable tabla = new DataTable(); tabla = AD_Varios.obtenerEstadisticasLocales(); ReportDataSource ds = new ReportDataSource("DatosTiposLocal", tabla); reportViewer6.LocalReport.DataSources.Clear(); reportViewer6.LocalReport.DataSources.Add(ds); reportViewer6.LocalReport.Refresh(); }
private void CargarCombosTipoVehiculo() { try { cmbTipo.DataSource = AD_Varios.obtenerTipos(); cmbTipo.DisplayMember = "nombre_tipo"; cmbTipo.ValueMember = "id_tipo_vehiculo"; cmbTipo.SelectedIndex = -1; } catch (Exception) { MessageBox.Show("Error al cargar combo tipo de Vehiculo"); } }
private void CargarCombosMarcas() { try { cmbMarca.DataSource = AD_Varios.ObtenerMarcas(); cmbMarca.DisplayMember = "nombre_modelo_automovil"; cmbMarca.ValueMember = "id_modelo_automovil"; cmbMarca.SelectedIndex = -1; } catch (Exception) { MessageBox.Show("Error al cargar combo marcas"); } }
private void CargarCombosTipoDocumento() { try { cmbTipoDoc.DataSource = AD_Varios.ObtenerTiposDeDocumentos(); cmbTipoDoc.DisplayMember = "nombre_tipo_documento"; cmbTipoDoc.ValueMember = "id_tipo_documento"; cmbTipoDoc.SelectedIndex = -1; } catch (Exception) { MessageBox.Show("Error al cargar combo tipo de documento"); } }
private void CargarComboArticulos() { try { cmbArticulos.DataSource = AD_Varios.obtenerArticulosPorLocal(Convert.ToInt32(cmbLocales.SelectedValue)); cmbArticulos.DisplayMember = "nombre_articulo"; cmbArticulos.ValueMember = "id_articulo"; cmbArticulos.SelectedIndex = -1; ban2 = true; } catch (Exception) { MessageBox.Show("Error al cargar el combo articulos"); } }
private void CargarComboLocales() { try { cmbLocales.DataSource = AD_Varios.obtenerLocales(); cmbLocales.DisplayMember = "nombre_comercio"; cmbLocales.ValueMember = "nro_local"; cmbLocales.SelectedIndex = -1; ban = true; } catch (Exception) { MessageBox.Show("Error al cargar el combo locales"); } }