客户信息管理系统详细设计说明书程序系统的结构
功能模块结构图
项目结构设计
采用MVC模式
页面设计
Action设计
数据库设计
客户信息表(Cst_Customer)
联系人信息表(cst_linkman)
交往记录信息表(cst_activity)
历史记录信息表(cst_lost)
各类的详细设计
com.client.pojoCstCu
stome
r
o
继承ActionFormcustN
ame
custRe
gion
custM
anage
r_id
rNam
e
custLe
vel
velLa
bel
custSa
tisfy
custCr
edit
custA
ddr
custZi
p
custTe
l
custFa
x
custW
ebsite
custLi
cence
No
custC
hieftai
n
custBa
nkroll
custT
urnov
er
nkcustBankAccountcustLocalTaxNocustNationalTaxNocustStatus
CstLostodr_i
d
继承ActionFormodr_c
ustom
odr_d
ate
odr_a
odr_s
tatus
LostBizImp
lICstL
ostDA
O
getLostsBy
CustName
String
custname
客户名称
intsize
输出条数
intpage
页码
List(CstLost)分页查询
update
int
lostid流
失客户ID
String流
失说明
失类型
修改流失类型和
流失原因findCountint查询总的条数
ActiveBizIActi
veDAO
addActive
CstActivi
ty(交往记
录)
添加交往记录delete
intid交
往记录的
ID
根据主键删除交
往记录
getActives
根据客户名称查
询交往记录列表update
更新交往记录信
息
CstLostDAOgetLostsBy
List(CstLost)分页查询update
ActiveDAO
往记录getActives
询交往记录列表
3程序1(标识符)设计说明3.1程序描述
3.2功能及详细说明
客户信息列表
查询客户信息流程图
1.用户通过login.jsp页面进行登陆,然后通过ICstCustomerDAO接口中的FindCstsBy(S,P)的方法来查询第一页要显示的客户信息,ICstCustomerDAO中的实现类CstCustomerDAO来实现查询数据库中的CstCustomer表(Hibernate中是对象),然后再存入Session中,再进行跳转页面,显示客户信息列表。
翻页流程图
2.翻页功能,用户可以通过点击list.jsp上面的翻页(第一页、上一页、下一页、最后一页)来查看客户的信息。
搜索客户信息
用户可以填写要查询的项(客户编号、名称、地区(只选)、客户经理(只选)、客户等级(只选))来查询客户信息,当用户单击查询按钮时,根据提交的路径cst.do转到cstAction中,通过cstAction中的pathpage属性来设置页面显示客户信息条数的大小(采用依赖注入),CstAction中的IcstBizImpl接口属性来查找客户信息.
伪代码:
CstCustomercst=(CstCustomer)form;
Listcustomers=ibi.findCstsByCst(cst);
request.getSession().setAttribute("customers",customers);