Ejemplo n.º 1
0
 /// <summary>
 /// 查看成绩列表:返回所有的成绩
 /// </summary>
 /// <returns></returns>
 public List <Grade> ShowMessageList()
 {
     try
     {
         return(GradeAccess.SelectGrade());
     }
     catch (Exception ex)
     {
         return(null);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 数据插入
 /// </summary>
 /// <param name="emp"></param>
 /// <returns></returns>
 public Boolean AddGrade(Grade grade)
 {
     try
     {
         return(GradeAccess.InsertGrade(grade));
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 查看列表
 /// </summary>
 /// <returns></returns>
 public List <Grade> ShowGradeList(string gradeSno)
 {
     try
     {
         string       sqlWhere = string.Format(" and  gradeSno='{0}' ", gradeSno);
         List <Grade> list     = GradeAccess.SelectSingleGrade(sqlWhere);
         if (list != null && list.Count > 0)
         {
             return(list);
         }
         return(null);
     }
     catch (Exception ex)
     {
         return(null);
     }
 }