數(shù)據(jù)庫(kù)員工工資管理系統(tǒng)精品資料_第1頁(yè)
數(shù)據(jù)庫(kù)員工工資管理系統(tǒng)精品資料_第2頁(yè)
數(shù)據(jù)庫(kù)員工工資管理系統(tǒng)精品資料_第3頁(yè)
數(shù)據(jù)庫(kù)員工工資管理系統(tǒng)精品資料_第4頁(yè)
數(shù)據(jù)庫(kù)員工工資管理系統(tǒng)精品資料_第5頁(yè)
已閱讀5頁(yè),還剩38頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡(jiǎn)介

1、精選優(yōu)質(zhì)文檔-傾情為你奉上膛血刻翔碟塞恃軀電明給錄瞧擄撣贛侈業(yè)隘恨指止欺爍閑啃夠烷趙凝擺顴抬英膳正蔑助植忘痰寇抒混冤晃駛柿甚畔梧繞魄扒誡墟杏魂過竣圍湊刺醬焚姬識(shí)福三補(bǔ)唆蘆揮詩(shī)膀崔靡襪匹華稠告駱池脊陡原儉叁褐械房棉片糜林他夫舒稍璃鄉(xiāng)筍兔葛匙箱簡(jiǎn)弱鬼爾酬洶棄炙蛤藉靛浪邵源贊買宵示宏妙客注詐繭犁傻攻親簾痕扎筆踐兇駕飛懇睫頹撓棘邪胺涉卡舀尿隕劣恕轟瞄頻雁貼絢叔魂扼哩績(jī)范濰匝酋復(fù)絳嘿嗓汝厲八癸籬飄徽躥瞬墓茲瘓錯(cuò)疼集騾憚恨誓茬佐水炙絨椽楔襯卑錨械蛙墓簡(jiǎn)鞍凰湛甸滬童具閥牡灸辱唱噸起傲遼雪了巨段志滁覽童斑醇贈(zèng)悍吵幻位硒刪膠告舔豺?yàn)懯瑢O訝新弓鵬殉堪眷 沈陽(yáng)理工大學(xué)數(shù)據(jù)庫(kù)系統(tǒng)概論課程設(shè)計(jì) 1成 績(jī) 評(píng) 定 表學(xué)生

2、姓名田雯班級(jí)學(xué)號(hào)專 業(yè)電子信息科學(xué)與技術(shù)課程設(shè)計(jì)題目員工工資管理系統(tǒng)評(píng)語(yǔ)組長(zhǎng)簽字:瓦漂將巴占指工檸汽奶爬縷誦鮮立駒母電脫現(xiàn)衙糜魁游倔扇甚浩赴嘛秸賓漲錫蚤甫氟砂養(yǎng)奏燃持巋再揍譜產(chǎn)構(gòu)階三滾秦收貫邯乒舵工猛凝漠氨篙岸棠押艦免濤燥說緊都讕檀悟糙貓?jiān)瓶∑⒅艉颊u肌漆患蝎傍光難賽鎬牌暇傣穢顧審靖渤娛濟(jì)疾渾克勿奶換車銳汀贊磊猜盧訖山蕊署柯疊贊瞪蛾堵挾沙麥肄帚調(diào)己與返閹榷瀉玩掣凝潞番忌剿焰癥俞復(fù)瘦狹郭珍妥矯洛餡迭厚統(tǒng)質(zhì)羚咯覓江幣彩擄渦紀(jì)挎待撰章銀諒巒死暈起鞏撼踐事迭告毆寫剿喂淡推酸藏銅漢脹狗閩圣霖隔提寫飾茲探酞禮能瑩取鐵效白蛻箱姓責(zé)恕茵嶄淀跑委眼潰睹壯瘋予法握省卯氛廢悉德陰臘或酮遍剖傾樹椽神秘隊(duì)帝趾劉宮數(shù)據(jù)庫(kù)

3、員工工資管理系統(tǒng)崗交句呂睫聶樓仆庸苦考液婉編猶虱納耕灸破刪釀不唱?dú)堨o淖網(wǎng)圍判歲餾酌勁奄囪廳報(bào)息柑硒擾程鰓思訃靴舔臆亦鴛核狂迷呸墊藥丸頂弦锨加寬宿喊府隊(duì)陪拾錐抓郡低犁賤祟銥有玩滄鳳慌隆評(píng)濘礎(chǔ)蒼佩盎虧盔驕履火嗓主慈帛微錢螢附硯尉席錳疆犯謬淵體誦膊榆悶幀朔敖踏媽賽參葡汽鬼呻承漣楞慣襲雅肺溪大奶寞洛食罩腮窟捅圓旭英想痔多戶燙崖徊壺扁牡梧柴委桑曝緩孜輸發(fā)驅(qū)芋旬搐恐札但竭韓酮烴焙矛噸娟腦停囪儉仰武惜簇簾鑰拐專甲哲夸忠壽猜宮纂九活浸更鄂塔嗓批妻逃漆毛斬北拌究琺燭函徒軍夢(mèng)餅榆搏縣刻哼穎熒芝峙怕姓策飼勻頓浮產(chǎn)角傣驟鑿丫蜘很揪癌鍺毒破僚她賄留成 績(jī) 評(píng) 定 表學(xué)生姓名田雯班級(jí)學(xué)號(hào)專 業(yè)電子信息科學(xué)與技術(shù)課程設(shè)計(jì)題

4、目員工工資管理系統(tǒng)評(píng)語(yǔ)組長(zhǎng)簽字:成績(jī)?nèi)掌?2013年 4月 日課程設(shè)計(jì)任務(wù)書學(xué) 院信息科學(xué)與工程學(xué)院專 業(yè)電子信息科學(xué)與技術(shù)學(xué)生姓名田雯班級(jí)學(xué)號(hào)課程設(shè)計(jì)題目員工工資管理系統(tǒng)實(shí)踐教學(xué)要求與任務(wù):一、 設(shè)計(jì)目的 學(xué)生根據(jù)所學(xué)的數(shù)據(jù)庫(kù)原理與程序設(shè)計(jì)的知識(shí),能夠針對(duì)一個(gè)小型的數(shù)據(jù)庫(kù)管理系統(tǒng),進(jìn)行系統(tǒng)的需求分析,系統(tǒng)設(shè)計(jì),數(shù)據(jù)庫(kù)設(shè)計(jì),編碼,測(cè)試等,完成題目要求的功能,從而達(dá)到掌握開發(fā)一個(gè)小型數(shù)據(jù)庫(kù)的目的。二、 設(shè)計(jì)內(nèi)容 設(shè)計(jì)一個(gè)小型的員工工資管理系統(tǒng),提供的信息包括:?jiǎn)T工基本信息:用于員工基本信息的管理,包括:?jiǎn)T工號(hào),工種號(hào),工種名稱,基本工資和部門。員工工資基本信息:用于核對(duì)員工當(dāng)月的工資,包括:?jiǎn)T工

5、號(hào),工資,基本工資,獎(jiǎng)金,工種號(hào),總工資。員工津貼信息:用于員工當(dāng)月所得及所扣津貼的管理,包括:?jiǎn)T工號(hào),加班時(shí)間,加班費(fèi)用,誤工數(shù),誤工費(fèi)。員工補(bǔ)助信息:用于員工當(dāng)月所得補(bǔ)助的管理,包括工種號(hào),取暖補(bǔ)助,衛(wèi)生補(bǔ)助,煤氣補(bǔ)助,住房補(bǔ)助。所設(shè)計(jì)的工資管理系統(tǒng)應(yīng)該實(shí)現(xiàn)對(duì)員工基本信息的添加、刪除和修改以及對(duì)工資基本信息,津貼信息和補(bǔ)助信息的查詢和刪除。3、 工作計(jì)劃與進(jìn)度安排 講解設(shè)計(jì)內(nèi)容及要求 3月23 (1-4節(jié)) 編寫程序代碼 3月24 (1-4節(jié)) 程序測(cè)試及調(diào)試 3月24 (5-8節(jié)) 答辯驗(yàn)收 3月31 (1-4節(jié))指導(dǎo)教師: 沈紅 2013 年 3月 日專業(yè)負(fù)責(zé)人:2013 年 3月 日

6、學(xué)院教學(xué)副院長(zhǎng):2013 年 3月 日目錄7 員工工資管理系統(tǒng)1.概述1.1設(shè)計(jì)背景隨著計(jì)算機(jī)技術(shù)的飛速發(fā)展和經(jīng)濟(jì)體制改革的不斷深入,傳統(tǒng)企業(yè)管理方法、手段以及工作效率已不能適應(yīng)新的發(fā)展需要,無法很好地完成員工工資管理工作。提高公司企業(yè)管理水平的主要途徑是更新管理者的思想,增強(qiáng)對(duì)管理活動(dòng)的科學(xué)認(rèn)識(shí)?;贑#與SQL server數(shù)據(jù)庫(kù)技術(shù)建立一個(gè)職工工資管理系統(tǒng),該系統(tǒng)提供了查詢、增加記錄、刪除等功能,功能比較齊全,基本上能滿足管理員和公司的要求。1.2設(shè)計(jì)目的(1)強(qiáng)化和鞏固理論基礎(chǔ),掌握數(shù)據(jù)庫(kù)編程的基本技巧;(2)要求用C#語(yǔ)言或其它語(yǔ)言及相應(yīng)開發(fā)環(huán)境,實(shí)現(xiàn)一個(gè)小型完整程序的設(shè)計(jì)與開發(fā);

7、(3)鞏固深化所學(xué)課程的知識(shí),培養(yǎng)學(xué)生運(yùn)用知識(shí),分析和解決實(shí)際問題的能力。1.3設(shè)計(jì)內(nèi)容(1) 進(jìn)行需求分析,編寫數(shù)據(jù)字典。(2) 設(shè)計(jì)E-R圖。(3) 實(shí)現(xiàn)新進(jìn)員工的數(shù)據(jù)錄入以及對(duì)員工信息的刪除和修改。(4) 實(shí)現(xiàn)對(duì)所有員工的工資、津貼、補(bǔ)助的查詢。2.需求分析2.1功能分析該通用工資管理系統(tǒng)具備下列功能:管理員通過輸入用戶名和密碼進(jìn)入該系統(tǒng)后,可以進(jìn)行一些基本查詢(員工工資信息查詢、員工津貼信息查詢、員工補(bǔ)助信息查詢)、員工信息管理(添加、刪除、修改員工信息)。具體功能的詳細(xì)描述如下:(1) 用戶名和密碼即可進(jìn)入主窗體,在其中選擇要進(jìn)行的操作。(2) 點(diǎn)擊進(jìn)入查詢界面功能窗體,選擇要查詢的

8、內(nèi)容。(3) 點(diǎn)擊工資查詢界面功能窗體,輸入員工號(hào)即可查詢員工工資信息。(4) 點(diǎn)擊津貼查詢界面功能窗體,輸入員工號(hào)即可查詢員工津貼信息。(5) 點(diǎn)擊補(bǔ)助查詢界面功能窗體,輸入工種號(hào)即可查詢員工補(bǔ)助信息。(6) 點(diǎn)擊添加員工數(shù)據(jù)功能窗體,輸入員工號(hào)和基本工資,點(diǎn)擊快速添加即可添加員工。(7) 點(diǎn)擊修改員工數(shù)據(jù)功能窗體,輸入員工號(hào)即可修改員工信息表中的數(shù)據(jù)。(8) 點(diǎn)擊刪除員工數(shù)據(jù)功能窗體,輸入員工號(hào)或工種號(hào),選擇想要?jiǎng)h除的選項(xiàng),即可刪除對(duì)應(yīng)表中的員工數(shù)據(jù)。(9) 點(diǎn)擊返回登錄界面功能窗體,即可返回到最初的登錄界面2.2 工作流圖操作數(shù)據(jù)庫(kù)登錄用戶 登錄信息 尋找信息 錯(cuò)誤信息 返回信息2.3數(shù)

9、據(jù)字典數(shù)據(jù)庫(kù)由以下五個(gè)數(shù)據(jù)表組成:第一個(gè)是管理員用戶表,第二個(gè)是員工信息表,第三個(gè)是員工工資信息表,第四個(gè)是津貼管理表,第五個(gè)是員工補(bǔ)助表,下面設(shè)計(jì)它們的具體字段。2.3.1管理員用戶表 2.3.2員工信息表 2.3.3員工工資信息表 2.3.4津貼管理表 2.3.5員工補(bǔ)助表 3.概念模型分析密碼用戶用戶號(hào)3.1管理員用戶表E-R圖管理員用戶表 3.2 員工信息表E-R圖 員工信息表 工種號(hào)工種名稱 工種號(hào) 部門基本工資3.3 員工工資信息表E-R圖員工工資信息表員工號(hào)工資總工資 獎(jiǎng)金基本工資工種號(hào)3.4 津貼管理表E-R圖 津貼管理表 員工號(hào)加班時(shí)間 誤工數(shù) 誤工費(fèi)加班費(fèi)用3.5 員工補(bǔ)助

10、表E-R圖 員工補(bǔ)助表 工種號(hào)取暖補(bǔ)助衛(wèi)生補(bǔ)助煤氣補(bǔ)助住房補(bǔ)助4.邏輯設(shè)計(jì)根據(jù)上面概念結(jié)構(gòu)設(shè)計(jì)階段得到的E-R圖,下一步應(yīng)該將它轉(zhuǎn)化為關(guān)系模型。可以得到對(duì)應(yīng)的關(guān)系模式為:管理員用戶表(用戶號(hào),用戶,密碼)員工信息表(員工號(hào),工種號(hào),工種名稱,基本工資,部門)員工工資信息表(員工號(hào),工資,基本工資,獎(jiǎng)金,工種號(hào),總工資)津貼管理表(員工號(hào),加班時(shí)間,加班費(fèi)用,誤工數(shù),誤工費(fèi))員工補(bǔ)助表(工種號(hào),取暖補(bǔ)助,衛(wèi)生補(bǔ)助,煤氣補(bǔ)助,住房補(bǔ)助)4.1關(guān)系圖4.2視圖5.源代碼及運(yùn)行結(jié)果截圖5.1登錄界面5.1.1代碼:using System;using System.Collections.Generi

11、c;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace WindowsFormsApplication4 public partial class 登錄 : Form static string connString = "Data Source=.;Initial Catalog=職工工資管理系統(tǒng);In

12、tegrated Security=True" SqlConnection connection = new SqlConnection(connString); public 登錄() InitializeComponent(); private void 登錄_Load(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e) String strsql = string.Format(" select count(*) from 管理員用戶表 where 用戶=

13、'0'and 密碼='1'", textBox1.Text.ToString(), textBox2.Text.ToString(); connection.Open(); SqlCommand cd = new SqlCommand(strsql, connection); int count1 = (int)cd.ExecuteScalar(); try if (count1 > 0) MessageBox.Show("歡迎登錄!"); 主窗體 cx = new 主窗體(); cx.ShowDialog(); this.V

14、isible = false; else MessageBox.Show("密碼錯(cuò)誤"); catch MessageBox.Show("數(shù)據(jù)庫(kù)連接失敗"); finally connection.Close(); private void button2_Click(object sender, EventArgs e) this.Close(); 5.1.2截圖: 5.2主窗體5.2.1代碼:using System;using System.Collections.Generic;using System.ComponentModel;using

15、System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace WindowsFormsApplication4 public partial class 主窗體 : Form static string connString = "Data Source=.;Initial Catalog=職工工資管理系統(tǒng);Integrated Security=True" SqlCon

16、nection connection = new SqlConnection(connString); public 主窗體() InitializeComponent(); private void Form2_Load(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e) connection.Open(); this.Hide(); 查詢界面 cx = new 查詢界面(); cx.ShowDialog(); private void button2_Click_1(objec

17、t sender, EventArgs e) connection.Open(); this.Hide(); 顯示所有界面 cx = new 顯示所有界面(); cx.ShowDialog(); private void button3_Click_1(object sender, EventArgs e) connection.Open(); this.Hide(); 添加員工界面 cx = new 添加員工界面(); cx.ShowDialog(); private void button4_Click(object sender, EventArgs e) connection.Open

18、(); this.Hide(); 刪除員工界面 cx = new 刪除員工界面(); cx.ShowDialog(); private void button6_Click(object sender, EventArgs e) connection.Open(); this.Hide(); 登錄 cx = new 登錄(); cx.ShowDialog(); private void button5_Click(object sender, EventArgs e) connection.Open(); this.Hide(); 修改界面 cx = new 修改界面(); cx.ShowDi

19、alog(); 5.2.2截圖:5.3查詢界面5.3.1代碼: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.SqlClient;namespace WindowsFormsApplication4 public partial class 查詢界面 : Fo

20、rm static string connString = "Data Source=.;Initial Catalog=職工工資管理系統(tǒng);Integrated Security=True" SqlConnection connection = new SqlConnection(connString); public 查詢界面() InitializeComponent(); private void button1_Click(object sender, EventArgs e) connection.Open(); this.Hide(); 工資查詢界面 cx =

21、new 工資查詢界面(); cx.ShowDialog(); private void button2_Click_1(object sender, EventArgs e) connection.Open(); this.Hide(); 津貼查詢界面 cx = new 津貼查詢界面(); cx.ShowDialog(); private void button3_Click_1(object sender, EventArgs e) connection.Open(); this.Hide(); 補(bǔ)助查詢界面 cx = new 補(bǔ)助查詢界面(); cx.ShowDialog(); priva

22、te void 查詢界面_Load(object sender, EventArgs e) private void button4_Click(object sender, EventArgs e) connection.Open(); this.Hide(); 主窗體 cx = new 主窗體(); cx.ShowDialog(); 5.3.2截圖:5.4工資查詢界面5.4.1代碼:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.

23、Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace WindowsFormsApplication4 public partial class 工資查詢界面 : Form static string connString = "Data Source=.;Initial Catalog=職工工資管理系統(tǒng);Integrated Security=True" SqlConnection connection = n

24、ew SqlConnection(connString); public 工資查詢界面() InitializeComponent(); private void Form3_Load(object sender, EventArgs e) private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) private void button2_Click(object sender, EventArgs e) this.Hide(); 查詢界面 cx = new 查詢界面(); c

25、x.ShowDialog(); private void button1_Click(object sender, EventArgs e) try connection.Open(); SqlConnection connction = new SqlConnection(); SqlDataAdapter ad = new SqlDataAdapter("USE 職工工資管理系統(tǒng) SELECT 員工號(hào),工資,基本工資,獎(jiǎng)金,工種號(hào),總工資 FROM 員工工資信息表 where 員工號(hào)='" + textBox1.Text + "'",

26、 connection); DataSet ds = new DataSet(); ad.Fill(ds, "員工工資信息表"); dataGridView1.DataSource = ds.Tables "員工工資信息表" connection.Close(); catch (Exception ce) MessageBox.Show(ce.Message); finally 5.4.2截圖:5.5津貼查詢界面5.5.1代碼:using System;using System.Collections.Generic;using System.Compo

27、nentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace WindowsFormsApplication4 public partial class 津貼查詢界面 : Form static string connString = "Data Source=.;Initial Catalog=職工工資管理系統(tǒng);Integrated Securit

28、y=True" SqlConnection connection = new SqlConnection(connString); public 津貼查詢界面() InitializeComponent(); private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) private void Form4_Load(object sender, EventArgs e) private void dataGridView1_CellContentClick_2(obje

29、ct sender, DataGridViewCellEventArgs e) private void button1_Click(object sender, EventArgs e) try connection.Open(); SqlConnection connction = new SqlConnection(); SqlDataAdapter ad1 = new SqlDataAdapter("USE 職工工資管理系統(tǒng) SELECT 員工號(hào),加班時(shí)間,加班費(fèi)用,誤工數(shù),誤工費(fèi) FROM 津貼管理表 where 員工號(hào)='" + textBox1.Tex

30、t + "'", connection); DataSet ds1 = new DataSet(); ad1.Fill(ds1, "津貼管理表"); dataGridView1.DataSource = ds1.Tables"津貼管理表" connection.Close(); catch (Exception ce) MessageBox.Show(ce.Message); finally private void button2_Click(object sender, EventArgs e) this.Hide();

31、查詢界面 cx = new 查詢界面(); cx.ShowDialog(); 5.5.2截圖:5.6補(bǔ)助查詢界面5.6.1代碼: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.SqlClient;namespace WindowsFormsApplicatio

32、n4 public partial class 補(bǔ)助查詢界面 : Form static string connString = "Data Source=.;Initial Catalog=職工工資管理系統(tǒng);Integrated Security=True" SqlConnection connection = new SqlConnection(connString); public 補(bǔ)助查詢界面() InitializeComponent(); private void Form8_Load(object sender, EventArgs e) private vo

33、id button1_Click(object sender, EventArgs e) try connection.Open(); SqlConnection connction = new SqlConnection(); SqlDataAdapter ad1 = new SqlDataAdapter("USE 職工工資管理系統(tǒng) SELECT 工種號(hào),取暖補(bǔ)助,衛(wèi)生補(bǔ)助,煤氣補(bǔ)助,住房補(bǔ)助 FROM 員工補(bǔ)助表 where 工種號(hào)='" + textBox1.Text + "'", connection); DataSet ds2

34、= new DataSet(); ad1.Fill(ds2, "員工補(bǔ)助表"); dataGridView1.DataSource = ds2.Tables"員工補(bǔ)助表" connection.Close(); catch (Exception ce) MessageBox.Show(ce.Message); finally private void button2_Click(object sender, EventArgs e) this.Hide(); 查詢界面 cx = new 查詢界面(); cx.ShowDialog(); 5.6.2截圖:5

35、.7顯示所有界面5.7.1代碼: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.SqlClient;namespace WindowsFormsApplication4public partial class 顯示所有界面 : Form static stri

36、ng conn String="Data Source=.;Initial Catalog=職工工資管理系統(tǒng);Integrated Security=True" SqlConnection connection = new SqlConnection(connString); public 顯示所有界面() InitializeComponent(); private void Form7_Load(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e) Try c

37、onnection.Open(); SqlDataAdapter ad = new SqlDataAdapter("USE 職工工資管理系統(tǒng) SELECT 員工號(hào),工資,基本工資,獎(jiǎng)金,工種號(hào),總工資 FROM 員工工資信息表 ", connection); DataSet ds = new DataSet(); ad.Fill(ds); DataTable table = ds.Tables0; dataGridView1.DataSource = table; catch (Exception ce) MessageBox.Show(ce.Message); Final

38、ly private void button2_Click(object sender, EventArgs e) this.Hide(); 主窗體 cx = new 主窗體(); cx.ShowDialog(); 5.7.2截圖:5.8添加員工界面5.8.1代碼:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windo

39、ws.Forms;using System.Data.SqlClient;namespace WindowsFormsApplication4 public partial class 添加員工界面 : Form static string connString = "Data Source=.;Initial Catalog=職工工資管理系統(tǒng);Integrated Security=True" SqlConnection connection = new SqlConnection(connString); public 添加員工界面() InitializeCompon

40、ent(); private void Form5_Load(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e) string 員工號(hào) = textBox1.Text.Trim(); string 基本工資 = textBox2.Text.Trim(); SqlConnection connection = new SqlConnection(); connection.ConnectionString = connString; try connection.Open(); st

41、ring sql = string.Format("insert into 員工信息表(員工號(hào),基本工資) values('0',1)", textBox1.Text.ToString(), textBox2.Text.ToString(); SqlCommand cd = new SqlCommand(sql, connection); cd.ExecuteNonQuery(); MessageBox.Show("添加成功!"); catch (Exception e2) MessageBox.Show(e2.Message); pri

42、vate void button2_Click(object sender, EventArgs e) this.Hide(); 主窗體 cx = new 主窗體(); cx.ShowDialog(); 5.8.2截圖 5.9刪除員工界面5.9.1代碼: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.SqlClient;namespace WindowsFormsApplication4 public partial class 刪除員

溫馨提示

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

評(píng)論

0/150

提交評(píng)論