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

正文內(nèi)容

工資管理系統(tǒng)設(shè)計(jì)報(bào)告(編輯修改稿)

2024-08-30 03:43 本頁面
 

【文章內(nèi)容簡介】 ()。 ()。 } } })。 (new ActionListener(){ public void actionPerformed(ActionEvent e){ (null,您已成功退出系統(tǒng)!,系統(tǒng)提示,)。 (0)。 } })。 //采用網(wǎng)格布局 ().setLayout(new GridLayout(3,1))。 ().add(p1)。 ().add(p2)。 ().add(p3)。 (true)。}}(2)主函數(shù)代碼package gzgl。import 。import 。import 。public class Main { public static void main (String[] args) { //創(chuàng)建主界面,調(diào)用MainFrame()構(gòu)造函數(shù)和方法 MainFrame frame=new MainFrame()。 //獲取屏幕尺寸 Dimension screenSize=().getScreenSize()。 //獲取主界面的窗體尺寸 Dimension frameSize =()。 //令主界面窗體居中 if() =。 if() =。 (()/2,()/2)。 //令主界面顯示 (true)。 }}(3)用JDBC連接java與數(shù)據(jù)庫的代碼package gzgl。import 。import 。public class DBConnect { //靜態(tài)方法提高數(shù)據(jù)庫的連接效率 public static Connection getConn() throws Exception { //加載JDBC驅(qū)動(dòng) ()。 //以系統(tǒng)默認(rèn)用戶身份,連接數(shù)據(jù)庫StudentManager return (jdbc:sqlserver://localhost:1433。 DatabaseName=gzglxt,gzglxt,123456)。 }}(4)系統(tǒng)主框架界面代碼package gzgl。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。public class MainFrame extends JFrame implements ActionListener{ //創(chuàng)建內(nèi)容面板 JPanel contentPane。 //創(chuàng)建菜單欄組件的對象 JMenuBar jMenuBar1=new JMenuBar()。//菜單條 JMenu jMenu0=new JMenu(系統(tǒng))。//菜單 JMenuItem jMenuItem0=new JMenuItem(退出)。//子菜單 JMenu jMenu1=new JMenu(員工管理)。 JMenuItem jMenuItem1=new JMenuItem(添加員工信息)。 JMenuItem jMenuItem2=new JMenuItem(修改員工信息)。 JMenuItem jMenuItem3=new JMenuItem(刪除員工信息)。 JMenu jMenu2=new JMenu(工資管理)。 JMenuItem jMenuItem4=new JMenuItem(工資查詢)。 JMenuItem jMenuItem5=new JMenuItem(設(shè)定職務(wù)工資)。 JMenuItem jMenuItem8=new JMenuItem(工資生成)。 JMenuItem jMenuItem9=new JMenuItem(年終獎(jiǎng)查詢)。 JMenu jMenu3=new JMenu(員工查詢)。 JMenuItem jMenuItem6=new JMenuItem(員工信息查詢)。 JMenuItem jMenuItem7=new JMenuItem(員工考勤查詢)。 //創(chuàng)建標(biāo)簽,用于顯示信息 JLabel jLabel1=new JLabel( 歡迎使用工資管理系統(tǒng))。 JLabel jLabel2=new JLabel( 延安大學(xué)軟件12課程設(shè)計(jì))。 //創(chuàng)建構(gòu)造方法 public MainFrame() { try{ //關(guān)閉框架窗口時(shí)的默認(rèn)事件方法 setDefaultCloseOperation(EXIT_ON_CLOSE)。 //調(diào)用初始化方法 jbInit()。 } catch(Exception exception){ ()。 } } //界面初始化方法 private void jbInit() throws Exception { //創(chuàng)建內(nèi)容面板 contentPane =(JPanel) getContentPane()。 //設(shè)置內(nèi)容面板的布局為空 (null)。 //主框架的大小 Dimension screenSize=().getScreenSize()。 setLocation((int) ()/2,(int)()/2)。 setSize(new Dimension(400,500))。 //主框架的標(biāo)題 setTitle(工資管理系統(tǒng))。 //添加事件監(jiān)聽器 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 //添加菜單條到主框架 setJMenuBar(jMenuBar1)。 //添加菜單到菜單條 (jMenu0)。 (jMenu1)。 (jMenu2)。 (jMenu3)。 //添加菜單項(xiàng)到菜單 (jMenuItem0)。 (jMenuItem1)。 (jMenuItem2)。 (jMenuItem3)。 (jMenuItem4)。 (jMenuItem5)。 (jMenuItem8)。 (jMenuItem9)。 (jMenuItem6)。 (jMenuItem7)。 //添加標(biāo)簽到主框架內(nèi)容面板 (jLabel1)。 (jLabel2)。 //設(shè)置標(biāo)簽組件的大小和字體 (new (黑體,20))。 (new Rectangle(65,70,275,55))。 (new (黑體,16))。 (new Rectangle(90,150,200,35))。 } //菜單項(xiàng)事件對應(yīng)的處理方法 public void actionPerformed(ActionEvent actionEvent) { //點(diǎn)擊“系統(tǒng)”菜單下的“退出”菜單項(xiàng) if(()==jMenuItem0) { (null,您已成功退出系統(tǒng)!,系統(tǒng)提示,)。 (0)。 } //點(diǎn)擊“職工管理”菜單下的“添加職工”菜單項(xiàng) if(()==jMenuItem1) { //創(chuàng)建“添加職工”面板對象 AddEmployee AddEmp=new AddEmployee()。 //移除主框架上原有的內(nèi)容 (())。 //加載“添加職工”面板的對象到主框架 (AddEmp)。 //令界面可見 (true)。 } //點(diǎn)擊“職工管理”菜單下的“修改職工”菜單項(xiàng) if(()==jMenuItem2) { //創(chuàng)建“修改職工”面板對象 ModifyEmployee ModifyEmp=new ModifyEmployee()。 (())。 //加載“修改職工”面板的對象到主框架 (ModifyEmp)。 (true)。 } //點(diǎn)擊“職工管理”菜單下的“刪除職工”菜單項(xiàng) if(()==jMenuItem3) { //創(chuàng)建“刪除職工”面板對象 DeleteEmployee DeleteEmp=new DeleteEmployee()。 (())。 //加載“刪除職工”面板的對象到主框架 (DeleteEmp)。 (true)。 } //點(diǎn)擊“工資管理”菜單下的“添加工資”菜單項(xiàng) if(()==jMenuItem4) { //創(chuàng)建工資添加的面板對象 AddSalary AddSal=new AddSalary()。 (())。 //加載工資添加面板的對象到主框架 (AddSal)。 (true)。 } //點(diǎn)擊“工資管理”菜單下的“修改工資”菜單項(xiàng) if(()==jMenuItem5) { //創(chuàng)建工資修改的面板對象 ModifySalary ModifySal=new ModifySalary()。 (())。 //加載工資修改面板的對象到主框架 (ModifySal)。 (true)。 } //點(diǎn)擊“工資管理”菜單下的“工資查詢”菜單項(xiàng) if(()==jMenuItem8) { //創(chuàng)建工資修改的面板對象 SalaryInquire SalaryInq=new SalaryInquire()。 (())。 //加載工資修改面板的對象到主框架 (SalaryInq)。 (true)。 } //點(diǎn)擊“職工查詢”菜單下的“按工號查詢”菜單項(xiàng) if(()==jMenuItem6) { //創(chuàng)建“按工號查詢”面板對象 InquireOnGH OnGH=new InquireOnGH()。 //移除主框架上原有的內(nèi)容 (())。 (OnGH)。 (true)。 } //點(diǎn)擊“職工查詢”菜單下的“按姓名查詢”菜單項(xiàng) if(()==jMenuItem7) { //創(chuàng)建“按姓名查詢”面板對象 InquireOnName OnName=new InquireOnName()。 //移除主框架上原有的內(nèi)容 (())。 (OnName)。 (true)。 } if(()==jMenuItem9) { //創(chuàng)建“按姓名查詢”面板對象 YearBonus Year=new YearBonus()。 //移除主框架上原有的內(nèi)容 (())。 (Year)。 (true)。 } }}(5)添加員工基本信息功能代碼package gzgl。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。import 。public class AddEmployee extends JPanel implements ActionListener{ //聲明連接數(shù)據(jù)庫對象 Connection con。 //聲明SQL語句對象 Statement st。 //創(chuàng)建組件對象:標(biāo)簽、文本行、單選 JLabel jLabel1=new JLabel(員工編號)。 JLabel jLabel2=new JLabel(員工姓名)。 JLabel jLabel3=new JLabel(性別)。 JLabel jLabel4=new JLabel(出生日期)。 JLabel jLabel5=new JLabel(職務(wù))。 JLabel jLabel6=new JLabel(學(xué)歷)。 JLabel jLabel7=new JLabel(電話)。 JLabel jLabel8=new JLabel(身份證號)。 JLabel jLabel9=new JLabel(住址)。 JTextField jTextField1=new JTextField()。 JTextField jTextField2=new JTextField()。 JTextField jTextField3=new JTextField()。 JTextField jTextField4=new
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1