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); }
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); }