protected void cbgridMainPaymentChangeFocus_Callback(object source, DevExpress.Web.ASPxCallback.CallbackEventArgs e)
    {
        if (int.Parse(e.Parameter) < 0)
        {
            return;
        }
        String    parameter = e.Parameter;
        VOPayment payment   = (VOPayment)gridMainPayment.GetRow(int.Parse(parameter));

        Session["ctrls_PaymentBrowseControl_paymentId"] = payment.PaymentID;
        IList <MFTransaction> MFTransactions = MFTransaction.FindByPayment(iSabayaContext, payment.PaymentID);

        Session["ctrls_PaymentBrowseControl_MFTransactions"] = BindGridTransaction(MFTransactions);;
    }
    private List <VOPayment> FindPaymentsOfPayee(MFAccount account)
    {
        ISession  session = PersistenceLayer.WebSessionManager.PersistenceSession;
        ICriteria crit    = session.CreateCriteria <Payment>()
                            .Add(Expression.Eq("Payee", account))
                            .Add(Expression.IsNull("Reference"));
        List <VOPayment> voList = new List <VOPayment>();

        foreach (Payment item in crit.List <Payment>())
        {
            VOPayment vo = new VOPayment(item);
            voList.Add(vo);
        }
        return(voList);
    }