本文整理汇总了C#中IDalSession.GetListByNamedQuery方法的典型用法代码示例。如果您正苦于以下问题:C# IDalSession.GetListByNamedQuery方法的具体用法?C# IDalSession.GetListByNamedQuery怎么用?C# IDalSession.GetListByNamedQuery使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDalSession
的用法示例。
在下文中一共展示了IDalSession.GetListByNamedQuery方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetAccountCommissionRules
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);
}
示例2: GetLastNavCalculation
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);
}
示例3: GetLedgerEntries
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);
}
示例4: GetJournalEntryGroupsToExport
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;
}
示例5: GetJournal
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;
}
示例6: GetModelCommissionRules
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);
}