Пример #1
0
        public static DataSet GetPagerData(int intPageSize, int intCurrentPageIndex)
        {
            int num  = 0;
            int num2 = 0;

            return(AdPlace.GetPagerData(intPageSize, intCurrentPageIndex, ref num, ref num2));
        }
Пример #2
0
        public static bool DeleteAll(int placeID)
        {
            bool result;

            if (AdPlace.Delete(placeID))
            {
                Ads.DelByPlaceID(placeID);
                result = true;
            }
            else
            {
                result = false;
            }
            return(result);
        }
Пример #3
0
        public static IList <AdPlaceInfo> GetList(int intTopCount, string strCondition)
        {
            string strSort = " Sort asc,AutoID desc ";

            return(AdPlace.GetList(intTopCount, strCondition, strSort));
        }
Пример #4
0
 public static IList <AdPlaceInfo> GetTopNList(int intTopCount, string strSort)
 {
     return(AdPlace.GetList(intTopCount, string.Empty, strSort));
 }
Пример #5
0
 public static IList <AdPlaceInfo> GetAllList()
 {
     return(AdPlace.GetList(0, string.Empty));
 }
Пример #6
0
 public static AdPlaceInfo GetTopData()
 {
     return(AdPlace.GetTopData(" Sort ASC,AutoID desc "));
 }
Пример #7
0
 public static int HasAdsCount(int intPlace)
 {
     return(AdPlace.GetCount("PlaceID=" + intPlace));
 }
Пример #8
0
 public static AdPlaceInfo GetCacheAdPlaceById(int intPlaceID)
 {
     return((from p in AdPlace.GetCacheAdPlaces()
             where p.AutoID.Equals(intPlaceID)
             select p).FirstOrDefault <AdPlaceInfo>());
 }
Пример #9
0
 public static IList <AdPlaceInfo> GetCurrCacheAdPlaces()
 {
     return((from p in AdPlace.GetCacheAdPlaces()
             where p.Lang.Equals(JObject.cultureLang)
             select p).ToList <AdPlaceInfo>());
 }
Пример #10
0
 public static IList <AdPlaceInfo> GetPagerList(int intCurrentPageIndex, int intPageSize, ref int intTotalCount, ref int intTotalPage)
 {
     return(AdPlace.GetPagerList("", "Sort ASC,AutoID DESC", intCurrentPageIndex, intPageSize, ref intTotalCount, ref intTotalPage));
 }
Пример #11
0
 public static DataSet GetPagerData(string strFilter, string strCondition, int intPageSize, int intCurrentPageIndex, ref int intTotalCount, ref int intTotalPage)
 {
     return(AdPlace.GetPagerData(strFilter, strCondition, " Sort asc,AutoID desc ", intPageSize, intCurrentPageIndex, ref intTotalCount, ref intTotalPage));
 }
Пример #12
0
 public static DataSet GetPagerData(string strCondition, int intPageSize, int intCurrentPageIndex, ref int intTotalCount, ref int intTotalPage)
 {
     return(AdPlace.GetPagerData("*", strCondition, intPageSize, intCurrentPageIndex, ref intTotalCount, ref intTotalPage));
 }