Exemple #1
0
 private void btnPagar_Click(object sender, RoutedEventArgs e)
 {
     if (tipoFactura == "Contado")
     {
         if (txtObservaciones.Text != "")
         {
             wnwFacturaCliente nueva = new wnwFacturaCliente(pidFactura: ProcesarFactura(txtObservaciones.Text, DateTime.Now, DateTime.Now, txtNumero.Text, montoNetoTotal, IdCliente), pTipo: "Venta");
             nueva.ShowDialog();
             this.Close();
         }
     }
     else if (tipoFactura == "Crédito")
     {
         if (txtObservaciones.Text != "")
         {
             wnwFacturaCliente nueva = new wnwFacturaCliente(pidFactura: ProcesarFactura(txtObservaciones.Text, proximoPago, proximoLimite, txtNumero.Text, MontoAbono, IdCliente), pTipo: "Venta");
             nueva.ShowDialog();
             this.Close();
         }
     }
     else if (tipoFactura == "Proforma")
     {
         if (txtObservaciones.Text != "")
         {
             wnwFacturaCliente nueva = new wnwFacturaCliente(pidFactura: ProcesarFactura(txtObservaciones.Text, DateTime.Now, DateTime.Now, txtNumero.Text, 0.ToString(), IdCliente), pTipo: "Venta");
             nueva.ShowDialog();
             this.Close();
         }
     }
 }
Exemple #2
0
 private void btnFiltrar_Click(object sender, RoutedEventArgs e)
 {
     if (cmbOpciones.SelectedIndex == 0)
     {
         wnwBuscadorCliente repVentasCliente = new wnwBuscadorCliente("ReporteVentas");
         repVentasCliente.Show();
     }
     if (cmbOpciones.SelectedIndex == 1)
     {
         wnwFacturaCliente venFacturaCliente = new wnwFacturaCliente(pidFactura: 0, pTipo: "Reporte");
         venFacturaCliente.Show();
     }
     this.Close();
 }