public static ReporteDetalleFactura Instance()
 {
     if (((frmInstance == null) || (frmInstance.IsDisposed == true)))
     {
         frmInstance = new ReporteDetalleFactura();
     }
     else
     {
         frmInstance.BringToFront();
     }
     return(frmInstance);
 }
Exemplo n.º 2
0
        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;
            }
        }
Exemplo n.º 3
0
        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;
            }
        }