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

正文內(nèi)容

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

2024-12-15 13:57本頁面

【導(dǎo)讀】packagems;LoginGUIlg=newLoginGUI();packagems;import;import;import;import;import;import;import;import;import;import;import;import;import;import;super();=newJFrame("學(xué)生學(xué)籍管理系統(tǒng)");=newJPanel();=newJPanel();=newJPanel();jLabel1=newJLabel("用戶名");jLabel2=newJLabel("密碼");jLabel3=newJLabel("登錄方式");jLabel4=newJLabel(newImageIcon("image/"));t1=newTextField();t2=newTextField();("學(xué)生登陸");("管理員登陸");BorderLayoutborder=newBorderLayout();(15);(10);(jPanel1,);(jPanel2,);(jPanel3,);(jLabel4,);(newGridLayout(3,1,30,20));(newGridLayout(1,2,10,30));(jLabel2);(jLabel3);(t2);(c);(jB2);StudentGUI(,);Selectsel=newSelect();(false);");AdminGUIadmin=newAdminGUI();Selectsel=newSelect();

  

【正文】 g sql=UPDATE student SET name=39。+name+39。,sex=39。+sex+39。,bornDate=39。+bornDate+39。,nationality=39。+nationality+39。,hometown=39。+hometown+39。,maj=39。+maj+39。,cla=39。+cla+39。,telNum=39。+telNum+39。,password=39。+password+39。 WHERE id=+() 。 try { conn = (DBURL,DBUSER,DBPASS) 。 } catch (SQLException e1) { // TODO Autogenerated catch block ()。 } try { stmt = () 。 } catch (SQLException e) { // TODO Autogenerated catch block ()。 } // 實(shí)例化 Statement 對(duì) 象 try { (sql) 。 } catch (SQLException e) { // TODO Autogenerated catch block ()。 } // 執(zhí)行數(shù)據(jù)庫更新操作 try { () 。 // 關(guān)閉操作 () 。 // 數(shù)據(jù)庫關(guān)閉 } catch (SQLException e) { // TODO Autogenerated catch block ()。 } return true。 } 程序源代碼 學(xué)生學(xué)籍管理系統(tǒng) 27 / 32 public boolean updatePassword(String id,String newPassword) { Connection conn = null 。 // 數(shù)據(jù)庫連接 Statement stmt = null 。 // 數(shù)據(jù)庫操作 String sql=UPDATE student SET password=39。+newPassword+39。 WHERE id=+id 。 try { conn = (DBURL,DBUSER,DBPASS) 。 } catch (SQLException e1) { // TODO Autogenerated catch block ()。 } try { stmt = () 。 } catch (SQLException e) { // TODO Autogenerated catch block ()。 } // 實(shí)例化 Statement 對(duì)象 try { (sql) 。 } catch (SQLException e) { // TODO Autogenerated catch block ()。 } // 執(zhí)行數(shù)據(jù)庫更新操作 try { () 。 // 關(guān)閉操作 () 。 // 數(shù)據(jù)庫關(guān)閉 } catch (SQLException e) { // TODO Autogenerated catch block ()。 } return true。 } } /* 刪除類 * 定義了刪除的所有方法 */ 程序源代碼 學(xué)生學(xué)籍管理系統(tǒng) 28 / 32 package ms。 import 。 import 。 import 。 import 。 public class Delete { // 定義 MySQL 的數(shù)據(jù)庫驅(qū)動(dòng)程序 public static final String DBDRIVER = 。 // 定義 MySQL 數(shù)據(jù)庫的連接地址 public static final String DBURL = jdbc: 。 // MySQL 數(shù)據(jù)庫的連接用戶名 public static final String DBUSER = root 。 // MySQL 數(shù)據(jù)庫的連接密碼 public static final String DBPASS = systemout 。 public boolean delete (String str) { Select sel=new Select()。 if((str)==false) { return false。 } Connection conn = null 。 // 數(shù)據(jù)庫連接 Statement stmt = null 。 // 數(shù)據(jù)庫操作 int id = (str) 。 try { (DBDRIVER) 。 } catch (ClassNotFoundException e) { // TODO Autogenerated catch block ()。 } // 加載驅(qū)動(dòng)程序 String sql = DELETE FROM student WHERE id=+id 。 try { conn = (DBURL,DBUSER,DBPASS) 。 } catch (SQLException e) { // TODO Autogenerated catch block ()。 } try { stmt = () 。 } catch (SQLException e) { // TODO Autogenerated catch block 程序源代碼 學(xué)生學(xué)籍管理系統(tǒng) 29 / 32 ()。 } // 實(shí)例化 Statement 對(duì)象 try { (sql) 。 } catch (SQLException e) { // TODO Autogenerated catch block ()。 } // 執(zhí)行數(shù)據(jù)庫更新操作 try { () 。 // 關(guān)閉操作 () 。 // 數(shù)據(jù)庫關(guān)閉 } catch (SQLException e) { // TODO Autogenerated catch block ()。 } return true。 } } /*學(xué)生類 */ package ms。 public class Student { private int id=0。 //用于存放學(xué)號(hào) private String name=null。 //用于存放學(xué)生姓名 private String sex=null。 //用于存放性別 private String bornDate=null。 //出生年日期 private String nationality=null。 //民族 private String hometown=null。 //用于存放籍貫 private String maj=null。 //用于存放專業(yè) private String cla=null。 //用于存放班級(jí) private String telNum=null。 //用于存放聯(lián)系電話 private String password=null。 //用于存放密碼 public Student(int id, String name, String sex, String bornDate, String nationality, String hometown, String maj, String cla, String telNum, String password) { = id。 = name。 = sex。 = bornDate。 = nationality。 = hometown。 = maj。 程序源代碼 學(xué)生學(xué)籍管理系統(tǒng) 30 / 32 = cla。 = telNum。 = password。 } public Student() { super()。 } public void setId(int id) { = id。 } public void setName(String name) { = name。 } public void setSex(String sex) { = sex。 } public void setBornDate(String bornDate) { = bornDate。 } public void setNationality(String nationality) { = nationality。 } public void setHometown(String hometown) { = hometown。 } public void setMaj(String maj) { = maj。 } public void setCla(String cla) { = cla。 } public void setTelNum(String telNum) { = telNum。 } public void setPassword(String password) { = password。 } public int getId() { return id。 } 程序源代碼 學(xué)生學(xué)籍管理系統(tǒng) 31 / 32 public String getName() { return name。 } public String getSex() { return sex。 } public String getBornDate() { return bornDate。 } public String getNationality() { return nationality。 } public String getHometown() { return hometown。 } public String getMaj() { return maj。 } public String getCla() { return cla。 } public String getTelNum() { return telNum。 } public String getPassword() { return password。 } } /*管理員類 */ package ms。 public class Administrator { int id=0。 //存放管理員 id(登陸名) String password=null。 //管理員密碼 public Administrator(int id, String password) { = id。 程序源代碼 學(xué)生學(xué)籍管理系統(tǒng) 32 / 32 = password。 } public int getId() { return id。 } public String getPassword() { return password。 } }
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1