informationmanagepage.java

来自「一个完整的网络订餐系统」· Java 代码 · 共 52 行

JAVA
52
字号
package com.information.web.page;


import com.common.*;
import com.common.struts.*;
import com.information.form.InformationSearchResult;
import com.information.form.InformationFB;
import com.information.rule.InformationRule;
import com.information.dao.InformationDao;
import org.apache.struts.action.ActionForward;

public class InformationManagePage {
  public InformationManagePage() {
  }


    public static ActionForward show(ActionContext actionContext)  throws Exception
    {
      DynamicForm dynaForm = (DynamicForm) actionContext.getForm();
      InformationRule rule = (InformationRule) dynaForm.get("informationSearchRule");

      InformationDao dao = new InformationDao();

      InformationSearchResult result = null;

      if (rule == null) {
        result = null;
      }
      else {
        result = dao.getnformationSearch(rule);
      }

    InformationFB bfb = new InformationFB();
    int pageRecNum = Globals.REC_NUM_OF_PAGE;
    int startRecNum = 1;
    if (rule == null)
            startRecNum = 1;
    else
            startRecNum = rule.getStartRecNum();

    bfb.setStartRecNum(startRecNum);
    bfb.setPageRecNum(pageRecNum);
    bfb.setResult(result);
    bfb.setRule(rule);

   actionContext.getRequest().setAttribute(Globals.REQUEST_INFORMATIONSEARCHCON,bfb);
   return actionContext.getMapping().findForward("informationManage");
 }

}

⌨️ 快捷键说明

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