public static IList <VOTransactionSelect_GridPayment> FindPayments(imSabayaContext context, Int64 transactionId) { ICriteria crit = context.PersistencySession.CreateCriteria(typeof(imSabaya.TransactionPayment)); MFTransaction transaction = MFTransaction.Find(context, transactionId); crit.Add(Expression.Eq("Transaction", (FundTransaction)transaction)); IList <imSabaya.TransactionPayment> tpayments = crit.List <imSabaya.TransactionPayment>(); IList <VOTransactionSelect_GridPayment> vos = new List <VOTransactionSelect_GridPayment>(); foreach (imSabaya.TransactionPayment tp in tpayments) { vos.Add(new VOTransactionSelect_GridPayment(context, tp.Payment, tp.Amount)); } return(vos); }
public VOTransactionSelect_GridTransaction(imSabayaContext context, MFTransaction mftransaction) { this.mftransaction = mftransaction; this.context = context; }
public VOMFTransaction(MFTransaction instance) { this.instance = instance; }