Beispiel #1
0
 public static IList GetAccountCommissionRules(IDalSession session, int accountID)
 {
     Hashtable parameters = new Hashtable(1);
     parameters.Add("accountID", accountID);
     return session.GetListByNamedQuery(
         "B4F.TotalGiro.Fees.CommRules.AccountCommissionRules",
         parameters);
 }
Beispiel #2
0
        public static INavCalculation GetLastNavCalculation(IDalSession session, IVirtualFund fund)
        {
            Hashtable parameters = new Hashtable();
            parameters.Add("fund", fund);

            IList navCalculations = session.GetListByNamedQuery("B4F.TotalGiro.Instruments.Nav.GetLastNavCalculation", parameters);
            return (navCalculations.Count > 0 ? (INavCalculation)navCalculations[0] : null);
        }
Beispiel #3
0
        public static IList GetLedgerEntries(IDalSession session, ILedgerType ledgerType, DateTime dateUntil)
        {
            string query = "B4F.TotalGiro.Communicator.Exact.LedgerEntry.GetLedgerEntries";

            Hashtable parameters = new Hashtable();
            parameters.Add("LedgerType", ledgerType);
            parameters.Add("DateUntil", dateUntil);

            return session.GetListByNamedQuery(query, parameters);
        }
Beispiel #4
0
        public static IList<ExactEntryGrouping> GetJournalEntryGroupsToExport(IDalSession session, DateTime dateUntil)
        {
            string query = "B4F.TotalGiro.Communicator.Exact.SubledgerEntry.GetJournalEntryGroupsToExport";

            Hashtable parameters = new Hashtable();
            parameters.Add("transactionDate", dateUntil);

            IList<ExactEntryGrouping> groups = new List<ExactEntryGrouping>();
            foreach (object[] entry in session.GetListByNamedQuery(query, parameters))
            {
                groups.Add(new ExactEntryGrouping(entry));
            }

            return groups;
        }
Beispiel #5
0
        public static IJournal GetJournal(IDalSession session, JournalTypes journalType, int currencyKey)
        {
            IJournal journal = null;
            Hashtable parameters = new Hashtable();

            string query = @"B4F.TotalGiro.GeneralLedger.Static.Journal.GetJournalByType";

            parameters.Add("journalType", journalType);
            parameters.Add("currencyKey", currencyKey);

            IList list =session.GetListByNamedQuery(query, parameters);
            if (list != null && list.Count == 1)
                journal = (IJournal)list[0];

            return journal;
        }
Beispiel #6
0
 public static IList GetModelCommissionRules(IDalSession session, int modelID)
 {
     Hashtable parameters = new Hashtable(1);
     parameters.Add("modelID", modelID);
     return session.GetListByNamedQuery(
         "B4F.TotalGiro.Fees.CommRules.ModelCommissionRules",
         parameters);
 }