public static TransactionPaymentList GetList(QueryConditions conditions, bool childs) { CriteriaEx criteria = TransactionPayment.GetCriteria(TransactionPayment.OpenSession()); criteria.Childs = childs; criteria.Query = TransactionPaymentList.SELECT(conditions); TransactionPaymentList list = DataPortal.Fetch <TransactionPaymentList>(criteria); CloseSession(criteria.SessionCode); return(list); }
public static TransactionPaymentList GetListByFactura(long oid_factura) { CriteriaEx criteria = TransactionPayment.GetCriteria(TransactionPayment.OpenSession()); criteria.Childs = false; Library.Store.QueryConditions conditions = new Library.Store.QueryConditions { FacturaRecibida = InputInvoice.New().GetInfo() }; conditions.FacturaRecibida.Oid = oid_factura; criteria.Query = TransactionPaymentList.SELECT(conditions); TransactionPaymentList list = DataPortal.Fetch <TransactionPaymentList>(criteria); CloseSession(criteria.SessionCode); return(list); }