📄 score_bll.cs
字号:
using System;
using System.Data;
namespace StudentScroeQuery.BLL
{
/// <summary>
/// score_bll 的摘要说明。
/// </summary>
public class score_bll
{
public score_bll()
{
//
// TODO: 在此处添加构造函数逻辑
//
}
public void add_score(int stu_id,int cou_id,int score)
{
new DAL.score().add_score(stu_id,cou_id,score);
}
public DataSet get_allcourse()
{
return new DAL.score().get_allcourse();
}
//判断添加学生的学号是否存在,存在返回true,反之....
public bool isExistnum(int num)
{
return new DAL.score().isExistnum(num);
}
public DataSet get_allscores()
{
return new DAL.score().get_allscores();
}
public void update_score(int stuid,int score)
{
new DAL.score().update_score(stuid,score);
}
public void del_score(int stuid)
{
new DAL.score().del_score(stuid);
}
public bool ExistedCourse(int stuid,int couid)
{
return new DAL.score().ExistedCourse(stuid,couid);
}
public int getStuNum(int id)
{
return new DAL.score().getStuNum(id);
}
//按学号搜索成绩
public DataSet getscore(int num)
{
return new DAL.score().getscore(num);
}
//按课程名称搜索
public DataSet getscore(string course)
{
return new DAL.score().getscore(course);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -