public static CobroFacturaList GetChildList(OutputInvoiceInfo parent, bool childs)
        {
            CriteriaEx criteria = CobroFactura.GetCriteria(OutputInvoice.OpenSession());

            criteria.Query  = CobroFacturaList.SELECT_BY_FACTURA(parent.Oid);
            criteria.Childs = childs;

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

            list.CloseSession();

            return(list);
        }
        public static CobroFacturaList GetList(QueryConditions conditions, bool childs = false)
        {
            CriteriaEx criteria = CobroFactura.GetCriteria(CobroFactura.OpenSession());

            criteria.Childs = childs;

            criteria.Query = CobroFacturaList.SELECT(conditions);

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

            CloseSession(criteria.SessionCode);
            return(list);
        }