Example #1
0
        //  private ClaseExtraList() { }

        /// <summary>
        /// Retrieve the complete list from db
        /// </summary>
        /// <returns>ClaseExtraList</returns>
        public static ClaseExtraList GetList()
        {
            CriteriaEx criteria = ClaseExtra.GetCriteria(ClaseExtra.OpenSession());

            criteria.Query = ClaseExtras.SELECT();

            //No criteria. Retrieve all de List
            ClaseExtraList list = DataPortal.Fetch <ClaseExtraList>(criteria);

            CloseSession(criteria.SessionCode);

            return(list);
        }
Example #2
0
        /// <summary>
        /// Retrieve the complete list from db
        /// </summary>
        /// <returns>ClaseExtraList</returns>
        public static ClaseExtraList GetDisponiblesList(long oid_promocion, long oid_horario)
        {
            CriteriaEx criteria = ClaseExtra.GetCriteria(ClaseExtra.OpenSession());

            criteria.Query = ClaseExtras.SELECT_CLASES_EXTRAS_DISPONIBLES(oid_promocion, oid_horario);

            //No criteria. Retrieve all de List
            ClaseExtraList list = DataPortal.Fetch <ClaseExtraList>(criteria);

            CloseSession(criteria.SessionCode);

            return(list);
        }
Example #3
0
        /// <summary>
        /// Retrieve the complete list from db
        /// </summary>
        /// <returns>ClasePracticaList</returns>
        public static ClaseExtraList GetClasesPlanList(long oid_plan)
        {
            CriteriaEx criteria = ClaseExtra.GetCriteria(ClaseExtra.OpenSession());

            //No criteria. Retrieve all de List
            if (nHManager.Instance.UseDirectSQL)
            {
                criteria.Query = ClaseExtras.SELECT_CLASES_EXTRAS_PLAN(oid_plan);
            }
            ClaseExtraList list = DataPortal.Fetch <ClaseExtraList>(criteria);

            CloseSession(criteria.SessionCode);

            return(list);
        }