Exemple #1
0
 private void btnVerFactura_Click(object sender, EventArgs e)
 {
     if (tipoComprobante == 1)
     {
         FacturaRPT fact = new FacturaRPT(int.Parse(txtNumFactura.Text));
         fact.Show();
     }
     else if (tipoComprobante == 2)
     {
         CCF_RPT ccf = new CCF_RPT(int.Parse(txtNumFactura.Text));
         ccf.Show();
     }
 }
        private void btnGenerarFactura_Click(object sender, EventArgs e)
        {
            Factura factura = generarFactura();

            if (factura != null && factura.idComprobante_fk == 1)
            {
                FacturaRPT impFactura = new FacturaRPT(factura.numeroFactura_pk);
                impFactura.Show();
            }
            else if (factura != null && factura.idComprobante_fk == 2)
            {
                CCF_RPT ccf = new CCF_RPT(factura.numeroFactura_pk);
                ccf.Show();
            }
            deshabilitar();
            total = 0;
        }