Пример #1
0
        public void InitDefaultValues()
        {
            TranDate = DateTime.Now.Date;

            var setOfBooks = SetOfBooks.GetInstance(Session);

            if (setOfBooks != null)
            {
                CounterCcy = setOfBooks.FunctionalCurrency;
            }

            var bsDefs = BankStmtDefaults.GetInstance(Session);

            if (bsDefs != null)
            {
                TranCode = bsDefs.TranCode;
            }

            var cfDefs = CashFlowDefaults.GetInstance(Session);

            if (cfDefs != null)
            {
                Counterparty = cfDefs.Counterparty;
                Account      = cfDefs.Account;
                Activity     = cfDefs.Activity;
            }
        }
Пример #2
0
        public void InitDefaultValues()
        {
            Snapshot = GetCurrentSnapshot(Session);

            TranDate = DateTime.Now.Date;

            CounterCcy = Session.GetObjectByKey <Currency>(SetOfBooks.CachedInstance.FunctionalCurrency.Oid);

            var defObj = CashFlowDefaults.GetInstance(Session);

            if (defObj == null)
            {
                return;
            }

            Counterparty = defObj.Counterparty;
            Account      = defObj.Account;
            Activity     = defObj.Activity;
        }
Пример #3
0
 public static CashFlowDefaults GetInstance(IObjectSpace objectSpace)
 {
     return(CashFlowDefaults.GetInstance(((XPObjectSpace)objectSpace).Session));
 }