Esempio n. 1
0
        private void buttonItem2_Click(object sender, EventArgs e)
        {
            CRVarolizacion     rpt   = new CRVarolizacion();
            frmRptKardex       frm   = new frmRptKardex();
            clsReportProductos cls   = new clsReportProductos();
            DataTable          nuevo = new DataTable();

            //nuevo = cls.ReporteValorizacion(frmLogin.iCodAlmacen);
            rpt.SetDataSource(cls.ReporteValorizacion(frmLogin.iCodAlmacen));
            frm.crvKardex.ReportSource = rpt;
            frm.Show();
        }
Esempio n. 2
0
        private void generareporte()
        {
            try
            {
                clsReportProductos re = new clsReportProductos();

                data = re.Inventario(alma, costo, art, fam, lin, gru, tip, todo, art1, art2, cero, orden, activos);
                CRInventario2 myDataReport = new CRInventario2();
                myDataReport.SetDataSource(data.Tables[0].DefaultView);
                crystalReportViewer1.ReportSource = myDataReport;
            }
            catch (Exception ex)
            {
                DevComponents.DotNetBar.MessageBoxEx.Show("Se encontró el siguiente problema: " + ex.Message, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
        }