コード例 #1
0
 public CreateForecast(BudgetLogType log, string categoryKey, YearMonth when, Money amount)
 {
     Log         = log;
     CategoryKey = categoryKey;
     When        = when;
     Amount      = amount;
 }
コード例 #2
0
 public CreateTransaction(BudgetLogType log, string categoryKey, LocalDate when, Money amount)
 {
     Log         = log;
     CategoryKey = categoryKey;
     When        = when;
     Amount      = amount;
 }
コード例 #3
0
 public Forecast(int key, BudgetLogType log, string categoryKey, YearMonth when, Money amount, string description = null)
     : base(key, log)
 {
     CategoryKey = categoryKey;
     When        = when;
     Amount      = amount;
     Description = description;
 }
コード例 #4
0
 public Transaction(int key, BudgetLogType log, string categoryKey, LocalDate when, Money amount, string description = null)
     : base(key, log)
 {
     CategoryKey = categoryKey;
     When        = when;
     Amount      = amount;
     Description = description;
 }
コード例 #5
0
 public BudgetLogEntryDao(int key, int userKey, BudgetLogType log, DateTime when, Money amount)
 {
     Key      = key;
     UserKey  = userKey;
     Log      = log;
     When     = when;
     Currency = amount.Currency.Id;
     Amount   = amount.Amount;
 }
コード例 #6
0
        public MonthLog(BudgetLogType log,
                        YearMonth when,
                        IMoneyCalculator calculator,
                        IEnumerable <Transaction> actual = null,
                        IEnumerable <Forecast> forecast  = null)
        {
            When         = when;
            Transactions = actual?.Where(n => n.Log == log).ToList() ?? new List <Transaction>();
            Forecasts    = forecast?.Where(n => n.Log == log).ToList() ?? new List <Forecast>();

            Total = FinancialStats.GetTotal(calculator,
                                            Transactions.Select(n => n.Amount),
                                            Forecasts.Select(n => n.Amount));
        }
コード例 #7
0
 public MonthLogChanged(BudgetLogType log, YearMonth when)
 {
     Log  = log;
     When = when;
 }
コード例 #8
0
 public BudgetLogQuery(BudgetLogType log, YearMonth when)
 {
     Log  = log;
     When = when;
 }
コード例 #9
0
 protected BudgetLogEntry(int key, BudgetLogType log)
 {
     Key = key;
     Log = log;
 }