版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
1、高校人事管理系統(tǒng)學(xué)生: 指導(dǎo)教師: 2013年9月16日摘 要高校人事管理系統(tǒng)是一個由高校人事管理人員、計算機組成的對高校人事管理的系統(tǒng)。即對相關(guān)的信息進行收集、整理、使用和維護的過程。從1946年第一臺計算機誕生至此,隨著科學(xué)技術(shù)日新月異的發(fā)展,計算機技術(shù)也日漸成熟,其強大的功能已被人們深刻認(rèn)識,并在社會各個領(lǐng)域里發(fā)揮著越來越重要的作用。人們將大量工作交給計算機處理,將海量的數(shù)據(jù)信息存儲在數(shù)據(jù)庫里,從而大幅度提高了工作效率,也方便了數(shù)據(jù)信息的統(tǒng)計。高校人事管理項目眾多、信息量繁雜,要降低管理成本,提高高校人事管理的水平,增進經(jīng)濟利潤,則必然要借助于計算機進行信息管理,進而實現(xiàn)賓館信息管理的規(guī)
2、范化、自動化和人性化。根據(jù)設(shè)計中的需求,高校人事管理系統(tǒng)采用模塊化的設(shè)計思想,在Windows操作系統(tǒng)環(huán)境下,采用Eclipse作為開發(fā)工具,用Java進行開發(fā),完成的功能有對人員進行增加、查詢和刪除,還實現(xiàn)了對高校部門的管理,人員的檔案管理以及登錄用戶的管理。關(guān)鍵詞:管理信息系統(tǒng); 人事管理;Java 目 錄摘 要II第1章項目分析11.1問題描述11.2技術(shù)分析1第2章實現(xiàn)22.1 主界面22.1.1流程圖22.1.2界面22.1.3代碼32.2 列出全部信息32.2.1流程圖32.2.2界面42.2.3代碼42.3 增刪改查52.3.1 添加功能52.3.2刪除功能82.3.3查詢功能1
3、02.3.4修改功能122.3.5統(tǒng)計功能152.3.5退出功能18第3章結(jié)束語20第1章 項目分析本次課題要求使用java語言實現(xiàn)高校人事管理,通過編程實現(xiàn)該系統(tǒng)的增刪改查等功能,需要對函數(shù)進行封裝與調(diào)用。1.1問題描述通過該題目的設(shè)計,培養(yǎng)學(xué)生面向?qū)ο蟪绦蛟O(shè)計的思想,要求學(xué)生達到熟練掌握J(rèn)ava語言的基本知識和技能,基本掌握面向?qū)ο蟪绦蛟O(shè)計的基本思路和方法,能夠利用所學(xué)的基本知識和技能,解決簡單的面向?qū)ο蟪绦蛟O(shè)計問題。同時強調(diào)好的程序設(shè)計風(fēng)格,提高解決實際問題的能力??紤]了人事管理人員的各種需求,包括人員和檔案的添加、查詢、修改和刪除等等。下面是系統(tǒng)所要達到的幾條要求:要求系統(tǒng)準(zhǔn)確的記錄各
4、種信息。系統(tǒng)要提供增加人員,刪除人員信息,修改人員信息等功能。系統(tǒng)運行在Windows平臺下,能夠很好的運行。系統(tǒng)具有良好的可擴展性,良好的可移植性,實現(xiàn)教工檔案管理。高校人事管理系統(tǒng)的角色是系統(tǒng)操作員。操作員把工作人員的個人檔案信息進行存 儲,對員工的相關(guān)信息進行管理和更新,對員工的基本情況進行查詢。操作員對工作人員的信息進行添加修改。1.2技術(shù)分析技術(shù)上的可行性分析要考慮將來要采用的硬件和軟件技術(shù)能否滿足用戶(這里是校方)提出的要求(如計算機的容量、速度等)。此外,還要考慮開發(fā)人員的水平,作為計算機專業(yè)的學(xué)生,經(jīng)過一年的學(xué)習(xí),在數(shù)據(jù)庫和編程方面都有一定的基礎(chǔ)。所以對于這個系統(tǒng)的開發(fā)還是有能
5、力做好的。本人掌握了數(shù)據(jù)庫及其應(yīng)用技術(shù)、數(shù)據(jù)庫原理、計算機網(wǎng)絡(luò)技術(shù)、Java等課程,對數(shù)據(jù)庫的設(shè)計、應(yīng)用、維護及局域網(wǎng)的組成有了深刻的認(rèn)識與一定的動手實踐能力。從一定程度上具備了開發(fā)一個小型系統(tǒng)的能力。第2章 實現(xiàn)上面我已經(jīng)把自己的設(shè)計理念告訴了大家,現(xiàn)在我來具體談?wù)勛约哼@個系統(tǒng)的功能是如何具體實現(xiàn)的。2.1 主界面這是根據(jù)本次二級課題的具體要求做出來的課題主界面,它主要實現(xiàn)了簡單的對人員信息的添加、刪除、修改、查詢及統(tǒng)計的功能。2.1.1流程圖如圖2.1所示高校人士管理系統(tǒng)刪除人員信息修改人員信息查詢?nèi)藛T信息統(tǒng)計人員信息顯示所有信息 退出添加人員并保存圖2.1主操作流程圖2.1.2界面如圖2
6、.2所示圖 2.2 主界面2.1.3代碼public void mainView() while(true) System.out.println(高校人事管理系統(tǒng)); System.out.println(#); System.out.println( 1.列出全部信息 2.添加人員信息 ); System.out.println( 3.刪除人員信息 4.修改人員信息 ); System.out.println( 5.統(tǒng)計人員信息 6.查詢系統(tǒng) ); System.out.println( 7.關(guān)于作者 0.退出管理系統(tǒng) ); System.out.println(#); System.ou
7、t.print(輸入序號:); Scanner scanner = new Scanner(System.in); int inputValue = scanner.nextInt(); switch(inputValue) case 1: listView();break; case 2: addView();break; case 3: deleteView();break; case 4: updateView();break; case 5: countView();break; case 6:chaxunView() ;break; case 7:System.out.println
8、(tt王偉n+ tt中原工學(xué)院軟件學(xué)院n+ ttQQ:n); System.out.println(返回主界面請輸入0:); Scanner num = new Scanner(System.in); int inputdatb = scanner.nextInt(); switch(inputdatb) case 0:mainView();break; break; case 0: System.exit(0); 2.2 列出全部信息此功能列出所有工作人員。2.2.1流程圖如圖2.3所示開始列出全部輸出已有信息主界面結(jié)束圖2.3查找流程圖2.2.2界面如圖2.4所示圖2.4查找界面2.2.3
9、代碼public void listView() Xinxi arr = gongneng.findAll(); if(arr != null) System.out.println(:編號 姓名 性別 年齡 職務(wù) 職位 政治面貌 最高學(xué)歷 任職時間 來院時間 身份); for( Xinxi a: arr) System.out.println(a); public void listView() Xinxi arr = gongneng.findAll(); if(arr != null) System.out.println(:編號 姓名 性別 年齡 職務(wù) 職位 政治面貌 最高學(xué)歷 任職時
10、間 來院時間 身份); for( Xinxi a: arr) System.out.println(a); public Xinxi findAll()Xinxi xinxiArray = null; try xinxiArray = read(); catch(Exception e) e.printStackTrace(); return xinxiArray;public Xinxi findById(int id)for(Xinxi a : findAll() if(a.getId()=id) return a;return null;2.3 增刪改查下面就是添加,刪除,修改,查詢的功
11、能了。 2.3.1 添加功能 該功能實現(xiàn)向系統(tǒng)中添加人員信息功能。流程圖如圖2.5所示開始添加數(shù)據(jù)輸入姓名輸入性別主界面結(jié)束圖2.5添加流程圖添加界面如圖2.6所示圖2.6 添加界面代碼public void addView() Xinxi xinxi = new Xinxi(); System.out.print(請輸入新增對象的id:); int count = 0; try count = getLineCounts(); catch (Exception e) e.printStackTrace(); System.out.print(count+ + 請輸入該數(shù)字.); Scanne
12、r scanner = new Scanner(System.in); xinxi.setId(scanner.nextInt(); System.out.print(請輸入對象姓名:); scanner = new Scanner(System.in); xinxi.setName(scanner.nextLine(); System.out.print(請輸入對象性別:); scanner = new Scanner(System.in); xinxi.setSex(scanner.nextLine(); System.out.print(請輸入對象年齡:); scanner = new
13、Scanner(System.in); xinxi.setAge(scanner.nextLine(); System.out.print(請輸入對象職務(wù)(行政人員 教師 一般員工):); scanner = new Scanner(System.in); xinxi.setJob(scanner.nextLine(); System.out.print(請輸入對象職稱:); scanner = new Scanner(System.in); xinxi.setZhiwei(scanner.nextLine(); System.out.print(請輸入對象政治面貌(團員 黨員 一般人):);
14、 scanner = new Scanner(System.in); xinxi.setPolity(scanner.nextLine(); System.out.print(請輸入對象最高學(xué)歷:); scanner = new Scanner(System.in); xinxi.setRecord(scanner.nextLine(); System.out.print(請輸入對象任職時間:); scanner = new Scanner(System.in); xinxi.setRztime(scanner.nextLine(); System.out.print(請輸入對象來院時間:);
15、 scanner = new Scanner(System.in); xinxi.setLydate(scanner.nextLine(); System.out.print(請輸入對象身份(在職人員 退休人員 返聘人員 臨時工 ):); scanner = new Scanner(System.in); xinxi.setStatus(scanner.nextLine(); gongneng.add(xinxi); System.out.println(繼續(xù)輸入請輸入1,返回主界面請輸入0 : ); Scanner num = new Scanner(System.in); int inpu
16、tdatb = scanner.nextInt(); switch(inputdatb) case 1:addView();break; case 0:mainView();break; 2.3.2刪除功能 該功能實現(xiàn)刪除系統(tǒng)中的人員信息。流程圖如圖2.7所示:開始刪除數(shù)據(jù)輸入編號編號存在?刪除主界面結(jié)束Null圖2.7刪除流程圖界面流程圖如圖2.8所示圖2.8刪除前的界面 刪除前圖2.9刪除后的界面 刪除后代碼public void deleteView() System.out.print(請輸入刪除對象id:); Scanner scanner = new Scanner(System.
17、in); int inputValue = scanner.nextInt();gongneng.delete(inputValue);public void delete(int id)Xinxi arr = findAll();Xinxi newArr =new Xinxiarr.length;int arrLength = arr.length;for(int i=0,j=0;iarr.length;i+)if(arri.getId()!=id) newArrj = arri;j+;else arrLength = arr.length-1; Xinxi tmpArr = new Xin
18、xiarrLength; for(int i=0;iarrLength;i+)tmpArri = newArri;try write(tmpArr);catch(Exception e) e.printStackTrace();2.3.3查詢功能該功能實現(xiàn)對于系統(tǒng)中已存在的人員信息的查詢。流程圖如圖2.10所示:開始查找數(shù)據(jù)輸入編號編號存在?主界面結(jié)束Null輸出數(shù)據(jù) 圖2.10查找流程圖界面如圖2.11所示圖2.11查找界面代碼public Xinxi findById(int id)for(Xinxi a : findAll() if(a.getId()=id) return a;retu
19、rn null;public void chaxunView() System.out.print(請輸入查詢對象id:); Scanner scanner = new Scanner(System.in); int inputValue = scanner.nextInt(); gongneng.chaxun(inputValue); System.out.println(繼續(xù)輸入請輸入1,返回主界面請輸入0 : ); Scanner num = new Scanner(System.in); int inputdatb = scanner.nextInt(); switch(inputda
20、tb) case 1:chaxunView();break; case 0:mainView();break;2.3.4修改功能流程圖如圖2.12所示修改數(shù)據(jù)輸入編號編號存在?主界面結(jié)束Null開始輸入姓名、性別圖表2.12修改流程圖界面如圖2.13所示圖2.13修改界面代碼public void updateView()Xinxi newXinxi= new Xinxi(); System.out.print(請輸入修改對象id:); Scanner scanner = new Scanner(System.in); Xinxi xinxi = gongneng.findById(scann
21、er.nextInt(); if(xinxi=null) System.out.print(該對象id不存在!); return; newXinxi.setId(xinxi.getId(); System.out.println(原對象姓名:+xinxi.getName(); System.out.print(請輸入對象姓名:); scanner = new Scanner(System.in); newXinxi.setName(scanner.nextLine(); System.out.println(原對象性別:+xinxi.getSex(); System.out.print(請輸入
22、對象性別:); scanner = new Scanner(System.in); newXinxi.setSex(scanner.nextLine(); System.out.println(原對象年齡:+xinxi.getAge(); System.out.print(請輸入對象年齡:); scanner = new Scanner(System.in); newXinxi.setAge(scanner.nextLine(); System.out.println(原對象職務(wù):+xinxi.getJob(); System.out.print(請輸入對象職務(wù):); scanner = ne
23、w Scanner(System.in); newXinxi.setJob(scanner.nextLine(); System.out.println(原對象職稱:+xinxi.getZhiwei(); System.out.print(請輸入對象職稱:); scanner = new Scanner(System.in); newXinxi.setZhiwei(scanner.nextLine(); System.out.println(原對象政治面貌:+xinxi.getPolity(); System.out.print(請輸入對象政治面貌:); scanner = new Scann
24、er(System.in); newXinxi.setPolity(scanner.nextLine(); System.out.println(原對象最高學(xué)歷:+xinxi.getRecord(); System.out.print(請輸入對象最高學(xué)歷:); scanner = new Scanner(System.in); newXinxi.setRecord(scanner.nextLine(); System.out.println(原對象任職時間:+xinxi.getRztime(); System.out.print(請輸入對象任職時間:); scanner = new Scann
25、er(System.in); newXinxi.setRztime(scanner.nextLine(); System.out.println(原對象來院時間:+xinxi.getLydate(); System.out.print(請輸入對象任來院時間:); scanner = new Scanner(System.in); newXinxi.setLydate(scanner.nextLine(); System.out.println(原對象身份:+xinxi.getStatus(); System.out.print(請輸入對象身份:); scanner = new Scanner(
26、System.in); newXinxi.setStatus(scanner.nextLine(); gongneng.update(newXinxi); public void update(Xinxi xinxi)Xinxi arr = findAll();for(int i=0;iarr.length;i+)if(arri.getId()=xinxi.getId() arri = xinxi;break;try write(arr);catch(Exception e) e.printStackTrace();2.3.5統(tǒng)計功能該功能實現(xiàn)統(tǒng)計系統(tǒng)中符合輸入條件的人員信息功能。流程圖如圖2
27、.14所示:開始統(tǒng)計數(shù)據(jù)輸入查詢條件主界面結(jié)束輸出符合人數(shù)圖2.14統(tǒng)計流程圖界面如圖2.11所示圖2.15統(tǒng)計界面代碼public void countView() System.out.println(1.在職人員統(tǒng)計);System.out.println(2.黨員人員統(tǒng)計);System.out.println(3.女工人員統(tǒng)計);System.out.println(4.高職人員統(tǒng)計);System.out.print(請輸入功能序號:);Scanner scanner = new Scanner(System.in);int inputValue = scanner.nextInt
28、();switch(inputValue)case 1:System.out.println(目前在職人員人數(shù)為: + gongneng.findByStatus();break;case 2:System.out.println(目前黨員人員人數(shù)為: + gongneng.findByPolity();break;case 3:System.out.println(目前女工人員人數(shù)為: + gongneng.findBySex();break;case 4:System.out.println(目前高職人員人數(shù)為: + gongneng.findByRecord();break;System
29、.out.println(繼續(xù)輸入請輸入1,返回主界面請輸入0 : ); Scanner num = new Scanner(System.in); int inputdatb = scanner.nextInt(); switch(inputdatb) case 1:countView();break; case 0:mainView();break; public int findByStatus() int a = 0;Xinxi arr = findAll();for(int i=0;iarr.length;i+)if(arri.getStatus().equals( 在職)a+;re
30、turn a;public int findByPolity() int a = 0;Xinxi arr = findAll();for(int i=0;iarr.length;i+)if(arri.getPolity().equals( 黨員)a+;return a;public int findBySex() int a = 0;Xinxi arr = findAll();for(int i=0;iarr.length;i+)if(arri.getSex().equals( 女)a+;return a;public int findByRecord() int a = 0;Xinxi ar
31、r = findAll();for(int i=0;iarr.length;i+)if(arri.getRecord().equals( 碩士)a+;return a;public int findId() int a=1;int s=0;Xinxi arr = findAll();for(int i=0;iarr.length;i+) if(arri.getId() = a) a+;else s = arri.getId(); s+; continue;return s;2.3.5退出功能該功能實現(xiàn)退出系統(tǒng)操作。流程圖如圖2.16所示開始退出系統(tǒng)結(jié)束圖2.16 退出流程圖界面如圖2.17所示圖2.17退出界面代碼public void mainView() while(true) System.out.println(高校人事管理系統(tǒng)); System.out.println(#); System.out.println( 1.列出全部信息 2.添加人員信息); System.out.println( 3.刪除人員信息 4.修改人員信息); System.out.println( 5.統(tǒng)計人員信息 6.查詢系統(tǒng) ); System.out.println( 7.關(guān)于作者 0.退出
溫馨提示
- 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)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 舞蹈培訓(xùn)學(xué)生上課制度
- 班組安全產(chǎn)培訓(xùn)制度
- 宣貫培訓(xùn)黨建制度匯編
- 幼兒園教師培訓(xùn)活動制度
- 保安培訓(xùn)及訓(xùn)練制度
- 外部培訓(xùn)講師庫制度
- 保安部培訓(xùn)室管理制度及流程
- 市經(jīng)信委應(yīng)急培訓(xùn)制度
- 教培學(xué)員培訓(xùn)制度表
- 社工培訓(xùn)中心管理制度
- 中國藥物性肝損傷診治指南(2024年版)解讀
- 基層黨建知識測試題及答案
- DG-TJ08-2021-2025 干混砌筑砂漿抗壓強度現(xiàn)場檢測技術(shù)標(biāo)準(zhǔn)
- 鼻竇炎的護理講課課件
- 腸系膜脂膜炎CT診斷
- 體外膜肺氧合技術(shù)ECMO培訓(xùn)課件
- 老年醫(yī)院重點??平ㄔO(shè)方案
- 銀行解封協(xié)議書模板
- 超星爾雅學(xué)習(xí)通《學(xué)術(shù)規(guī)范與學(xué)術(shù)倫理(華東師范大學(xué))》2025章節(jié)測試附答案
- GB 17440-2025糧食加工、儲運系統(tǒng)粉塵防爆安全規(guī)范
- 《綠色農(nóng)產(chǎn)品認(rèn)證》課件
評論
0/150
提交評論