コード例 #1
0
        internal int Update(Models.ConceptoTareaPendiente oConceptoTareaPendiente)
        {
            Guid methodOwnerID = new Guid("00594953-2631-4174-820f-094f86a6e68d");

            OpenDbConn();

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

            try{
                DAL.ConceptoTareaPendiente cConceptoTareaPendiente = new DAL.ConceptoTareaPendiente(cDblib);

                int result = cConceptoTareaPendiente.Update(oConceptoTareaPendiente);

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

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

                throw ex;
            }
        }
コード例 #2
0
        internal int Insert(Models.ConceptoTareaPendiente oConceptoTareaPendiente)
        {
            Guid methodOwnerID = new Guid("7fad1727-093b-4828-bada-8354318615fc");

            OpenDbConn();

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

            try{
                DAL.ConceptoTareaPendiente cConceptoTareaPendiente = new DAL.ConceptoTareaPendiente(cDblib);

                int idConceptoTareaPendiente = cConceptoTareaPendiente.Insert(oConceptoTareaPendiente);

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

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

                throw ex;
            }
        }
コード例 #3
0
        internal Models.ConceptoTareaPendiente Select(Byte ta209_idconceptotareapendiente)
        {
            OpenDbConn();

            DAL.ConceptoTareaPendiente cConceptoTareaPendiente = new DAL.ConceptoTareaPendiente(cDblib);
            return(cConceptoTareaPendiente.Select(ta209_idconceptotareapendiente));
        }
コード例 #4
0
        internal List <Models.ConceptoTareaPendiente> Catalogo(Models.ConceptoTareaPendiente oConceptoTareaPendienteFilter)
        {
            OpenDbConn();

            DAL.ConceptoTareaPendiente cConceptoTareaPendiente = new DAL.ConceptoTareaPendiente(cDblib);
            return(cConceptoTareaPendiente.Catalogo(oConceptoTareaPendienteFilter));
        }
コード例 #5
0
        internal int Delete(Byte ta209_idconceptotareapendiente)
        {
            Guid methodOwnerID = new Guid("703a7f0c-e419-439b-90ab-6421961f1043");

            OpenDbConn();

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

            try{
                DAL.ConceptoTareaPendiente cConceptoTareaPendiente = new DAL.ConceptoTareaPendiente(cDblib);

                int result = cConceptoTareaPendiente.Delete(ta209_idconceptotareapendiente);

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

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

                throw ex;
            }
        }