コード例 #1
0
ファイル: SearchRank.cs プロジェクト: ngochoanhbr/dahuco
        public static DataSet GetPagerData(int intPageSize, int intCurrentPageIndex)
        {
            int num  = 0;
            int num2 = 0;

            return(SearchRank.GetPagerData(intPageSize, intCurrentPageIndex, ref num, ref num2));
        }
コード例 #2
0
ファイル: SearchRank.cs プロジェクト: ngochoanhbr/dahuco
        public static void Save(string key)
        {
            SearchRankInfo searchRankInfo = SearchRank.Get(key);

            if (searchRankInfo != null)
            {
                searchRankInfo.Times++;
                SearchRank.Update(searchRankInfo);
            }
            else
            {
                SearchRank.Add(new SearchRankInfo
                {
                    SearchKey   = key,
                    Times       = 1,
                    IsRecommend = false
                });
            }
        }
コード例 #3
0
ファイル: SearchRank.cs プロジェクト: ngochoanhbr/dahuco
        public static IList <SearchRankInfo> GetList(int intTopCount, string strCondition)
        {
            string strSort = " Sort asc,AutoID desc ";

            return(SearchRank.GetList(intTopCount, strCondition, strSort));
        }
コード例 #4
0
ファイル: SearchRank.cs プロジェクト: ngochoanhbr/dahuco
 public static IList <SearchRankInfo> GetTopNList(int intTopCount, string strSort)
 {
     return(SearchRank.GetList(intTopCount, string.Empty, strSort));
 }
コード例 #5
0
ファイル: SearchRank.cs プロジェクト: ngochoanhbr/dahuco
 public static IList <SearchRankInfo> GetAllList()
 {
     return(SearchRank.GetList(0, string.Empty));
 }
コード例 #6
0
ファイル: SearchRank.cs プロジェクト: ngochoanhbr/dahuco
 public static SearchRankInfo GetTopData()
 {
     return(SearchRank.GetTopData(" Sort ASC,AutoID desc "));
 }
コード例 #7
0
ファイル: SearchRank.cs プロジェクト: ngochoanhbr/dahuco
 public static IList <SearchRankInfo> GetPagerList(int intCurrentPageIndex, int intPageSize, ref int intTotalCount, ref int intTotalPage)
 {
     return(SearchRank.GetPagerList("", "Sort ASC,AutoID DESC", intCurrentPageIndex, intPageSize, ref intTotalCount, ref intTotalPage));
 }
コード例 #8
0
ファイル: SearchRank.cs プロジェクト: ngochoanhbr/dahuco
 public static DataSet GetPagerData(string strFilter, string strCondition, int intPageSize, int intCurrentPageIndex, ref int intTotalCount, ref int intTotalPage)
 {
     return(SearchRank.GetPagerData(strFilter, strCondition, " Sort asc,AutoID desc ", intPageSize, intCurrentPageIndex, ref intTotalCount, ref intTotalPage));
 }
コード例 #9
0
ファイル: SearchRank.cs プロジェクト: ngochoanhbr/dahuco
 public static DataSet GetPagerData(string strCondition, int intPageSize, int intCurrentPageIndex, ref int intTotalCount, ref int intTotalPage)
 {
     return(SearchRank.GetPagerData("*", strCondition, intPageSize, intCurrentPageIndex, ref intTotalCount, ref intTotalPage));
 }