freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

本科畢業(yè)論文-基于java的人事管理系統(tǒng)的設計與實現(xiàn)(編輯修改稿)

2025-02-14 16:03 本頁面
 

【文章內(nèi)容簡介】 nt null,Benifitprize int null,Insurance int null,Medicare int null,Deprivepay int null,Depriveprize int null,Depriveattendint null)。 測試數(shù)據(jù)的輸入在上一節(jié)中已經(jīng)設計出數(shù)據(jù)庫中的表,在這一環(huán)節(jié)當中輸入相關的測試數(shù)據(jù),對相關的數(shù)據(jù)庫進行測試。insert into wage values(1,39。張三39。,1500,1050,600,500,400,200,200,100);insert into person values(1,39。張三39。,39。男39。,39。39。,39。河北唐山39。,39。漢39。,39。群眾39。,39。本科39。,39。未婚39。,39。河北理工大學39。,39。計算機39。,39。39。,39。無39。,39。技術39。,39。技術員39。,39。新華西道46號39。,39。30000639。,39。0315259292039。,39。1363366568939。,39。zsany@39。,39。130025619810101013039。,39。39。,39。39。)。insert into Attend values(1,’張三39。,39。39。,0,1,1,1,0)。insert into man values(39。許耀輝39。,39。12339。)。insert into man values(39。xyh39。,39。xyh39。)。到此為止,數(shù)據(jù)庫的設計與實現(xiàn)工作已經(jīng)完成,下面將介紹系統(tǒng)中各模塊的設計與實現(xiàn)。 數(shù)據(jù)庫的連接本系統(tǒng)的實現(xiàn)涉及到數(shù)據(jù)庫,必然少不了數(shù)據(jù)的各種操作,而實現(xiàn)這個的一個重要前提就是:數(shù)據(jù)庫的連接,下面詳細介紹Eclipse與MySQL數(shù)據(jù)庫的連接及數(shù)據(jù)庫操作方法。 MySQL數(shù)據(jù)庫的連接由于本系統(tǒng)采用的是MySQL數(shù)據(jù)庫,故下面將介紹MySQL數(shù)據(jù)庫的詳細連接方法,核心代碼如下[15]。public DataBase() { try { ()。 con=(jdbc:mysql://localhost:3306/test,root,412826)。 stat=()。 } catch(Exception e) { ()。 } } 數(shù)據(jù)庫的操作對于本系統(tǒng)而言數(shù)據(jù)庫的操作方法是必不可少的,MySQL數(shù)據(jù)庫的連接方法已說明,下面介紹數(shù)據(jù)庫操作方法,包括對數(shù)據(jù)庫中的數(shù)據(jù)進行查詢、更新以及數(shù)據(jù)庫連接的關閉操作,具體代碼如下[16]。public void selectDb(String sql) { try { sql=new String((),ISO88591)。 rs=(sql)。 } catch(Exception ei) { ()。 } } public int updateDb(String sql) { try { sql=new String((),ISO88591)。 count=(sql)。 } catch(Exception ei) { ()。 } return count。 } public void dbClose() { try { ()。 } catch(Exception e) { ()。 } } 系統(tǒng)各模塊的實現(xiàn)本系統(tǒng)實現(xiàn)分為個人資料管理模塊、個人簡歷管理模塊、查詢職工基本資料模塊、工資管理模塊、考勤管理模塊以及登錄模塊六大模塊。下面就介紹各個模塊的詳細實現(xiàn)。 登錄模塊的實現(xiàn)登錄模塊實現(xiàn)較為簡單,用到了Swing控件,通過輸入相關的信息,與數(shù)據(jù)庫中的管理員(man)相比較,若輸入的數(shù)據(jù)與數(shù)據(jù)庫中管理員的信息一樣,則通過驗證允許用戶進入系統(tǒng);反之,則拒絕用戶訪問系統(tǒng)。 登錄效果圖 若輸入的數(shù)據(jù)有誤,則系統(tǒng)會提醒出錯。 登錄失敗實現(xiàn)該登錄模塊的核心代碼如下:public void actionPerformed(ActionEvent e){ String mgno=().trim()。 if(()==jtxt){ ()。 } else if(()==jbArray[1]){ ()。 ()。 ()。 } else if(()==jbArray[0]){ String no=().trim()。 if(().trim().equals()){ (this,用戶名不能為空!請重新輸入!,信息,)。 return。 } if(().trim().equals()){ (this,用戶密碼不能為空!請重新輸入!,信息,)。 return。 } sql=select mgNo,password from man where mgNo=39。+no+39。//驗證登錄者的身份和權限 db=new DataBase()。 (sql)。 try{ String mgNo=xyh。 String password=xyh。 while(()){ mgNo=(1).trim()。 password=(2).trim()。 } if(().trim().equals(mgNo)amp。amp。 (()).equals(password)){ (this,歡迎您,登錄成功?。?!,信息, )。 new Root()。 ()。 } else{ (this,很遺憾,登錄失??!,信息, )。 return。 } } catch(Exception e1){()。} ()。 } } 個人資料管理模塊的實現(xiàn)個人資料管理模塊在本系統(tǒng)中占據(jù)著十分重要的地位,內(nèi)容較多,對于系統(tǒng)的實現(xiàn)具有重要的意義。 個人資料管理實現(xiàn)效果圖個人資料管理模塊的設計分為幾個部分的開發(fā),包括界面開發(fā)、界面處理代碼的開發(fā)、職工信息管理功能的開發(fā)、職工信息顯示功能的開發(fā)。下面分別進行說明并附帶核心代碼。 下面主要介紹界面開發(fā),核心代碼如下:private JLabel[] jlArray={//聲明標簽并為其指定文本 new JLabel(職工ID),new JLabel(姓 名),new JLabel(性 別), new JLabel(出生年月),new JLabel(籍 貫),new JLabel(民 族), new JLabel(政治面貌),new JLabel(文化程度),new JLabel(婚姻狀況), new JLabel(畢業(yè)院校),new JLabel(所學專業(yè)),new JLabel(個人特長), new JLabel(工 種),new JLabel(職 務),new JLabel(部門名稱), new JLabel(身份證號),new JLabel(家庭住址),new JLabel(郵政編碼), new JLabel(聯(lián)系電話),new JLabel(Email),new JLabel(個人資料檔案), new JLabel(個人照片),new JLabel((住宅電話)),new JLabel((手 機)), new JLabel(瀏覽按鈕),new JLabel(功能按鈕),new JLabel(照片路徑) }。 private JButton[] jbArray=new JButton[]{//聲明按鈕并為其指定文本 new JButton(最前),new JButton(上一個),new JButton(下一個), new JButton(最后),new JButton(添加),new JButton(刪除), new JButton(修改),new JButton(查詢),new JButton(瀏覽照片) }。 個人簡歷模塊的實現(xiàn)個人簡歷模塊的功能主要包括職工個人簡歷的添加及查詢功能。 個人簡歷實現(xiàn)效果圖界面開發(fā)的核心代碼如下。public class Introduce extends JPanel implements ActionListener{ private JTextArea[] jta= {//聲明文本區(qū) new JTextArea(), new JTextArea(), new JTextArea() }。 private JScrollPane jsp1=new JScrollPane(jta[0])。//將jta[0]添進滾動窗體 private JScrollPane jsp2=new JScrollPane(jta[1])。 private JScrollPane jsp3=new JScrollPane(jta[2])。 DataBase db。 String sql。 private JButton[] jb= {//聲明按鈕設置并為其指定文本 new JButton(添加簡歷), new JButton(查 詢), new JButton(清 空) }。 private JLabel jl=new JLabel(請輸入職工ID)。 private JLabel[] jl1= {//設置標簽并為其指定文本 new JLabel(個人介紹), new JLabel(工作經(jīng)歷), new JLabel(其 他) }。 查詢職工基本資料模塊實現(xiàn) 本模塊的功能主要是實現(xiàn)職工簡歷的添加和查詢,模塊主要是對于個人資料的查詢功能進行開發(fā)。 查詢實現(xiàn)效果圖實現(xiàn)本模塊的核心代碼如下:public class SearchMessage extends JPanel implements ActionListener{ int flag。 String sql。 DataBase db。 //創(chuàng)建分割方向為上下的JSplitePane對象 private JSplitPane jsp=new JSplitPane[17](,true)。 private JPanel jpt=new JPanel()。//創(chuàng)建JPanel對象 private JPanel jpb=new JPanel()。 //創(chuàng)建表示下拉列表框數(shù)據(jù)模型的字符串數(shù)組 private String[] str={職工ID,姓名,工種,身份證號}。 private JComboBox jcb=new JComboBox(str)。//創(chuàng)建下拉列表框 private JButton jb=new JButton(提交)。 //創(chuàng)建按鈕 private JButton jb1=new JButton(清空)。 private JLabel[] jlArray=new JLabel[]{ new JLabel( 姓 名), new JLabel( 工 種), new JLabel(文憑) }。 private JTextField[] jtxtArray=new JTextField[]{//創(chuàng)建文本框 new JTextField(),new JTextField(), new JTextField(),new JTextField() }。 private JRadioButton[] jrbArray={//創(chuàng)建單選按鈕 new JRadioButton(簡單查詢,true), new JRadioButton(高級查詢) }。 private ButtonGroup bg=new ButtonGroup()。//創(chuàng)建按鈕組 VectorString head = new VectorString()。 {//定義表頭 (職工ID)。(姓名)。 (性別)。(出生年月)。 (籍貫)。(民族)。 (政治面貌)。(文憑)。 (婚姻狀況)。(畢業(yè)學校)。 (所學專業(yè))。(個人特長)。 (工種)。(職務)。 (部門名稱)。(身份證號)。 (家庭住址)。(郵政編碼)。 (住宅電話)。(手機)。 (Email)。 } 工資管理模塊實現(xiàn)工資管理模塊主要實現(xiàn)的是對職工工資管理,包括對職工工資進行查詢、修改、添加等。 工資管理實現(xiàn)效果圖 實現(xiàn)本模塊的核心代碼具體如下:public class Wage extends JPanel implements ActionLi
點擊復制文檔內(nèi)容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1