首页>代码>ssm(spring+Struts2+mybatis)开发CRM客户关系信息管理系统>/F4Crm/src/com/chinasoft/ssm/admin/action/OrderListAction.java
package com.chinasoft.ssm.admin.action;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;

import com.chinasoft.ssm.admin.service.IAdminManageService;
import com.chinasoft.ssm.domain.PageBean;
import com.opensymphony.xwork2.ActionSupport;


public class OrderListAction extends ActionSupport{
	
	@Autowired
	private IAdminManageService  adminService;
	private HttpServletRequest request = ServletActionContext.getRequest();
	
	    
	
	@Override
	public String execute() throws Exception {
		//request.setCharacterEncoding("utf-8");
        String currentPage = request.getParameter("currentPage");//当前页码
        String rows = request.getParameter("rows");//每页显示条数
        if(currentPage == null || "".equals(currentPage)){
            currentPage = "1";
        }

        if(rows == null || "".equals(rows)){
            rows = "8";
        }
       /* String cst_name = request.getParameter("ctm_name");
        String prt_name = request.getParameter("pro_name");
        System.out.println(cst_name+"==="+prt_name);
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("currentPage", currentPage);
        map.put("rows", rows);
        map.put("ctm_name", cst_name);
        map.put("pro_name",prt_name);*/
        Map<String, String[]> parameterMap = request.getParameterMap();
		Map<String ,Object> map=new HashMap<String ,Object>();
		for (String i : parameterMap.keySet()) {
			//System.out.println(i+"===="+parameterMap.get(i)[0]);
			map.put(i, parameterMap.get(i)[0]);
		}
		map.put("currentPage", currentPage);
        map.put("rows", rows);
		 PageBean pb = adminService.findOrderByPage(map);
		 request.getSession().setAttribute("order",pb);
	     request.getSession().setAttribute("condition",map);
	     return "getSucess";
	}

	
	
}
最近下载更多
li_zmklfl  LV1 12月25日
奋斗的小蚂蚁  LV17 9月15日
李俊雄  LV3 2024年5月8日
pangzhihui  LV14 2023年12月11日
shuangfu  LV25 2023年12月2日
sjl821120  LV6 2023年6月10日
微信网友_6391935134978048  LV1 2023年3月16日
libin0517  LV3 2023年1月17日
东方明亮  LV5 2022年12月4日
qiuqiu1  LV4 2022年11月18日
最近浏览更多
li_zmklfl  LV1 12月25日
奋斗的小蚂蚁  LV17 9月15日
一个控球厚卫 6月27日
暂无贡献等级
zjsjdidjxjxkkxk 2024年12月13日
暂无贡献等级
Luis虎子  LV16 2024年9月25日
收到快递费 2024年7月26日
暂无贡献等级
暂无贡献等级
yuanshun  LV7 2024年6月11日
ma406805131  LV19 2024年6月2日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友