private bool Validar()
        {
            bool interruptor = true;

            if (string.IsNullOrEmpty(nombresTextBox.Text))
            {
                CamposVacioserrorProvider.SetError(nombresTextBox, "Llenar campo.");
                interruptor = false;
            }
            if (string.IsNullOrEmpty(sueldoMaskedTextBox.Text))
            {
                CamposVacioserrorProvider.SetError(sueldoMaskedTextBox, "Llenar campo.");
                interruptor = false;
            }
            if (RetencionesdataGridView.DataSource == null)
            {
                CamposVacioserrorProvider.SetError(RetencionesdataGridView, "Llenar campo.");
                interruptor = false;
            }
            if (TiposEmailsdataGridView.DataSource == null)
            {
                CamposVacioserrorProvider.SetError(TiposEmailsdataGridView, "Llenar campo.");
                interruptor = false;
            }

            return(interruptor);
        }
 private void Limpiar()
 {
     FiltrarcomboBox.Text = null;
     CamposVacioserrorProvider.Clear();
     FiltrardataGridView.DataSource = null;
     FiltrartextBox.Clear();
 }
        private bool Validar()
        {
            bool interruptor = true;

            if (string.IsNullOrEmpty(costoMaskedTextBox.Text))
            {
                CamposVacioserrorProvider.SetError(costoMaskedTextBox, "Por favor llenar el campo vacio.");
                interruptor = false;
            }
            if (string.IsNullOrEmpty(precioMaskedTextBox.Text))
            {
                CamposVacioserrorProvider.SetError(precioMaskedTextBox, "Por favor llenar el campo vacio.");
                interruptor = false;
            }
            if (string.IsNullOrEmpty(importeMaskedTextBox.Text))
            {
                CamposVacioserrorProvider.SetError(importeMaskedTextBox, "Por favor llenar el campo vacio.");
                interruptor = false;
            }
            if (string.IsNullOrEmpty(productosComboBox.Text))
            {
                CamposVacioserrorProvider.SetError(productosComboBox, "Por favor llenar el campo vacio.");
                interruptor = false;
            }

            return(interruptor);
        }
        private void Limpiar()
        {
            TipoIdmaskedTextBox.Clear();
            descripcionTextBox.Clear();
            CamposVacioserrorProvider.Clear();

            descripcionTextBox.Focus();
        }
Example #5
0
        private void Limpiar()
        {
            retencionIdMaskedTextBox.Clear();
            descripcionTextBox.Clear();
            valorMaskedTextBox.Clear();
            CamposVacioserrorProvider.Clear();

            descripcionTextBox.Focus();
        }
        private bool Validar()
        {
            if (string.IsNullOrEmpty(descripcionTextBox.Text))
            {
                CamposVacioserrorProvider.SetError(descripcionTextBox, "El campo esta vacio.");
                return(false);
            }

            return(true);
        }
        private void Limpiar()
        {
            ProductoIdtextBox.Clear();
            descripcionTextBox.Clear();
            costoMaskedTextBox.Clear();
            precioMaskedTextBox.Clear();
            CamposVacioserrorProvider.Clear();

            descripcionTextBox.Focus();
        }
        private void Limpiar()
        {
            factura = new Entidades.Facturas();

            facturaIdTextBox.Clear();
            fechaDateTimePicker.Value = DateTime.Today;
            costoMaskedTextBox.Clear();
            precioMaskedTextBox.Clear();
            importeMaskedTextBox.Clear();
            cantidadNumericUpDown.Value = 0;
            CamposVacioserrorProvider.Clear();
            DetalledataGridView.DataSource = null;
            productosComboBox.Text         = null;
        }
Example #9
0
        private bool Validar()
        {
            bool interruptor = true;

            if (string.IsNullOrEmpty(descripcionTextBox.Text))
            {
                CamposVacioserrorProvider.SetError(descripcionTextBox, "Llenar el campo vacio.");
                interruptor = false;
            }
            if (string.IsNullOrEmpty(valorMaskedTextBox.Text))
            {
                CamposVacioserrorProvider.SetError(valorMaskedTextBox, "Llenar el campo vacio.");
                interruptor = false;
            }

            return(interruptor);
        }
Example #10
0
        public bool Validar()
        {
            bool interruptor = true;

            if (string.IsNullOrEmpty(FiltrartextBox.Text))
            {
                CamposVacioserrorProvider.SetError(FiltrartextBox, "por favor llenar el campo.");
                interruptor = false;
            }
            if (string.IsNullOrEmpty(FiltrarcomboBox.Text))
            {
                CamposVacioserrorProvider.SetError(FiltrarcomboBox, "por favor seleccionar un campo.");
                interruptor = false;
            }

            return(interruptor);
        }
        private void Limpiar()
        {
            Empleado = new Empleados();
            Detalle  = new EmpleadosEmails();

            empleadoIdMaskedTextBox.Clear();
            nombresTextBox.Clear();
            fechaNacimientoDateTimePicker.Value = DateTime.Today;
            sueldoMaskedTextBox.Clear();
            CamposVacioserrorProvider.Clear();
            RetencionesdataGridView.DataSource = null;
            retencionesComboBox.Text           = null;

            TipoIdtextBox.Clear();
            TipotextBox.Clear();
            EmailtextBox.Clear();
            TiposEmailsdataGridView.DataSource = null;

            nombresTextBox.Focus();
        }
Example #12
0
 private void Limpiar()
 {
     FiltrarcomboBox.Text = null;
     CamposVacioserrorProvider.Clear();
     FiltrartextBox.Clear();
 }