{
//首先获得要修改的客户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