Ejemplo n.º 1
0
        private void btnCancelar_Click(object sender, EventArgs e)
        {
            RegistroFactura regFacturaForm = new RegistroFactura();

            this.Hide();
            regFacturaForm.Show();
        }
Ejemplo n.º 2
0
        private void btnConfirmarRendicion_Click(object sender, EventArgs e)
        {
            List <SqlParameter> parameterList = new List <SqlParameter>();

            parameterList.Add(new SqlParameter("@idCliente", idCliente));
            parameterList.Add(new SqlParameter("@fechaInicio", fechaInicio));
            parameterList.Add(new SqlParameter("@fechaFin", fechaFin));
            parameterList.Add(new SqlParameter("@importeTotal", totalFactura));
            parameterList.Add(new SqlParameter("@fecha", DateTime.Now));

            try
            {
                SQLHelper.ExecuteNonQuery("PR_altaFactura", CommandType.StoredProcedure, parameterList);
                MessageBox.Show("La factura se registró correctamente");

                RegistroFactura regFacturaForm = new RegistroFactura();
                this.Hide();
                regFacturaForm.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
Ejemplo n.º 3
0
 private void facturacionToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Facturacion.RegistroFactura frmFacturacion = new Facturacion.RegistroFactura();
     frmFacturacion.Show();
 }