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

正文內(nèi)容

基于c和access的圖書(shū)管理系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)畢業(yè)設(shè)計(jì)-資料下載頁(yè)

2025-06-22 01:04本頁(yè)面
  

【正文】 : Form { public frmDeBook() { InitializeComponent()。 } string str = Provider=。Data Source=。 OleDbCommand cmd。 OleDbDataAdapter sdr。 DataSet ds。 private void frmUpdateManager_Load(object sender, EventArgs e) { OleDbConnection con = new OleDbConnection()。//建立數(shù)據(jù)庫(kù)連接 = Provider=。Data Source=。 string str = select * from Books。 ()。 cmd = new OleDbCommand(str, con)。 sdr = new OleDbDataAdapter(cmd)。 ds = new DataSet()。 (ds, Books)。 = [Books]。 } private void button1_Click(object sender, EventArgs e) { OleDbConnection con = new OleDbConnection(str)。 ()。 OleDbCommand m = new OleDbCommand(delete * from Books where BookId=@bookid, con)。 (new OleDbParameter(@bookid, ))。 int n = ()。 if (n == 1) { (刪除成功!)。 frmBookupdata()。 } else if ( == ) { (編號(hào)不能為空!)。 } else { (不存在你要?jiǎng)h除的書(shū)!)。 } ()。 } private void frmBookupdata() { ds = null。 ds = new DataSet()。//這點(diǎn)很重要! (ds, Books)。 BindingSource bs = new BindingSource()。 //綁定數(shù)據(jù)源 = [Books]。 //為綁定數(shù)據(jù)源賦值 = bs。//和控件綁定 ()。 } }}:1,注冊(cè)學(xué)生:using System。using 。using 。using 。using 。using 。using 。using 。namespace BookStore{ public partial class frmStudent : Form { OleDbConnection con。 OleDbDataAdapter da。 DataSet ds。 public frmStudent() { InitializeComponent()。 con = new OleDbConnection()。//建立數(shù)據(jù)庫(kù)連接 = Provider=。Data Source=。 da = new OleDbDataAdapter(select * from Students, con)。 ds = new DataSet(Students)。 } private void frmStudent_Load(object sender, EventArgs e) { (ds, Students)。 BindingSource bs = new BindingSource()。 //綁定數(shù)據(jù)源 = [Students]。 //為綁定數(shù)據(jù)源賦值 = bs。//和控件綁定 ()。 = false。 } private void frmStudentupdata() { ds = null。 ds = new DataSet()。//這點(diǎn)很重要! (ds, Students)。 BindingSource bs = new BindingSource()。 //綁定數(shù)據(jù)源 = [Students]。 //為綁定數(shù)據(jù)源賦值 = bs。//和控件綁定 ()。 = false。 } private void button1_Click(object sender, EventArgs e) { ()。 OleDbCommand cmd = new OleDbCommand(select * from Students where StudentId=@stu_id, con)。 (new OleDbParameter(@stu_id, ()))。 OleDbDataReader r = ()。 if (()) { ()。 (學(xué)生學(xué)號(hào)已存在!, 提示信息, , )。 = 。 = 。 = 。 = 。 ()。 } else { if ( == ) { (學(xué)生學(xué)號(hào)不能為空!, 提示信息, , )。 } else if ( ) { (出生日期不能晚于當(dāng)前日期!, 提示信息, , )。 } else { (學(xué)生信息填寫(xiě)正確請(qǐng)保存!)。 = false。 = true。 } ()。 } } private void button2_Click(object sender, EventArgs e) { int stu_id = ()。 string stu_name = 。 string stu_address = 。 DateTime stu_birth = ()。 ()。 OleDbCommand cmd = new OleDbCommand(insert into Students values(@stu_id,@stu_name,@stu_address,@stu_birth), con)。 OleDbParameter[] par = new OleDbParameter[4]。 for (int i = 0。 i 4。 i++) { par[i] = new OleDbParameter()。 } par[0].ParameterName = @stu_id。 par[0].Value = stu_id。 par[1].ParameterName = @stu_name。 par[1].Value = stu_name。 par[2].ParameterName = @stu_address。 par[2].Value = stu_address。 par[3].ParameterName = @stu_birth。 par[3].Value = stu_birth。 for (int j = 0。 j 4。 j++) { (par[j])。 } int n = ()。 if (n == 1) { (學(xué)生信息添加成功!)。 } else (學(xué)生信息添加失敗)。 ()。 = 。 = 。 = 。 = 。 ()。 = true。 = false。 frmStudentupdata()。//更新dataGriviw的顯示 } }}2,修改學(xué)生資料:using System。using 。using 。using 。using 。using 。using 。using 。namespace BookStore{ public partial class frmUpdateStudent : Form { public frmUpdateStudent() { InitializeComponent()。 } OleDbCommand cmd。 OleDbDataAdapter sdr。 DataSet ds。 private void frmUpdateStudent_Load(object sender, EventArgs e) { // TODO: 這行代碼將數(shù)據(jù)加載到表“”中。您可以根據(jù)需要移動(dòng)或移除它。 //()。 OleDbConnection con = new OleDbConnection()。//建立數(shù)據(jù)庫(kù)連接 = Provider=。Data Source=。 string str = select * from Students。 ()。 cmd = new OleDbCommand(str, con)。 sdr = new OleDbDataAdapter(cmd)。 ds = new DataSet()。 (ds, Students)。
點(diǎn)擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1