Example #1
0
        public static DataSet GetPagerData(int intPageSize, int intCurrentPageIndex)
        {
            int num  = 0;
            int num2 = 0;

            return(IPStrategy.GetPagerData(intPageSize, intCurrentPageIndex, ref num, ref num2));
        }
Example #2
0
        public static bool ValidateIPStrategy(string strIP)
        {
            bool result = false;
            IList <IPStrategyInfo> allList = IPStrategy.GetAllList();

            if (allList != null && allList.Count > 0)
            {
                if (IPStrategy.IsIPDenyOrAllow(allList, strIP, IPStrategyType.DENY) && !IPStrategy.IsIPDenyOrAllow(allList, strIP, IPStrategyType.ALLOW))
                {
                    result = true;
                }
            }
            return(result);
        }
Example #3
0
        public static IList <IPStrategyInfo> GetList(int intTopCount, string strCondition)
        {
            string strSort = " Sort asc,AutoID desc ";

            return(IPStrategy.GetList(intTopCount, strCondition, strSort));
        }
Example #4
0
 public static IList <IPStrategyInfo> GetTopNList(int intTopCount, string strSort)
 {
     return(IPStrategy.GetList(intTopCount, string.Empty, strSort));
 }
Example #5
0
 public static IList <IPStrategyInfo> GetAllList()
 {
     return(IPStrategy.GetList(0, string.Empty));
 }
Example #6
0
 public static IPStrategyInfo GetTopData()
 {
     return(IPStrategy.GetTopData(" Sort ASC,AutoID desc "));
 }
Example #7
0
 public static IList <IPStrategyInfo> GetPagerList(int intCurrentPageIndex, int intPageSize, ref int intTotalCount, ref int intTotalPage)
 {
     return(IPStrategy.GetPagerList("", "Sort ASC,AutoID DESC", intCurrentPageIndex, intPageSize, ref intTotalCount, ref intTotalPage));
 }
Example #8
0
 public static DataSet GetPagerData(string strFilter, string strCondition, int intPageSize, int intCurrentPageIndex, ref int intTotalCount, ref int intTotalPage)
 {
     return(IPStrategy.GetPagerData(strFilter, strCondition, " Sort asc,AutoID desc ", intPageSize, intCurrentPageIndex, ref intTotalCount, ref intTotalPage));
 }
Example #9
0
 public static DataSet GetPagerData(string strCondition, int intPageSize, int intCurrentPageIndex, ref int intTotalCount, ref int intTotalPage)
 {
     return(IPStrategy.GetPagerData("*", strCondition, intPageSize, intCurrentPageIndex, ref intTotalCount, ref intTotalPage));
 }