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

正文內(nèi)容

java商品房銷(xiāo)售中的客戶(hù)信息管理系統(tǒng)課程設(shè)計(jì)-免費(fèi)閱讀

  

【正文】 (p1)。 (t5)。 (t3)。 (t1)。 t5 = new JTextField(20)。 l2 = new JLabel(姓名)。import .*。 } else { (null, delete failure, 提示信息, )。 (true)。 (280, 300, 80, 30)。 JPanel p1 = new JPanel()。import 。 }}執(zhí)行截圖如下:(9)StudentDeleteUI類(lèi):此類(lèi)為刪除學(xué)生基本信息界面類(lèi),在此界面中有一個(gè)標(biāo)簽,一個(gè)文本框,還有兩個(gè)按鈕“刪除”“退出”。 ()。 } class AddListener implements ActionListener{ public void actionPerformed(ActionEvent arg0) { StudentDao oneStudentDao = new StudentDao()。 (new CloseListener())。 (l5)。 (l3)。 (l1)。 t3 = new JTextField(24)。 JButton bt1, bt2。若添加成功,提示成功,否則提示失敗。 (row)。 i ()。 VectorString head = new Vector()。 bottomPanel = new JPanel()。 (selectionLabel)。 JPanel bottomPanel。 JPanel topPanel。import .*。 (model)。 Student oneStudent = (Student) (i)。 (姓名)。 break。 } class SelectedListener implements ItemListener{ public void itemStateChanged(ItemEvent event) { if (() == ) { selectedNum = ()。//給檢索按鈕注冊(cè)事件 table = new JTable()。 (new FlowLayout())。 (姓名)。 JTable table。public class InformationQueryUI extends JFrame{ JLabel selectionLabel。import .*。 } } class DeleteActionListener implements ActionListener{ public void actionPerformed(ActionEvent e){ new StudentDeleteUI()。 (addScoreMenuItem)。 JMenuItem addScoreMenuItem=new JMenuItem(增加成績(jī)信息)。 (new QueryActionListener())。 } public void buildMainMenu(JMenuBar menuBar){ JMenu fileMenu=new JMenu(文件)。 TeacherMainUI(){ ctp = ()。其中“文件”菜單中有“退出”菜單項(xiàng),點(diǎn)擊時(shí)跳出對(duì)話框問(wèn)是否真的退出,若點(diǎn)擊是,窗口關(guān)閉,若點(diǎn)擊否,回復(fù)原界面。 TeacherDao oneTeacherDao = new TeacherDao()。 (p1)。 (150, 230, 80, 30)。 (150, 150, 80, 40)。 public TeacherLoginUI(){ l1 = new JLabel(教師姓名)。import .*。 } DefaultTableModel model = new DefaultTableModel(content, head)。 i++) { Vector row = new Vector()。 (學(xué)號(hào))。 bottomPanel = new JPanel()。 selectionLabel = new JLabel(aa+同學(xué)本學(xué)期成績(jī)?nèi)缦?。public class StudentScoreUI extends JFrame{ String aa=。import .*。 } else (null, 用戶(hù)名密碼錯(cuò)誤, 提示信息, )。 (new WindowAdapter() { public void windowClosing(WindowEvent e) { (0)。 (new LoginActionListener())。 (150, 190, 80, 40)。 bt1 = new JButton(成績(jī)查詢(xún))。 JButton bt1, bt2。 StudentLoginUI類(lèi)源代碼: package ui。 } class TeacherLoginActionListener implements ActionListener{ public void actionPerformed(ActionEvent e){ new TeacherLoginUI()。//注冊(cè)事件 cp = getContentPane()。 (150, 150, 120, 40)。public class LoginUI extends JFrame { JLabel l1。 = age。 } public int getAge() { return age。 int age。String sname。 } public void setCredit(int credit) { = credit。 } public void setNum(int num) { = num。int credit。 if (count == 1) return true。 } public boolean deleteScore(String key) { Connection con = ()。 (3, course)。 (score)。 Statement stm。 (sql)。import 。import 。queryScore()方法中,有一個(gè)參數(shù),傳給select語(yǔ)句中的sname(學(xué)生姓名),利用select語(yǔ)句,查詢(xún)學(xué)生成績(jī)信息表中的內(nèi)容。 (1, tname)。import 。 else return false。 Statement stm。 。 } catch (SQLException e) { ()。 (1, num)。 ResultSet rs=()。import 。若存在此信息,則返回一個(gè)ArrayList類(lèi)的對(duì)象lis(表格),否則,異常處理StudentDao類(lèi)源代碼:package dao。 (database close success)。 } catch (ClassNotFoundException e) { (Driver not found)。若連接成功,提示:connection success,若連接失敗,提示:connection failureDBconnection類(lèi)源代碼:package connection。若要查詢(xún)學(xué)生成績(jī)信息,則點(diǎn)擊學(xué)生成績(jī)查詢(xún)菜單項(xiàng),進(jìn)入成績(jī)查詢(xún)界面。如果選擇學(xué)生用戶(hù),則進(jìn)入學(xué)生登錄界面,在這個(gè)界面上輸入學(xué)生姓名和用戶(hù)密碼。當(dāng)教師用戶(hù)登陸此系統(tǒng)時(shí),從該表獲取數(shù)據(jù)。在查找學(xué)生成績(jī)信息時(shí),只能依據(jù)學(xué)生姓名和學(xué)號(hào)進(jìn)行查找。商家登陸后可以對(duì)基本信息表進(jìn)行查看、增添新記錄和刪除記錄等操作??蛻?hù)登陸后能查詢(xún)客戶(hù)信息。在修改功能里面,包括對(duì)學(xué)生基本信息表和學(xué)生成績(jī)表進(jìn)行增加和刪除記錄 學(xué)生方面:學(xué)生通過(guò)自己的用戶(hù)名和密碼登錄此系統(tǒng)后, 可以查詢(xún)自己本學(xué)期的各科成績(jī)信息商品房銷(xiāo)售中的客戶(hù)信息管理系統(tǒng)3.2系統(tǒng)模塊結(jié)構(gòu)圖商家登陸客戶(hù)登陸商家操作界面房型與房?jī)r(jià)信息3.3數(shù)據(jù)庫(kù)結(jié)構(gòu)設(shè)計(jì)為了支持此學(xué)生信息管理系統(tǒng),創(chuàng)建數(shù)據(jù)庫(kù)studentmanage。截圖如下:在studentlogin(學(xué)生登錄)表中,有兩個(gè)屬性列,分別為:sname(學(xué)生姓名),password(登錄密碼)。輸入后單擊“成績(jī)查詢(xún)”按鈕,若密碼正確,這顯示該學(xué)生本人本學(xué)期成績(jī),若密碼不正確,這提示密碼錯(cuò)誤。在此界面的文本框中輸入要查詢(xún)成績(jī)的學(xué)生姓名,然后單擊檢索按鈕。import 。 ()。 } catch (SQLException e) { (close failure)。import 。public class StudentDao { public boolean studentLogin(String sname,String password) { DBConnection db=new DBConnection()。 if(()) isfound=true。 (2, sname)。 } return false。 (sql)。 try { stm = ()。 } catch (SQLException e) { ()。import 。 (2,password)。若查詢(xún)成功,則返回一個(gè)ArrayList類(lèi)的對(duì)象lis(表格),否則,異常處理queryScore1()方法中,有一個(gè)參數(shù),傳給傳給select語(yǔ)句中的sname(學(xué)生姓名),這個(gè)sname的學(xué)生用戶(hù)登錄時(shí)輸入的姓名。import 。public class ScoreDao { public ArrayList queryScore(String key) { ArrayList lis = new ArrayList()。 ResultSet rs = (sql)。 try { stm = ()。 } } catch (SQLException e) { ()。 (4, score)。 Statement stm。 else return false。十個(gè)成員方法,分別獲取和設(shè)置這五個(gè)變量,即為score表中五個(gè)屬性的記錄值,均為getXXX()setXXX()方法,還有一個(gè)構(gòu)造方法,用于調(diào)用其對(duì)象時(shí)對(duì)成員變量賦值Score類(lèi)源代碼:package model。 } public String getSname() { return sname。 } public Score(int num, String sname, String course, int score,int credit) { super()。String sex。 String dept。 } public void setAge(int age) { = age。 = dept。 JButton bt1, bt2。 (l1)。 (200, 200, (), ())。 dispose()。import .*。 Container cp。 bt2 = new JButton(退出)。 (l2)。//注冊(cè)事件 (new ExitActionListener())。 } })。 } } class ExitActionListener implements ActionListener { public void actionPerformed(ActionEvent e) { (0)。import .*。 JLabel selectionLabel。 topPanel = new JPanel()。 (, bottomPanel)。 (姓名)。 Score oneScore1 = (Score) (i)。 (model)。import .*。 l2 = new JLabel(密碼)。 (l1)。 (bt1)。 (教師登錄界面)。 boolean isSuccess = (st1, st2)?!安樵?xún)”菜單中有“學(xué)生基本信息”和“學(xué)生成績(jī)信息”兩個(gè)菜單項(xiàng):當(dāng)點(diǎn)擊“學(xué)生基本信息”時(shí),通過(guò)注冊(cè)事件,創(chuàng)建InformationQueryUI類(lèi)的對(duì)象,即打開(kāi)查詢(xún)學(xué)生基本信息的窗口,當(dāng)點(diǎn)擊“學(xué)生成績(jī)信息”時(shí),通過(guò)注冊(cè)事件,創(chuàng)建ScoreQueryUI類(lèi)的對(duì)象,即打開(kāi)查詢(xún)學(xué)生成績(jī)信息的窗口。 (歡迎進(jìn)入學(xué)生管理系統(tǒng)!)。 JMenuItem exitMenuItem=new JMenuItem(退出)。//注冊(cè)事件 (new QueryScoreActionListener())。 JMenuItem d
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1