工資管理系統(tǒng)C_數(shù)據(jù)庫課程設(shè)計(jì)_第1頁
工資管理系統(tǒng)C_數(shù)據(jù)庫課程設(shè)計(jì)_第2頁
工資管理系統(tǒng)C_數(shù)據(jù)庫課程設(shè)計(jì)_第3頁
工資管理系統(tǒng)C_數(shù)據(jù)庫課程設(shè)計(jì)_第4頁
工資管理系統(tǒng)C_數(shù)據(jù)庫課程設(shè)計(jì)_第5頁
已閱讀5頁,還剩20頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡介

1、更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要數(shù)據(jù)庫課程設(shè)計(jì)數(shù)據(jù)庫課程設(shè)計(jì)設(shè)計(jì)題目:設(shè)計(jì)題目: 工資管理系統(tǒng)工資管理系統(tǒng) 班班 級(jí):級(jí): bx0901 學(xué)學(xué) 號(hào):號(hào): 姓姓 名:名: 更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要目錄目錄一 緒論3二 需求分析3三 概要設(shè)計(jì)4四 物理設(shè)計(jì)5五 詳細(xì)設(shè)計(jì)6六 調(diào)試分析9七 小結(jié)更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要16八 參考文獻(xiàn)16 一、緒論一、緒

2、論隨著計(jì)算機(jī)技術(shù)的飛速發(fā)展和經(jīng)濟(jì)體制改革的不斷深入,傳統(tǒng)企業(yè)管理方法、手段以及工作效率已不能適應(yīng)新的發(fā)展需要,無法很好地完成員工工資管理工作。提高公司企業(yè)管理水平的主要途徑是更新管理者的思想,增強(qiáng)對管理活動(dòng)的科學(xué)認(rèn)識(shí)。基于 c#與 sql server 數(shù)據(jù)庫技術(shù)建立一個(gè)通用工資管理系統(tǒng),該系統(tǒng)為提供了查詢、增加記錄、刪除等功能,功能比較的齊全,并對工資進(jìn)行了統(tǒng)計(jì)如津貼管理、報(bào)表統(tǒng)計(jì)等?;旧夏軡M足管理員和公司的要求。此次數(shù)據(jù)庫課程設(shè)計(jì)的主要設(shè)計(jì)如下:原理分析、程序設(shè)計(jì)過程、程序?qū)崿F(xiàn)和程序調(diào)試以及數(shù)據(jù)庫的設(shè)計(jì)。需求分析、概要結(jié)構(gòu)設(shè)計(jì)、邏輯結(jié)構(gòu)設(shè)計(jì)、物理結(jié)構(gòu)設(shè)計(jì)和數(shù)據(jù)庫的實(shí)施更多相關(guān)參考論文設(shè)計(jì)

3、文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要和維護(hù)。主要包括三大功能模塊:1進(jìn)入界面設(shè)計(jì)。2員工管理界面設(shè)計(jì)。二、二、 需求分析需求分析 功能需求分析:該通用工資管理系統(tǒng)具備下列功能:管理員通過輸入用戶名和密碼進(jìn)下該系統(tǒng)后,可以進(jìn)行一些基本查詢(員工信息查詢、部門領(lǐng)導(dǎo)信息查詢、工資獎(jiǎng)金信息查詢) 、工資管理(基本工資及津貼獎(jiǎng)金設(shè)定、計(jì)算總工資、津貼管理、加班工資管理) ;通過輸入密碼,可以進(jìn)行查詢員工的數(shù)據(jù)(工資,獎(jiǎng)金津貼,加班情況) 。具體功能的詳細(xì)描述如下1用戶名和密碼即可進(jìn)入 工資管理功能窗體,在其中輸入員工的相關(guān)信息, 按查詢就可查找信息。

4、2點(diǎn)擊工資查詢界面功能窗體,輸入員工號(hào)即可查詢員工工資信息。3點(diǎn)擊津貼查詢界面功能窗體,輸入員工號(hào)即可查詢員工津貼信息。4點(diǎn)擊添加員工功能窗體,輸入員工號(hào),點(diǎn)擊快速添加即可添加員工。5點(diǎn)擊刪除員工功能窗體,輸入員工號(hào),即可刪除員工。數(shù)據(jù)流需求分析: 登陸信息 返回信息 數(shù)據(jù)庫 錯(cuò)誤信息 尋找信息 數(shù)據(jù)庫需求分析數(shù)據(jù)流圖三、概要設(shè)計(jì)三、概要設(shè)計(jì)根據(jù)需求分析階段得到的功能需求,管理員、員工通過輸入用戶名號(hào)和密碼進(jìn)下該系統(tǒng)后,可以進(jìn)行一些基本查詢(員工工資信息查詢、津貼信息查詢) 、還用 戶登 錄操 作更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661

5、508 索要可以進(jìn)行員工刪除和添加員工的操作,員工通過登錄并輸入密碼,可以進(jìn)行查詢自己的數(shù)據(jù)(工資,津貼) 。 模塊功能大概可以分為如下 5 個(gè)方面:這幾個(gè)模塊工資管理、添加和刪除員工,登陸、退出。工資管理包括基本工資查詢、津貼查詢,添加員工、刪除員工等。綜上所述,得到客戶端功能模塊圖如下圖所示。 四、物理設(shè)計(jì)四、物理設(shè)計(jì)1. 選擇登陸 則會(huì)進(jìn)入相應(yīng)登陸界面。 2. 選擇工資查詢 津貼查詢 添加員工刪除員工顯示所有菜單命令3. 選擇工資查詢界面菜單命令即可進(jìn)入 工資查詢功能窗體。4. 選擇津貼查詢界面 菜單命令即可進(jìn)入 津貼查詢功能窗體。5. 選擇添加員工 菜單命令即可進(jìn)入 添加員工功能窗體。

6、6. 選擇刪除員工 菜單命令即可進(jìn)入 刪除員工功能窗體。7. 選擇返回將返回整個(gè)系統(tǒng)。五、詳細(xì)設(shè)計(jì)五、詳細(xì)設(shè)計(jì) (1) 數(shù)據(jù)庫的 e-r 圖及合并部分視圖生成 e-r 圖員工信息 e-r 圖:登陸工資查詢津貼查詢添加員工刪除員工顯示界面更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要worker基本工資工種號(hào) 部門 年齡 工種名稱用戶名性別員工工資信息 e-r 圖: salary工資基本工資獎(jiǎng)金 員工號(hào)總工資年月管理員用戶 e-r 圖:更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661

7、508 索要 useman 用戶 用戶號(hào) 密碼津貼管理 e-r 圖: jintie 員工號(hào) 加班費(fèi)用 誤工數(shù) 誤工費(fèi) 加班時(shí)間(2) 數(shù)據(jù)庫結(jié)構(gòu)設(shè)計(jì)根據(jù)上面概念結(jié)構(gòu)設(shè)計(jì)階段得到的 e-r 圖,下一步應(yīng)該將它轉(zhuǎn)化為關(guān)系模更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要型??梢缘玫綄?yīng)的關(guān)系模式為:worker(工種號(hào),基本工資,工種名稱,部門,用戶名,性別,年齡)salary(工資,員工號(hào),基本工資,獎(jiǎng)金,年月,總工資)usemen(用戶號(hào),用戶,密碼)jintie(員工號(hào),加班時(shí)間,加班費(fèi)用,誤工數(shù),誤工費(fèi))數(shù)據(jù)庫表的建立:(sql

8、 語句及截圖) 語句如下:create table worker ( 工種號(hào) nchar(10) primary key,工種名稱 nchar(16),基本工資 int,部門 nchar(16), 用戶名 nchar(16), 性別 char(4) check(性別 in(男,女),年齡 int);create table salary( 員工號(hào) nchar(10) primary key,工資 int,基本工資 int,獎(jiǎng)金 int, 總工資 int,年月 smalldatime)create table usemen( 用戶號(hào) nchar(10) primary key,用戶 int,,密

9、碼 int,)六、調(diào)試分析六、調(diào)試分析更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要(1)數(shù)據(jù)庫的表的建立與實(shí)現(xiàn)workwork 表的建立:表的建立:salarysalary 表的建立:表的建立:更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要usemenusemen 表的建立:jintiejintie 表的建立:更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要1. 數(shù)據(jù)庫的運(yùn)行和截圖:登錄界面截圖,這里輸入

10、:登錄后:更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要查詢工資界面:津貼查詢界面:更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要添加員工界面:刪除員工界面:更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要顯示所有信息:(2)調(diào)試與運(yùn)行程序分析及存在的主要問題在此次課程設(shè)計(jì)中的主要數(shù)據(jù)庫部分為數(shù)據(jù)庫的連接部分,該部分直接影響到數(shù)據(jù)庫與應(yīng)用程序的接口實(shí)現(xiàn),而且必須注意數(shù)據(jù)庫的名稱與連接數(shù)據(jù)庫是取的名稱一致。下

11、面是連接數(shù)據(jù)庫部分的代碼:更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要1.1. 連接數(shù)據(jù)庫連接數(shù)據(jù)庫c#c#語言代碼如下:語言代碼如下:界面:界面:namespace login public partial class login : form static string strconn = server=.sqlexpress;database=工資查詢系統(tǒng);integrated security=true; static sqlconnection conn = new sqlconnection(strconn); pu

12、blic login() initializecomponent(); private void button1_click(object sender, eventargs e) string strsql = use 工資查詢系統(tǒng) select * from userman where 用戶= + textbox1.text + and 密碼= + textbox2.text + ; try conn.open(); sqlcommand com = new sqlcommand(strsql, conn); if (com.executescalar() != null) this.hi

13、de(); chaxunjiemian cx = new chaxunjiemian(); cx.showdialog(); else messagebox.show(密碼錯(cuò)誤!); catch (exception ce) finally conn.close(); 更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要 private void button2_click(object sender, eventargs e) this.close(); private void textbox1_textchanged(object

14、 sender, eventargs e) 添加員工:添加員工:namespace login public partial class tianjiayuangong : form string strcn = server=.sqlexpress;database=工資查詢系統(tǒng);integrated security=true; public tianjiayuangong() initializecomponent(); private void button1_click_1(object sender, eventargs e) try /string kind = ; char y

15、g = new char(); float jbgz = new float(); string 員工號(hào) = textbox1.text.trim(); string 基本工資 = textbox2.text.trim(); sqlconnection conn = new sqlconnection(); conn.connectionstring = strcn; conn.open();更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要 sqldataadapter ad = new sqldataadapter(use 工資查

16、詢系統(tǒng) select 基本工資,員工號(hào),獎(jiǎng)金工資,總工資 from salary where 員工號(hào)= + textbox1.text + , conn); sqlcommand cmd1 = new sqlcommand(select * from salary, conn); sqldataadapter sda1 = new sqldataadapter(); sda1.selectcommand = cmd1; dataset ds1 = new dataset(); sda1.fill(ds1, salary); / if (ds1.tablesfl.rows00 = null) /

17、loan = 0.0f; jbgz = float.parse(ds1.tablessalary.rows81.tostring() - float.parse(ds1.tablessalary.rows80.tostring(); cmd1.commandtext = insert into salary(員工號(hào),基本工資) values( + 員工號(hào) + , + 基本工資 + ); sda1.insertcommand = cmd1; sda1.fill(ds1, salary); conn.close(); messagebox.show(添加成功!); catch (exception

18、 e2) messagebox.show(e2.message); private void textbox1_textchanged(object sender, eventargs e) private void textbox2_textchanged(object sender, eventargs e) private void button2_click(object sender, eventargs e) this.hide(); chaxunjiemian cx = new chaxunjiemian(); cx.showdialog(); 更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問

19、 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要 查詢工資:查詢工資:namespace login public partial class chaxungongzi : form string strcn = server=.sqlexpress;database=工資查詢系統(tǒng);integrated security=true; public chaxungongzi() initializecomponent(); private void button1_click(object sender, eventargs e) try sqlconnection

20、conn = new sqlconnection(); conn.connectionstring = strcn; conn.open(); sqldataadapter ad = new sqldataadapter(use 工資查詢系統(tǒng) select 基本工資,員工號(hào),獎(jiǎng)金,工資,總工資 from salary where 員工號(hào)=+textbox1.text+,conn); dataset ds = new dataset(); ad.fill(ds, student); datatable table = ds.tables0; datagridview1.datasource =

21、table; catch (exception ce) messagebox.show(ce.message); finally private void button2_click(object sender, eventargs e) this.hide (); chaxunjiemian cx = new chaxunjiemian(); cx.showdialog();更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要 查詢界面:查詢界面:namespace login public partial class chaxunj

22、iemian : form static string strconn = server=.sqlexpress;database=工資查詢系統(tǒng);integrated security=true; static sqlconnection conn = new sqlconnection(strconn); public chaxunjiemian() initializecomponent(); private void button1_click(object sender, eventargs e) conn.open(); this.hide(); chaxungongzi cx =

23、new chaxungongzi(); cx.showdialog(); private void button2_click(object sender, eventargs e) conn.open(); this.hide(); jintiechaxun cx = new jintiechaxun(); cx.showdialog(); private void button3_click(object sender, eventargs e) conn.open();更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要 this

24、.hide(); tianjiayuangong cx = new tianjiayuangong(); cx.showdialog(); private void button4_click(object sender, eventargs e) conn.open(); this.hide(); shanchuyuangong cx = new shanchuyuangong(); cx.showdialog(); private void button5_click(object sender, eventargs e) conn.open(); this.hide(); xianshi

25、suoyou cx = new xianshisuoyou(); cx.showdialog(); 津貼查詢:津貼查詢:namespace login public partial class jintiechaxun : form string strcn = server=.sqlexpress;database=工資查詢系統(tǒng);integrated security=true; public jintiechaxun() initializecomponent(); private void button1_click_1(object sender, eventargs e) try s

26、qlconnection conn = new sqlconnection();更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要 conn.connectionstring = strcn; conn.open(); sqldataadapter ad1 = new sqldataadapter(use 工資查詢系統(tǒng) select 員工號(hào),加班時(shí)間,加班費(fèi)用,誤工數(shù),誤工費(fèi) from jintie where 員工號(hào)= + textbox1.text + , conn); dataset ds1 = new dataset(); a

27、d1.fill(ds1, student2); datatable table1 = ds1.tables0; datagridview1.datasource = table1; catch (exception ce) messagebox.show(ce.message); finally private void button2_click(object sender, eventargs e) this.hide(); chaxunjiemian cx = new chaxunjiemian(); cx.showdialog(); 刪除員工界面:刪除員工界面:namespace lo

28、gin public partial class shanchuyuangong : form string strcn = server=.sqlexpress;database=工資查詢系統(tǒng);integrated security=true; public shanchuyuangong() initializecomponent(); private void button1_click(object sender, eventargs e) try sqlconnection conn = new sqlconnection();更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文

29、件以及仿真建模文件,資料請聯(lián)系 68661508 索要 conn.connectionstring = server=(local);uid=sa;pwddatabase=工資查詢系統(tǒng); sqlcommand cmd = new sqlcommand(); cmd.commandtext = delete from salary where 員工號(hào)= + this.textbox1.text + ; /根據(jù)學(xué)生的編號(hào)來刪除相應(yīng)的學(xué)生的信息 cmd.connection = conn; conn.open();/打開連接 cmd.executenonquery();/用

30、executenonquery()的方法來執(zhí)行查詢語句 conn.close();/關(guān)閉連接 catch (exception ce) messagebox.show(ce.message); finally private void textbox1_textchanged(object sender, eventargs e) private void button2_click(object sender, eventargs e) try sqlconnection conn = new sqlconnection(); conn.connectionstring = server=(

31、local);uid=sa;pwddatabase=工資查詢系統(tǒng); sqlcommand cmd = new sqlcommand(); cmd.commandtext = delete from jintie where 員工號(hào)= + this.textbox1.text + ;更多相關(guān)參考論文設(shè)計(jì)文檔資源請?jiān)L問 http:/ 設(shè)計(jì)文件以及仿真建模文件,資料請聯(lián)系 68661508 索要 /根據(jù)學(xué)生的編號(hào)來刪除相應(yīng)的學(xué)生的信息 cmd.connection = conn; conn.open();/打開連接 cmd.executenonquery();/用?exec

32、utenonquery()的方法來執(zhí)行查詢語句? conn.close();/關(guān)閉連接 catch (exception ce) messagebox.show(ce.message); finally 顯示所有:顯示所有:namespace login public partial class xianshisuoyou : form string strcn = server=.sqlexpress;database=工資查詢系統(tǒng);integrated security=true; public xianshisuoyou() initializecomponent(); private void button1_click(object sender, eventargs e) try sqlconnection conn = new sqlconnection(); conn.connectionstring = strcn; conn.open(); sqldataadapter ad = new sqldataadapter(use 工資查詢

溫馨提示

  • 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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論