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


import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

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.ActionContext;
import com.opensymphony.xwork2.ActionSupport;


public class AjaxAction extends ActionSupport{
	
	@Autowired
	private IAdminManageService  adminService;
	private HttpServletRequest request = ServletActionContext.getRequest();
	private HttpServletResponse response = (HttpServletResponse)
			ActionContext.getContext().get(org.apache.struts2.StrutsStatics.HTTP_RESPONSE);
	
	
	public void selectCus() throws Exception{
		PrintWriter out = response.getWriter();
		 String cus_no = request.getParameter("cus_no");
		 int selectCus = adminService.selectCus(cus_no);
		 if(selectCus==1){
			 out.print(true);//不可用
		 }else{
			 out.print(false);//可用
		 }
		 out.close();
	}
	
	
}
最近下载更多
pangzhihui  LV12 2023年12月11日
shuangfu  LV24 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日
zhuwang  LV5 2022年11月17日
czgace  LV3 2022年10月4日
罗清晨  LV11 2022年9月29日
最近浏览更多
FFF112233  LV8 3月27日
爱丽淇  LV5 3月18日
WBelong  LV7 3月8日
mypogo 2月20日
暂无贡献等级
shenghaer  LV1 2月9日
阿凡达  LV9 1月29日
iiiiiiixiiiiii  LV1 2023年12月28日
haha不会 2023年12月16日
暂无贡献等级
pangzhihui  LV12 2023年12月11日
shuangfu  LV24 2023年12月2日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友