コード例 #1
0
        public IEnumerable GetBalances()
        {
            List <MonthBalanceItem> ul = MoneyBalanceHelper.GetBalances(new MonthlyMoneyTransactionSearchParameters());

            if (ul.NotEmpty())
            {
                txAvgBalance.Text  = ul.Where(x => !x.Active).Average(x => x.Balance).ToInteger().FormattedString();
                txLastBalance.Text = ul.Where(x => !x.Active).OrderByDescending(x => x.Month).First().Balance.FormattedString();

                SetColor(txAvgBalance);
                SetColor(txLastBalance);
            }
            return(ul);
        }
コード例 #2
0
        public IEnumerable GetOpenTrans()
        {
            List <MonthlyMoneyTransaction> ul = MoneyBalanceHelper.GetOpenTrans(new MonthlyMoneyTransactionSearchParameters());

            return(ul);
        }
コード例 #3
0
 private static void MoneyBalanceDataAction(LoggedUser u)
 {
     MoneyBalanceHelper.RefreshUserData(u);
 }