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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? asmainmenu.java

?? 管理系統
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
            jComboBox4.setEnabled(true);
        }
        if(jRadioButton3.isSelected()){
            txtName.setText("");
            txtmath.setText("");
            txtAdd.setText("");
            txt1.setText("");
            txtnum.setText("");
            txtPrice.setText("");
            txtPrice2.setText("");
            txtID.setEditable(false);
            txtName.setEnabled(true);
            txtmath.setEnabled(true);
            txtnum.setEnabled(false);
            txtAdd.setEnabled(true);
            txt1.setEnabled(true);
            txtPrice.setEnabled(true);
            txtPrice2.setEnabled(true);
            txtTime.setEnabled(false);
            jComboBox1.setEnabled(true);
            jComboBox2.setEnabled(true);
            jComboBox3.setEnabled(true);
            jComboBox4.setEnabled(true);


        }
        if(jRadioButton1.isSelected()){
            txtName.setText("");
            txtmath.setText("");
            txtAdd.setText("");
            txtnum.setText("");
            txt1.setText("");
            txtPrice.setText("");
            txtPrice2.setText("");
            txtID.setEditable(true);
            txtName.setEnabled(false);
            txtmath.setEnabled(false);
            txtAdd.setEnabled(false);
            txt1.setEnabled(false);
            txtnum.setEnabled(false);
            txtPrice.setEnabled(false);
            txtPrice2.setEnabled(false);
            txtTime.setEnabled(false);
            jComboBox1.setEnabled(false);
            jComboBox2.setEnabled(false);
            jComboBox3.setEnabled(false);
            jComboBox4.setEnabled(false);
        }
    }
//控制按紐對表內的數據進行增加
    public void jRadioButton2_actionPerformed(ActionEvent e) {
        getTime();
        setButton();
    }

    //控制按紐對表內的數據進行更新
    public void jRadioButton3_actionPerformed(ActionEvent e) {
        getTime();
        setButton();

    }

//控制按紐對表內的數據進行刪除

    public void jRadioButton1_actionPerformed(ActionEvent e) {
        getTime();
        setButton();
    }

    public void jButton10_actionPerformed(ActionEvent e) throws SQLException {
        if (this.jRadioButton2.isSelected()) {
            String id = txtID.getText();                  //珠寶編號
            String name = txtName.getText();             //珠寶名稱
            String math =txtmath.getText();               //總數量
            String num = txtnum.getText();                //售出數量
            String add = txtAdd.getText();                //珠寶產地
            String rest = txt1.getText();                 //珠寶純度
           // int price = Integer.parseInt(txtPrice.getText()) ;          //珠寶遠價
            String price = txtPrice.getText();
            String price2 = txtPrice2.getText();          //珠寶售價
            String txtbox4 = jComboBox4.getSelectedItem().toString();                          //珠寶重量單位
            String time = txtTime.getText();              //珠寶入庫時間
            String txtBox1 = jComboBox1.getSelectedItem().toString();  //珠寶大類
            String txtBox2 = jComboBox2.getSelectedItem().toString();  //珠寶小類
            String txtBox3 = jComboBox3.getSelectedItem().toString();  //首飾

            Aid aid = new Aid();
            Aname aname = new Aname();
//判斷編號語句
            if (id.length() == 0) {
                JOptionPane.showMessageDialog(this, "編號不能為空,請填寫!");
                return;
            } else {
                if (aid.aid(id)) {
                    JOptionPane.showMessageDialog(this, "編號已存在,請重新輸入");
                    return;
                }
            }
//判斷名稱語句
            if (name.length() == 0) {
                JOptionPane.showMessageDialog(this, "珠寶名稱不能為空,請填寫!");
                return;
            } else {
                if (name.length() <= 1) {
                    JOptionPane.showMessageDialog(this, "珠寶名稱輸入錯誤");
                    return;
                }
//判斷產地語句
            }
            if (add.length() == 0) {
                JOptionPane.showMessageDialog(this, "珠寶產地不能為空,請填寫!");
                return;
            }
            //判斷重量語句
            if (rest.length() == 0) {
                JOptionPane.showMessageDialog(this, "物品單位不能為空,請填寫!");
                return;
            }
            //判斷價格語句
            if (price.length() == 0) {
                JOptionPane.showMessageDialog(this, "成本價格不能為空,請填寫!");
                return;
            }else{

                if (!this.objBool(price)) {
                   JOptionPane.showMessageDialog(this, "對不起,成本價格只能輸入阿拉伯數字");
                   return;
               }


            }
            if (price2.length() == 0) {
                JOptionPane.showMessageDialog(this, "銷售價格不能為空,請填寫!");
                return;
            } else {
                if (!this.objBool(price2)) {
                    JOptionPane.showMessageDialog(this, "對不起,銷售價格只能輸入阿拉伯數字");
                    return;
                }
            }
            //判斷單位語句

//導數據庫

            AssetInfo ass = new AssetInfo();
            if (ass.info(id, name,math,num, txtBox2, txtBox1, txtBox3, txtbox4, rest, price,price2,
                         time, add)) {

            }
//在表格打印最新表格
            this.jbInit1();
            txtName.setText("");
            txtID.setText("");
            txtmath.setText("");
            txtAdd.setText("");
            txt1.setText("");
            txtPrice.setText("");
            txtPrice2.setText("");
            txtTime.setText("");
            JOptionPane.showMessageDialog(this, "編號" + id + "成功添加");
            getTime();
        }
//更改數據庫的數據
    if(this.jRadioButton3.isSelected()){
        String id = null;
        String name = null;
        String math = null;
        String num = null;
        String box2 = null;
        String box1 = null;
        String box3 = null;
        String box4 = null;
        String txt2 = null;
        String time = null;
        String price = null;
        String price2 = null;
        String add = null;


        id = this.txtID.getText();
        name = this.txtName.getText();
        math = this.txtmath.getText();
        num = this.txtnum.getText();
        add = this.txtAdd.getText();
        txt2 = this.txt1.getText();
        price = this.txtPrice.getText();
        price2 = this.txtPrice2.getText();
        box4 = this.jComboBox4.getSelectedItem().toString();
        time = this.txtTime.getText();
        box1 = this.jComboBox1.getSelectedItem().toString();
        box2 = this.jComboBox2.getSelectedItem().toString();
        box3 = this.jComboBox3.getSelectedItem().toString();

        Aid aid = new Aid();
         Aname aname = new Aname();
          if (name.length() == 0) {
              JOptionPane.showMessageDialog(this, "珠寶名稱不能為空,請填寫!");
              return;
          } else {
              if (name.length() <= 1) {
                  JOptionPane.showMessageDialog(this, "珠寶名稱輸入錯誤");
                  return;
              }

          }
          if (add.length() == 0) {
              JOptionPane.showMessageDialog(this, "珠寶產地不能為空,請填寫!");
              return;
          }
          if (txt2.length() == 0) {
              JOptionPane.showMessageDialog(this, "物品單位不能為空,請填寫!");
              return;
          }
          if (price.length() == 0) {
              JOptionPane.showMessageDialog(this, "成本價格不能為空,請填寫!");
              return;
          } else {
              if (!this.objBool(price)) {
                  JOptionPane.showMessageDialog(this, "對不起,只能輸入阿拉伯數字");
                  return;
              }
          }

          if (price2.length() == 0) {
              JOptionPane.showMessageDialog(this, "銷售價格不能為空,請填寫!");
              return;
          } else {
              if (!this.objBool(price2)) {
                  JOptionPane.showMessageDialog(this, "對不起,只能輸入阿拉伯數字");
                  return;
              }
          }


          AssetBean ass = new AssetBean();
          AssetAction act = new AssetAction();

        ass.setAid(id);
          ass.setAname(name);ass.setAcount(math);ass.setAnumber(num);ass.setAname(box2);ass.setAbig(box1);ass.setAstyle(box3);ass.setAunit(box4);
          ass.setAheft(txt2);ass.setAdate(time);ass.setAcost(price);ass.setAprice(price2);ass.setAaddress(add);
          if(act.changeSet(ass)){
              JOptionPane.showMessageDialog(this, "修改操作成功!");
          }else{
              JOptionPane.showMessageDialog(this, "修改操作失敗!");
          }
          this.jbInit1();
    }

//刪除數據庫中的數據
    if(jRadioButton1.isSelected()){
        String id = txtID.getText();
        Aid1 aid = new Aid1();
        if (id.length() == 0) {
            JOptionPane.showMessageDialog(this, "編號不能為空,請填寫!");
            return;
        }  else{
            if (!aid.aid(id)) {
                JOptionPane.showMessageDialog(this, "編號不存在,請重新輸入");
                return;
            }
            AssetInfo asse = new AssetInfo();
            if (asse.info1(id)) {

            }
       }
        this.jbInit1();
         JOptionPane.showMessageDialog(this, "編號"+id+"被成功刪除");
         //刪除后在填寫框資料
         txtName.setText("");
         txtID.setText("");
         txtmath.setText("");
         txtAdd.setText("");
         txt1.setText("");
         txtPrice.setText("");
         txtPrice2.setText("");
            txtTime.setText("");

    }
}
//產生隨即數字1---1000
public void getNumber() {
    boolean sidd = true;
    do {
        String str = "ANI00" + Math.round(Math.random() * 1000 + 1);
        if (SDBManager.getOne("select aid from asset where aid = '" + str +
                              "'").isEmpty()) {
            this.txtID.setText(str);
            sidd = false;
        }
    } while (sidd);
}


//////////////////////////////
    public void jTable1_mouseClicked(MouseEvent e) {
        jTable1.setSelectionBackground(Color.GREEN);
        int row = jTable1.getSelectedRow();
        int col = jTable1.getSelectedColumn();
        if(row >= 0){
            txtID.setText(this.jTable1.getValueAt(row,0).toString());
            txtName.setText(this.jTable1.getValueAt(row,1).toString());
            txtmath.setText(this.jTable1.getValueAt(row,2).toString());
            txtnum.setText(this.jTable1.getValueAt(row,3).toString());
            jComboBox2.setSelectedItem(this.jTable1.getValueAt(row,4).toString());
            jComboBox1.setSelectedItem(this.jTable1.getValueAt(row,5).toString());
            jComboBox3.setSelectedItem(this.jTable1.getValueAt(row,6).toString());
            jComboBox4.setSelectedItem(this.jTable1.getValueAt(row,7).toString());
            txt1.setText(this.jTable1.getValueAt(row,8).toString());
            txtPrice2.setText(this.jTable1.getValueAt(row,9).toString());
            txtPrice.setText(this.jTable1.getValueAt(row,10).toString());
            txtTime.setText(this.jTable1.getValueAt(row,11).toString());
            txtAdd.setText(this.jTable1.getValueAt(row,12).toString());
        }
    }


    class ASMainMenu_jRadioButton1_actionAdapter implements ActionListener {
        private ASMainMenu adaptee;
        ASMainMenu_jRadioButton1_actionAdapter(ASMainMenu adaptee) {
            this.adaptee = adaptee;
        }

        public void actionPerformed(ActionEvent e) {
            adaptee.jRadioButton1_actionPerformed(e);
        }

    }


    class ASMainMenu_jRadioButton2_actionAdapter implements ActionListener {
        private ASMainMenu adaptee;
        ASMainMenu_jRadioButton2_actionAdapter(ASMainMenu adaptee) {
            this.adaptee = adaptee;
        }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩视频免费观看高清完整版 | 欧美日韩黄色影视| 欧美精品123区| 国产欧美一区二区精品性| 一区二区在线免费观看| 久久99久久久久久久久久久| 波多野结衣的一区二区三区| 欧美zozo另类异族| 亚洲一区二区视频| 国产传媒欧美日韩成人| 欧美一区在线视频| 亚洲综合色丁香婷婷六月图片| 国产在线观看免费一区| 欧美午夜理伦三级在线观看| 国产精品久久久久久久久图文区| 日本成人在线网站| 欧美三级视频在线观看| 亚洲女同女同女同女同女同69| 国产乱人伦偷精品视频不卡 | 亚洲高清久久久| 波多野结衣中文字幕一区二区三区| 日韩免费视频一区| 婷婷久久综合九色综合伊人色| 成人黄色电影在线| 久久久久久9999| 激情成人午夜视频| 精品国产伦一区二区三区观看体验| 日韩电影在线观看网站| 欧美日韩的一区二区| 五月天网站亚洲| 欧美另类久久久品| 偷拍亚洲欧洲综合| 制服丝袜av成人在线看| 午夜欧美在线一二页| 欧美日韩国产不卡| 午夜精品久久久久久久久久 | 911精品产国品一二三产区| 亚洲成在线观看| 欧美综合色免费| 亚洲一区二区欧美激情| 欧美日韩三级视频| 日韩中文字幕av电影| 日韩亚洲欧美综合| 狠狠色狠狠色综合系列| 欧美一区二区福利在线| 国内偷窥港台综合视频在线播放| 国产亚洲欧美中文| 成人av在线看| 亚洲精品一二三区| 欧美日韩一卡二卡| 免费久久精品视频| 久久众筹精品私拍模特| 成人免费视频视频| 亚洲精品久久7777| 91精品国产综合久久福利软件| 日本不卡免费在线视频| 久久网站最新地址| 色综合久久88色综合天天免费| 亚洲一区二区三区四区的| 日韩欧美在线综合网| 国产成人精品综合在线观看| 亚洲日本在线观看| 欧美一区二区三区精品| 国产精品一区二区你懂的| 亚洲精品中文在线影院| 91精品国产欧美日韩| 成人自拍视频在线| 亚洲成人久久影院| 国产欧美精品一区二区色综合| 日本精品免费观看高清观看| 五月婷婷综合在线| 国产精品你懂的在线| 欧美在线|欧美| 国产伦精品一区二区三区免费 | 91在线视频观看| 亚洲国产毛片aaaaa无费看| 337p粉嫩大胆色噜噜噜噜亚洲| 91亚洲午夜精品久久久久久| 美国十次了思思久久精品导航| 中文字幕在线不卡| 精品美女在线播放| 欧美性猛交一区二区三区精品| 老司机精品视频线观看86| 亚洲乱码中文字幕| 2020国产成人综合网| 欧美人牲a欧美精品| 国产.欧美.日韩| 日韩精品亚洲一区二区三区免费| 成人免费视频在线观看| 久久综合色8888| 欧美一区二区在线不卡| 色噜噜狠狠成人网p站| 激情国产一区二区| 日本少妇一区二区| 亚洲综合另类小说| 国产精品美女久久久久久久| 2023国产精品视频| 日韩一区二区高清| 欧美精三区欧美精三区| 在线视频你懂得一区| 91在线云播放| 不卡视频在线看| 国产河南妇女毛片精品久久久| 免费在线观看不卡| 午夜精品久久一牛影视| 亚洲成人自拍偷拍| 亚洲午夜激情av| 亚洲激情六月丁香| 亚洲精品你懂的| 亚洲欧洲韩国日本视频| 国产精品护士白丝一区av| 国产午夜亚洲精品不卡| 337p粉嫩大胆噜噜噜噜噜91av| 欧美刺激午夜性久久久久久久| 欧美一区二区三区视频| 日韩一区二区免费视频| 6080国产精品一区二区| 3d动漫精品啪啪| 日韩亚洲欧美高清| 精品sm在线观看| 久久精品人人做| 中文字幕乱码亚洲精品一区| 国产网站一区二区三区| 日本一区免费视频| 成人免费一区二区三区视频 | 久久久久久综合| 欧美mv日韩mv| 久久久久国产一区二区三区四区 | 国产激情一区二区三区桃花岛亚洲| 久久福利视频一区二区| 国产一区二区91| www.久久久久久久久| 色悠悠亚洲一区二区| 欧美日韩一区中文字幕| 欧美精品粉嫩高潮一区二区| 日韩欧美三级在线| 国产亚洲一区二区在线观看| 国产精品素人一区二区| 秋霞午夜av一区二区三区| 免费日本视频一区| 国产老女人精品毛片久久| 91在线码无精品| 5月丁香婷婷综合| 久久久91精品国产一区二区精品| 国产精品麻豆一区二区| 亚洲小少妇裸体bbw| 青青草视频一区| 成人综合激情网| 欧美久久婷婷综合色| 精品久久久久久无| 18欧美亚洲精品| 日韩成人伦理电影在线观看| 国产凹凸在线观看一区二区| 欧美亚洲禁片免费| 久久精品视频一区二区| 亚洲自拍偷拍九九九| 狠狠色狠狠色综合系列| 在线视频你懂得一区二区三区| 日韩欧美电影一区| 亚洲欧美日韩国产另类专区| 久久91精品久久久久久秒播| 91蜜桃免费观看视频| 日韩欧美中文一区二区| 一区二区三区日韩欧美精品| 九九国产精品视频| 色综合色综合色综合色综合色综合| 日韩一级二级三级精品视频| 亚洲另类色综合网站| 国产精品一二三四五| 欧美丰满嫩嫩电影| 亚洲精品乱码久久久久久久久| 韩国中文字幕2020精品| 欧美日韩国产成人在线免费| 国产精品毛片久久久久久久| 国产呦精品一区二区三区网站 | aa级大片欧美| 日韩精品一区二区三区中文不卡| 亚洲欧美韩国综合色| 国产一区二区调教| 91精品国产综合久久久久| 亚洲另类春色国产| 成av人片一区二区| 久久精品无码一区二区三区| 麻豆一区二区99久久久久| 欧美精品 日韩| 午夜国产不卡在线观看视频| 色成人在线视频| 最新热久久免费视频| 国产精品一区二区三区四区| 日韩免费高清电影| 免费看欧美女人艹b| 91精品视频网| 日韩精品91亚洲二区在线观看 | 91麻豆国产福利在线观看| 国产欧美视频一区二区| 国产老妇另类xxxxx| 亚洲精品第1页| 91美女精品福利| 亚洲男人天堂一区| 色综合天天狠狠|