📄 initquerystorageinfoaction.java
字号:
package com.strong.ims.struts.action;
import java.util.ArrayList;
import java.util.Collection;
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 org.apache.struts.util.LabelValueBean;
import com.strong.ims.comutil.IConstants;
import com.strong.ims.comutil.exception.BaseException;
import com.strong.ims.struts.BaseAction;
/**
* 查询仓库信息
* 查询条件初始化
* @author jqg
*
*/
public class InitQueryStorageInfoAction extends BaseAction {
public ActionForward doexecute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws BaseException,Exception {
// TODO Auto-generated method stub
Collection colTemp=new ArrayList();
// while(it.hasNext())
// {
//Department myDep=(Department)it.next();
LabelValueBean dept=new LabelValueBean("启用","0");
colTemp.add(dept);
LabelValueBean dept2=new LabelValueBean("暂停","1");
colTemp.add(dept2);
// }
request.setAttribute("selectList",colTemp);
return mapping.findForward(IConstants.SUCCESS_PAGE);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -