教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 精品文档 > 互联网资料 >

JavaWeb课程设计 - 图文(6)

来源:网络收集 时间:2026-09-04
导读: { //首先获得要修改的客户ID String sCustomerId = (String)inputData.get(\); //获得对应的客户的详细信息,然后迁移到客户详细信息修改页面 //调用对应的logic类 LCustomer lCustomer = (LCustomer)GlobalObjectP

{

//首先获得要修改的客户ID String sCustomerId = (String)inputData.get(\);

//获得对应的客户的详细信息,然后迁移到客户详细信息修改页面 //调用对应的logic类 LCustomer lCustomer = (LCustomer)GlobalObjectProvider.getLogicService(CommonConst.LOGIC_KEY_CUSTOMER);

//删除对应的记录

lCustomer.deleteCustomerById( sCustomerId );

//然后重新检索,并定位到第一页

Vector vCustomers = lCustomer.getAllCustomer();

//由于需要在页面迁移中使用题库,所以放到session中

mySession.setAttribute( \, vCustomers );

//然后迁移到指定页面 outputData.put( \, CommonConst.VIEWID_CUSTOMER_DELETE); //往值域中设置当前位置信息

outputData.put( \, new Integer(0) ); return; } }

6、客户来电信息模块

快速反应页面的设计代码:

public class AQuickCondition {

//追加一个客户

public void doSearch( Hashtable inputData,

26

Hashtable outputData, HttpSession mySession ) throws Exception {

//首先获得要查找的相关资料 String sCustomerId = (String)inputData.get(\); String sRealname = (String)inputData.get(\); String sSex = (String)inputData.get(\); if ( sSex == null ) {

sSex = \; }

String sPhone = (String)inputData.get(\);

String sStartDate = (String)inputData.get(\); String sIncomeDate = (String)inputData.get(\); String sFeedbackDate = (String)inputData.get(\);

//调用对应的logic类 LCustomer lCustomer = (LCustomer)GlobalObjectProvider.getLogicService(CommonConst.LOGIC_KEY_CUSTOMER);

//然后检索,并将页面迁移到一览页面

Vector vCustomers = lCustomer.getCustomers( sCustomerId, sRealname, sSex, sPhone,

sStartDate, sIncomeDate, sFeedbackDate); //检索出来了数据

if ( vCustomers.size() > 0 ) {

outputData.put( \, CommonConst.VIEWID_QUICK_LIST); //往值域中设置当前位置信息

mySession.setAttribute(\, vCustomers ); outputData.put( \, new Integer(0) ); } else {

//重新显示条件录入页面

outputData.put( \, sCustomerId );

27

outputData.put( \, sRealname ); outputData.put( \, sSex ); outputData.put( \, sPhone ); outputData.put( \, sStartDate ); outputData.put( \, sIncomeDate ); outputData.put( \, sFeedbackDate );

outputData.put( \, CommonConst.VIEWID_QUICK_CONDITION); outputData.put( \, \检索结果为0件,请重新指定查询条件!\ ); }

return; } }

7、客户回访信息模块

public class AFeedbackCondition {

//查找

28

public void doSearch( Hashtable inputData, Hashtable outputData, HttpSession mySession ) throws Exception {

//首先获得要查找的相关资料 String sCustomerId = (String)inputData.get(\); String sCallFrom = (String)inputData.get(\); String sFromTime = (String)inputData.get(\); String sToTime = (String)inputData.get(\);

//调用对应的logic类 LFeedback lFeedback = (LFeedback)GlobalObjectProvider.getLogicService(CommonConst.LOGIC_KEY_FEEDBACK);

//然后检索,并将页面迁移到一览页面

Vector vFeedbacks = lFeedback.getFeedbacks( sCustomerId, sCallFrom, sFromTime, sToTime );

outputData.put( \, CommonConst.VIEWID_FEEDBACK_LIST); //往值域中设置当前位置信息

mySession.setAttribute(\, vFeedbacks ); outputData.put( \, new Integer(0) ); return; } }

29

8、客户重要信息提示模块

public class ARemind {

//到首页

public void doFirst( Hashtable inputData, Hashtable outputData, HttpSession mySession ) throws Exception {

//首页的index一定为0 outputData.put( \, CommonConst.VIEWID_INFOR_REMIND); //往值域中设置当前位置信息

outputData.put( \, new Integer(0) );

30

…… 此处隐藏:980字,全部文档内容请下载后查看。喜欢就下载吧 ……
JavaWeb课程设计 - 图文(6).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wendang/444837.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)