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

正文內(nèi)容

基于c的新昌中學學生檔案管理系統(tǒng)設(shè)計與實現(xiàn)47頁(編輯修改稿)

2024-12-22 16:51 本頁面
 

【文章內(nèi)容簡介】 ataAdapter(sqlstring, connstring)。 DataSet ds = new DataSet()。 (ds, StudentInfo)。 (Text, ds, )。 (Text, ds, )。 (Text, ds, )。 (Text, ds, )。 (Text, ds, )。 (Text, ds, )。 (Text, ds, )。 (Text, ds, )。 cm = (CurrencyManager)[ds, StudentInfo]。 = 0。 } private void button1_Click(object sender, EventArgs e) { if ( == 0) { (已經(jīng)是第一條記錄了, 信息提示, , )。 return。 } else = 0。 } private void button2_Click(object sender, EventArgs e) { 。 } private void button3_Click(object sender, EventArgs e) { if ( == 1) { (已經(jīng)是最后一條記錄, 信息提示, , )。 return。 } else ++。 } private void button4_Click(object sender, EventArgs e) { = 1。 } private void button6_Click(object sender, EventArgs e) { ()。 } }} 檔案添加子模塊圖44 注冊學生檔案代碼如下:namespace 學生學籍管理系統(tǒng){ public partial class AddStuInfo : Form { public AddStuInfo() { InitializeComponent()。 } private void AddStuInfo_Load(object sender, EventArgs e) { ()。 ()。 OleDbDataAdapter adp = new OleDbDataAdapter(select SpeName from SpecialyInfo, )。 DataSet ds = new DataSet()。 (ds, specialty)。 = SpeName。 = SpeName。 = [specialty].DefaultView。 } private void button2_Click(object sender, EventArgs e) { ()。 ()。 } private void button1_Click(object sender, EventArgs e) { if (() == || () == || () == || () == || () == || () == || () == || () == ) { (你填寫的信息不完整,請繼續(xù)填寫完整!, 錯誤提示)。 } else { OleDbCommand cmd = new OleDbCommand(, )。 string sql。 sql = select * from StudentInfo where Num=39。 + () + 39。 = sql。 if (() != null) { (你輸入的學號已經(jīng)存在,請重新輸入!, 錯誤提示)。 } else { sql = insert into StudentInfo values(39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。)。 = sql。 ()。 (學生學籍信息注冊成功!, 成功信息)。 } } } 檔案處理子模塊該模塊主要完成學生基本信息的刪除 、更新等功能。圖45 學生檔案處理代碼如下:namespace 學生學籍管理系統(tǒng){ public partial class UpdateStuInfo : Form { public UpdateStuInfo() { InitializeComponent()。 } private void studentInfoBindingNavigatorSaveItem_Click(object sender, EventArgs e) { ()。 ()。 ()。 } private void UpdateStuInfo_Load(object sender, EventArgs e) { // TODO: 這行代碼將數(shù)據(jù)加載到表“”中。您可以根據(jù)需要移動或移除它。 ()。 } private void button2_Click(object sender, EventArgs e) { ()。 ()。 string connstring = Provider=。Data Source=。 OleDbConnection sqlconn = new OleDbConnection(connstring)。 ()。 string sqlstring = delete from StudentInfo where CourseName=39。 + () + 39。 OleDbCommand sqlm = new OleDbCommand(sqlstring, sqlconn)。 ()。 (刪除成功!, 提示, , )。 ()。 ()。 } private void button1_Click(object sender, EventArgs e) { //if (()) //{ DialogResult r = (真的修改嗎?, 提示, , )。 if (r == ) { ()。 .EndEdit()。 .Update()。 } //} } private void button3_Click(object sender, EventArgs e) { ()。 } } } 學生成績子模塊圖46 成績表查詢代碼如下 :using System。using 。using 。using 。using 。using 。using 。using 。namespace 學生學籍管理系統(tǒng){ public partial class ApdateStuInfo: Form { CurrencyManager cm。 public ApdateStuInfo() { InitializeComponent()。 } private void DealStuInfo_Load(object sender, EventArgs e){ string connstring = Provider=。Data Source=。 string sqlstring = select * from StudentInfo。 OleDbConnection oldconn = new OleDbConnection(connstring)。 ()。 OleDbDataAdapter oda = new OleDbDataAdapter(sqlstring, connstring)。 DataSet ds = new DataSet()。 (ds, StudentInfo)。 (Text, ds, )。 (Text, ds, )。 (Text, ds, )。 (Text, ds, )。 (Text, ds, )。 (Text, ds, )。 (Text, ds, )。 (Text, ds, )。 cm = (CurrencyManager)[ds, StudentInfo]。 = 0。 } private void button1_Click(object sender, EventArgs e) { if ( == 0) { (已經(jīng)是第一條記錄了, 信息提示, , )。 return。 } else = 0。 } private void button2_Click(object sender, EventArgs e) { 。 } private void button3_Click(object sender, EventArgs e) { if ( == 1) { (已經(jīng)是最后一
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1