コード例 #1
0
        private void imprimirFacturaCrystalReports()
        {
            int                     FacturaId             = Convert.ToInt32(oFacturasDAL.buscarUltimoIdInsertado());
            FacturasBLL             ObjetoFactura         = constuirFactura();
            List <FacturasItemsBLL> list                  = oFacturasDAL.detalleFactura(FacturaId);
            VistaPreviaFactura      frmVistapreviaFactura = new VistaPreviaFactura(ObjetoFactura, list);

            frmVistapreviaFactura.ShowDialog();
        }
コード例 #2
0
        private void btnImprimir_Click(object sender, EventArgs e)
        {
            FacturasBLL ObjetoFactura = constuirFactura();

            if (ObjetoFactura != null)
            {
                int FacturaId = Convert.ToInt32(dgvFacturas.Rows[indice].Cells[0].Value);
                List <FacturasItemsBLL> list = facturasDAL.detalleFactura(FacturaId);
                VistaPreviaFactura      frmVistapreviaFactura = new VistaPreviaFactura(ObjetoFactura, list);
                frmVistapreviaFactura.ShowDialog();
            }
        }