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

正文內(nèi)容

高校學(xué)生成績管理信息系統(tǒng)--erp課程設(shè)計(jì)(編輯修改稿)

2025-02-14 16:12 本頁面
 

【文章內(nèi)容簡介】 )。 (true)。//最大化和關(guān)閉按鈕 (true)。 (620,400)。// centerShell(this)。 (true)。 (false)。 //設(shè)置窗體不可變大小 ()。 (請選擇)。 (助教)。 (講師)。 (副教授)。 (正教授)。 } public boolean equals(Object obj){ //重寫equals方法判斷字符串相等 if(obj==null) return false。 if(this == obj){ return true。 } if(obj instanceof String) { String str = (String)obj。 return (tno)。 } return false。 } public void actionPerformed(ActionEvent e){ tno=()。 //獲取用戶輸入內(nèi)容 tname=()。 tage=(())。 tdepart=()。 tseninority=(())。 taddress=()。 ttelephone=()。 trank=().toString()。//()。 int temp=0。 Connection con=null。 if(()==submit){ try{ ()。 String url=jdbc:odbc:studentDB。 //連接數(shù)據(jù)庫 con=(url)。 //獲取連接字符串 (數(shù)據(jù)庫已連接!)。 Statement stat=()。 if(()) tsex=男。 else tsex=女。 temp=(insert into Teacher values(39。+tname+39。,39。+tsex+39。,+tage+,+tseninority+,39。+taddress+39。,39。+ttelephone+39。,39。+tdepart+39。,39。+trank+39。) )。 if(temp==1){ (ss,添加成功)。 } else{ (ss,添加失敗)。 } ()。 ()。 }catch(Exception ex){ ()。 } }else if(()==reset){ //重置所有控件 ()。 ()。 ()。 ()。 ()。 ()。 ()。 ()。 ()。 //()。 (0)。 } } private void centerShell(JFrame shell) //窗口在屏幕中間顯示 { //得到屏幕的寬度和高度 int screenHeight = ().getScreenSize().height。 int screenWidth = ().getScreenSize().width。 //得到Shell窗口的寬度和高度 int shellHeight = ().height。 int shellWidth = ().width。 //如果窗口大小超過屏幕大小,讓窗口與屏幕等大 if(shellHeight screenHeight) shellHeight = screenHeight。 if(shellWidth screenWidth) shellWidth = screenWidth。 //讓窗口在屏幕中間顯示 (((screenWidth shellWidth)/ 2),((screenHeight shellHeight)/2))。 } public int getClassCount(){ int count=0。 try {// step1:查找驅(qū)動 ()。 //step2:創(chuàng)建連接對象 Connection conn=(jdbc:odbc:studentDB)。 (數(shù)據(jù)庫已連接!)。 //step3:操作數(shù)據(jù)庫的對象 Statement st=()。 //step4:準(zhǔn)備需要執(zhí)行的sql 語句 String sql=select max(tno) from Teacher。 //(sql)。 //step5: 執(zhí)行insert的操作 ResultSet rs= (sql)。 ()。 count=(1)。 ()。 ()。 ()。 } catch (ClassNotFoundException e1) { // TODO 自動生成 catch 塊 (未找到驅(qū)動!)。 ()。 } catch (SQLException e2) { // TODO 自動生成 catch 塊 ()。 } return count+1。 } public static void main(String args[]){ new Add_TeacherInfo()。 } } 修改教師信息模塊運(yùn)行界面圖 53 修改教師基本信息具體代碼如下:package 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import .*。 public class Modify_Teacher extends JInternalFrame implements ActionListener,ItemListener{// 組件的實(shí)例化放在類 JLabel title=new JLabel()。 JLabel jltno=new JLabel(教 工 號:)。 //創(chuàng)建文本框?qū)ο? JLabel jltname=new JLabel(姓 名:)。 JLabel jltsex=new JLabel(性 別:)。 JLabel jltage=new JLabel(年 齡:)。 JLabel jltdepart=new JLabel(系 別:)。 JLabel jltseninority=new JLabel(工 齡:)。 JLabel jltaddress=new JLabel(地 址:)。 JLabel jlttelephone=new JLabel(聯(lián)系方式:)。 JLabel jltrank=new JLabel(職 稱:)。 JComboBox jtno=new JComboBox()。 JTextField jtname=new JTextField()。 JTextField jtsex=new JTextField()。 JTextField jtage=new JTextField()。 JTextField jtdepart=new JTextField()。 JTextField jtseninority=new JTextField()。 JTextField jtaddress=new JTextField()。 JTextField jttelephone=new JTextField()。 JComboBox cboRank=new JComboBox()。 ButtonGroup bg=new ButtonGroup()。 //創(chuàng)建ButtonGroup組件對象 JPanel jp=new JPanel()。 //創(chuàng)建Panel容器 JLabel jl=new JLabel()。 JRadioButton jrmen=new JRadioButton(男,true)。 JRadioButton jrwomen=new JRadioButton(女)。 JButton btnModify=new JButton(修改)。 JButton btnCancel=new JButton(取消)。 public Modify_Teacher(){ (load class query..)。 //set frame (620,400)。 //設(shè)置窗體的大小 (修改教師信息系統(tǒng))。//設(shè)置窗體的標(biāo)題 ()。//設(shè)置關(guān)閉 (false)。//設(shè)置窗體的大小不可變// (true)。 (200, 200)。// (null)。 //設(shè)置居中 (true)。 (true)。 MyPanel contentPane=new MyPanel()。 (contentPane)。 (null)。 //設(shè)置窗口布局管理器 (jltno)。 //將控件添加 到窗體 (title)。 (jltname)。 (jltsex)。 (jltage)。 (jltdepart)。 (jltseninority)。 //將控件添加 到窗體 (jltaddress)。 (jlttelephone)。 (jltrank)。 (jtno)。 (jtname)。 (jtsex)。 (jtage)。 (jtdepart)。 (jtseninority)。 (jtaddress)。 (jttelephone)。 (cboRank)。 (jrmen)。 //將所有空間加入窗體 (jrwomen)。 (jrmen)。 (jrwomen)。 (jp)。 // ()。 (btnModify)。 (btnCancel)。 (new Font(red,21))。 //設(shè)置提示字體 ()。 (修改教師基本信息)。 (222,20,200,25)。 //屬性框 (80,60,100,25)。 (80,100,100,25)。 (80,140,100,25)。 (80,180,100,25)。 (80,220,100,25)。 (340,60,100,25)。 (340,100,100,25)。 (340,140,100,25)。 (340,180,100,25)。 (150,60,140,25)。 //文本框 (150,100,140,25)。 (150,135,100,30)。 (150,180,140,25)。 (150,220,140,25)。 //地址文本框 (410,60,140,25)。 (410,100,140,25)。 (410,140,140,25)。 (410,180,140,25)。 (200,270,60,25)。 (350,270,60,25)。 (this)。 (this)。// (620,400)。 (請選擇)。 (助教)。 (講師)。 (副教授)。 (正教授)。 //將班級編號添加到cboId中 ResultSet rs =(select tno from Teacher )。
點(diǎn)擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1