コード例 #1
0
        static CurrenciesRulesChart()
        {
            var list = AccountsChartData.GetAccountsCurrenciesRules()
                       .GroupBy(x => x.StandardAccountId);

            foreach (var item in list)
            {
                _currenciesRules.Insert(item.Key.ToString(),
                                        item.ToList().ToFixedList());
            }
        }
コード例 #2
0
        protected override void OnLoad()
        {
            base.OnLoad();

            if (!this.IsEmptyInstance)
            {
                this.MasterData = new AccountsChartMasterData(this, this.ExtendedDataField);
                _accounts       = new Lazy <EmpiriaHashTable <Account> >(() => AccountsChartData.GetAccounts(this));
            }
            else
            {
                this.MasterData = new AccountsChartMasterData(this);
                _accounts       = new Lazy <EmpiriaHashTable <Account> >(() => new EmpiriaHashTable <Account>());
            }
        }
コード例 #3
0
 private FixedList <Ledger> GetLedgers()
 {
     return(AccountsChartData.GetAccountChartLedgers(this.AccountsChart));
 }
コード例 #4
0
 private Account GetStandardAccount()
 {
     return(AccountsChartData.GetCurrentAccountWithStandardAccountId(this.StandardAccountId));
 }
コード例 #5
0
 public FixedList <Account> Search(string filter)
 {
     return(AccountsChartData.SearchAccounts(this, filter));
 }
コード例 #6
0
 public FixedList <Account> GetAccountHistory(string accountNumber)
 {
     return(AccountsChartData.GetAccountHistory(this, accountNumber));
 }