Example #1
0
        public override void AfterConstruction()
        {
            base.AfterConstruction();
            var sqlUtil = new SqlQueryUtil(Session);

            CreationDateTime = sqlUtil.GetDate();
        }
Example #2
0
        public void InitializeValues()
        {
            OrigTrade = this;
            var sqlUtil = new SqlQueryUtil(Session);

            CreationDate      = sqlUtil.GetDate();
            TradeDate         = CreationDate.Date;
            OrigTradeDate     = CreationDate;
            ValueDate         = CreationDate.Date;
            PrimarySettleDate = ValueDate;
            CounterSettleDate = ValueDate;

            // Initialise Primary Currency and Settlement Account
            PrimaryCcy = Session.GetObjectByKey <Currency>(
                SetOfBooks.CachedInstance.FunctionalCurrency.Oid);
            // TODO: default settle account if Counterparty is UNDEFINED
            //PrimarySettleAccount = GetDefaultSettleAccount(PrimaryCcy, Counterparty);
        }