Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
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();
 }
Esempio n. 5
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();
 }
Esempio n. 6
0
 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;
 }
Esempio n. 7
0
 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();
 }
Esempio n. 8
0
 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();
 }
Esempio n. 9
0
 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();
 }
Esempio n. 10
0
 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();
 }
Esempio n. 11
0
        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();
        }
Esempio n. 12
0
        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();
        }
Esempio n. 13
0
        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();
        }
Esempio n. 14
0
        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();
        }
Esempio n. 15
0
        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();
        }
Esempio n. 16
0
        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();
        }
Esempio n. 17
0
        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);
            }
        }
Esempio n. 18
0
        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);
            }
        }
Esempio n. 19
0
        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);
            }
        }
Esempio n. 20
0
        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);
            }
        }
Esempio n. 21
0
        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);
            }
        }
Esempio n. 22
0
        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);
            }
        }