Пример #1
0
        /// <summary>
        /// Actualiza el articulo
        /// </summary>
        /// <returns></returns>
        public bool Actualizar()
        {
            _Datos = new Datos.ArticuloD();
            bool _result = false;

            try {
                _result = _Datos.ModificarArticulo(
                    this.Id,
                    this.Nombre,
                    this.IVA,
                    this.PrecioCompra,
                    this.Porcentaje,
                    this.CodigoBarra,
                    this.PrecioSugerido,
                    this.IdCuenta,
                    this.LlevaStock,
                    this.Cantidad,
                    this.BloqueaPrecio,
                    this.IdCategoria
                    );
                Succed = true;
            } catch (Exception EXC)
            {
                Entidades.Catcher.Catcher.Agregar_Error(this.ToString(), EXC.StackTrace);
                Succed = false;
            }
            Succed = _result;

            return(_result);
        }
Пример #2
0
        /// <summary>
        /// Actualiza el articulo
        /// </summary>
        /// <returns></returns>
        public bool Actualizar() 
        {
            _Datos = new Datos.ArticuloD();
            bool _result=false;
            try {
                _result= _Datos.ModificarArticulo(
                    this.Id, 
                    this.Nombre, 
                    this.IVA, 
                    this.PrecioCompra, 
                    this.Porcentaje, 
                    this.CodigoBarra, 
                    this.PrecioSugerido, 
                    this.IdCuenta, 
                    this.LlevaStock, 
                    this.Cantidad,
                    this.BloqueaPrecio,
                    this.IdCategoria
                );
                Succed = true;
            } catch(Exception EXC)
            {
                Entidades.Catcher.Catcher.Agregar_Error(this.ToString(), EXC.StackTrace);
                    Succed = false;
                }
            Succed = _result;

            return _result; 
        }