storemanageaction.java
来自「一个完整的网络订餐系统」· Java 代码 · 共 63 行
JAVA
63 行
package com.store.web.action;
import com.common.*;
import com.common.struts.*;
import com.store.rule.StoreRule;
import org.apache.struts.action.ActionForward;
import com.store.web.page.StoreManagerPage;
public class StoreManageAction extends AbstractAction {
public StoreManageAction() {
}
public ActionForward execute(ActionContext actionContext) throws java.lang.Exception {
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 storeName = actionContext.getParameter("storeName");
String location = actionContext.getParameter("location");
String province = actionContext.getParameter("province");
String area = actionContext.getParameter("area");
String regDate1 = actionContext.getParameter("regDate1");
String regDate2 = actionContext.getParameter("regDate2");
int starNum = 1;
String sStarNum = actionContext.getParameter("starNum");
if (!(sStarNum == null || "".equals(sStarNum)))
starNum = Integer.parseInt(sStarNum);
StoreRule rule = new StoreRule();
rule.setStartRecNum(startRecNum);
rule.setRecNumOfPage(recNumOfPage);
rule.setOrderStr(orderStr);
rule.setStoreName(storeName);
rule.setLocation(location);
rule.setProvince(province);
rule.setArea(area);
rule.setRegDate1(regDate1);
rule.setRegDate2(regDate2);
rule.setStarNum(starNum);
DynamicForm dynaForm = (DynamicForm)actionContext.getForm();
dynaForm.put("storeSearchRule", rule);
return StoreManagerPage.show(actionContext);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?