首页>代码>ssm(spring+Struts2+mybatis)开发CRM客户关系信息管理系统>/F4Crm/src/com/chinasoft/ssm/admin/action/AjaxAction.java
01 | package com.chinasoft.ssm.admin.action; |
02 |
03 |
04 | import java.io.PrintWriter; |
05 | import java.io.UnsupportedEncodingException; |
06 | import java.util.HashMap; |
07 | import java.util.Map; |
08 |
09 | import javax.servlet.http.HttpServletRequest; |
10 | import javax.servlet.http.HttpServletResponse; |
11 |
12 | import org.apache.struts2.ServletActionContext; |
13 | import org.springframework.beans.factory.annotation.Autowired; |
14 |
15 | import com.chinasoft.ssm.admin.service.IAdminManageService; |
16 | import com.chinasoft.ssm.domain.PageBean; |
17 | import com.opensymphony.xwork2.ActionContext; |
18 | import com.opensymphony.xwork2.ActionSupport; |
19 |
20 |
21 | public class AjaxAction extends ActionSupport{ |
22 | |
23 | @Autowired |
24 | private IAdminManageService adminService; |
25 | private HttpServletRequest request = ServletActionContext.getRequest(); |
26 | private HttpServletResponse response = (HttpServletResponse) |
27 | ActionContext.getContext().get(org.apache.struts2.StrutsStatics.HTTP_RESPONSE); |
28 | |
29 | |
30 | public void selectCus() throws Exception{ |
31 | PrintWriter out = response.getWriter(); |
32 | String cus_no = request.getParameter( "cus_no" ); |
33 | int selectCus = adminService.selectCus(cus_no); |
34 | if (selectCus== 1 ){ |
35 | out.print( true ); //不可用 |
36 | } else { |
37 | out.print( false ); //可用 |
38 | } |
39 | out.close(); |
40 | } |
41 | |
42 | |
43 | } |

李俊雄 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日
zhuwang LV5
2022年11月17日
czgace LV3
2022年10月4日

一个控球厚卫
6月27日
暂无贡献等级
微信网友_7398626323435520 LV3
2月25日
zjsjdidjxjxkkxk
2024年12月13日
暂无贡献等级
Luis虎子 LV16
2024年9月25日
收到快递费
2024年7月26日
暂无贡献等级
微信网友_7051335135711232
2024年6月24日
暂无贡献等级
yuanshun LV7
2024年6月11日
ma406805131 LV19
2024年6月2日
sunlea LV20
2024年5月22日
李俊雄 LV3
2024年4月30日