예제 #1
0
        public static CabezaList GetList(bool childs)
        {
            CriteriaEx criteria = Cabeza.GetCriteria(Cabeza.OpenSession());

            criteria.Childs = childs;

            criteria.Query = CabezaList.SELECT();

            CabezaList list = DataPortal.Fetch <CabezaList>(criteria);

            CloseSession(criteria.SessionCode);
            return(list);
        }
예제 #2
0
        public static CabezaList GetChildList(ExpedientInfo parent, bool childs)
        {
            CriteriaEx criteria = Cabeza.GetCriteria(Cabeza.OpenSession());

            criteria.Query  = SELECT(parent);
            criteria.Childs = childs;

            CabezaList list = DataPortal.Fetch <CabezaList>(criteria);

            list.CloseSession();

            return(list);
        }