private void FOrdenProduccion_Load(object sender, EventArgs e) { con = new MySqlConnection("server=localhost;user id=root;password=root;database=si_inventarios"); ds = new dataSet_inventarios(); orden_prod = new Orden_ProduccionTableAdapter(); reporte = new crOrdenProduccion(); }
public FMovimientos() { InitializeComponent(); con = new MySqlConnection("server=localhost;user id=root;password=root;database=si_inventarios"); ds = new dataSet_inventarios(); mov = new MovimientosTableAdapter(); cb_tipo.SelectedIndex = 0; }
public Facturas_Clientes() { InitializeComponent(); con = new MySqlConnection("server=localhost;user id=root;password=root;database=si_inventarios; default command timeout=10000000"); ds = new dataSet_inventarios(); facturas = new Facturas_ClienteTableAdapter(); reporte_fact = new cr_Facturas_Clientes(); }
public FCorte() { InitializeComponent(); con = new MySqlConnection("server=localhost;user id=root;password=root;database=si_inventarios"); ds = new dataSet_inventarios(); corte = new CorteTableAdapter(); reporte = new crGrafico(); }
public FProveedores_Act() { InitializeComponent(); con = new MySqlConnection("server=localhost;user id=root;password=root;database=si_inventarios"); ds = new dataSet_inventarios(); provee_act = new Proveedores_ActivosTableAdapter(); reporte = new cr_Proveedores_Act(); }
public FOCproveedor() { InitializeComponent(); con = new MySqlConnection("server=localhost;user id=root;password=root;database=si_inventarios"); ds = new dataSet_inventarios(); ocpp = new OC_por_proveedorTableAdapter(); reporte = new crOCproveedor(); }
public FOrdenes_Compra() { InitializeComponent(); con = new MySqlConnection("server=localhost;user id=root;password=root;database=si_inventarios"); ds = new dataSet_inventarios(); ordenes_compra = new Orden_CompraTableAdapter(); reporte = new crOrdenesCompra(); cargarReporte(); }
public FOrden_Produccion(int id_orden_prod) { InitializeComponent(); id_orden = id_orden_prod; con = new MySqlConnection("server=localhost;user id=root;password=root;database=si_inventarios"); ds = new dataSet_inventarios(); orden_prod = new Orden_ProduccionTableAdapter(); reporte = new crOrdenProduccion(); cargarReporte(); }
public FOrdenes_Compra(int id) { InitializeComponent(); con = new MySqlConnection("server=localhost;user id=root;password=root;database=si_inventarios"); ds = new dataSet_inventarios(); ordenes_compra = new Orden_CompraTableAdapter(); reporte = new crOrdenesCompra(); id_oc = id; cargarReporte(); }
public Facturas(int id_fa) { InitializeComponent(); id_fact = id_fa; con = new MySqlConnection("server=localhost;user id=root;password=root;database=si_inventarios"); ds = new dataSet_inventarios(); facturas = new FacturasTableAdapter(); reporte = new crFacturas(); cargarReporte(); }
public void cargarReporte() { MySqlDataAdapter adapter; fechaIni = dtp.Value.Year.ToString() + "/" + dtp.Value.Month.ToString() + "/" + dtp.Value.Day.ToString(); fechaFin = dtp2.Value.Year.ToString() + "/" + dtp2.Value.Month.ToString() + "/" + dtp2.Value.Day.ToString(); try { crearConsulta(); ds = new dataSet_inventarios(); adapter = new MySqlDataAdapter(query, con); adapter.Fill(ds, "PromedioCompra"); //aki va el switch switch (cb_tipo.SelectedIndex) { case 0: //Texto reportetxt = new crPromedioT(); reportetxt.SetDataSource(ds); crv.ReportSource = reportetxt; break; case 1: //Grafica reporteg = new crPromedioG(); reporteg.SetDataSource(ds); crv.ReportSource = reporteg; break; case 2: //Ambos reporte = new crPromedio(); reporte.SetDataSource(ds); crv.ReportSource = reporte; break; } } catch (FormatException fex) { MessageBox.Show(fex.Message); } }
public void cargarReporte() { MySqlDataAdapter adapter; fechaIni = dtp.Value.Year.ToString() + "/" + dtp.Value.Month.ToString() + "/" + dtp.Value.Day.ToString(); try { crearConsulta(); ds = new dataSet_inventarios(); adapter = new MySqlDataAdapter(query, con); adapter.Fill(ds, "VentasEmp"); reporte.SetDataSource(ds); crv.ReportSource = reporte; } catch (FormatException fex) { MessageBox.Show(fex.Message); } }
public void cargarReporte() { MySqlDataAdapter adapter; fechaIni = dtp.Value.Year.ToString() + "/" + dtp.Value.Month.ToString() + "/" + dtp.Value.Day.ToString(); fechaFin = dtp2.Value.Year.ToString() + "/" + dtp2.Value.Month.ToString() + "/" + dtp2.Value.Day.ToString(); try { crearConsulta(); ds = new dataSet_inventarios(); adapter = new MySqlDataAdapter(query, con); adapter.Fill(ds, "PromedioCompra"); //aki va el switch switch (cb_tipo.SelectedIndex) { case 0://Texto reportetxt = new crPromedioT(); reportetxt.SetDataSource(ds); crv.ReportSource = reportetxt; break; case 1://Grafica reporteg = new crPromedioG(); reporteg.SetDataSource(ds); crv.ReportSource = reporteg; break; case 2://Ambos reporte = new crPromedio(); reporte.SetDataSource(ds); crv.ReportSource = reporte; break; } } catch(FormatException fex) { MessageBox.Show(fex.Message); } }
public void cargarReporte() { MySqlDataAdapter adapter; fechaIni = dtp.Value.Year.ToString() + "/" + dtp.Value.Month.ToString() + "/" + dtp.Value.Day.ToString(); fechaFin = dtp2.Value.Year.ToString() + "/" + dtp2.Value.Month.ToString() + "/" + dtp2.Value.Day.ToString(); try { crearConsulta(); ds = new dataSet_inventarios(); adapter = new MySqlDataAdapter(query, con); adapter.Fill(ds, "Mas_Menos_Vendidos"); reporte.SetDataSource(ds); crv.ReportSource = reporte; } catch(FormatException fex) { MessageBox.Show(fex.Message); } }
public void cargarReporte() { MySqlDataAdapter adapter; try { crearConsulta(); ds = new dataSet_inventarios(); adapter = new MySqlDataAdapter(query, con); adapter.Fill(ds.Porcentaje_MP); switch (cb_tipo.SelectedIndex) { case 0: //Texto reporteT = new crPorcentajeMpT(); reporteT.SetDataSource(ds); crv.ReportSource = reporteT; break; case 1: //Grafica reporteG = new crPorcentajeMpG(); reporteG.SetDataSource(ds); crv.ReportSource = reporteG; crv.Zoom(75); break; case 2: //Ambos reporteA = new crPorcentajeMpA(); reporteA.SetDataSource(ds); crv.ReportSource = reporteA; break; } } catch (FormatException fex) { MessageBox.Show(fex.Message); } }
public void cargarReporte() { MySqlDataAdapter adapter; try { crearConsulta(); ds = new dataSet_inventarios(); adapter = new MySqlDataAdapter(query, con); adapter.Fill(ds.Gastos_Prom_Ins); switch (cb_tipo.SelectedIndex) { case 0://Texto reporteT = new crGastosPromT(); reporteT.SetDataSource(ds); crv.ReportSource = reporteT; break; case 1://Grafica reporteG = new crGastosPromG(); reporteG.SetDataSource(ds); crv.ReportSource = reporteG; crv.Zoom(75); break; case 2://Ambos reporteA = new crGastosPromA(); reporteA.SetDataSource(ds); crv.ReportSource = reporteA; break; } } catch (FormatException fex) { MessageBox.Show(fex.Message); } }