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

            return(VoteItem.GetPagerData(intPageSize, intCurrentPageIndex, ref num, ref num2));
        }
コード例 #2
0
        public static bool DeleteWithLog(int intVoteItemID)
        {
            bool result;

            if (VoteItem.Delete(intVoteItemID))
            {
                BizBase.dbo.DeleteTable(" DELETE FROM cms_VoteLog WHERE VoteItemID=" + intVoteItemID);
                result = true;
            }
            else
            {
                result = false;
            }
            return(result);
        }
コード例 #3
0
        public static IList <VoteItemInfo> GetList(int intTopCount, string strCondition)
        {
            string strSort = " Sort asc,AutoID desc ";

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