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

📄 importgoodsbillgoodsinsertaction.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:   ImportGoodsBillGoodsInsertAction.java

package mediastore.web.action;

import java.io.PrintStream;
import javax.servlet.http.HttpSession;
import mediastore.common.SessionContext;
import mediastore.dao.GoodsImportGoods;
import mediastore.dao.GoodsInfo;
import mediastore.web.global.Globals;
import mediastore.web.page.ImportGoodsBillShowPage;
import mediastore.web.struts.*;
import org.apache.struts.action.ActionForward;

public class ImportGoodsBillGoodsInsertAction extends AbstractAction
{

    public ImportGoodsBillGoodsInsertAction()
    {
    }

    public ActionForward execute(ActionContext actionContext)
        throws Exception
    {
        System.out.println("---Start: ImportGoodsBillGoodsInsertAction::execute(actionContext)---");
        String maxBillIdStr = actionContext.getParameter("maxBillId");
        int maxBillId = Integer.parseInt(maxBillIdStr);
        String goodsId = actionContext.getParameter("goodsid");
        GoodsInfo ginfo = new GoodsInfo();
        String nameAndPrice[] = ginfo.getGoodsNandUByGoodsId(goodsId);
        String goodsName = nameAndPrice[0];
        float importUnitPrice = Float.parseFloat(nameAndPrice[1]);
        SessionContext ctx = (SessionContext)actionContext.getSession().getAttribute(Globals.SESSION_CONTEXT);
        String createPerson = ctx.getUserName();
        GoodsImportGoods gig = new GoodsImportGoods();
        int nRet = gig.insertNewGoodsRec(maxBillId, goodsId, goodsName, createPerson, importUnitPrice);
        if(goodsName.equals("<font color=red>新进货</font>"))
            ginfo.insertTempGoodsInfo(goodsId, goodsName, createPerson);
        DynamicForm dynaForm = (DynamicForm)actionContext.getForm();
        dynaForm.put("maxBillId", (new StringBuffer(String.valueOf(maxBillId))).toString());
        System.out.println("---End: ImportGoodsBillGoodsInsertAction::execute(actionContext)---");
        return ImportGoodsBillShowPage.show(actionContext);
    }
}

⌨️ 快捷键说明

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