xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 14.73MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2023-07-31
  • 語(yǔ)言: C#
  • 標(biāo)簽: 學(xué)籍管理??

資源簡(jiǎn)介

該學(xué)籍管理系統(tǒng)采用C#作為開(kāi)發(fā)平臺(tái),數(shù)據(jù)庫(kù)采用Access,系統(tǒng)簡(jiǎn)單實(shí)用

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Data.OleDb;

namespace?學(xué)生學(xué)籍管理系統(tǒng)
{
????public?partial?class?AddClass?:?Form
????{
????????public?AddClass()
????????{
????????????InitializeComponent();
????????}

????????private?void?button3_Click(object?sender?EventArgs?e)
????????{
????????????textBox1.Text?=?textBox2.Text?=?textBox3.Text?=?textBox4.Text?=?textBox5.Text?=?textBox6.Text?=?““;
????????}

????????private?void?button2_Click(object?sender?EventArgs?e)
????????{
????????????DB.cn.Close();
????????????this.Close();
????????}
???????
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????string?oldconn?=?“Provider=Microsoft.Jet.OLEDB.4.0;Data?Source=xsxjdb.mdb“;
????????????OleDbConnection?oleDbConnection1?=?new?OleDbConnection(oldconn);
????????????oleDbConnection1.Close();
????????????oleDbConnection1.Open();
????????????string?sql;
????????????OleDbCommand?cmd?=?new?OleDbCommand(““?oleDbConnection1);
????????????if?(textBox1.Text.Trim()?==?““?||?textBox2.Text.Trim()?==?““?||?textBox3.Text.Trim()?==?““?||?textBox4.Text.Trim()?==?““?||?textBox5.Text.Trim()?==?““?||?textBox6.Text.Trim()?==?““)
????????????{
????????????????MessageBox.Show(“請(qǐng)?zhí)顚?xiě)全部信息!“?“提示“);
????????????}
????????????else
????????????{
????????????????DB.cn.Close();
????????????????DB.cn.Open();
????????????????OleDbCommand?oldcomm?=?new?OleDbCommand(““?DB.cn);
????????????????
????????????????sql?=?“select?ClassNum?from?ClassInfo?where?ClassNum=‘“?+?textBox1.Text.Trim()?+?“‘“;
????????????????oldcomm.CommandText?=?sql;
????????????????if?(oldcomm.ExecuteScalar()?!=?null)
????????????????{
????????????????????MessageBox.Show(“你輸入的班級(jí)編號(hào)已經(jīng)存在,請(qǐng)重新輸入!“?“錯(cuò)誤提示“);

????????????????}
????????????????else
????????????????{????????????????
????????????????sql?=?“insert?into?ClassInfo??values?(‘“?+?textBox1.Text.Trim()?+?“‘‘“?+?textBox2.Text.Trim()?+?“‘‘“?+?textBox3.Text.Trim()?+?“‘‘“?+?textBox4.Text.Trim()?+?“‘‘“?+?textBox5.Text.Trim()?+?“‘‘“?+?textBox6.Text.Trim()?+“‘?)“;
????????????????oldcomm.CommandText?=?sql;
????????????????oldcomm.ExecuteNonQuery();
????????????????MessageBox.Show(“添加成功!“?“提示“);
????????????????DB.cn.Close();

????????}
????????oleDbConnection1.Close();

??????}

???}

????????private?void?AddClass_Load(object?sender?EventArgs?e)
????????{???????

????????????DataSet?ds?=?new?DataSet();
????????????OleDbDataAdapter?adp?=?new?OleDbDataAdapter(““?DB.cn);
????????????adp.SelectCommand.CommandText?=?“select?ClassName?from?ClassInfo“;
????????????adp.Fill(ds);
????????????textBox1.Focus();
????????}??????

???????
????}
}

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????目錄??????????0??2009-06-01?09:09??C#學(xué)籍管理系統(tǒng)

-----------?---------??----------?-----??----

?????????????55117558????????????????????175


評(píng)論

共有 條評(píng)論