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

正文內(nèi)容

學(xué)生信息管理系統(tǒng)[java]代碼-在線瀏覽

2025-05-25 23:06本頁面
  

【正文】 (btnAdd)。 (btnAlter)。 (btnDisplay)。 (200, 200, 400, 260)。 (this)。 (this)。 (mb)。 (false)。 } public void display() {// 顯示所有的課程信息 int i = 0。 int k = 0。 try { rs = (select * from c)。 (())。 i++。 } playerInfo = new Object[i][3]。 try { rs = (select * from c order by o)。 playerInfo[j][1] = ()。 j++。 } sTable = new JTable(playerInfo, columnNames)。 scroll = new JScrollPane(sTable)。 } public void connDB() { // 連接數(shù)據(jù)庫 try { ()。 } try { con = ( jdbc:sqlserver://localhost:1433。 stmt = ()。 } } public void closeDB() // 關(guān)閉連接 { try { ()。 } catch (SQLException e) { ()。 String kcm = null。 int row = 1。 if (row == 1) {// 判斷要刪除的信息是否被選中 (null, 請選擇要刪除的記錄!)。 try { rs = (select * from c)。amp。 kcm = ()。 j1++。 } int i1 = 0。 + kch + 39。// 刪除數(shù)據(jù)庫中當(dāng)前被選中的記錄 (null, 記錄刪除成功!)。 new CM(課程信息管理).display()。 } } else { try { int rs1 = (delete from c where o=39。)。 ()。 } catch (SQLException e) { ()。 String kcm = null。 int row = 1。 if (row == 1) { (null, 請選擇要修改的記錄!)。 try { if (!bstd) {// 判斷選擇的是不是查詢后的結(jié)果 rs = (select * from c)。 + mkch + 39。 } while (() amp。 j1 = row) {// 找出當(dāng)前被選中的記錄在數(shù)據(jù)庫中的對應(yīng) kch = (o)。 xxkch = (po)。 } } catch (SQLException e) { ()。 (修改)。 (kcm)。 (false)。 } } public void select() {// 顯示某個查詢的結(jié)果 mkch = 。 String[] columnNames = { 課程號, 課程名, 先行課程號 }。 + mkch + 39。 while (()) { playerInfo[0][0] = (o)。 playerInfo[0][2] = (po)。 } if (playerInfo[0][1] == null) { ()。 new CM(課程信息管理).display()。// 創(chuàng)建網(wǎng)格 (sTable)。 (scroll)。 ()。 } if (() == 修改) { ()。 ()。 new CM(課程信息管理).display()。import 。import 。import 。public class CSelect extends JFrame implements ActionListener {// 用于課程信息管理中查詢時輸入課程號的界面 JLabel ltitle = new JLabel(課程號:)。 JButton btnOK = new JButton(確定)。 String kch = null。 (to)。 add(p)。 (this)。 ()。// 取得當(dāng)前輸入課程號的值 if (()) {// 判斷是否輸入了課程號 (null, 課程號不能為空,請重新輸入!)。 new CM(this, 課程信息管理).select()。import .*。import .*。 JPanel p2 = null。 JLabel userName = new JLabel(用戶:)。 JLabel password = new JLabel(密碼:)。 JLabel role = new JLabel(角色:)。 JButton btnLogin = new JButton(登錄)。 JButton btnCancel = new JButton(取消)。 Icon image。 static int CANCEL = 0。 Connection con = null。 ResultSet rs = null。 public DLFrame() {// 構(gòu)造方法 super(登錄界面)。 p2 = new JPanel()。 (管理員)。 image = new ImageIcon(picture\\)。 (imageLabel)。 (100, 100, 246, 345)。 (userName)。 (password)。 (role)。 (btnLogin)。 (btnCancel)。 (p2)。 (false)。 ()。 (this)。 (this)。 } catch (ClassNotFoundException e) { ()。 DatabaseName=student, sa, 123)。 } catch (SQLException e) { ()。 ()。 } } public void itemStateChanged(ItemEvent e) { if (() == ) { JComboBox jcb = (JComboBox) ()。 } } public void actionPerformed(ActionEvent e) { Object source = ()。 String pw = null。// 用于判斷是否登錄成功 if (source == btnLogin) { if (().equals() || ().equals()) {// 判斷是否輸入了用戶名和密碼 (null, 登錄名和密碼不能為空!)。 try { rs = (select * from unpw where qx= + qxian)。 pw = (pw).trim()。 (false)。// 進(jìn)入管理員界面 } if (qxian == 1) { new StudentFrame()。 break。 ()。 } } } if (!success) { (null, 登錄名錯誤!)。 ()。 } } } else if (source == btncz) { ()。 } else if (source == btnCancel) { (0)。import .*。import .*。 JLabel lame = new JLabel(課程名:)。 JTextField to = new JTextField(10)。 JTextField tpo = new JTextField(10)。 JButton btnCancel = new JButton(取消)。 Connection con = null。 ResultSet rs = null。// 用于判斷是否顯示成績信息管理的界面 public GAdd() {// 構(gòu)造方法 (增加)。 (new FlowLayout())。 (to)。 (tame)。 (tpo)。 (btnCancel)。 (false)。 (this)。 ()。 } catch (ClassNotFoundException e) { ()。 DatabaseName=student, sa, 123)。 } catch (SQLException e) { ()。 ()。 } } public void insertst() { // 修改成績 String kch = null。 String xxkch = null。 kcm = ()。 String go = null。 rs = (select o from c where =39。)。// 找出哪門課程的成績要被修改 } (go)。 + xxkch + 39。 + kch + 39。 + go + 39。 } catch (SQLException e) { ()。 if (isNewsm) { new GM(成績信息管理).display()。 } isNewsm = true。 new GM(成績信息管理).display()。import 。import .*。import .*。class GM extends JFrame implements ActionListener {// 成績信息管理 JPanel p = new JPanel()。 JButton btnSearch = new JButton(查詢)。 JMenuBar mb = new JMenuBar()。 JTable sTable。 Connection con = null。 ResultSet rs = null。 GSelect gst。 String mxh = null。 GM(String title) {// 構(gòu)造方法 super(title)。 (Center, p1)。 (btnSearch)。 ()。 (this)。 (this)。 // ()。 show()。 = gst。 add(South, p)。 (btnAlter)。 (btnDisplay)。 (200, 200, 400, 260)。 (this)。 (mb)。 (false)。 } public void display() {// 顯示所有的成績信息 int i = 0。 int k = 0。 try { rs = (select * from sc,c where =)。 (())。 i++。 } playerInfo = new Object[i][3]。 try { rs = (select * from sc,c where =)。 playerInfo[j][1] = ()。 j++。 } sTable = new JTable(playerInfo, columnNames)。 scroll = new JScrollPane(sTable)。 } public void connDB() { // 連接數(shù)據(jù)庫 try { ()。 } try { con = ( jdbc:sqlserver://localhost:1433。 stmt = ()。 } } public void closeDB() // 關(guān)閉連接 { try { ()。 } catch (SQLException e) { ()。 String kcm = null。 int row = 1。 if (row == 1) {// 判斷要修改的信息是否被選中 (null, 請選擇要修改的記錄!)。 try { if (!bstd) {// 判斷選擇的是不是查詢后的結(jié)果 rs
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1