Beispiel #1
0
        private static void Book(Loan pLoan, Event e, User pUser)
        {
            //IEventProcessor eP = new Events.Cash.EventProcessor(pUser, pLoan.ChartOfAccounts, pLoan);
            //pLoan.Events.Add(e);
            //AccountingTransaction mS = eP.FireEvent(e, pLoan.Product.Currency.Id);

            //if (mS != null)
            //{
            //    pLoan.ChartOfAccounts.Book(mS);
            //    pLoan.Bookings = mS.Bookings;
            //}
        }
Beispiel #2
0
 public bool IsLastEvent(Event e)
 {
     for (int i = _list.Count - 1; i >= 0; i--)
     {
         Event _e = _list[i];
         if (!_e.Deleted)
         {
             return _e.Id == e.Id;
         }
     }
     return false;
 }
Beispiel #3
0
 public void AddWithoutSorting(Event e)
 {
     _list.Add(e);
 }
Beispiel #4
0
 public void Insert(int index, Event e)
 {
     _list.Insert(index, e);
 }
Beispiel #5
0
 /// <summary>
 /// Add e to events list and sort list by id
 /// </summary>
 /// <param name="e"></param>
 public void Add(Event e)
 {
     _list.Add(e);
     SortEventsById();
 }