Exemplo n.º 1
0
        public static DataSet GetPagerData(int intPageSize, int intCurrentPageIndex)
        {
            int num  = 0;
            int num2 = 0;

            return(DingYue.GetPagerData(intPageSize, intCurrentPageIndex, ref num, ref num2));
        }
Exemplo n.º 2
0
        public static int Add(string strEmailAddr)
        {
            DingYueInfo entity = new DingYueInfo
            {
                Email         = strEmailAddr,
                IsTuiDing     = false,
                Lang          = JObject.cultureLang,
                AutoTimeStamp = DateTime.Now
            };
            int result;

            if (DingYue.ExistsEmailAddr(strEmailAddr))
            {
                result = -1;
            }
            else
            {
                result = DingYue.Add(entity);
            }
            return(result);
        }
Exemplo n.º 3
0
        public static IList <DingYueInfo> GetList(int intTopCount, string strCondition)
        {
            string strSort = " Sort asc,AutoID desc ";

            return(DingYue.GetList(intTopCount, strCondition, strSort));
        }
Exemplo n.º 4
0
 public static IList <DingYueInfo> GetTopNList(int intTopCount, string strSort)
 {
     return(DingYue.GetList(intTopCount, string.Empty, strSort));
 }
Exemplo n.º 5
0
 public static IList <DingYueInfo> GetAllList()
 {
     return(DingYue.GetList(0, string.Empty));
 }
Exemplo n.º 6
0
 public static DingYueInfo GetTopData()
 {
     return(DingYue.GetTopData(" Sort ASC,AutoID desc "));
 }
Exemplo n.º 7
0
 public static bool ExistsEmailAddr(string strEmailAddr)
 {
     return(DingYue.GetCount(" Email='" + StringUtils.ChkSQL(strEmailAddr) + "' ") > 0);
 }
Exemplo n.º 8
0
 public static IList <DingYueInfo> GetPagerList(int intCurrentPageIndex, int intPageSize, ref int intTotalCount, ref int intTotalPage)
 {
     return(DingYue.GetPagerList("", "Sort ASC,AutoID DESC", intCurrentPageIndex, intPageSize, ref intTotalCount, ref intTotalPage));
 }
Exemplo n.º 9
0
 public static DataSet GetPagerData(string strFilter, string strCondition, int intPageSize, int intCurrentPageIndex, ref int intTotalCount, ref int intTotalPage)
 {
     return(DingYue.GetPagerData(strFilter, strCondition, " Sort asc,AutoID desc ", intPageSize, intCurrentPageIndex, ref intTotalCount, ref intTotalPage));
 }
Exemplo n.º 10
0
 public static DataSet GetPagerData(string strCondition, int intPageSize, int intCurrentPageIndex, ref int intTotalCount, ref int intTotalPage)
 {
     return(DingYue.GetPagerData("*", strCondition, intPageSize, intCurrentPageIndex, ref intTotalCount, ref intTotalPage));
 }