⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 baoyuanhandler.java~9~

📁 用java写的仓库管理
💻 JAVA~9~
字号:
package cangku;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.util.Vector;
import java.util.Date;
import java.text.SimpleDateFormat;

public class BaoYuanHandler implements ActionListener {
    BaoYuanDialogView Bao;
    public BaoYuanHandler(BaoYuanDialogView Bao){
        this.Bao=Bao;
    }
    Date nowtime=new Date();
    SimpleDateFormat form=new SimpleDateFormat("yyyy-MM-dd");

    public void addRow(){
        //商品编号,商品名称,数量,金额,操作员,经手人,日期
       Vector   vTmp   =   new   Vector();
       vTmp.add("");
       vTmp.add( "");
       vTmp.add("");
       vTmp.add("");
       vTmp.add("");
       vTmp.add("");
       vTmp.add("");
       Bao.vDate.add(vTmp);
       Bao.Tabl.updateUI();
   }

    public void actionPerformed(ActionEvent e) {
        if(e.getActionCommand()=="Add"){
            addRow();
            Bao.lblbaoyuanshijins.setText(form.format(nowtime));
        }
        if(e.getActionCommand()=="Save"){
        }
        if(e.getActionCommand()=="xiao"){
            Bao.vDate.removeAll(Bao.vDate);
            Bao.Tabl.updateUI();
             Bao.lblbaoyuanshijins.setText("");
        }
        if(e.getActionCommand()=="Exit"){
            Bao.dispose();
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -