private void ImprimirFactura(string tipoFactura) { switch (tipoFactura) { case "1": ReporteDetalleFactura reporteDetalleFactura = null; reporteDetalleFactura = ReporteDetalleFactura.Instance(); reporteDetalleFactura.Visible = false; reporteDetalleFactura.Show(); break; case "2": ReporteDetalleFacturaFiscal reporteDetalleFacturaFiscal = null; reporteDetalleFacturaFiscal = ReporteDetalleFacturaFiscal.Instance(); reporteDetalleFacturaFiscal.Visible = false; reporteDetalleFacturaFiscal.Show(); break; default: break; } }
private void ImprimirUltimaFactura(int tipoFactura) { switch (tipoFactura) { case 1: ReporteDetalleFactura reporteDetalleFactura = null; reporteDetalleFactura = ReporteDetalleFactura.Instance(); reporteDetalleFactura.Visible = false; reporteDetalleFactura.Show(); break; case 2: ReporteDetalleFacturaFiscal reporteDetalleFacturaFiscal = null; reporteDetalleFacturaFiscal = ReporteDetalleFacturaFiscal.Instance(); reporteDetalleFacturaFiscal.Visible = false; reporteDetalleFacturaFiscal.Show(); break; default: break; } }