Beispiel #1
0
        public Money getAmountOfMoney(DateTime time, flagCode code)
        {
            Money money = new 超市管理系统.Money();

            switch (code)
            {
            case flagCode.day:
                money = DB.getAmountOfMoneyByDay(time.Year, time.Month, time.Day);
                break;

            case flagCode.month:
                money = DB.getAmountOfMoneyByMonth(time.Year, time.Month);
                break;

            case flagCode.year:
                money = DB.getAmountOfMoneyByYear(time.Year);
                break;

            default:
                break;
            }
            return(money);
        }
Beispiel #2
0
 public Money getAmountOfMoneyByMonth(DateTime time)
 {
     return(DB.getAmountOfMoneyByMonth(time.Year, time.Month));
 }