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

正文內(nèi)容

學(xué)生信息管理系統(tǒng)[java]代碼-資料下載頁

2025-04-07 23:06本頁面
  

【正文】 from unpw where qx=1)。 } else { rs = stmt .executeQuery(select * from unpw where qx=1 and un=39。 + myh + 39。)。 } while (() amp。amp。 j1 = row) { yh = (un)。 mm = (pw)。 j1++。 } } catch (SQLException e) { ()。 } UAdd uadd = new UAdd()。 (修改)。 (yh)。 (mm)。 (false)。 ()。 } } public void select() {// 顯示某個查詢的結(jié)果 myh = 。 playerInfo = new Object[1][2]。 String[] columnNames = { 用戶名, 密碼 }。 try { rs = (select * from unpw where qx=1 and un=39。 + myh + 39。)。 while (()) { playerInfo[0][0] = (un)。 playerInfo[0][1] = (pw)。 } } catch (SQLException e) { ()。 } if (playerInfo[0][1] == null) { ()。 (null, 用戶不存在!)。 new PM(用戶信息管理).display()。 } else { sTable = new JTable(playerInfo, columnNames)。 (sTable)。 scroll = new JScrollPane(sTable)。 (scroll)。 } } public void actionPerformed(ActionEvent e) { if (() == 修改) { ()。 } if (() == 查詢) { pst = new PSelect()。 ()。 } if (() == 顯示) { ()。 new PM(用戶信息管理).display()。 } }}import 。import 。import .*。import .*。import .*。import .*。import 。class PPM extends JFrame implements ActionListener {// 個人信息管理 JPanel p = new JPanel()。 JButton btnAlter = new JButton(修改密碼)。 JMenuBar mb = new JMenuBar()。 JPanel p1 = new JPanel()。 JTable sTable。 JScrollPane scroll。 Connection con = null。 Statement stmt = null。 ResultSet rs = null。 Object[][] playerInfo。 PPSelect pst。 String myh = null。 boolean bstd = false。 PPM(String title) {// 構(gòu)造方法 super(title)。 add(South, p)。 (Center, p1)。 (btnAlter)。 ()。 (200, 200, 200, 260)。 (this)。 (mb)。 // ()。 (false)。 show()。 } PPM(PPSelect pst, String title) {// 構(gòu)造方法 super(title)。 = pst。 bstd = true。 add(South, p)。 (Center, p1)。 (btnAlter)。 ()。 (200, 200, 200, 260)。 (this)。 (mb)。 // ()。 (false)。 show()。 } public void connDB() { // 連接數(shù)據(jù)庫 try { ()。 } catch (ClassNotFoundException e) { ()。 } try { con = ( jdbc:sqlserver://localhost:1433。 DatabaseName=student, sa, 123)。 stmt = ()。 } catch (SQLException e) { ()。 } } public void closeDB() // 關(guān)閉連接 { try { ()。 ()。 } catch (SQLException e) { ()。 } } public void update() {// 修改密碼 String yh = null。 String mm = null。 int row = 1。 row = ()。 if (row == 1) { (null, 請選擇要修改的記錄!)。 } else { int j1 = 0。 try { if (!bstd) { rs = (select * from unpw where qx=1)。 } else { rs = stmt .executeQuery(select * from unpw where qx=1 and un=39。 + myh + 39。)。 } while (() amp。amp。 j1 = row) { yh = (un)。 mm = (pw)。 j1++。 } } catch (SQLException e) { ()。 } UAdd uadd = new UAdd()。 (修改密碼)。 (yh)。 (mm)。 (false)。 ()。 } } public void select() {// 查詢某個用戶的個人信息 myh = 。 playerInfo = new Object[1][2]。 String[] columnNames = { 用戶名, 密碼 }。 try { rs = (select * from unpw where qx=1 and un=39。 + myh + 39。)。 while (()) { playerInfo[0][0] = (un)。 playerInfo[0][1] = (pw)。 } } catch (SQLException e) { ()。 } if (playerInfo[0][1] == null) { ()。 (null, 用戶不存在!)。 // new PPM(用戶信息管理).select()。 } else { sTable = new JTable(playerInfo, columnNames)。 (sTable)。 scroll = new JScrollPane(sTable)。 (scroll)。 } } public void actionPerformed(ActionEvent e) { ()。 }}import .*。import 。import 。import 。import 。import 。import .*。public class PPSelect extends JFrame implements ActionListener {// 用于個人信息管理查詢時輸入用戶名的界面 JLabel ltitle = new JLabel(用戶名:)。 JTextField tun = new JTextField(8)。 JButton btnOK = new JButton(確定)。 JPanel p = new JPanel()。 String yh = null。 public PPSelect() { // 構(gòu)造方法 (ltitle)。 (tun)。 (btnOK)。 add(p)。 (300, 280, 200, 160)。 (this)。 (false)。 ()。 } public void actionPerformed(ActionEvent e) { yh = ()。// 取得當(dāng)前輸入的用戶名 if (()) {// 判斷是否輸入了用戶名 (null, 用戶名不能為空,請重新輸入!)。 } else { ()。 new PPM(this, 用戶信息管理).select()。 } }}import .*。import 。import 。import 。import 。import 。import .*。public class PSelect extends JFrame implements ActionListener {// 用于用戶信息管理中查詢時輸入用戶名的界面 JLabel ltitle = new JLabel(用戶名:)。 JTextField tun = new JTextField(8)。 JButton btnOK = new JButton(確定)。 JPanel p = new JPanel()。 String yh = null。 public PSelect() { // 構(gòu)造方法 (ltitle)。 (tun)。 (btnOK)。 add(p)。 (300, 280, 200, 160)。 (this)。 (false)。 ()。 } public void actionPerformed(ActionEvent e) { yh = ()。// 取得當(dāng)前輸入用戶名的值 if (()) {// 判斷是否輸入了用戶名 (null, 用戶名不能為空,請重新輸入!)。 } else { ()。 new PM(this, 用戶信息管理).select()。 } }}import .*。import .*。import .*。import .*。class SAdd extends JFrame implements ActionListener, ItemListener {// 用于學(xué)生信息管理中增加或修改某條記錄的界面 JLabel lsno = new JLabel(學(xué)號:)。 JLabel lsname = new JLabel(姓名:)。 JLabel lssex = new JLabel(性別:)。 JLabel lsage = new JLabel(年齡:)。 JLabel lsdept = new JLabel(院系:)。 JTextField tsno = new JTextField(14)。 JTextField tsname = new JTextField(14)。 JComboBox cbssex = new JComboBox()。 JTextField tsage = new JTextField(14)。 JComboBox cbsdept = new JComboBox()。 JButton btnOK = new JButton( 確 定 )。 JButton btnCancel = new JButton( 取 消 )。 JPanel p = new JPanel()。 Connection con = null。 Statement stmt = null。 ResultSet rs = null。 String xb = 男。 String yx = 計科系。 boolean isNewsm = true。// 用于判斷是否顯示學(xué)生管理的界面 public SAdd(String xb, String yx) {// 構(gòu)造方法 = xb。 = yx。 (增加)。 (200, 200, 220, 210
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1