Example #1
0
        public void MET_NuevaFactura()
        {
            TxtBuscar.Clear();
            TxtCantidad.Text = "1";
            TxtCliente.Clear();
            TxtCedulaCliente.Clear();
            TxtITBIS.Clear();
            TxtSUBTOTAL.Clear();
            TxtIDFactura.Clear();
            TxtTotal.Clear();
            TxtPago.Clear();
            TxtDebuelta.Clear();
            TxtSaldo.Clear();
            //DtvBusqueda.Refresh();
            DtvFactura.DataSource = "";
            DtvFactura.Columns.Clear();
            BtnAgregarProducto.Visible = false;
            BtnAgregarCliente.Visible  = true;
            BtnCambiarCliente.Visible  = false;
            RdbAlContado.Checked       = true;
            MET_MostrarClientes();
            LblErrorPago.Visible = false;
            P_Venta PV = new P_Venta();

            PV.Update();
        }
        void LimpiarFormulario()
        {
            TxtCantCuotas.Text          = string.Empty;
            TxtMonto.Text               = string.Empty;
            TxtCedulaCliente.Text       = string.Empty;
            TxtMonto.Text               = string.Empty;
            TxtMontoTotal.Text          = string.Empty;
            TxtmontoCuotas.Text         = string.Empty;
            IDCliente                   = 0;
            LblnombreCliente.Text       = "-";
            CmbFrecuencia.SelectedIndex = 0;
            CmbTaza.SelectedIndex       = 0;
            CmbTipo.SelectedIndex       = 0;

            TxtCedulaCliente.Focus();
        }
Example #3
0
 private void BtnCambiarCliente_Click(object sender, EventArgs e)
 {
     if (V_ConSaldo == false)
     {
         MET_MostrarClientes();
         BtnConSaldo.Visible  = true;
         BtnConDinero.Visible = false;
     }
     else if (V_ConSaldo == true)
     {
         MET_MostrarClientesConCredito();
         BtnConDinero.Visible = true;
         BtnConSaldo.Visible  = false;
     }
     TxtCedulaCliente.Clear();
     TxtCliente.Clear();
     BtnAgregarProducto.Visible = false;
     BtnCambiarCliente.Visible  = false;
     BtnAgregarCliente.Visible  = true;
     V_EditarCliente            = true;
     //MET_MostrarClientes();
 }