Exemple #1
0
        public static bool Update(clsActive objProxy)
        {
            ValidationException x = new ValidationException();
            if (objProxy.IActive_id <= 0)
                x.AgregarError("Ingrese el código");

            if (string.IsNullOrEmpty(objProxy.SActive_name))
                x.AgregarError("Ingrese el nombre del activo");

            if (x.Cantidad > 0)
                throw x;

            DAOActive daoProxy = new DAOActive();
            return daoProxy.Update(objProxy.IActive_id,
                                    objProxy.SActive_name,
                                    objProxy.ISubFamily_id.ISubFamily_id,
                                    objProxy.IProvider_id.IProvider_id,
                                    objProxy.SActive_desc,
                                    objProxy.SBarCode,
                                    objProxy.DRegister_time,
                                    objProxy.IUtilTime,
                                    objProxy.SBrand,
                                    objProxy.SModel,
                                    objProxy.SForm,
                                    objProxy.SSerialNumber,
                                    objProxy.SColor,
                                    objProxy.SCapacity,
                                    objProxy.SMaterial,
                                    objProxy.IHeihgt,
                                    objProxy.IWidth,
                                    objProxy.IWide,
                                    objProxy.IDiameter,
                                    objProxy.SUnit,
                                    objProxy.IDivNumber,
                                    objProxy.SAsign_Type,
                                    objProxy.SAquisition_Type,
                                    objProxy.DtBuy_time,
                                    objProxy.IBuy_price,
                                    objProxy.SStatus);
        }