//public  List<Models.ComunidadProgress> Catalogo()
        public void Catalogo()
        {
            OpenDbConn();

            DAL.ComunidadProgress cComunidadProgress = new DAL.ComunidadProgress(cDblib);
            //return cComunidadProgress.Catalogo();
        }
Example #2
0
        public Models.ComunidadProgress catalogo()
        {
            OpenDbConn();

            DAL.ComunidadProgress cComunidad = new DAL.ComunidadProgress(cDblib);

            return(cComunidad.Catalogo());
        }
Example #3
0
        public int Update(int contenedor, List <short> lista)
        {
            Guid methodOwnerID = new Guid("5956b2ad-8ce0-4688-bf8e-8d7427f1de7a");

            OpenDbConn();

            if (cDblib.Transaction.ownerID.Equals(new Guid()))
            {
                cDblib.beginTransaction(methodOwnerID);
            }

            try
            {
                DAL.ComunidadProgress cComunidad = new DAL.ComunidadProgress(cDblib);

                int result = cComunidad.Update(contenedor, string.Join(",", lista));

                //Finalizar transacción
                if (cDblib.Transaction.ownerID.Equals(methodOwnerID))
                {
                    cDblib.commitTransaction(methodOwnerID);
                }

                return(result);
            }
            catch (Exception ex)
            {
                //rollback
                if (cDblib.Transaction.ownerID.Equals(new Guid()))
                {
                    cDblib.rollbackTransaction(methodOwnerID);
                }

                throw new IBException(103, "Ocurrió un error al actualizar pantalla mantenimiento de comunidad Progress.", ex);
            }
        }