📄 业务逻辑表.txt
字号:
学生类:Student
教师类:Teacher
主任:AdminTeacher
班主任:MasterTeacher
授课老师: PrelectTeacher
班级类:classTeam
班级考试信息类:classExam
功能接口:IFun
教师适配器:TeacherAdapter
数据库通讯:DataAccess
代理类:Proxy
教师考勤:TeacherDuty
学生考勤:StudentDuty
期末考试:StudentFS
平时考试:StudentExam
数据库通讯类提供的方法清单:
//提供一个打开的数据库联接
public static SqlConnection GetConnection()
//获得教师编号,判断是否存在,存在返回true
public static bool teaIDJude(string teaID)
//获得教师编号,返回教师权限,T:授课教师 C:班主任教师 A:主管教师
public static char TeacherLimitJudge(string teaID)
//获得教师编号和教师密码,判断是否匹配,false:不匹配 true:匹配
public static bool CheckUp(string teaID,string teaPassWord)
//获得教师编号,返回教师基本信息表中该教师数据
public static SqlDataReader GetTeaInfoByTeaID(string teaID)
//获得教师编号,以DataTable返回教师基本信息表中的数据
public static DataTable GetTeaInfoTableByTeaID(string teaID)
{
string select = "select * from TeacherInfo where teaID = '" + teaID;
SqlDataAdapter myDa = new SqlDataAdapter(select,GetConnection());
DataTable myDt = new DataTable(teaID);
myDa.Fill(myDt);
return myDt;
}
//获得教师编号和权限,返回包含他可见的班级类实例的ArrayList
public static ArrayList GetClassTeamsByTeaIDTeaLimit(string teaID,char teaLimit)
//获得教师缺勤编号,返回老师缺勤表中相应数据
public static SqlDataReader GetTeacherDutyByAfdID(int afdID)
//获得教师编号,返回包含教师缺勤实例的ArrayList
public static ArrayList GetTeaDutysByTeaID(string teaID)
//获得班级编号,判断班级年级,返回字符1、2、3,分别代表一期、二期和三期
public static char ClassGradeJudge(string ClassID)
//获得班级编号,返回班级基本系息表中相应数据
public static SqlDataReader GetClaInfoByClaID(string claID)
//获得班级编号,返回班级考试信息表中所有该班的信息
public static DataTable GetClaExamInfoByClaID(string claID)
//获得班级编号,返回包含班级所有考试信息实例的ArrayList
public static ArrayList GetClaExamsByClaID(string claID)
//获得考试编号,返回学生考试信息表中所有关于这次考试的信息
public static DataTable GetStuExamInfoByExamID(int examID)
//获得学员编号,判断是否存在,存在则返回true
public static bool stuIDJude(int stuID)
//获得学生编号,返回学生基本信息表中相应数据
public static SqlDataReader GetStudentInfoByStuID(int stu
//获得学员编号和考试编号,返回学生考试信息表中相应数据
public static SqlDataReader GetStuExamInfoByStuIDExamID(int stuID,int examID)
//获得学员缺勤编号,返回学员缺勤信息表中相应数据
public static SqlDataReader GetStuDutyInfoByAfdID(int afdID)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -