学生管理系统毕业论文(编辑修改稿)内容摘要:

ng connString = Data Source=.。 Initial Catalog=mydb。 User ID=sa。 Password=niefei。 SqlConnection connection = new SqlConnection(connString)。 ()。 if ( == 管理员 ) { string cmdstring = select * from [guanliyuan] where yonghuming=39。 + () + 39。 and mima=39。 + () + 39。 学生信息管理系统 学生管理理 班级管理 院系管理 9 SqlCommand mand = new SqlCommand(cmdstring, connection)。 SqlDataReader myreader = ()。 bool b_accept = false。 while (()) { if () { b_accept = true。 break。 } } if (b_accept == true) { = false。 Form4 form2 = new Form4()。 ()。 } else (用户名或密码错误。 )。 } if ( == 学生 ) { string cmdstring = select * from [xueshengjibenxinxi] where xingming=39。 + () + 39。 and xuehao=39。 + () + 39。 SqlCommand mand = new SqlCommand(cmdstring, connection)。 SqlDataReader myreader = ()。 bool b_accept = false。 while (()) { if () { b_accept = true。 break。 } } if (b_accept == true) { = false。 Form3 form3 = new Form3()。 ()。 } else (用户名或密码错误。 )。 10 } 添加 功能模块 private void button1_Click(object sender, EventArgs e) { string connString = Data Source=.。 Initial Catalog=mydb。 User ID=sa。 Password=niefei。 SqlConnection connection = new SqlConnection(connString)。 ()。 try { string zc = INSERT INTO [yuanxixinxi](yuanxibianhao,yuanximingcheng,yuanxizhineng) + VALUES(39。 + + 39。 ,39。 + + 39。 ,39。 + + 39。 )。 SqlCommand cmd = new SqlCommand(zc, connection)。 ()。 (添加成功 , 正确 )。 } catch (SqlException ae) { (())。 } 编辑和删除功能模块 string connString = Data Source=.。 Initial Catalog=mydb。 User ID=sa。 Password=niefei。 SqlConnection connection = new SqlConnection(connString)。 ()。 DataSet dt = new DataSet()。 string scbj = delete [yuanxixinxi] where yuanxibianhao=39。 + () + 39。 SqlDataAdapter mymand = new SqlDataAdapter(scbj, connection)。 (dt, [yuanxixinxi])。 SqlCommand cmd1 = new SqlCommand(scbj, connection)。 ()。 SqlDataReader myreader1 = ()。 11 bool a_accept = false。 while (()) { if () { if (a_accept == true)。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。