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

📄 ipstorage.cs

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

    public sealed class IPStorage
    {
        private static readonly IIPStorage dal = DataAccess.CreateIPStorage();

        private IPStorage()
        {
        }

        public static bool Add(StatIPInfo info)
        {
            return dal.Add(info);
        }

        public static bool Delete(StatIPInfo info)
        {
            return dal.Delete(info);
        }

        public static string GetAddressByIP(double ip)
        {
            return GetAddressByIP(ip);
        }

        public static IList<StatIPInfo> GetList(int startRowIndexId, int maxiNumRows, string searchIP, string searchAddress)
        {
            double num = DataValidator.IsIP(searchIP) ? StringHelper.EncodeIP(searchIP) : 0.0;
            string str = string.IsNullOrEmpty(searchAddress) ? string.Empty : DataSecurity.FilterBadChar(searchAddress.Trim());
            return dal.GetList(startRowIndexId, maxiNumRows, num, str);
        }

        public static int GetTotal()
        {
            return dal.GetTotal();
        }

        public static int GetTotal(string searchIP, string searchAddress)
        {
            return GetTotal();
        }

        public static bool Update(StatIPInfo newInfo, StatIPInfo oldInfo)
        {
            return dal.Update(newInfo, oldInfo);
        }
    }
}

⌨️ 快捷键说明

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