goodspropertymanageaddshelfaction.java

来自「用jsp,java写的在线购物系统」· Java 代码 · 共 44 行

JAVA
44
字号
// 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:   GoodsPropertyManageAddShelfAction.java

package mediastore.web.action;

import java.io.PrintStream;
import java.util.List;
import mediastore.dao.GoodsShelfIDCode;
import mediastore.web.page.GoodsPropertyManagePage;
import mediastore.web.struts.AbstractAction;
import mediastore.web.struts.ActionContext;
import org.apache.struts.action.ActionForward;

public class GoodsPropertyManageAddShelfAction extends AbstractAction
{

    public GoodsPropertyManageAddShelfAction()
    {
    }

    public ActionForward execute(ActionContext actionContext)
        throws Exception
    {
        System.out.println("---Start: GoodsPropertyManageAddShelfAction::execute(actionContext)---");
        GoodsShelfIDCode gsic = new GoodsShelfIDCode();
        List goodsShelfIdList = gsic.getGoodsShelfIdList();
        int max = 0;
        for(int i = 0; i < goodsShelfIdList.size(); i++)
        {
            String tmpStrBuf[] = (String[])goodsShelfIdList.get(i);
            if(Integer.parseInt(tmpStrBuf[0].trim()) > max)
                max = Integer.parseInt(tmpStrBuf[0].trim());
        }

        max++;
        String newGoodsShelfIdName = actionContext.getParameter("newshelfid");
        gsic.insertNewGoodsShelfId(max, newGoodsShelfIdName);
        System.out.println("---End: GoodsPropertyManageAddShelfAction::execute(actionContext)---");
        return GoodsPropertyManagePage.show(actionContext);
    }
}

⌨️ 快捷键说明

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