企業(yè)管理機(jī)房信息管理系統(tǒng)的設(shè)計與實現(xiàn)_第1頁
企業(yè)管理機(jī)房信息管理系統(tǒng)的設(shè)計與實現(xiàn)_第2頁
企業(yè)管理機(jī)房信息管理系統(tǒng)的設(shè)計與實現(xiàn)_第3頁
企業(yè)管理機(jī)房信息管理系統(tǒng)的設(shè)計與實現(xiàn)_第4頁
企業(yè)管理機(jī)房信息管理系統(tǒng)的設(shè)計與實現(xiàn)_第5頁
已閱讀5頁,還剩24頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、摘要作為計算機(jī)專業(yè)的信院來說,機(jī)房實驗是必不可少的教學(xué)內(nèi)容,但是在建設(shè)和管理上面臨著挑戰(zhàn)。機(jī)房規(guī)模的擴(kuò)大、軟硬件的不斷更新、機(jī)房角色的多元化以及學(xué)生層次的良莠不齊,給管理帶來了極大的難度,開發(fā)一個計算機(jī)系統(tǒng)進(jìn)行自動化的管理勢在必行。本文以信院的機(jī)房管理為背景,實現(xiàn)了機(jī)房管理系統(tǒng)的教師管理模塊,能用來為老師提供本院學(xué)生的信息,進(jìn)行試驗的安排,為計算機(jī)管理員提供有關(guān)機(jī)器的信息,能給計算機(jī)管理員帶來極大的方便。該系統(tǒng)是在VS2010開發(fā)平臺上開發(fā)的,是基于.NET Framework語言庫的C#語言編寫的。使用Microsoft SQL Server數(shù)據(jù)庫作為存儲數(shù)據(jù)。關(guān)鍵詞 機(jī)房管理,教師管理,S

2、QL Server數(shù)據(jù)庫1緒論時代的進(jìn)步以及網(wǎng)絡(luò)的發(fā)展與普及,給機(jī)房管理系統(tǒng)的應(yīng)用提供了便利的硬件環(huán)境。機(jī)房管理系統(tǒng)與SQL Server數(shù)據(jù)庫相互的配合,顯示出了新時代教學(xué)方式的獨特優(yōu)勢。再次介紹計算機(jī)管理系統(tǒng)的背景及意義,以及開發(fā)本系統(tǒng)所使用的工具和平臺。1.1開發(fā)背景及意義二十一世紀(jì)是信息的時代,而且目前大學(xué)的網(wǎng)絡(luò)建設(shè)趨于完善。大學(xué)的教育方式也在技術(shù)上得到了根本的改變,多媒體教學(xué)已經(jīng)進(jìn)入到每一個課堂,教師與老師的遠(yuǎn)程通信,也逐漸出現(xiàn)在我們的身邊。為此隨著計算機(jī)進(jìn)入到機(jī)房,尤其是有關(guān)計算機(jī)方面的學(xué)院,我們迫切的需要計算機(jī)機(jī)房管理系統(tǒng),來對機(jī)房,教師,學(xué)生,實驗進(jìn)行統(tǒng)一的管理。通過此系統(tǒng),教

3、師可以高效的對學(xué)生信息,學(xué)生上機(jī)實驗進(jìn)行跟蹤管理,省去大量的時間和精力。而且,計算機(jī)管理員使用此系統(tǒng)可以輕松的查詢機(jī)房中機(jī)器的使用情況,統(tǒng)計計算機(jī)的使用壽命以及計算機(jī)運行是否良好。而我們也會通過努力,不斷的探索,來完善內(nèi)部的架構(gòu),使得系統(tǒng)層次分明,模塊功能完整,從而加強(qiáng)整個系統(tǒng)的兼容性,安全性,可維護(hù)性和健壯性。1.2開發(fā)工具介紹本系統(tǒng)采用C#開發(fā)語言,C#是microsoft強(qiáng)力退出的新一代語言,它集合了java,VC的優(yōu)勢,成為了現(xiàn)在開發(fā)web和GUI信息管理系統(tǒng)的首選語言,C#采用了java的完全面向?qū)ο髾C(jī)制,方便開發(fā)者對現(xiàn)實世界進(jìn)行抽象建模,。而C#和visio的結(jié)合更是珠聯(lián)璧合,很多

4、系統(tǒng)代碼可以自動生成,省去了大量的人力,時間。也提供了統(tǒng)一的驗證模式,開發(fā)者只要調(diào)用驗證的類,就可以輕松的進(jìn)行各種數(shù)據(jù)的驗證,其中包括郵箱格式,電話和時期的驗證。而且VS2010提供了SQL Server2008數(shù)據(jù)庫服務(wù)獨特于其它的開發(fā)平臺,在VS中可以直接運行數(shù)據(jù)庫文件。使用SQL Server 2008數(shù)據(jù)庫管理系統(tǒng)。本系統(tǒng)默認(rèn)兩個管理員Administrator和sa,對系統(tǒng)數(shù)據(jù)庫和用戶數(shù)據(jù)庫驚醒管理。提供分析查詢功能,可以在里邊寫SQl語法,創(chuàng)建存儲過程,視圖,表等。2系統(tǒng)需求分析本系統(tǒng)為中小型管理系統(tǒng),主要功能是對計算機(jī)上機(jī)實驗進(jìn)行管理,包括老師對學(xué)生的上機(jī)管理,教師的基本信息資料

5、與學(xué)生的基本信息資料等,滿足教師、計算機(jī)管理員的工作需要。學(xué)生只能通過登錄客戶端來訪問服務(wù)器,獲得服務(wù)器文件,等待機(jī)房管理通知等,系統(tǒng)與SQL Server相結(jié)合,實現(xiàn)教師,學(xué)生,機(jī)房電腦的大量數(shù)據(jù)存儲。2.1系統(tǒng)任務(wù)概述機(jī)房管理系統(tǒng)可以運行在windows系統(tǒng)上,它的實現(xiàn)主要是幫助教師、機(jī)房管理員對實驗進(jìn)行合理的安排,并且本系統(tǒng)幫助教師與學(xué)生之間完成遠(yuǎn)程通信。本節(jié)主要論述了機(jī)房管理系統(tǒng)的運行時環(huán)境和需求分析2.1.1運行環(huán)境本系統(tǒng)屬于中小型管理系統(tǒng),硬件環(huán)境只需要128M內(nèi)存空間。本系統(tǒng)主要運行在windows操作系統(tǒng)上,采用microsoft SQL Server數(shù)據(jù)庫系統(tǒng),運行在.NET

6、 Framework2.0-.NET Framework 4.0版語言包基礎(chǔ)上。2.1.2系統(tǒng)功能系統(tǒng)工分為五大部分,本節(jié)之論述用戶登錄與注冊,學(xué)生管理與實驗安排,兩部分。工列為4項來闡述。(1) 在服務(wù)器端,教師和機(jī)房管理員可以通過輸入賬號和密碼,選擇登錄類型,進(jìn)入到操作界面中。如果賬號和密碼輸入有誤,系統(tǒng)則提示報錯信息。(2) 機(jī)房管理員可以對學(xué)生的資料包括學(xué)號姓名聯(lián)系電話家庭住址進(jìn)行修改,查詢,刪除等操作。(3) 機(jī)房管理員可以對學(xué)生實驗進(jìn)行查詢等(4) 教師可以查詢自己學(xué)生的信息,可以把一些學(xué)生的信息添加到自己的班級中,把一些學(xué)生刪除自己的班級。2.2數(shù)據(jù)采集本系統(tǒng)主要收集關(guān)于機(jī)房、教

7、師、學(xué)生的數(shù)據(jù)。而且要對數(shù)據(jù)進(jìn)行驗證,通過規(guī)定用戶的權(quán)限,使各個用戶瀏覽相應(yīng)的信息。2.2.1需要收集的數(shù)據(jù)機(jī)房的數(shù)據(jù),包括機(jī)房電腦的存儲容量,現(xiàn)在存儲數(shù)量。學(xué)生的資料,包括學(xué)生的姓名,學(xué)號,地址,聯(lián)系電話,專業(yè),年級等。教師的資料,包括教師的姓名,聯(lián)系電話,住址,所帶的課程。2.2.2數(shù)據(jù)約束的條件 學(xué)生只能查新自己的基本資料,查詢自己所選的實驗課和自己教師的信息。機(jī)房管理員可以對本院所有實驗課的教師進(jìn)行查詢,而且還可以查詢所有學(xué)生的信息以及他們的實驗安排。教師可以申請機(jī)房的使用權(quán),可以查詢自己所帶實驗課的學(xué)生的信息,可以給自己的班級安排實驗。數(shù)據(jù)庫設(shè)計本章對機(jī)房管理系統(tǒng)中的數(shù)據(jù)設(shè)計進(jìn)行說明

8、。主要內(nèi)容包括教師表,學(xué)生表,機(jī)房表,教師管理機(jī)房,學(xué)生機(jī)房安排表。在存儲過程,數(shù)據(jù)字段的定義方面進(jìn)行了詳細(xì)的說明。(1)計算機(jī)機(jī)房管理系統(tǒng)中一個重要的實體是計算機(jī)。計算機(jī)的屬性包括ID(用機(jī)房號加上此電腦存入機(jī)房的順序來表示的)、存入的時間、存放的位置(行號和列好表示)、運行情況、外鍵機(jī)房號。(2)機(jī)房機(jī)房的主要屬性是機(jī)房號,機(jī)房中計算機(jī)的存儲容量,已經(jīng)存入的計算機(jī)的數(shù)量,一個外鍵是機(jī)房管理員的ID號,記錄機(jī)房由哪一個管路員來管理。機(jī)房號的格式為樓層號+機(jī)房在樓層中的順序(如三樓第三個房間為303)。(3)教師表(4)學(xué)生表(5) 學(xué)生與機(jī)房關(guān)系表包括學(xué)生的學(xué)號,上機(jī)的星期,和上機(jī)的時間段,

9、上機(jī)的課程(6) 教師與機(jī)房的關(guān)系包括老師的編號,上機(jī)的星期,上機(jī)的時間段,上機(jī)的課程(7) 登錄的用戶表機(jī)房管理系統(tǒng)登錄注冊主界面查詢選擇天的課程查詢學(xué)生信息并可以修改和刪除查詢老師信息并可以修改查詢機(jī)房信息新增學(xué)生新增教師前臺設(shè)計(1)登錄頁面登錄頁面:當(dāng)姓名或者密碼為空時檢驗,提示不能為空,當(dāng)輸入的用戶名和密碼與數(shù)據(jù)庫中的內(nèi)容不一致時提示用戶名或者密碼輸入錯誤。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;us

10、ing System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace ComputerRoomMangementpublicpartialclassLogin : Form public Login() InitializeComponent(); privatevoid button2_Click(object sender, EventArgs e) RegisteForm rForm = newRegisteForm(); rForm.login = this;

11、 rForm.ShowDialog(); publicvoid GetUserName(string name) txtName.Text = name; privatevoid button1_Click(object sender, EventArgs e) bool result = check();if (result = true) SqlConnection conn = newSqlConnection("Data Source=.;Initial Catalog=DB_ComputerManagement;User ID =sa;pwd=1");string

12、 sql = string.Format("select count(*) from TB_User where Username=0 and Password=1",txtName.Text.Trim(),txtPassword.Text.Trim();SqlCommand cmd = newSqlCommand(sql, conn); conn.Open();int count =cmd.ExecuteNonQuery();if (count > 0) else lbcheck.Visible = true; privatebool check() bool re

13、sult = true;if (txtName.Text.Trim() = string.Empty) lbNameError.Visible = true; result = false; else lbNameError.Visible = false; if (txtPassword.Text.Trim() = string.Empty) lbPasswordError.Visible = true; result = false; else lbPasswordError.Visible = false; return result; privatevoid Login_Load(ob

14、ject sender, EventArgs e) 注冊頁面首先檢驗用戶名和密碼和確認(rèn)密碼是否為空,為空的話提示不能為空,再檢驗輸入的密碼和確認(rèn)密碼是否一致,不一致的話提示出錯。并當(dāng)注冊成功時把用戶名自動填寫到登錄頁面的用戶上。點擊取消時推出注冊頁面。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Form

15、s;using System.Data.SqlClient;namespace ComputerRoomMangementpublicpartialclassRegisteForm : Form publicLogin login; public RegisteForm() InitializeComponent(); privatevoid RegisteForm_Load(object sender, EventArgs e) privatevoid btnRegister_Click(object sender, EventArgs e) bool result = checkError

16、();if (result = true) SqlConnection conn = newSqlConnection("Data Source.;Initial Catalog=DB_ComputerManagement;User ID=sa;pwd=1");string sql = string.Format("insert into FamilyUser values('0','1')", txtName.Text.Trim(), txtPassword.Text.Trim();SqlCommand cmd = ne

17、wSqlCommand(sql, conn); conn.Open();int count = cmd.ExecuteNonQuery(); conn.Close();if (count = 1) MessageBox.Show("成¨¦功|注Á¡é冊¨¢了¢?一°?個?用®?戶¡ì"); login.GetUserName(txtName.Text.Trim();this.Close(); privatebool checkError() bool re

18、sult = true; if (txtName.Text.Trim() = string.Empty) lblNameError.Visible = true; result = false; else lblNameError.Visible = false; if (txtPassword.Text.Trim() = string.Empty) lblPasError.Visible = true; result = false; else lblPasError.Visible = false; if (txtConfirmPassword.Text.Trim() = string.E

19、mpty) lblConError.Visible = true; result = false; else lblConError.Visible = false;if (txtPassword.Text.Trim() != txtConfirmPassword.Text.Trim() lblConError.Text = " 兩次密碼不一致?" lblConError.Visible = true; result = false; else lblConError.Visible = false; return result; privatevoid btnCancel

20、_Click(object sender, EventArgs e) this.Close(); 當(dāng)注冊成功時提示,并且登錄頁面自動添加注冊的用戶名主界面在主界面上添加日歷。在資源管理器里右鍵引用主界面代碼using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.Sql

21、Client;namespace ComputerRoomMangementpublicpartialclassMainForm : Form publicSelectCourseOfOneDay sele = newSelectCourseOfOneDay();public MainForm() InitializeComponent(); privatevoid MainForm_Load(object sender, EventArgs e) / TODO: 這a行D代䨲碼?將?數(shù)ºy據(jù)Y加¨®載?到Ì?表

22、2;¨ª“¡ãdB_ComputerManagementDataSet.TB_Computer”¡À中D。¡ê您¨²可¨¦以°?根¨´據(jù)Y需¨¨要°a移°?動¡¥或¨°刪¦?除y它¨¹。¡êthis.tB_ComputerTableAdapter.Fill(this.dB_ComputerManagementDataS

23、et.TB_Computer);/ TODO: 這a行D代䨲碼?將?數(shù)ºy據(jù)Y加¨®載?到Ì?表À¨ª“¡ãdB_ComputerManagementDataSet.TB_Computer”¡À中D。¡ê您¨²可¨¦以°?根¨´據(jù)Y需¨¨要°a移°?動¡¥或¨°刪¦?除y它&

24、#168;¹。¡êDataSet ds = this.dB_ComputerManagementDataSet.TB_Computer.DataSet;this.tB_ComputerTableAdapter.Fill(this.dB_ComputerManagementDataSet.TB_Computer); publicstaticstring weekstr;privatevoid monthCalendar1_DateChanged(object sender, DateRangeEventArgs e) richTextBox1.Text = mont

25、hCalendar1.SelectionRange.Start.ToShortDateString(); weekstr = monthCalendar1.SelectionRange.Start.DayOfWeek.ToString();switch (weekstr) case"Monday": weekstr = "星?期¨²一°?" break;case"Tuesday": weekstr = "星?期¨²二t" break;case"Wednes

26、day": weekstr = "星?期¨²三¨y" break;case"Thursday": weekstr = "星?期¨²四?" break;case"Friday": weekstr = "星?期¨²五?" break;case"Saturday": weekstr = "星?期¨²六¢¨´" break;case&q

27、uot;Sunday": weekstr = "星?期¨²日¨?" break; privatevoid timer1_Tick(object sender, EventArgs e) DateTime dt = DateTime.Now;string date = dt.ToLongDateString();string tine = dt.ToLongTimeString(); lblTime.Text = date + tine; privatevoid button1_Click(object sender, EventArg

28、s e) SelectCourseOfOneDay select = newSelectCourseOfOneDay(); select.Show(); privatevoid button2_Click(object sender, EventArgs e) SelectStuMessage stu = newSelectStuMessage(); stu.Show(); privatevoid button3_Click(object sender, EventArgs e) SelectTeaMessage teacher = newSelectTeaMessage(); teacher

29、.Show(); privatevoid 關(guān)?于®¨²ToolStripMenuItem_Click(object sender, EventArgs e) MessageBox.Show("韓?艷T超?制?作Á¡Â"); privatevoid button6_Click(object sender, EventArgs e) ComputerRoomMessage comRoom = newComputerRoomMessage(); comRoom.Show(); privatevoid button4_Cl

30、ick(object sender, EventArgs e) AddStudent addstu = newAddStudent(); addstu.Show(); privatevoid button5_Click(object sender, EventArgs e) AddTeacher addTeac = newAddTeacher(); addTeac.Show(); 點擊查詢選擇天數(shù)的課程彈出窗口本窗口代碼using System;using System.Collections.Generic;using System.ComponentModel;using System.D

31、ata;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace ComputerRoomMangementpublicpartialclassSelectCourseOfOneDay : Form public SelectCourseOfOneDay() InitializeComponent(); privatevoid SelectCourseOfOneDay_Load(object sender, E

32、ventArgs e) SqlConnection conn = newSqlConnection("Data Source=.;Initial Catalog=DB_ComputerManagement;User ID =sa;pwd=1");string sql = string.Format("select TB_StudentRoom.* ,Name from TB_StudentRoom ,TB_Teacher where TB_StudentRoom.sCourse=TB_Teacher.Course and TB_StudentRoom.sDay=&

33、#39;0'",MainForm.weekstr ); conn.Open();DataSet ds = newDataSet();SqlDataAdapter sda = newSqlDataAdapter(sql, conn); sda.Fill(ds, "s"); dataGridView1.DataSource = ds.Tables"s" conn.Close(); 點擊查詢學(xué)生信息彈出窗口選擇一條信息底部窗口打開(或者點擊打開進(jìn)行展開)本窗口可以對學(xué)生信息進(jìn)行修改和刪除using System;using System.Co

34、llections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace ComputerRoomMangementpublicpartialclassSelectStuMessage : Form public SelectStuMessage() InitializeComponent(); pr

35、ivatevoid SelectStuMessage_Load(object sender, EventArgs e) setpnlBottomVisible(true);SqlConnection conn = newSqlConnection("Data Source=.;Initial Catalog=DB_ComputerManagement;User ID =sa;pwd=1");string sql = string.Format("select * from TB_Student"); conn.Open();DataSet ds = ne

36、wDataSet();SqlDataAdapter sda = newSqlDataAdapter(sql, conn); sda.Fill(ds, "s"); dataGridView1.DataSource = ds.Tables"s" conn.Close(); privatevoid button3_Click(object sender, EventArgs e) privatevoid setpnlBottomVisible(bool hide) if (hide=true) this.Size = newSize(this.Size.Wid

37、th, 330); pnlBottom.Visible = false;this.btnChange.Location = newPoint(this.btnChange.Location.X, this.btnChange.Location.Y - 125); btnChange.Text = "打䨰開a" else this.Size = newSize(this.Size.Width, 447); pnlBottom.Visible = true; pnlBottom.Enabled = true;this.btnChange.Loc

38、ation = newPoint(this.btnChange.Location.X, this.btnChange.Location.Y + 125); btnChange.Text = "關(guān)?閉À?" privatevoid btnChange_Click(object sender, EventArgs e) if (btnChange.Text = "打䨰開a") setpnlBottomVisible(false); else setpnlBottomVisible(true); privatevoi

39、d pnlBottom_Paint(object sender, PaintEventArgs e) privatevoid button2_Click(object sender, EventArgs e) SqlConnection conn = newSqlConnection("Data Source=.;Initial Catalog=DB_ComputerManagement;User ID=sa;pwd=1");string sql = string.Format("update TB_student set Name='0',Sex

40、='1',Tel='2',Asress='3',email='4',Grade='5',Class='6',Major='7' where num='8'",txtName.Text.Trim(),txtSex.Text.Trim(),txtTel.Text.Trim(),txtAddre.Text.Trim(),txtEmail.Text.Trim(),txtGride.Text.Trim(),txtCalss.Text.Trim(),txtMajor.T

41、ext.Trim(),txtId.Text.Trim();SqlCommand cmd = newSqlCommand(sql, conn); conn.Open();int rowCount = Convert.ToInt32(cmd.ExecuteNonQuery();if (rowCount > 0) MessageBox.Show("更¨¹新?成¨¦功|"); else MessageBox.Show("更¨¹新?失º¡ì敗㨹&

42、quot;); conn.Close(); privatevoid dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) setpnlBottomVisible(false); btnModify.Enabled = true; txtId1.Text = dataGridView1.SelectedRows0.Cells0.Value.ToString(); txtName1.Text = dataGridView1.SelectedRows0.Cells1.Value.ToString(); txtSex1.

43、Text = dataGridView1.SelectedRows0.Cells2.Value.ToString(); txtTel1.Text = dataGridView1.SelectedRows0.Cells3.Value.ToString(); txtAddre1.Text = dataGridView1.SelectedRows0.Cells4.Value.ToString(); txtEmail1.Text = dataGridView1.SelectedRows0.Cells5.Value.ToString(); txtGride1.Text = dataGridView1.S

44、electedRows0.Cells6.Value.ToString(); txtCalss1.Text = dataGridView1.SelectedRows0.Cells7.Value.ToString(); txtMajor1.Text = dataGridView1.SelectedRows0.Cells8.Value.ToString(); privatevoid button2_Click_1(object sender, EventArgs e) SqlConnection conn = newSqlConnection("Data Source=.;Initial

45、Catalog=DB_ComputerManagement;User ID=sa;pwd=1");string sql = string.Format("delete from TB_Student where Num=0", txtId1.Text);SqlCommand cmd = newSqlCommand(sql, conn); conn.Open();int rowCount = Convert.ToInt32(cmd.ExecuteNonQuery();if (rowCount > 0) MessageBox.Show("刪除成

46、8;功"); else MessageBox.Show("刪除失敗"); conn.Close(); 點擊查詢老師信息彈出窗口選擇一條信息或者點擊打開,打開底部窗口本窗口只可以對信息進(jìn)行修改而不可以刪除代碼using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using

47、System.Data.SqlClient;namespace ComputerRoomMangementpublicpartialclassSelectTeaMessage : Form public SelectTeaMessage() InitializeComponent(); privatevoid SelectTeaMessage_Load(object sender, EventArgs e) setpnlBottomVisible(true);SqlConnection conn = newSqlConnection("Data Source=.;Initial Ca

48、talog=DB_ComputerManagement;User ID=sa;pwd=1");string sql = String.Format("select * from TB_Teacher"); conn.Open();DataSet ds = newDataSet();SqlDataAdapter sda = newSqlDataAdapter(sql, conn); sda.Fill(ds,"s"); dataGridView1.DataSource = ds.Tables"s" conn.Close(); p

49、rivatevoid setpnlBottomVisible(bool hide) if (hide = true) this.Size = newSize(this.Size.Width, 340); pnlBottom.Visible = false;this.btnChange.Location = newPoint(this.btnChange.Location.X, this.btnChange.Location.Y - 120); btnChange.Text = "打䨰開a" else this.Size = newSize(

50、this.Size.Width, 454); pnlBottom.Visible = true; pnlBottom.Enabled = true;this.btnChange.Location = newPoint(this.btnChange.Location.X, this.btnChange.Location.Y + 120); btnChange.Text = "關(guān)?閉À?" privatevoid btnChange_Click(object sender, EventArgs e) if (btnChange.Text = "打ä

51、¨°開a") setpnlBottomVisible(false); else setpnlBottomVisible(true); privatevoid btnModify_Click(object sender, EventArgs e) SqlConnection conn = newSqlConnection("Data Source=.;Initial Catalog=DB_ComputerManagement;User ID=sa;pwd=1");string sql = string.Format("update TB_Teacher set Name='0',Sex='1',Tel='2',Adre

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論