📄 showexportclientaction.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package cn.bway.foreigntrade.order.exportclient.action;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import cn.bway.common.BwayHibernateException;
import cn.bway.common.WebConstant;
import cn.bway.common.action.BaseAction;
import cn.bway.common.vo.PageListVO;
import cn.bway.common.vo.QueryVO;
import cn.bway.foreigntrade.operation.steelsinformation.impl.SteelsinformationManagerFactory;
import cn.bway.foreigntrade.order.exportclient.form.ExportclientForm;
import cn.bway.foreigntrade.order.exportclient.impl.ExportclientManagerFactory;
import cn.bway.foreigntrade.order.exportproduct.impl.ExportproductManagerFactory;
/**
* MyEclipse Struts
* Creation date: 03-11-2008
*
* XDoclet definition:
* @struts.action path="/exportclient" name="exportclientForm" input="/order/exportclient_list.jsp" scope="request" validate="true"
*/
public class ShowExportclientAction extends BaseAction {
/*
* Generated Methods
*/
/**
* Method execute
* @param mapping
* @param form
* @param request
* @param response
* @return ActionForward
*/
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
ExportclientForm eForm = (ExportclientForm) form;// TODO Auto-generated method stub
String returnStr = WebConstant.FORWARD_INITPAGE;
String mername = null;
// String id=request.getParameter("id");
// String act=request.getParameter("act");
// System.out.println("=================================="+id);
// if("down".equals(act)){
// returnStr="view";
//
// }
try {
PageListVO rvo=null;
QueryVO qvo=new QueryVO();
Map map = new HashMap(request.getParameterMap());
qvo.setScatterMap(map);
qvo.setPageSize(WebConstant.PAGENUMBER);//鍒嗛〉鏁�
qvo.setCurPage(eForm.getPageNum());
rvo=(PageListVO)ExportclientManagerFactory.getExportclientManager().findAllExportclient1(qvo);
ArrayList ListResult = (ArrayList) rvo.getretVO();
setQueryResult(rvo, eForm); //灏佽鍒嗛〉鏁版嵁锟斤拷锟�
request.setAttribute(WebConstant.RETURN_LIST, ListResult);//杩斿洖form鍙奓istResult鏁版嵁闆�
} catch (BwayHibernateException e) {
e.printStackTrace();
return mapping.findForward(WebConstant.FORWARD_FAIL);
}
request.setAttribute(WebConstant.PAGE_Object, eForm);
return mapping.findForward(returnStr);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -