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

📄 importgoodsbillgoodsdelallaction.java

📁 用jsp,java写的在线购物系统
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   ImportGoodsBillGoodsDelAllAction.java

package mediastore.web.action;

import java.io.PrintStream;
import java.util.List;
import mediastore.dao.GoodsImportGoods;
import mediastore.dao.GoodsInfo;
import mediastore.web.form.GoodsImportGoodsInfo;
import mediastore.web.page.ImportGoodsBillShowPage;
import mediastore.web.struts.*;
import org.apache.struts.action.ActionForward;

public class ImportGoodsBillGoodsDelAllAction extends AbstractAction
{

    public ImportGoodsBillGoodsDelAllAction()
    {
    }

    public ActionForward execute(ActionContext actionContext)
        throws Exception
    {
        System.out.println("---Start: ImportGoodsBillGoodsDelAllAction::execute(actionContext)---");
        String curBillIdStr = actionContext.getParameter("curBillId");
        int curBillId = Integer.parseInt(curBillIdStr);
        GoodsImportGoods gig = new GoodsImportGoods();
        List goodsList = gig.getGoodsList(curBillId);
        gig.deleteAllGoods(curBillId);
        GoodsInfo gi = new GoodsInfo();
        for(int i = 0; i < goodsList.size(); i++)
        {
            String curGoodsId = ((GoodsImportGoodsInfo)goodsList.get(i)).getGoodsId();
            gi.adjustAndDelTemp(curGoodsId);
        }

        DynamicForm dynaForm = (DynamicForm)actionContext.getForm();
        dynaForm.put("maxBillId", (new StringBuffer(String.valueOf(curBillId))).toString());
        System.out.println("---End: ImportGoodsBillGoodsDelAllAction::execute(actionContext)---");
        return ImportGoodsBillShowPage.show(actionContext);
    }
}

⌨️ 快捷键说明

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