亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? suppliermanageframe.java

?? java進(jìn)銷存信息管理系統(tǒng),實(shí)現(xiàn)了倉庫產(chǎn)品價(jià)格人員報(bào)表等功能
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
    JButton tmpBtn = new JButton();    for(int i = 0; i < components.length; i++){      components[i].setFont(dialog13);      if(components[i].getClass().getName().equals("javax.swing.JButton")){        tmpBtn = (JButton)components[i];        tmpBtn.addActionListener(this);      }    }  }  //退出方法  public void exit(){    //隱藏窗口    this.setVisible(false);    //清空數(shù)組的內(nèi)容    supplier = new String[0][16];    //清空列表框的內(nèi)容    listData1.clear();    //取得面板上的所有控件    Component[] components = contentPane.getComponents();    //創(chuàng)建臨時(shí)文本框控件    JTextField tmpTextField = new JTextField();    for(int i = 0; i < components.length; i++){      if(components[i].getClass().getName().equals("javax.swing.JTextField")){        tmpTextField = (JTextField)components[i];        //清空編輯框的內(nèi)容        tmpTextField.setText("");      }    }  }  //顯示查詢供應(yīng)商的方法  public void showSearchSupplier(){    listData1.clear();    //為供應(yīng)商列表框加入供應(yīng)商數(shù)據(jù)    for(int i = 0; i < supplier.length; i++){      listData1.addElement(supplier[i][0]);    }  }  //顯示單個(gè)供應(yīng)商的方法  public void showSupplier(){    //取得當(dāng)前選擇項(xiàng)的位置    int selectedIndex = jList1.getSelectedIndex();    //當(dāng)列表框不處于選擇狀態(tài),不顯示數(shù)據(jù)    if(selectedIndex == -1){       return;    }    //顯示供應(yīng)商的數(shù)據(jù)    jTextField1.setText(supplier[selectedIndex][0]);    jTextField2.setText(supplier[selectedIndex][1]);    jTextField3.setText(supplier[selectedIndex][2]);    jTextField4.setText(supplier[selectedIndex][3]);    jTextField5.setText(supplier[selectedIndex][4]);    jTextField6.setText(supplier[selectedIndex][5]);    jTextField7.setText(supplier[selectedIndex][6]);    jTextField8.setText(supplier[selectedIndex][7]);    jTextField9.setText(supplier[selectedIndex][8]);    jTextField10.setText(supplier[selectedIndex][9]);    jTextField11.setText(supplier[selectedIndex][10]);    jTextField12.setText(supplier[selectedIndex][11]);    jTextField13.setText(supplier[selectedIndex][12]);    jTextField14.setText(supplier[selectedIndex][13]);    jTextField15.setText(supplier[selectedIndex][14]);    jTextArea1.setText(supplier[selectedIndex][15]);  }  //清空單個(gè)供應(yīng)商顯示的方法  public void clearSupplier(){    jTextField1.setText("");    jTextField2.setText("");    jTextField3.setText("");    jTextField4.setText("");    jTextField5.setText("");    jTextField6.setText("");    jTextField7.setText("");    jTextField8.setText("");    jTextField9.setText("");    jTextField10.setText("");    jTextField11.setText("");    jTextField12.setText("");    jTextField13.setText("");    jTextField14.setText("");    jTextField15.setText("");    jTextArea1.setText("");  }  //設(shè)置用戶的方法  public void setUser(User user) {    this.user = user;  }  protected void processWindowEvent(WindowEvent e) {    if (e.getID() == WindowEvent.WINDOW_CLOSING) {      exit();    }  }  //檢查按鈕的狀態(tài)  public void checkBtn(boolean isManipulated){    if(isManipulated){      jButton2.setEnabled(false);      jButton3.setEnabled(false);      jButton4.setEnabled(false);      jButton5.setEnabled(true);      jButton6.setEnabled(true);    }else{      jButton2.setEnabled(true);      jButton3.setEnabled(true);      jButton4.setEnabled(true);      jButton5.setEnabled(false);      jButton6.setEnabled(false);    }  }  //列表1的選擇事件  void jList1_valueChanged(ListSelectionEvent e) {    if(listData1.size() > 0){      this.showSupplier();    }else{      this.clearSupplier();    }  }  //查詢方法  public void search(){    //取得查詢選項(xiàng)    int selectedIndex = jComboBox1.getSelectedIndex();    String searchValue = jTextField16.getText().trim();    switch (selectedIndex) {      case 0:        //根據(jù)供應(yīng)商名字取得記錄        supplier = stockManagementData.getSuppliersBySupplierName(searchValue);        break;      case 1:        //根據(jù)地區(qū)取得記錄        supplier = stockManagementData.getSuppliersBySupplierZone(searchValue);        break;    }    this.showSearchSupplier();  }  //單擊事件方法  public void actionPerformed(ActionEvent e) {    //取得按鈕的動(dòng)作字符串    String actionCommand = e.getActionCommand().trim();    if(actionCommand.equals("update") | actionCommand.equals("delete")){      if(jList1.isSelectionEmpty()){        JOptionPane.showMessageDialog(null, "請選擇供應(yīng)商.");        return;      }    }    //單擊按鈕的處理代碼    if (actionCommand.equals("search")) {      String searchValue = jTextField16.getText().trim();      if(searchValue.length() == 0){        JOptionPane.showMessageDialog(null, "請輸入查詢值");        return;      }      //查詢      search();    }else if(actionCommand.equals("create")){      action = "create";      this.clearSupplier();      this.checkBtn(true);    }else if(actionCommand.equals("update")){      action = "update";      this.checkBtn(true);    }else if(actionCommand.equals("delete")){      action = "delete";      this.checkBtn(true);    }else if(actionCommand.equals("ok")){      //取得供應(yīng)商的值      String[] supplierArray = new String[16];      supplierArray[0] = jTextField1.getText().trim();      supplierArray[1] = jTextField2.getText().trim();      supplierArray[2] = jTextField3.getText().trim();      supplierArray[3] = jTextField4.getText().trim();      supplierArray[4] = jTextField5.getText().trim();      supplierArray[5] = jTextField6.getText().trim();      supplierArray[6] = jTextField7.getText().trim();      supplierArray[7] = jTextField8.getText().trim();      supplierArray[8] = jTextField9.getText().trim();      supplierArray[9] = jTextField10.getText().trim();      supplierArray[10] = jTextField11.getText().trim();      supplierArray[11] = jTextField12.getText().trim();      supplierArray[12] = jTextField13.getText().trim();      supplierArray[13] = jTextField14.getText().trim();      supplierArray[14] = jTextField15.getText().trim();      supplierArray[15] = jTextArea1.getText().trim();      if(supplierArray[0].length() == 0){        JOptionPane.showMessageDialog(null, "供應(yīng)商名字不允許空值.");        return;      }      if(action.equals("create")){        //創(chuàng)建供應(yīng)商        int result = stockManagementData.createSupplier(supplierArray);        if(result == 1){          //為列表框加入供應(yīng)商          listData1.addElement(supplierArray[0]);          //更新供應(yīng)商數(shù)組          String[][] tempStrs = new String[supplier.length + 1][16];          System.arraycopy(supplier, 0, tempStrs, 0, supplier.length);          for(int i = 0; i < 16; i++){            tempStrs[supplier.length][i] = supplierArray[i];          }          supplier = tempStrs;          jList1.setSelectedIndex(listData1.size() -1);        }else{          JOptionPane.showMessageDialog(null, "供應(yīng)商創(chuàng)建失敗,請檢查該供應(yīng)商是否存在和值是否超出字段長度.");        }      }else if (action.equals("update")){        //更新供應(yīng)商        int result = stockManagementData.updateSupplier(supplierArray);        if(result == 1){          //更新供應(yīng)商數(shù)組          int selectedIndex = jList1.getSelectedIndex();          for(int i = 0; i < 16; i++){            supplier[selectedIndex][i] = supplierArray[i];          }        }else{          JOptionPane.showMessageDialog(null, "供應(yīng)商更新失敗.");        }      }else if (action.equals("delete")){        //刪除供應(yīng)商        int result = stockManagementData.deleteSupplier(supplierArray[0]);        if(result == 1){          int selectedIndex = jList1.getSelectedIndex();          //刪除列表框的數(shù)據(jù)          listData1.removeElementAt(selectedIndex);          //更改數(shù)組的數(shù)據(jù)          String[][] tempStrs = new String[supplier.length -1][16];          int line = 0;          for(int i = 0; i < supplier.length; i++){            if(i == selectedIndex){              continue;            }else{              for(int j = 0; j < 16; j++){                tempStrs[line][j] = supplier[i][j];              }              line++;            }          }          supplier = tempStrs;          //清空編輯框的值          this.clearSupplier();        }else{          JOptionPane.showMessageDialog(null, "供應(yīng)商刪除失敗.");        }      }      this.checkBtn(false);    }else if(actionCommand.equals("cancel")){       this.jList1_valueChanged(null);       this.checkBtn(false);    }else if(actionCommand.equals("exit")){      exit();    }  }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
青草国产精品久久久久久| 欧美精品日韩精品| 中文字幕乱码久久午夜不卡| 国产麻豆精品在线观看| 久久精品夜色噜噜亚洲aⅴ| 国产激情91久久精品导航| 国产日韩欧美精品在线| 成人看片黄a免费看在线| 国产精品国产三级国产普通话蜜臀| 成人综合在线观看| 国产精品美女久久久久av爽李琼| 99久久99久久免费精品蜜臀| 亚洲一区二区精品视频| 91精品在线观看入口| 国产美女精品一区二区三区| 国产精品美女久久久久久久| 欧美中文字幕久久| 久久精品国产99国产精品| 中文字幕第一页久久| 欧美综合欧美视频| 狠狠色丁香久久婷婷综| 亚洲欧洲99久久| 欧美日本在线播放| 国产美女视频一区| 亚洲一区免费在线观看| 久久欧美一区二区| 91国内精品野花午夜精品| 久久99国产精品久久99| 国产无人区一区二区三区| 色94色欧美sute亚洲线路二| 美女脱光内衣内裤视频久久网站 | 日本成人在线视频网站| 精品成人a区在线观看| 成人av先锋影音| 毛片av一区二区三区| 中文字幕一区二区不卡| 欧美一级久久久久久久大片| 99久久综合狠狠综合久久| 日本成人在线不卡视频| 中文字幕视频一区| 欧美电视剧免费观看| 日本道免费精品一区二区三区| 免费观看成人鲁鲁鲁鲁鲁视频| 国产精品视频看| 日韩三级.com| 色8久久精品久久久久久蜜| 激情综合色丁香一区二区| 一区二区三区加勒比av| 亚洲精品一区二区在线观看| 欧美日韩一区三区四区| 成人黄色777网| 国产一区三区三区| 秋霞午夜鲁丝一区二区老狼| 亚洲免费资源在线播放| 国产日韩成人精品| 日韩免费视频线观看| 欧美久久久影院| 色偷偷一区二区三区| 国产激情一区二区三区四区| 免费人成黄页网站在线一区二区| 亚洲自拍另类综合| 国产精品久久久久久亚洲毛片| 精品国产一区久久| 欧美一区二区精品| 制服视频三区第一页精品| 在线观看视频一区二区欧美日韩| 东方aⅴ免费观看久久av| 狠狠色丁香婷婷综合| 久久精品久久精品| 免费日本视频一区| 美女脱光内衣内裤视频久久网站| 亚洲va韩国va欧美va精品 | 99在线热播精品免费| 国产精品主播直播| 激情综合网av| 国产一区三区三区| 国产一区二区三区美女| 国产一区二区三区四区五区美女| 美女视频第一区二区三区免费观看网站| 亚洲午夜一区二区三区| 亚洲线精品一区二区三区| 亚洲国产精品一区二区尤物区| 亚洲三级电影网站| 亚洲精品高清在线观看| 亚洲精品一二三四区| 亚洲综合色自拍一区| 一区二区三区精密机械公司| 亚洲线精品一区二区三区| 亚洲国产精品麻豆| 日本va欧美va瓶| 久久国产尿小便嘘嘘尿| 韩国女主播一区二区三区| 国产一区二区日韩精品| www.性欧美| 色av一区二区| 91麻豆精品国产自产在线| 制服丝袜亚洲网站| 欧美成人精品福利| 久久久久久久久久久久电影| 日本一区二区电影| 亚洲精品一二三| 日本视频中文字幕一区二区三区| 久久福利资源站| 成人福利在线看| 在线视频综合导航| 精品久久久久久久久久久久久久久久久 | 亚洲精品视频免费看| 亚洲综合色自拍一区| 美腿丝袜一区二区三区| 夫妻av一区二区| 欧美色图12p| 日韩视频在线观看一区二区| 日本一区二区视频在线观看| 亚洲在线观看免费| 奇米影视7777精品一区二区| 国产69精品久久99不卡| 欧美在线三级电影| 精品99久久久久久| 亚洲最新视频在线播放| 另类小说一区二区三区| av一二三不卡影片| 欧美电影免费观看高清完整版 | 99综合影院在线| 欧美一区二区三区精品| 国产精品网曝门| 日韩在线卡一卡二| av不卡在线播放| 日韩欧美在线观看一区二区三区| 国产精品久久毛片a| 蜜桃传媒麻豆第一区在线观看| 成人免费不卡视频| 91精品国产欧美一区二区成人| 国产精品久久久久久久岛一牛影视 | 国产91富婆露脸刺激对白| 欧美日韩在线播放一区| 国产欧美精品国产国产专区 | 美女视频黄 久久| 91福利社在线观看| 日韩三级伦理片妻子的秘密按摩| 悠悠色在线精品| 成人一道本在线| 日韩欧美在线一区二区三区| 亚洲综合免费观看高清完整版在线| 精品伊人久久久久7777人| 欧美日韩在线播放一区| 亚洲免费av在线| 高清日韩电视剧大全免费| 欧美成人精精品一区二区频| 五月激情综合网| 日本韩国一区二区三区| 中文字幕中文字幕一区| 国产精品1区二区.| 精品国产一区二区三区四区四| 亚洲成人在线观看视频| 在线中文字幕一区| 亚洲精品亚洲人成人网| 99国产精品国产精品毛片| 亚洲国产一区在线观看| 国产成人av自拍| 久久午夜色播影院免费高清| 蜜臂av日日欢夜夜爽一区| 91精品国产91久久久久久一区二区| 亚洲综合久久av| 在线一区二区三区做爰视频网站| 亚洲色图色小说| 91色视频在线| 亚洲欧美日韩电影| 一本到一区二区三区| 亚洲伦在线观看| 色综合天天综合网天天狠天天| 中文字幕日韩一区| 99精品在线观看视频| 亚洲人成网站色在线观看| 一本到不卡精品视频在线观看 | 久久综合九色综合欧美就去吻| 麻豆成人久久精品二区三区红 | 久久久三级国产网站| 精品一区二区三区视频在线观看| 日韩三级视频中文字幕| 久久激情综合网| 久久日韩精品一区二区五区| 国产老女人精品毛片久久| 久久综合999| 成人黄色大片在线观看| 亚洲精品网站在线观看| 欧美伦理视频网站| 精品一区二区在线观看| 日本一区二区视频在线| 91欧美一区二区| 亚洲国产精品自拍| 精品欧美乱码久久久久久 | 亚洲少妇30p| 欧美性videosxxxxx| 日本女人一区二区三区| 久久久美女艺术照精彩视频福利播放| 国产成人在线视频网站| 一区二区在线观看免费| 欧美一级专区免费大片| 福利一区福利二区| 亚洲地区一二三色|