Exemplo n.º 1
0
        public bool IsValid()
        {
            bool isvalid = true;

            _errores.Clear();
            if (!IsValidDetalleCuentaCorriente())
            {
                ItemDatasetError error = new ItemDatasetError("Cuenta Corriente", "Imputaciones", "No se puede imputar varios comprobantes al mismo tiempo");
                _errores.Add(error);
                isvalid = false;
            }
            return(isvalid);
        }
Exemplo n.º 2
0
        public bool IsValid()
        {
            bool IsValid = true;

            _errores.Clear();

            if (this._cuenta == null || this._cuenta.Equals(string.Empty))
            {
                _errores.Add(new ItemDatasetError("Error en Cliente", "Número de cuenta", "Debe ingresar el número de cuenta"));
                IsValid = false;
            }

            return(IsValid);
        }