/// <summary> /// 修改密码 /// </summary> /// <param name="st_Id">ID</param> /// <param name="st_OldPwd">原密码</param> /// <param name="st_NewPwd">新密码</param> /// <param name="st_ReNewPwd">重复密码</param> /// <param name="lblMessage">返回信息</param> public void ChangePwd(string st_Id, string st_OldPwd, string st_NewPwd, string st_ReNewPwd, Label lblMessage) { int returnMessage = student.ChangePwd(st_Id, st_OldPwd, st_NewPwd, st_ReNewPwd); switch (returnMessage) { case -1: lblMessage.Text = "两次输入的密码不一致!"; break; case -2: lblMessage.Text = "密码错误!"; break; case 1: lblMessage.Text = "密码修改成功!"; break; case 0: lblMessage.Text = "密码修改失败,请重试!"; break; } }