menubillmanageaction.java
来自「一个完整的网络订餐系统」· Java 代码 · 共 56 行
JAVA
56 行
package com.menubill.web.action;
import com.common.*;
import com.common.struts.*;
import com.menubill.rule.MenubillRule;
import org.apache.struts.action.ActionForward;
import com.menubill.web.page.MenubillManagePage;
public class MenubillManageAction extends AbstractAction {
public MenubillManageAction() {
}
public ActionForward execute(ActionContext actionContext) throws java.lang.Exception {
SessionContext ctx = (SessionContext) actionContext.getSession().
getAttribute(Globals.SESSION_CONTEXT);
String storeID = null;
if (null != ctx) storeID = ctx.getStoreID();
String systemmanager = (String) actionContext.getSession().getAttribute("systemmanager");
if (null != systemmanager) storeID = ""; //如果是系统管理员显示所有信息
String startRecNumStr = actionContext.getParameter("start_rec_num");
if (startRecNumStr == null || "".equals(startRecNumStr))
startRecNumStr = "1";
int startRecNum = Integer.parseInt(startRecNumStr);
int recNumOfPage = Globals.REC_NUM_OF_PAGE;
String orderStr = actionContext.getParameter("orderstr");
String billName = actionContext.getParameter("billName");
String billType = actionContext.getParameter("billType");
String modDate1 = actionContext.getParameter("modDate1");
String modDate2 = actionContext.getParameter("modDate2");
MenubillRule rule = new MenubillRule();
rule.setStartRecNum(startRecNum);
rule.setRecNumOfPage(recNumOfPage);
rule.setOrderStr(orderStr);
rule.setBillName(billName);
rule.setBillType(billType);
rule.setModDate1(modDate1);
rule.setModDate2(modDate2);
rule.setStoreID(storeID);
DynamicForm dynaForm = (DynamicForm)actionContext.getForm();
dynaForm.put("menubillSearchRule", rule);
return MenubillManagePage.show(actionContext);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?