예제 #1
0
파일: Cash.cs 프로젝트: Ramazanov/FomsNet
        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;
            //}
        }
예제 #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;
 }
예제 #3
0
 public void AddWithoutSorting(Event e)
 {
     _list.Add(e);
 }
예제 #4
0
 public void Insert(int index, Event e)
 {
     _list.Insert(index, e);
 }
예제 #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();
 }