RentHouseBLL/TopupManager.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RentHouseModel;
using RentHouseDAL;
using System.Data;

namespace RentHouseBLL
{
    public static class TopupManager
    {
        public static void AddTopup(string username,int amount,string topupdate)
        {
            Topup t = new Topup();
            t.UserName = username;
            t.Amount = amount;
            t.TopupDate = topupdate;
            TopupService.AddTopup(t);
        }

        public static int GetTotalByYear(string year)
        {
            return TopupService.GetTotalByYear(year);
        }

        public static int GetTotalByYearMonth(string year,int month)
        {
            return TopupService.GetTotalByYearMonth(year,month);
        }

        public static DataTable GetAllYears()
        {
            return TopupService.GetAllYears();
        }

        public static IList<Topup> GetTopupsByUserName(string username)
        {
            if (username.Trim() == "")
            {
                return TopupService.GetAllTopups();
            }
            else
            {
                return TopupService.GetTopupsByUserName(username.Trim());
            }
        }

        public static int GetTotalByUserName(string username)
        {
            if (username.Trim() == "")
            {
                return TopupService.GetAllTotal();
            }
            else
            {
                return TopupService.GetTotalByUserName(username.Trim());
            }
        }
    }
后面还有 1 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。