⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 categorysaleroom.cs

📁 动易SiteFactory&#8482 网上商店系统1.0源代码
💻 CS
字号:
namespace PowerEasy.Shop
{
    using PowerEasy.Common;
    using PowerEasy.IDal.Shop;
    using System;
    using System.Collections.Generic;

    public sealed class CategorySaleroom
    {
        private static readonly IStatistics dal = DataAccess.CreateStatistics();

        private CategorySaleroom()
        {
        }

        public static IList<CategorySaleroomInfo> GetCategorySaleroomList(int startRowIndexId, int maxNumberRows, int orderType, int year, int month, bool isAll)
        {
            DateTime today = DateTime.Today;
            if ((year == 0) || (month == 0))
            {
                isAll = true;
            }
            else
            {
                string str = month.ToString();
                if (str.Length == 1)
                {
                    str = "0" + str;
                }
                today = DataConverter.CDate(year.ToString() + "-" + str + "-01");
            }
            return dal.GetCategorySaleroomList(startRowIndexId, maxNumberRows, orderType, today, isAll);
        }

        public static int GetTotalOfCategorySaleroom(int orderType, int year, int month, bool isAll)
        {
            return dal.GetTotalOfCategorySaleroom();
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -