酷文首页  
站内搜索:
网站地图 | RSS订阅 | 收藏本站
经济论文
证券金融
工商管理
会计审计
法学论文
医药论文
社会论文
教育论文
计算机论文
艺术论文
哲学论文
财政税收
财务管理
公共管理
理学论文
政治论文
文学论文
工学论文
文化论文
实用文档
应用文
自考成考
演讲稿
法律文书
子栏目导行↓
网站赞助商↓
本类热点↓
本类更新↓
热门标签↓
网摘收藏↓

移动客户管理系统的设计与实现

作者:陈宙富
来源:酷文网
点击:
载入中...
加入时间:2008-07-21
字体大小:[  ]

  String[] operatorIds=request.getParameterValues("toperatorId");
  //遍历operatorIds数组
  for(int i=0;i<operatorIds.length;i++){
   operator.dellOperators(Integer.parseInt(operatorIds[i]));
  }
  ArrayList<Toperator> toperator=operator.allOperator();
  request.getSession().setAttribute("allToperators", toperator);
  return mapping.findForward("dellToperatorSuccess");
   }
     public ActionForward execute(ActionMapping mapping, ActionForm form,
   HttpServletRequest request, HttpServletResponse response) throws Exception {
  ApplicationContext context=new FileSystemXmlApplicationContext(
"C: src\\applicationContext.xml");
  IYeWu yw = (IYeWu)context.getBean("yewuserver");
  List<YeWu> yws = yw.listAllYeWu();
  request.getSession().setAttribute("yws", yws);
  return mapping.findForward("listyewu");

}

(3)开户功能,在管理员主页面中选择“开户”链接,就进入了查看所有操作员的页面。本功能要填入的开户的手机号必须保证在号码信息表有存在这号码,而且要为可用的。本功能分为三步,如下图9,图10,图11所示。


图9 开户第一步页面
 Fig 9  First step interface of adding user


图10 开户第二步页面
 Fig 10  Second step interface of adding user

 

图11  开户第三步页面
 Fig 11  Third step interface of adding user
部分代码如下:
//执行增加用户操作的方法
public ActionForward execute(ActionMapping mapping, ActionForm form,
 HttpServletRequest request, HttpServletResponse response) {
   //表单强转
AddOperatorForm addOperatorForm = (AddOperatorForm) form;
//实例化操作员对象
Toperator operator=new Toperator();
//给对象赋值
//设置角色
operator.setRole(addOperatorForm.getRole());
//设计邮箱信息
operator.setToperatorEmail(addOperatorForm.getOperatorEmail());
//设置操作员姓名
operator.setToperatorName(addOperatorForm.getOperatorName());
//设置操作员密码
operator.setToperatorPwd(addOperatorForm.getOperatorPwd());
//初始化上下文
ApplicationContext context=new FileSystemXmlApplicationContext(
"C:\\chinamobile2\\src\\applicationContext.xml");
IAdminOperator admin=(IAdminOperator)context.getBean("adminservice");
//调用业务层方法增加操作员
String message=admin.addOperator(operator);


//打印message
System.out.println(message);
if(!message.equals("")){
   //将message放入request中
request.setAttribute("message", message);
//页面跳转
return mapping.findForward("success");
}else{
  //跳转到当前页面
return mapping.getInputForward();
}
}
//增加客户,对相应的数据库表进行操作
public Tcustomer addCustomer(Tcustomer customer) {
        //将对象置为空
Tcustomer mycustomer=null;
if(operator.isCustomerExist(customer)==null){
  //将customer对象添加到operator中
mycustomer=operator.addCustomer(customer);
}
    //返回mycustomer对象
return mycustomer;
}
 


5.3.3  普通用户模块
普通用户模块功能包括:查看用户基本信息,查询话费,查看所拥有的业务,申请新的业务功能,用户还可以选择一个时间段进行话费查询。
  普通用户界面,如图12所示

 

图12  客户页面
Fig 12  Customer interface
   部分代码如下:
 //该方法的作用是查询出该用户的通话记录
     public ActionForward execute(ActionMapping mapping, ActionForm form,
   HttpServletRequest request, HttpServletResponse response) throws Exception {
  // TODO Auto-generated method stub
  Toperator operator = (Toperator)request.getSession().getAttribute("operator");
  Tuser user = (Tuser)request.getSession().getAttribute("user");
  int role = operator.getRole();
  List<TData> list = null;
  if(role == 2){
   ApplicationContext context=new FileSystemXmlApplicationContext("
C:\\ src\\applicationContext.xml");//读取配置文件,初始化上下文
   ICustomer cust=(ICustomer)context.getBean("custserver");
   list = cust.listCost(user.getUserId());
  }
  request.getSession().setAttribute("list", list);
  return mapping.findForward("listcost");
 }
6  系统测试
在测试阶段,努力设计出一系列测试方案,目的是为了“破坏”已经建造好的软件系统—竭力证明程序中有错误不能按照预定要求正确工作。测试用例如表10所示。
表10  测试用例
Table 10  Case test
编号                             检查项                            测试结果转贴于 酷文网-论文下载中心 http://www.coolwen.net


共13页: 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] 10 [11] [12] [13] 下一页

网摘收藏:
 -> 在百度中搜索:移动客户管理系统的设计与实现
 -> 在Google中搜索:移动客户管理系统的设计与实现
免责声明 | 关于我们 | 广告联系 | 友情链接 | 网站地图 | 共同合作
免费论文 毕业论文 毕业论文范文 酷文网(www.coolwen.net) 版权所有 coolwen.net 2007,All Rights Reserved
E-mail:hui_love#tom.com(为防止垃圾邮件请把#换成@) 点击这里给我发消息 点击这里给我发消息
湘ICP备07003917号