📄 informationmanageaction.java
字号:
package com.information.web.action;
import com.common.*;
import com.common.struts.*;
import com.information.rule.InformationRule;
import org.apache.struts.action.ActionForward;
import com.information.web.page.InformationManagePage;
public class InformationManageAction extends AbstractAction {
public InformationManageAction() {
}
public ActionForward execute(ActionContext actionContext) throws java.lang.Exception {
String startRecNumStr = actionContext.getParameter("start_rec_num");
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 = ""; //如果是系统管理员显示所有信息
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 informationTitle = actionContext.getParameter("informationTitle");
String infoType = actionContext.getParameter("infoType");
String keywords = actionContext.getParameter("keywords");
String infoabstract = actionContext.getParameter("infoabstract");
String modDate1 = actionContext.getParameter("modDate1");
String modDate2 = actionContext.getParameter("modDate2");
InformationRule rule = new InformationRule();
rule.setStoreID(storeID);
rule.setStartRecNum(startRecNum);
rule.setRecNumOfPage(recNumOfPage);
rule.setOrderStr(orderStr);
rule.setInformationTitle(informationTitle);
rule.setInfoType(infoType);
rule.setKeywords(keywords);
rule.setInfoabstract(infoabstract);
rule.setModDate1(modDate1);
rule.setModDate2(modDate2);
rule.setStoreID(storeID);
DynamicForm dynaForm = (DynamicForm)actionContext.getForm();
dynaForm.put("informationSearchRule", rule);
return InformationManagePage.show(actionContext);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -