aspnet 課程設(shè)計(jì)人事信息管理系統(tǒng)_第1頁
aspnet 課程設(shè)計(jì)人事信息管理系統(tǒng)_第2頁
aspnet 課程設(shè)計(jì)人事信息管理系統(tǒng)_第3頁
aspnet 課程設(shè)計(jì)人事信息管理系統(tǒng)_第4頁
aspnet 課程設(shè)計(jì)人事信息管理系統(tǒng)_第5頁
已閱讀5頁,還剩33頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡介

1、Web數(shù)據(jù)庫程序設(shè)計(jì)語言課程設(shè)計(jì)web數(shù)據(jù)庫程序設(shè)計(jì)語言課程設(shè)計(jì)理 學(xué)院 專業(yè)班級 信息071 學(xué)號 姓名: 題目: 人事信息管理系統(tǒng) 課程設(shè)計(jì)從 2010 年 5 月 25 日起到 2009 年 6 月 15 日1、課程設(shè)計(jì)的內(nèi)容和要求:1)、選題背景:基于當(dāng)今世界信息的迅速發(fā)展,人們對計(jì)算機(jī)的以來程度在不斷的提高,對絕倒多數(shù)的公司來說,有一個(gè)很好的管理系統(tǒng)是非常必要的。2)、設(shè)計(jì)內(nèi)容:開發(fā)基于intranet網(wǎng)絡(luò)上B/S模式的信息管理系統(tǒng),要求能實(shí)現(xiàn)數(shù)據(jù)錄入、數(shù)據(jù)刪除、數(shù)據(jù)修改和數(shù)據(jù)瀏覽以及數(shù)據(jù)查詢等功能。3)、課程設(shè)計(jì)的要求:課程設(shè)計(jì)教學(xué)基本要求:通過課程設(shè)計(jì),要求學(xué)生在指導(dǎo)教師的指導(dǎo)下

2、,完成設(shè)計(jì)課題的全部內(nèi)容,包括:(1)系統(tǒng)分析與數(shù)據(jù)庫設(shè)計(jì)階段1)通過調(diào)查研究,選擇一個(gè)實(shí)際應(yīng)用數(shù)據(jù)庫系統(tǒng)的課題。2)進(jìn)行系統(tǒng)需求分析和系統(tǒng)設(shè)計(jì),寫出系統(tǒng)分析和系統(tǒng)設(shè)計(jì)報(bào)告。3)設(shè)計(jì)數(shù)據(jù)模型并進(jìn)行優(yōu)化,確定數(shù)據(jù)庫結(jié)構(gòu)、功能結(jié)構(gòu)和系統(tǒng)安全性和完整性要求。(2)應(yīng)用程序設(shè)計(jì)階段1)完成數(shù)據(jù)庫定義工作,實(shí)現(xiàn)基于intranet網(wǎng)絡(luò)上B/S模式的信息管理系統(tǒng),要求在客戶端利用IE瀏覽器進(jìn)行數(shù)據(jù)數(shù)據(jù)錄入、修改、刪除、查詢。2)實(shí)現(xiàn)應(yīng)用程序的設(shè)計(jì)、編程、優(yōu)化功能,實(shí)現(xiàn)數(shù)據(jù)庫安全性、數(shù)據(jù)完整性等功能,并針對具體課題問題提出解決方法。(3)系統(tǒng)集成調(diào)試階段對系統(tǒng)的各個(gè)應(yīng)用程序進(jìn)行集成和調(diào)試,進(jìn)一步優(yōu)化系統(tǒng)性能

3、,改善系統(tǒng)用戶界面。2、需求分析: 能夠輸入基本信息、能夠修改以及刪除; 能夠?qū)崿F(xiàn)對信息的瀏覽; 能夠?qū)崿F(xiàn)對信息進(jìn)行查詢;3、系統(tǒng)性能要求: 系統(tǒng)安全、可靠; 功能齊全; 操作方便、界面友好; 易于維護(hù)和擴(kuò)充。4、系統(tǒng)的功能分析:資料維護(hù):系統(tǒng)維護(hù)包括對各種表記錄的修改、刪除、添加等操作。資料維護(hù):對數(shù)據(jù)表中的信息進(jìn)行瀏覽。其它操作:系統(tǒng)封面5、 信息管理系統(tǒng)有: 數(shù)據(jù)查找與瀏覽、數(shù)據(jù)修改、報(bào)表顯示和系統(tǒng)封面構(gòu)成。6、設(shè)備要求每個(gè)學(xué)生一臺(tái)計(jì)算機(jī)。7、系統(tǒng)使用說明書: 7.1:用戶通過輸入自己的用戶名和密碼可以登陸到員工信息登陸界面; 7.2:點(diǎn)擊上面的按鈕可以選擇相應(yīng)的功能模塊,界面上有相應(yīng)的

4、信息提示,可以根據(jù)相應(yīng)的信息進(jìn)行相應(yīng)的操作; 7.3:主要功能: 查詢功能,修改功能,插入功能,刪除功能;用戶可以通過上提示進(jìn)行相應(yīng)的操作; 8、流程圖返回返回返回返回返回返回 用戶登錄界面員工信息功能模塊員工信息查詢功能員工信息修改功能員工信息刪除功能員工信息插入功能員工基本信息查詢員工基本信息查詢運(yùn)行結(jié)果結(jié)束開始9、實(shí)驗(yàn)步驟 9.1首先在web窗體上設(shè)計(jì)登錄界面,登錄界面如下: 在web窗體上設(shè)計(jì)功能選擇模塊如下: 在web窗體上設(shè)計(jì)員工信息查詢界面,包括基本信息的查詢,內(nèi)部信息的查詢: 在web窗體上設(shè)計(jì)員工基本信息查詢界面,包括對一個(gè)員工基本信息的查詢和所有信息的查詢: 在web窗體上

5、設(shè)計(jì)員工內(nèi)部信息查詢界面,可以查詢一個(gè)員工的信息,也可以查詢所有員工的信息:在web窗體上設(shè)計(jì)員工信息錄入界面:在web窗體上設(shè)計(jì)員工信息刪除界面:在web窗體上設(shè)計(jì)員工信息修改界面:9.2下面對以上界面中的功能進(jìn)行測試: 首先在瀏覽器中運(yùn)行,運(yùn)行界面如下:輸入用戶名和密碼: 然后點(diǎn)擊登錄,它就會(huì)跳到選擇功能模塊界面:對查詢員工信息功能進(jìn)行測試,點(diǎn)擊員工信息查詢功能,出現(xiàn)如下界面:點(diǎn)擊查詢員工基本性信息,運(yùn)行界面如下:查詢所有員工的基本信息,點(diǎn)擊查詢所有員工的基本信息,會(huì)出現(xiàn)如下界面:下面對一號員工的信息進(jìn)行查詢,在文本框中輸入01,點(diǎn)擊查詢某一個(gè)員工的基本信息,運(yùn)行界面如下:然后點(diǎn)擊返回,就

6、會(huì)返回到下面的界面上:點(diǎn)擊查詢內(nèi)部信息,其功能包括查所有員工的內(nèi)部信息,某一個(gè)員工的內(nèi)部信息,運(yùn)行界面如下:點(diǎn)擊查詢所有員工的信息,運(yùn)行界面如下:下面查詢某一個(gè)員工的信息,在文本框中輸入02,運(yùn)行界面如下:下面對員工信息修改功能進(jìn)行測試:點(diǎn)擊員工信息修改功能,對01號員工的信息進(jìn)行修改,以前01好員工的姓名叫柴艷紅,現(xiàn)在把他修改成董軍鵬,運(yùn)行界面如下:點(diǎn)擊修改,然后查詢一號員工的信息,查詢?nèi)缦拢赫f明修改成功!下面對刪除員工信息功能進(jìn)行查詢:點(diǎn)擊員工信息刪除功能,刪除一號員工的信息,運(yùn)行界面如下:點(diǎn)擊刪除 ,然后查詢,看01號員工的信息是否被刪除,查詢結(jié)果如下;說明刪除成功!下面對員工信息插入功

7、能進(jìn)行測試,插入23號的一個(gè)員工,運(yùn)行界面如下:然后通過查詢,來看此員工的信息是否插入成功,查詢界面如下:10、Web數(shù)據(jù)庫程序設(shè)計(jì)課程設(shè)計(jì)總結(jié)與收獲 通過這次課程設(shè)計(jì),是我對web數(shù)據(jù)庫程序設(shè)計(jì)語言這門課有了更加深入的了解。這次課程設(shè)計(jì)把我們以前學(xué)習(xí)的比較零散的內(nèi)容聯(lián)系到了一起,可以充分測試一個(gè)人的能力。 這次課程設(shè)計(jì)是有一定難度的,它不僅要求我們要熟練掌握web數(shù)據(jù)庫程序設(shè)計(jì)這本書中的內(nèi)容,還要掌握數(shù)據(jù)庫這本書中的內(nèi)容,可以說是綜合性很強(qiáng)的一次課程設(shè)計(jì)。在做課程設(shè)計(jì)的過程中,遇到了一些問題,在同學(xué)們和老師的幫助下,完成了這次課程設(shè)計(jì)。在做這次課程設(shè)計(jì)的時(shí)候,我感覺到自己有些知識還了解的不是

8、很清楚,在以后的學(xué)習(xí)中,我會(huì)更加注意這方面知識的積累。11、參考文獻(xiàn) 數(shù)據(jù)庫系統(tǒng)概論 高等教育出版社 王珊 ASP.NET網(wǎng)絡(luò)程序?qū)嶋H教程 清華大學(xué)出版社 劉麗萍12、附錄代碼:主界面代碼using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebControls;us

9、ing System.Web.UI.HtmlControls;namespace kechengsheji1/ / WebForm1 的摘要說明。/ public class WebForm1 : System.Web.UI.Pageprotected System.Web.UI.WebControls.Label Label1;protected System.Web.UI.WebControls.Button Button1;protected System.Web.UI.WebControls.TextBox txtb1;protected System.Web.UI.WebContro

10、ls.Label Label2;protected System.Web.UI.WebControls.Label Label3;protected System.Web.UI.WebControls.TextBox txtb2; private void Page_Load(object sender, System.EventArgs e)/ 在此處放置用戶代碼以初始化頁面#region Web 窗體設(shè)計(jì)器生成的代碼override protected void OnInit(EventArgs e)/ CODEGEN: 該調(diào)用是 ASP.NET Web 窗體設(shè)計(jì)器所必需的。/Initia

11、lizeComponent();base.OnInit(e);/ / 設(shè)計(jì)器支持所需的方法 - 不要使用代碼編輯器修改/ 此方法的內(nèi)容。/ private void InitializeComponent() this.Button1.Click += new System.EventHandler(this.Button1_Click);this.Load += new System.EventHandler(this.Page_Load);#endregionprivate void Button1_Click(object sender, System.EventArgs e)if(tx

12、tb1.Text=dong)&(txtb2.Text=dong)Response.Redirect(員工信息功能模塊.aspx);信息查詢界面代碼using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.Htm

13、lControls;namespace kechengsheji1/ / 信息查詢界面 的摘要說明。/ public class 信息查詢界面 : System.Web.UI.Pageprotected System.Web.UI.WebControls.Button Button1;protected System.Web.UI.WebControls.Button Button2;protected System.Web.UI.WebControls.Button Button3;protected System.Web.UI.WebControls.Label Label1;privat

14、e void Page_Load(object sender, System.EventArgs e)/ 在此處放置用戶代碼以初始化頁面#region Web 窗體設(shè)計(jì)器生成的代碼override protected void OnInit(EventArgs e)/ CODEGEN: 該調(diào)用是 ASP.NET Web 窗體設(shè)計(jì)器所必需的。/InitializeComponent();base.OnInit(e);/ / 設(shè)計(jì)器支持所需的方法 - 不要使用代碼編輯器修改/ 此方法的內(nèi)容。/ private void InitializeComponent() this.Button1.Clic

15、k += new System.EventHandler(this.Button1_Click);this.Button2.Click += new System.EventHandler(this.Button2_Click);this.Button3.Click += new System.EventHandler(this.Button3_Click);this.Load += new System.EventHandler(this.Page_Load);#endregionprivate void Button1_Click(object sender, System.EventAr

16、gs e)Response.Redirect(員工基本信息查詢界面.aspx);private void Button2_Click(object sender, System.EventArgs e)Response.Redirect(員工內(nèi)部信息查詢.aspx);private void Button3_Click(object sender, System.EventArgs e)Response.Redirect(員工信息功能模塊.aspx);員工基本信息查詢代碼using System;using System.Collections;using System.ComponentMo

17、del;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;using System.Data.SqlClient;namespace kechengsheji1/ / DE 的摘要說明。/ public class DE : System.Web.UI.Pageprotected System.Data.S

18、qlClient.SqlConnection sqlConnection1;protected System.Web.UI.WebControls.TextBox txtb;protected System.Data.SqlClient.SqlCommand SNO;protected System.Web.UI.WebControls.DataGrid DataGrid1;protected System.Web.UI.WebControls.Label Label1;protected System.Web.UI.WebControls.Label Label2;protected Sys

19、tem.Web.UI.WebControls.Button Button2;protected System.Web.UI.WebControls.Button Button3;protected System.Data.SqlClient.SqlCommand SN;protected System.Web.UI.WebControls.Button Button1;private void Page_Load(object sender, System.EventArgs e)/ 在此處放置用戶代碼以初始化頁面#region Web 窗體設(shè)計(jì)器生成的代碼override protected

20、 void OnInit(EventArgs e)/ CODEGEN: 該調(diào)用是 ASP.NET Web 窗體設(shè)計(jì)器所必需的。/InitializeComponent();base.OnInit(e);/ / 設(shè)計(jì)器支持所需的方法 - 不要使用代碼編輯器修改/ 此方法的內(nèi)容。/ private void InitializeComponent() this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();this.SNO = new System.Data.SqlClient.SqlCommand();this.SN = n

21、ew System.Data.SqlClient.SqlCommand();this.Button1.Click += new System.EventHandler(this.Button1_Click);this.Button2.Click += new System.EventHandler(this.Button2_Click);/ / sqlConnection1/ this.sqlConnection1.ConnectionString = workstation id=WWW-C57451E5CE4;packet size=4096;integrated security=SSP

22、I;data s +ource=WWW-C57451E5CE4;persist security info=False;initial catalog=dong;/ / SNO/ this.SNO.CommandText = SELECT Pno, Pname, Page, Padd FROM 員工信息 WHERE (Pno = Pno);this.SNO.Connection = this.sqlConnection1;this.SNO.Parameters.Add(new System.Data.SqlClient.SqlParameter(Pno, System.Data.SqlDbTy

23、pe.VarChar, 10, Pno);this.Button3.Click += new System.EventHandler(this.Button3_Click);/ / SN/ this.SN.CommandText = SELECT Pno, Pname, Page, Padd, Psex FROM 員工信息;this.SN.Connection = this.sqlConnection1;this.Load += new System.EventHandler(this.Page_Load);#endregionprivate void Button1_Click(object

24、 sender, System.EventArgs e)SNO.ParametersPno.Value =txtb.Text;sqlConnection1.Open();this.DataGrid1.DataSource=SNO.ExecuteReader();this.DataBind();sqlConnection1.Close();private void Button2_Click(object sender, System.EventArgs e) Response.Redirect(員工信息功能模塊.aspx);private void Button3_Click(object s

25、ender, System.EventArgs e)sqlConnection1.Open();this.DataGrid1.DataSource=SN.ExecuteReader();this.DataBind();sqlConnection1.Close();員工內(nèi)部信息查詢代碼using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using

26、System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;namespace kechengsheji1/ / 員工內(nèi)部信息查詢 的摘要說明。/ public class 員工內(nèi)部信息查詢 : System.Web.UI.Pageprotected System.Web.UI.WebControls.Button Button1;protected System.Web.UI.WebControls.DataGrid DataGrid1;protected System.Data.SqlClie

27、nt.SqlConnection sqlConnection1;protected System.Data.SqlClient.SqlCommand SNO;protected System.Web.UI.WebControls.Button Button2;protected System.Web.UI.WebControls.Label Label3;protected System.Web.UI.WebControls.Button Button3;protected System.Data.SqlClient.SqlCommand SNO1;protected System.Web.U

28、I.WebControls.TextBox txtb1;protected System.Web.UI.WebControls.Label Label1;private void Page_Load(object sender, System.EventArgs e)/ 在此處放置用戶代碼以初始化頁面#region Web 窗體設(shè)計(jì)器生成的代碼override protected void OnInit(EventArgs e)/ CODEGEN: 該調(diào)用是 ASP.NET Web 窗體設(shè)計(jì)器所必需的。/InitializeComponent();base.OnInit(e);/ / 設(shè)計(jì)器支

29、持所需的方法 - 不要使用代碼編輯器修改/ 此方法的內(nèi)容。/ private void InitializeComponent() this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();this.SNO = new System.Data.SqlClient.SqlCommand();this.SNO1 = new System.Data.SqlClient.SqlCommand();this.Button1.Click += new System.EventHandler(this.Button1_Click);/ /

30、 sqlConnection1/ this.sqlConnection1.ConnectionString = workstation id=WWW-C57451E5CE4;packet size=4096;integrated security=SSPI;data s +ource=WWW-C57451E5CE4;persist security info=False;initial catalog=dong;/ / SNO/ this.SNO.CommandText = SELECT 員工號, 員工姓名, 員工職務(wù), 員工工資, 員工所在部門, 員工的獎(jiǎng)金, 員工小組組長, 員工工齡, 員

31、工政治面貌 FROM 員工內(nèi)部資料;this.SNO.Connection = this.sqlConnection1;this.Button2.Click += new System.EventHandler(this.Button2_Click);this.Button3.Click += new System.EventHandler(this.Button3_Click);/ / SNO1/ this.SNO1.CommandText = SELECT 員工號, 員工姓名, 員工職務(wù), 員工工資, 員工的獎(jiǎng)金, 員工小組組長, 員工所在部門, 員工工齡, 員工政治面貌 FROM 員工內(nèi)

32、部資料 WHE +RE (員工號 = 員工號);this.SNO1.Connection = this.sqlConnection1;this.SNO1.Parameters.Add(new System.Data.SqlClient.SqlParameter(員工號, System.Data.SqlDbType.VarChar, 10, 員工號);this.Load += new System.EventHandler(this.Page_Load);#endregionprivate void Button1_Click(object sender, System.EventArgs e)

33、sqlConnection1.Open();this.DataGrid1.DataSource=SNO.ExecuteReader();this.DataBind();sqlConnection1.Close();private void Button2_Click(object sender, System.EventArgs e)Response.Redirect(信息查詢界面.aspx private void Button3_Click(object sender, System.EventArgs e)SNO1.Parameters員工號.Value =txtb1.Text;sqlC

34、onnection1.Open();this.DataGrid1.DataSource=SNO1.ExecuteReader();this.DataBind();sqlConnection1.Close();員工功能模塊using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.U

35、I.WebControls;using System.Web.UI.HtmlControls;namespace kechengsheji1/ / 員工信息功能模塊 的摘要說明。/ public class 員工信息功能模塊 : System.Web.UI.Pageprotected System.Web.UI.WebControls.Label Label1;protected System.Web.UI.WebControls.Button Button1;protected System.Web.UI.WebControls.Button Button2;protected System

36、.Web.UI.WebControls.Button Button3;protected System.Web.UI.WebControls.Button Button5;protected System.Web.UI.WebControls.Button Button4;private void Page_Load(object sender, System.EventArgs e)/ 在此處放置用戶代碼以初始化頁面#region Web 窗體設(shè)計(jì)器生成的代碼override protected void OnInit(EventArgs e)/ CODEGEN: 該調(diào)用是 ASP.NET

37、Web 窗體設(shè)計(jì)器所必需的。/InitializeComponent();base.OnInit(e);/ / 設(shè)計(jì)器支持所需的方法 - 不要使用代碼編輯器修改/ 此方法的內(nèi)容。/ private void InitializeComponent() this.Button1.Click += new System.EventHandler(this.Button1_Click);this.Button2.Click += new System.EventHandler(this.Button2_Click);this.Button3.Click += new System.EventHand

38、ler(this.Button3_Click);this.Button4.Click += new System.EventHandler(this.Button4_Click);this.Button5.Click += new System.EventHandler(this.Button5_Click);this.Load += new System.EventHandler(this.Page_Load);#endregionprivate void Button1_Click(object sender, System.EventArgs e) Response.Redirect(信

39、息查詢界面.aspx);private void Button2_Click(object sender, System.EventArgs e) Response.Redirect(員工信息修改界面.aspx);private void Button3_Click(object sender, System.EventArgs e) Response.Redirect(員工信息刪除界面.aspx);private void Button4_Click(object sender, System.EventArgs e) Response.Redirect(員工信息錄入界面.aspx);pri

40、vate void Button5_Click(object sender, System.EventArgs e) Response.Redirect(用戶登錄主界面.aspx);員工信息錄入代碼using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebContro

41、ls;using System.Web.UI.HtmlControls;namespace kechengsheji1/ / 員工信息錄入界面 的摘要說明。/ public class 員工信息錄入界面 : System.Web.UI.Pageprotected System.Web.UI.WebControls.Label Label1;protected System.Web.UI.WebControls.TextBox txtb1;protected System.Web.UI.WebControls.TextBox txtb2;protected System.Web.UI.WebCo

42、ntrols.TextBox txtb3;protected System.Web.UI.WebControls.TextBox txtb4;protected System.Web.UI.WebControls.TextBox txtb5;protected System.Data.SqlClient.SqlConnection sqlConnection1;protected System.Data.SqlClient.SqlCommand SNO;protected System.Web.UI.WebControls.Label Label2;protected System.Web.U

43、I.WebControls.Label Label3;protected System.Web.UI.WebControls.Label Label4;protected System.Web.UI.WebControls.Label Label5;protected System.Web.UI.WebControls.Button Button2;protected System.Web.UI.WebControls.Button Button1;private void Page_Load(object sender, System.EventArgs e)/ 在此處放置用戶代碼以初始化頁

44、面#region Web 窗體設(shè)計(jì)器生成的代碼override protected void OnInit(EventArgs e)/ CODEGEN: 該調(diào)用是 ASP.NET Web 窗體設(shè)計(jì)器所必需的。/InitializeComponent();base.OnInit(e);/ / 設(shè)計(jì)器支持所需的方法 - 不要使用代碼編輯器修改/ 此方法的內(nèi)容。/ private void InitializeComponent() this.sqlConnection1 = new System.Data.SqlClient.SqlConnection();this.SNO = new Syste

45、m.Data.SqlClient.SqlCommand();this.Button1.Click += new System.EventHandler(this.Button1_Click);/ / sqlConnection1/ this.sqlConnection1.ConnectionString = workstation id=WWW-C57451E5CE4;packet size=4096;integrated security=SSPI;data s +ource=WWW-C57451E5CE4;persist security info=False;initial catalo

46、g=dong;/ / SNO/ this.SNO.CommandText = INSERT INTO 員工信息 (Pno, Pname, Page, Padd, Psex) VALUES (Pno, Pname, Page, Pad +d, Psex);this.SNO.Connection = this.sqlConnection1;this.SNO.Parameters.Add(new System.Data.SqlClient.SqlParameter(Pno, System.Data.SqlDbType.VarChar, 10, Pno);this.SNO.Parameters.Add

47、(new System.Data.SqlClient.SqlParameter(Pname, System.Data.SqlDbType.VarChar, 10, Pname);this.SNO.Parameters.Add(new System.Data.SqlClient.SqlParameter(Page, System.Data.SqlDbType.Int, 4, Page);this.SNO.Parameters.Add(new System.Data.SqlClient.SqlParameter(Padd, System.Data.SqlDbType.VarChar, 10, Pa

48、dd);this.SNO.Parameters.Add(new System.Data.SqlClient.SqlParameter(Psex, System.Data.SqlDbType.VarChar, 10, Psex);this.Button2.Click += new System.EventHandler(this.Button2_Click);this.Load += new System.EventHandler(this.Page_Load);#endregionprivate void Button1_Click(object sender, System.EventArg

49、s e)SNO.ParametersPno.Value =txtb1.Text;SNO.ParametersPname.Value = txtb2.Text;SNO.ParametersPage.Value = txtb3.Text;SNO.ParametersPadd.Value =txtb4.Text;SNO.ParametersPsex.Value =txtb5.Text; sqlConnection1.Open(); SNO.ExecuteNonQuery(); sqlConnection1.Close();private void Button2_Click(object sender, System.EventArgs e) Response.Redirect(員工信息功能模塊.aspx);員工信息刪除代碼using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.

溫馨提示

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

評論

0/150

提交評論