///<summary>
 ///用户登录
 ///</summary>
 public string Login(string userName, string passWord)
 {
     studentDAL studentDao = new studentDAL();
     student Student = studentDao.GetModel(userName);
     if (Student == null) return "该用户名不存在";
     if (Student.passWord.Equals(Tools.encrypt(passWord))) return "1";
     else return "密码错误";
 }
 ///<summary>
 ///获取学生姓名
 ///</summary>
 public string GetStuName(string stuId)
 {
     studentDAL studentDao = new studentDAL();
     student Student = studentDao.GetModel(stuId);
     if (Student != null)
     {
         return Student.name;
     }
     else {
         return "";
     }
 }