您的位置:首页 > 服装鞋帽 > 男装 > CCB

CCB

luyued 发布于 2011-01-10 09:02   浏览 N 次  

package com.lovo.bank.business.bean;


import com.lovo.bank.server.Request;
import com.lovo.bank.server.Response;
import com.lovo.bank.util.LogInfo;


public class CCB {
public CCB() { }

public void service(Request request, Response response){
String d=null;
try{
d=request.getParameter("do");
}catch( Exception e){
e.printStackTrace();
}
if("登陆".equals(d)){
String account=null;
String pwd=null;
try {
account=request.getParameter("account");
pwd=request.getParameter("pwd");
} catch (Exception e) {
LogInfo.error("用户名或者密码错误");
response.sendStaticResource("/error.html");
return;
}
if("liuhexing".equals(account)&&"123".equals("pwd")){
response.sendStaticResource("/ccb/contril.html");
}
else{
response.sendStaticResource("/error.html");
}

}
if("search".equals(d)){
search(request,response);
}
else if("save".equals(d)){
response.sendStaticResource("/CCB/");
save(request,response);
}
else if("get".equals(d)){
save(request,response);
}
else if("transfer".equals(d)){
save(request,response);
}
else{
response.setContent("未找到业务方法");
}
}

public void search (Request request, Response response){
response.setContent("ccb查询");
}

public void save (Request request, Response response){
response.setContent("ccb存款");

}

public void get (Request request, Response response){
response.setContent("ccb取钱");
}

public void transfer (Request request, Response response){
response.setContent("ccb");
}

}

广告赞助商