freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

學(xué)生成績(jī)管理系統(tǒng)設(shè)計(jì)可視化程序設(shè)計(jì)-資料下載頁(yè)

2025-08-07 17:43本頁(yè)面
  

【正文】 mytbl2 = [tbl2]。 for (j = 0。 j 。 j++) { node11 = new TreeNode([j][0].ToString())。 //tostring()必須使用 (node11)。 } [tbl2].Clear()。 (node1)。 } }private void Add_Columns() //根據(jù)所選學(xué)年學(xué)期和班級(jí)為datagridview增加課程列、姓名列和總分列、名次列 { ()。 ()。 ()。 ()。 string str = select distinct course_name from tblscore,tblcourse,tblclass where score_courseid=course_id and score_clsid=class_id and class_name=39。 str += ()。 str += 39。 and score_year=39。 str += 。 str += 39。 and score_term=39。職業(yè)技術(shù)學(xué)院課程設(shè)計(jì)說(shuō)明書(shū)str += 。 str += 39。 OleDbDataAdapter dp = new OleDbDataAdapter(str, con)。 DataSet ds = new DataSet()。 (ds, tbl)。 DataTable tbl = [tbl]。 (x1, 學(xué)號(hào))。 (n1, 姓名)。 int i = 0。 for (i = 0。 i 。 i++) { (c + (), [i][0].ToString())。 } (s1, 總分)。 (m1, 名次)。 } private void Add_Rows() //根據(jù)所選學(xué)年學(xué)期和班級(jí)為datagridview增加行,并寫(xiě)入姓名和學(xué)號(hào),一定要進(jìn)行排序 { ()。 ()。 string str = select distinct stu_id,stu_name from tblscore,tblstudent,tblclass where score_stuid=stu_id and stu_class=class_id and class_name=39。 str += ()。 str += 39。 and score_year=39。 str += 。 str += 39。 and score_term=39。 str += 。 str += 39。 order by stu_id。 OleDbDataAdapter dp = new OleDbDataAdapter(str, con)。 DataSet ds = new DataSet()。 (ds, tbl)。 DataTable tbl = [tbl]。 int j = 0。 for (j = 0。 j 。 j++) { (1)。 [j].Cells[0].Value = [j][0].ToString()。 [j].Cells[1].Value = [j][1].ToString()。 } } private void Score() //向datagridview中寫(xiě)入該班級(jí)該學(xué)年學(xué)期每個(gè)學(xué)生各門(mén)課程成績(jī) { ()。職業(yè)技術(shù)學(xué)院課程設(shè)計(jì)說(shuō)明書(shū) ()。 OleDbDataAdapter dp = new OleDbDataAdapter()。 DataSet ds = new DataSet()。 DataTable tbl = null。 int i = 0。 string str1 = 。 for (i = 2。 i 2。 i++) { str1 = [i].()。 string str = select stu_id,score_grade from tblscore,tblstudent,tblclass,tblcourse where score_stuid=stu_id and stu_class=class_id and course_id=score_courseid and class_name=39。 str += ()。 str += 39。 and score_year=39。 str += 。 str += 39。 and score_term=39。 str += 。 str += 39。 and course_name=39。 str += str1。 str += 39。 order by stu_id。 dp = new OleDbDataAdapter(str, con)。 (ds, tbl)。 tbl = [tbl]。 int j = 0。 for (j = 0。 j 。 j++) { [j].Cells[i].Value = [j][1].ToString()。 } ()。 } } private void Count() //計(jì)算每個(gè)學(xué)生各門(mén)課程總分,并寫(xiě)入datagridview對(duì)應(yīng)列 { ()。 ()。 string str = select stu_id,sum(score_grade) from tblscore,tblstudent,tblclass,tblcourse where score_stuid=stu_id and stu_class=class_id and course_id=score_courseid and class_name=39。 str += ()。 str += 39。 and score_year=39。 str += 。 str += 39。 and score_term=39。 str += 。 str += 39。 group by stu_id order by stu_id。 OleDbDataAdapter dp = new OleDbDataAdapter(str, con)。 DataSet ds = new DataSet()。職業(yè)技術(shù)學(xué)院課程設(shè)計(jì)說(shuō)明書(shū) (ds, tbl)。 DataTable tbl = [tbl]。 int j = 0。 for (j = 0。 j 。 j++) { [j].Cells[s1].Value = [j][1]。 //Cells[s1]中的參數(shù)為列名或序號(hào),不能使用列標(biāo)題 //要使datagridview可以根據(jù)總分的數(shù)值大小進(jìn)行排序(而不是根據(jù)字符串大小進(jìn)行排序)上面語(yǔ)句給datagridview的總分列賦值不能轉(zhuǎn)換成字符串類(lèi)型 } } private void Order_By() //只能按ascii碼排序,不能按數(shù)值大小進(jìn)行排序另columns中的參數(shù)除使用序號(hào)以外必須使用列名,不能使用列標(biāo)題 { ([s1],)。 }private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) { Add_Columns()。 //調(diào)用自定義函數(shù)來(lái)在DataGridView1中顯示行、列、及對(duì)應(yīng)的信息 Add_Rows()。 Score()。 Count()。 Order_By()。 } }}5. 課程代碼窗體程序設(shè)計(jì)課程代碼維護(hù)程序窗體如圖6所示,能對(duì)課程代碼表tblClassCourse各字段進(jìn)行錄入、修改等操作。界面:職業(yè)技術(shù)學(xué)院課程設(shè)計(jì)說(shuō)明書(shū)圖5課程代碼窗體程序設(shè)計(jì)代碼: //dataGridView1與dataGridView2的AllowUserToAddRows屬性設(shè)置為falsepublic partial class frm_Class_Course_Maintenance : Form {OleDbConnection con = new OleDbConnection(Provider=。Data Source = + + \\)。 //定義連接對(duì)象public frm_Class_Course_Maintenance() { InitializeComponent()。 } private void toolStripButton1_Click(object sender, EventArgs e) { ()。 } private void frm_Class_Course_Maintenance_Load(object sender, EventArgs e) { //登錄窗體時(shí)立即顯示的信息 ()。 string str = select * from tbldept。 OleDbDataAdapter dp = new OleDbDataAdapter(str, con)。 ()。 DataSet ds = new DataSet()。 (ds, tbldept)。 = [tbldept]。 = dept_name。職業(yè)技術(shù)學(xué)院課程設(shè)計(jì)說(shuō)明書(shū) = dept_id。 (
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1