/// <summary> /// 查询奖罚类型编号最小的数据访问方法 /// </summary> /// <returns>奖罚类型编号最小的数据</returns> public object GetMinJiangFaTypes() { string sql = "select min(PunishmentAwardTypes_ID) from PunishmentAwardTypes"; object o = SqlHelper.ExScalar(sql); return(o); }
//获取新闻页码 public double recordCount() { string sql = "select COUNT(*) from NewList where type=1"; return(Convert.ToDouble(SqlHelper.ExScalar(sql))); }