电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

教师管理系统操作流程

教师管理系统操作流程_第1页
1/6
教师管理系统操作流程_第2页
2/6
教师管理系统操作流程_第3页
3/6
教师管理操作流程1、使用 Teacher 账号登陆——教师管理系统代码区域:if (loginType == "教师") { string sql = string.Format("select count(*) from teacher where LoginId='{0}' AND LoginPwd='{1}'", loginId, loginPwd); try { SqlCommand command = new SqlCommand(sql, DBHelper.connection); DBHelper.connection.Open(); count = (int)command.ExecuteScalar(); if (count == 1) { isValidUser = true; } else { index++; if (index <= 3) { message = "用户名或密码不存在!"; } else if (index >= 3) { Application.Exit(); } isValidUser = false; } } catch (Exception ex) { message = ex.Message; Console.WriteLine(ex.Message); }查询修改信息查询教师基本信息(代码区域:) TeacherBaseForm teacherBaseForm = new TeacherBaseForm(); teacherBaseForm.Show();TeacherBaseForm(教师基本信息窗体)查询及修改学生信息(代码区域:) UpdateStudentForm updateStudentForm = new UpdateStudentForm(); updateStudentForm.Show();SearchTeacherForm.cs(查询及修改信息窗体)AddScoreForm(学生成绩录入窗体)录入按钮代码:string sql = string.Format("select StudentId,StudentNo,StudentName from Student where StudentId='{0}'", txtId.Text); try { SqlCommand command = new SqlCommand(sql, DBHelper.connection); DBHelper.connection.Open(); SqlDataReader reader = command.ExecuteReader(); while (reader.Read()) { id = (int)reader["StudentId"]; no = (string)reader["StudentNo"]; name = (string)reader["StudentName"]; } reader.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } finally { DBHelper.connection.Close(); } if (TianJia()) { if (txtId.Text == Convert.ToString(id) && txtStudentNo.Text == no && txtStudentName.Text == name) { string studentName = txtStudentName.Text; string sdudentNo = txtStudentNo.Text; string subject = cboSubject.Text; string score = txtScore.Text; int classId = GetClassId(); string studentId = txtId.Text; string sql1 = string.Format("i...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

教师管理系统操作流程

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部