Пример #1
0
        private void cbTipoPago_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            int value = cbTipoPago.SelectedIndex;
            switch (value)
            {
                case 0:
                    //MessageBox.Show("efectivo");
                    break;
                case 1:
                    //MessageBox.Show("cuenta");
                    break;
                case 2:
                    //MessageBox.Show("debito");
                    break;
                case 3:
                    //MessageBox.Show("cheque");

                    pc = new PagoconCheque();
                    pc.Owner = Window.GetWindow(this);
                    pc.setDatauser(rutcliente, nombreCliente);
                    //getCheque = pc.getformCheque().;
                    //MessageBox.Show(pc.getformCheque().rut);
                    pc.Show();
                    // getCheque =new Cheque(pc.getformCheque().rut,pc.getformCheque().nombre,pc.getformCheque().nombreBanco,pc.getformCheque().fechaemision,pc.getformCheque().fechaexpiracion,pc.getformCheque().monto);

                    getCheque.rut = pc.getrutCheque();
                    //MessageBox.Show(getCheque.rut);
                    break;
            }
        }
Пример #2
0
        private void rbtnSi_Checked(object sender, RoutedEventArgs e)
        {
            //MessageBox.Show("Rut usuario desde radioSI:"+rutcliente);
            //Verificar si radiobutton esta seleccionado para fiar 
            if (string.IsNullOrEmpty(rutcliente))
            {
                DescuentoCliente dc = new DescuentoCliente("ds");
                dc.Owner = Window.GetWindow(this);
                dc.btnCancelar.Visibility = Visibility.Visible;
                dc.Title = "Elegir Cliente";
                dc.ShowDialog();

                //txtdescuento.Text = dc.getValor();
                getCheque.rut = dc.getrut();
                rutcliente = dc.getrut();
                nombreCliente = dc.getnombreCliente();
                pc = new PagoconCheque();
                pc.Owner = Window.GetWindow(this);
                pc.setDatauser(rutcliente, nombreCliente);

            }
        }
Пример #3
0
        public void limpiarRegistroVentas()
        {
            //Limpiar registros de venta de interfaz
            venta.Clear();
            datagridVentas.ItemsSource = null;
            txtsubtotal.Text = "0";
            txtdescuento.Text = "0";
            txttotal.Text = "0";
            cbTipoPago.SelectedIndex = 0;
            txtCantidadProductos.Content = "0";
            getCheque.rut = "";
            pc = new PagoconCheque();
            rutcliente = "";
            nombreCliente = "";
            txtEntregado.Text = "0";
            txtVuelto.Text = "0";
            //txtTotaldevolucion.Text = "0";
            txtEntregado.Text = "0";
            txtDiferencia.Text = "0";



        }