Example #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);
        }
Example #2
0
 public Money getAmountOfMoneyByYear(DateTime time)
 {
     return(DB.getAmountOfMoneyByYear(time.Year));
 }