コード例 #1
0
        public static DataSet GetPagerData(int intPageSize, int intCurrentPageIndex)
        {
            int num  = 0;
            int num2 = 0;

            return(Ads.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 <AdsInfo> GetCacheAdsByPlaceID(int intPlaceID)
        {
            IEnumerable <AdsInfo> enumerable = from p in Ads.GetCacheAds()
                                               where p.BeginDate <= DateTime.Now && p.EndDate >= DateTime.Now && p.IsAudit && p.PlaceID.Equals(intPlaceID)
                                               select p;
            IList <AdsInfo> result;

            if (enumerable != null)
            {
                result = enumerable.ToList <AdsInfo>();
            }
            else
            {
                result = null;
            }
            return(result);
        }
コード例 #4
0
 public static AdsInfo GetCacheAdByID(int intAdID)
 {
     return((from p in Ads.GetCacheAds()
             where p.AutoID.Equals(intAdID)
             select p).FirstOrDefault <AdsInfo>());
 }
コード例 #5
0
 public static IList <AdsInfo> GetPagerList(int intCurrentPageIndex, int intPageSize, ref int intTotalCount, ref int intTotalPage)
 {
     return(Ads.GetPagerList("", "Sort ASC,AutoID DESC", intCurrentPageIndex, intPageSize, ref intTotalCount, ref intTotalPage));
 }
コード例 #6
0
 public static DataSet GetPagerData(string strFilter, string strCondition, int intPageSize, int intCurrentPageIndex, ref int intTotalCount, ref int intTotalPage)
 {
     return(Ads.GetPagerData(strFilter, strCondition, " Sort asc,AutoID desc ", intPageSize, intCurrentPageIndex, ref intTotalCount, ref intTotalPage));
 }
コード例 #7
0
 public static DataSet GetPagerData(string strCondition, int intPageSize, int intCurrentPageIndex, ref int intTotalCount, ref int intTotalPage)
 {
     return(Ads.GetPagerData("*", strCondition, intPageSize, intCurrentPageIndex, ref intTotalCount, ref intTotalPage));
 }
コード例 #8
0
 public static DataSet GetPagerData(int intPageSize, int intCurrentPageIndex, ref int intTotalCount, ref int intTotalPage)
 {
     return(Ads.GetPagerData("*", string.Empty, intPageSize, intCurrentPageIndex, ref intTotalCount, ref intTotalPage));
 }
コード例 #9
0
        public static IList <AdsInfo> GetList(int intTopCount, string strCondition)
        {
            string strSort = " Sort asc,AutoID desc ";

            return(Ads.GetList(intTopCount, strCondition, strSort));
        }
コード例 #10
0
 public static IList <AdsInfo> GetTopNList(int intTopCount, string strSort)
 {
     return(Ads.GetList(intTopCount, string.Empty, strSort));
 }
コード例 #11
0
 public static IList <AdsInfo> GetAllList()
 {
     return(Ads.GetList(0, string.Empty));
 }
コード例 #12
0
 public static AdsInfo GetTopData()
 {
     return(Ads.GetTopData(" Sort ASC,AutoID desc "));
 }