Exemplo n.º 1
0
 public BookingComponent(BookingComponentTypes bookingComponentType, IBookingComponentParent parent, DateTime creationDate)
     : this()
 {
     this.BookingComponentType = bookingComponentType;
     this.CreationDate = creationDate;
     this.Parent = parent;
 }
Exemplo n.º 2
0
 public ManagementFeeComponent(IGeneralOperationsBooking parentBooking, BookingComponentTypes bookingComponentType,
     int period, FeeType mgtFeeType, DateTime creationDate)
     : base(parentBooking, bookingComponentType, creationDate)
 {
     this.Period = period;
     this.MgtFeeType = mgtFeeType;
 }
Exemplo n.º 3
0
        public IGLLookupRecord GetGLLookupRecord(
                ICurrency currency,
                bool isExternalExecution,
                bool isInternalExecution,
                bool isUnsettled,
                BookingComponentTypes bookingComponentType)
        {
            var returnvalue = from c in Records
                              where ((c.IsExternalExecution == isExternalExecution)
                                && (c.IsInternalExecution == isInternalExecution)
                                && (c.IsUnSettled == isUnsettled)
                                && (c.BookingComponentType == bookingComponentType)
                                && (c.Currency.Equals(currency)))
                              select c;

            if (returnvalue.Count() == 0)
                throw new ApplicationException("No Lookup record is matched.");

            return returnvalue.ElementAt(0);
        }
Exemplo n.º 4
0
 public BookingComponent(BookingComponentTypes bookingComponentType, IBookingComponentParent parent)
     : this(bookingComponentType, parent, DateTime.Now)
 {
 }
Exemplo n.º 5
0
 public BookingComponentParent(BookingComponentTypes bookingComponentType, DateTime creationDate)
 {
     this.Component = new BookingComponent(bookingComponentType, this, creationDate);
 }
Exemplo n.º 6
0
 private IGLLookupRecord GetLookupRecord(Money componentValue, BookingComponentTypes bookingComponentType, bool isSettled, bool isExternalExecution, bool isInternalExecution, IGLLookupRecords lookups)
 {
     ICurrency currency = componentValue.Underlying.ToCurrency;
     return lookups.GetGLLookupRecord(currency, isExternalExecution, isInternalExecution, !isSettled, bookingComponentType);
 }
Exemplo n.º 7
0
 public void AddLinesToComponent(Money componentValue, BookingComponentTypes bookingComponentType, bool isSettled, bool isExternalExecution, bool isInternalExecution, IGLLookupRecords lookups, IAccount accountA, IAccount accountB, DateTime? valueDate)
 {
     IGLLookupRecord lookupRecord = GetLookupRecord(componentValue, bookingComponentType, isSettled, isExternalExecution, isInternalExecution, lookups);
     this.Component.AddLinesToComponent(componentValue, lookupRecord, accountA, accountB, valueDate);
 }
Exemplo n.º 8
0
 public void AddLinesToComponent(Money componentValue, BookingComponentTypes bookingComponentType, bool isSettled, bool isExternalExecution, bool isInternalExecution, IGLLookupRecords lookups, IAccount accountA, IAccount accountB)
 {
     AddLinesToComponent(componentValue, bookingComponentType, isSettled, isExternalExecution, isInternalExecution, lookups, accountA, null, null);
 }
Exemplo n.º 9
0
 public CashDividendComponent(IGeneralOperationsBooking parentBooking, BookingComponentTypes bookingComponentType,
     DateTime creationDate)
     : base(parentBooking, bookingComponentType, creationDate)
 {
 }
Exemplo n.º 10
0
 public CashDividendComponent(IGeneralOperationsBooking parentBooking, BookingComponentTypes bookingComponentType)
     : this(parentBooking, bookingComponentType, DateTime.Now)
 {
 }
Exemplo n.º 11
0
 public ForeignExchangeComponent(IGeneralOperationsBooking parentBooking, BookingComponentTypes bookingComponentType,
     DateTime creationDate)
     : base(parentBooking, bookingComponentType, creationDate)
 {
 }
Exemplo n.º 12
0
 public ForeignExchangeComponent(IGeneralOperationsBooking parentBooking, BookingComponentTypes bookingComponentType)
     : this(parentBooking, bookingComponentType, DateTime.Now)
 {
 }
Exemplo n.º 13
0
 public ManagementFeeComponent(IGeneralOperationsBooking parentBooking, BookingComponentTypes bookingComponentType, 
     int period, FeeType mgtFeeType)
     : this(parentBooking, bookingComponentType, period, mgtFeeType, DateTime.Now)
 {
 }
Exemplo n.º 14
0
 public GeneralOperationsComponent(IGeneralOperationsBooking parentBooking, BookingComponentTypes bookingComponentType,
 DateTime creationDate)
     : base(bookingComponentType, creationDate)
 {
     this.ParentBooking = parentBooking;
 }
Exemplo n.º 15
0
 public TransactionComponent(ITransaction parentTransaction, BookingComponentTypes bookingComponentType,
     DateTime creationDate)
     : base(bookingComponentType, creationDate)
 {
     this.ParentTransaction = parentTransaction;
 }
Exemplo n.º 16
0
 public TransactionComponent(ITransaction parentTransaction, BookingComponentTypes bookingComponentType)
     : this(parentTransaction, bookingComponentType, DateTime.Now)
 {
 }