示例#1
0
        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);
        }
示例#2
0
        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);
        }