score_bll.cs

来自「毕业设计题目,学生成绩查询系统,包括管理员和普通用户两级管理」· CS 代码 · 共 66 行

CS
66
字号
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 + =
减小字号Ctrl + -
显示快捷键?