public static DataSet GetPagerData(int intPageSize, int intCurrentPageIndex) { int num = 0; int num2 = 0; return(DingYue.GetPagerData(intPageSize, intCurrentPageIndex, ref num, ref num2)); }
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); }
public static IList <DingYueInfo> GetList(int intTopCount, string strCondition) { string strSort = " Sort asc,AutoID desc "; return(DingYue.GetList(intTopCount, strCondition, strSort)); }
public static IList <DingYueInfo> GetTopNList(int intTopCount, string strSort) { return(DingYue.GetList(intTopCount, string.Empty, strSort)); }
public static IList <DingYueInfo> GetAllList() { return(DingYue.GetList(0, string.Empty)); }
public static DingYueInfo GetTopData() { return(DingYue.GetTopData(" Sort ASC,AutoID desc ")); }
public static bool ExistsEmailAddr(string strEmailAddr) { return(DingYue.GetCount(" Email='" + StringUtils.ChkSQL(strEmailAddr) + "' ") > 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)); }
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)); }
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)); }