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

正文內(nèi)容

電子商務(wù)專業(yè)課程設(shè)計(jì)——會(huì)員信息管理系統(tǒng)(編輯修改稿)

2025-05-09 04:00 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 er { public void actionPerformed(ActionEvent e) { new CustomerShow(file)。 } } class CustomerShow extends JDialog { /** * */ private static final long serialVersionUID = 1L。 Hashtable 會(huì)員散列表 = null。 JTextArea 顯示 = null。 FileInputStream inOne = null。 ObjectInputStream inTwo = null。 File file = null。 public CustomerShow(File file) { super(new JFrame(), 顯示對(duì)話框)。 = file。 顯示 = new JTextArea(16, 30)。 try { inOne = new FileInputStream(file)。 inTwo = new ObjectInputStream(inOne)。 會(huì)員散列表 = (Hashtable) ()。 ()。 ()。 } catch (Exception ee) { } if (()) (目前還沒有會(huì)員的信息記錄!\n)。 else { (會(huì)員號(hào) 姓名 性別 上月積分 本月積分 總積分 \n)。 for (Enumeration enm = ()。 ()。) { Customer1 stu = (Customer1) ()。 String sex = 。 if (().equals(男)) sex = 男。 else sex = 女。 String str = () + + () + + sex + + () + + () + + () + \n。 (str)。 } } JScrollPane scroll = new JScrollPane(顯示)。 Container con = getContentPane()。 (Center, scroll)。 ()。 setVisible(true)。 setBounds(200, 200, 400, 300)。 addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { setVisible(false)。 } })。 } }}(3) (會(huì)員基本信息管理)package CRM。import .*。import .*。import .*。import .*。import .*。class Customer implements { String number, name, address, telephone, borth, sex。 public Customer() { }。 public void setNumber(String number) { = number。 } public String getNumber() { return number。 } public void setName(String name) { = name。 } public String getName() { return name。 } public void setaddress(String address) { = address。 } public String getaddress() { return address。 } public void settelephone(String telephone) { = telephone。 } public String gettelephone() { return telephone。 } public void setBorth(String borth) { = borth。 } public String getBorth() { return borth。 } public void setSex(String sex) { = sex。 } public String getSex() { return sex。 }}public class CustomerManager extends JFrame { JLabel lb = new JLabel(錄入請(qǐng)先輸入記錄,查詢、刪除請(qǐng)先輸入會(huì)員號(hào),修改時(shí)對(duì)查詢 + 內(nèi)容改后的保存!)。 JTextField 會(huì)員號(hào), 姓名, 家庭地址, 電話號(hào)碼, 出生。 JRadioButton 男, 女。 ButtonGroup group = null。 JButton 錄入, 查詢, 刪除, 修改, 顯示。 JPanel p1, p2, p3, p4, p5, p6, pv, ph。 Customer 會(huì)員 = null。 Hashtable 會(huì)員散列表 = null。 File file = null。 FileInputStream inOne = null。 ObjectInputStream inTwo = null。 FileOutputStream outOne = null。 ObjectOutputStream outTwo = null。 public CustomerManager() { super(會(huì)員基本信息管理系統(tǒng))。 會(huì)員號(hào) = new JTextField(10)。 姓名 = new JTextField(10)。 家庭地址 = new JTextField(10)。 電話號(hào)碼 = new JTextField(10)。 出生 = new JTextField(10)。 group = new ButtonGroup()。 男 = new JRadioButton(男, true)。 女 = new JRadioButton(女, false)。 (男)。 (女)。 錄入 = new JButton(錄入)。 查詢 = new JButton(查詢)。 刪除 = new JButton(刪除)。 修改 = new JButton(修改)。 顯示 = new JButton(顯示)。 (new InputAct())。 (new InquestAct())。 (new ModifyAct())。 (new DeleteAct())。 (new ShowAct())。 (false)。 p1 = new JPanel()。 (new JLabel(會(huì)員號(hào):))。 (會(huì)員號(hào))。 p2 = new JPanel()。 (new JLabel(姓名:))。 (姓名)。 p3 = new JPanel()。 (new JLabel(性別:))。 (男)。 (女)。 p4 = new JPanel()。 (new JLabel(家庭地址:, ))。 (家庭地址)。 p5 = new JPanel()。 (new JLabel(電話號(hào)碼:, ))。 (電話號(hào)碼)。 p6 = new JPanel()。 (new JLabel(出生:, ))。 (出生)。 pv = new JPanel()。 (new GridLayout(6, 1))。 (p1)。 (p2)。 (p3)。 (p4)。 (p5)。 (p6)。 ph = new JPanel()。 (錄入)。 (查詢)。 (修改)。 (刪除)。 (顯示)。 file = new File()。 會(huì)員散列表 = new Hashtable()。 if (!()) { try { FileOutputStream out = new FileOutputStream(file)。 ObjectOutputStream objectOut = new ObjectOutputStream(out)。 (會(huì)員散列表)。 ()。 ()。 } catch (IOException e) { } } Container con = getContentPane()。 (new BorderLayout())。 (lb, )。 (pv, )。 (ph, )。 setDefaultCloseOperation(EXIT_ON_CLOSE)。 setBounds(100, 50, 500, 380)。 setVisible(true)。 } public static void main(String args[]) { new CustomerManager()。 } class InputAct implements ActionListener { public void actionPerformed(ActionEvent e) { (false)。 String number = 。 number = ()。 if (() 0) { try { inOne = new FileInputStream(file)。 inTwo = new ObjectInputStream(inOne)。 會(huì)員散列表 = (Hashtable) ()。 ()。 ()。 } catch (Exception ee) { (創(chuàng)建散列表出現(xiàn)問(wèn)題!)。 } if ((number)) { String warning = 該會(huì)員信息已存在,請(qǐng)到修改頁(yè)面修改!。 (null, warning, 警告, )。 }// end if1 else { String m = 該會(huì)員信息將被錄入!。 int ok = (null, m, 確認(rèn), , )。 if (ok == ) { String name = ()。 String address = ()。 String telephone = ()。 String borth = ()。 String sex = null。 if (()) { sex = ()。 } else { sex = ()。 } 會(huì)員 = new Customer()。 (number)。 (name)。 (address)。 (telephone)。 (borth)。 (sex)。 try { outOne = new FileOutputStream(file)。 outTwo = new ObjectOutputStream(outOne)。 (number, 會(huì)員)。 (會(huì)員散列表)。 ()。 ()。 } catch (Exception ee) { (輸出散列表出現(xiàn)問(wèn)題!)。 } (null)。 (null)。 (null)。 (null)。 (null)。 } }// end else1 }// end if0 else { String warning = 必須輸入會(huì)員號(hào)!。 (null, warning, 警告, )。 }// end else0 }// end actionPerformed }// end class class InquestAct implements ActionListener
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1