Esempio n. 1
0
 private void Clear()//Método para limpiar
 {
     TxtOrden.Clear();
     TxtOrden.Enabled = true;
     TxtCc.Clear();
     TxtNombre.Clear();
     TxtDireccion.Clear();
     TxtTelefono.Clear();
     TxtObservaciones.Clear();
     TxtTotal.Clear();
     TxtFactura.Clear();
     CbxEstado.SelectedItem = (null);
     DateVencimiento.ResetText();
     DateVencimiento.Enabled    = true;
     CbxEstado.Enabled          = true;
     GridViewFactura.DataSource = null;
     TxtIva.Clear();
     TxtImpuesto.Clear();
     TxtDescuento.Clear();
     txtSubtotal.Clear();
     cbmPago.SelectedItem = null;
     CkbActivo.Visible    = false;
     BtnBuscar.Visible    = true;
     MostrarCodigo();
     TxtOrden.Focus();
 }
Esempio n. 2
0
 /// <summary>
 /// Limpia los campos dónde se van a introducir datos.
 /// </summary>
 private void LimpiarCampos()
 {
     TxtNumFactura.Clear();
     DtFecha.Value = DateTime.Now;
     TxtBaseImponible.Clear();
     TxtIva.Clear();
     TxtTotalFactura.Clear();
 }
        /// <summary>
        /// Limpia los campos dónde se van a introducir datos.
        /// </summary>
        private void LimpiarCampos()
        {
            TxtNumFactura.Clear();
            DtFecha.Value = DateTime.Now;

            CkBoxPagada.Checked = false;
            TxtBaseImponible.Clear();
            TxtIva.Clear();
            TxtTotalFactura.Clear();
        }
Esempio n. 4
0
        /// <summary>
        /// Limpia los campos dónde se van a introducir datos.
        /// </summary>
        private void LimpiarCampos()
        {
            TxtNombre.Clear();
            TxtApellidos.Clear();
            TxtNif.Clear();
            TxtDireccion.Clear();;
            TxtTelefono.Clear();
            TxtObservaciones.Clear();

            TxtMarca.Clear();
            TxtModelo.Clear();
            TxtMatricula.Clear();
            TxtLlave.Clear();
            TxtPlaza.Clear();

            TxtBaseImponible.Clear();
            TxtIva.Clear();
            TxtTotal.Clear();
        }
Esempio n. 5
0
        void limpiar()
        {
            TxtFechaCaducidad.Clear();
            TxtNombre.Clear();
            TxtCosto.Clear();
            TxtPrecioMin.Clear();
            TxtprecioVenta.Clear();
            TxtIva.Clear();
            TxtStock.Clear();
            TxtStockMin.Clear();
            TxtDescripcion.Clear();

            cbidPromocio.Visible   = false;
            lblselecpromo.Visible  = false;
            cbpromocion.DataSource = null;
            cbProveedor.DataSource = null;
            CbMedida.DataSource    = null;
            CbFamilia.DataSource   = null;
            TxtCodigoBarra.Clear();
        }
Esempio n. 6
0
 bool validartxt()
 {
     try
     {
         if (cbidPromocio.SelectedText != null)
         {
             if (TxtCodigoBarra.Text != "")
             {
                 if (TxtNombre.Text != "")
                 {
                     if (TxtDescripcion.Text != "")
                     {
                         if (TxtStock.Text != "" && TxtStock.Text != "0")
                         {
                             if (TxtStockMin.Text != "" && TxtStockMin.Text != "0")
                             {
                                 if (TxtCosto.Text != "")
                                 {
                                     if (TxtPrecioMin.Text != "")
                                     {
                                         if (TxtprecioVenta.Text != "")
                                         {
                                             if (TxtIva.Text != "")
                                             {
                                                 if (CbMedida.SelectedValue != null)
                                                 {
                                                     if (CbFamilia.SelectedValue != null)
                                                     {
                                                         if (cbpromocion.SelectedText != null)
                                                         {
                                                             if (cbProveedor.SelectedValue != null)
                                                             {
                                                                 if (CbEstatus.SelectedText != null)
                                                                 {
                                                                     if (TxtFechaCaducidad.Text != null)
                                                                     {
                                                                         return(true);
                                                                     }
                                                                 }
                                                             }
                                                         }
                                                     }
                                                 }
                                             }
                                             else
                                             {
                                                 TxtIva.Focus();
                                             }
                                         }
                                         else
                                         {
                                             TxtprecioVenta.Focus();
                                         }
                                     }
                                     else
                                     {
                                         TxtPrecioMin.Focus();
                                     }
                                 }
                                 else
                                 {
                                     TxtCosto.Focus();
                                 }
                             }
                             else
                             {
                                 TxtStockMin.Focus();
                             }
                         }
                         else
                         {
                             TxtStock.Focus();
                         }
                     }
                     else
                     {
                         TxtDescripcion.Focus();
                     }
                 }
                 else
                 {
                     TxtNombre.Focus();
                 }
             }
             else
             {
                 TxtCodigoBarra.Focus();
             }
         }
     }
     catch (Exception e)
     {
         MessageBox.Show("Error consulte con su administrador error:" + e.ToString(), "Error");
     }
     return(false);
 }