资源描述
房地产销售管理系统
组员:
房地产销售管理系统
1.需求描述
1、1功能需求
系统包括五大功能模块:主要功能模块有基本资料、客户管理、房屋销售、收款管理、统计管理等功能模块。
1.基本资料主要包括楼盘房屋资料、员工资料功能子模块。
楼盘房屋资料:主要就是登记楼盘与房屋详细信息得管理。
员工资料:可对员工得个人信息情况进行管理、以及员工得楼盘销售业绩情况。
2.客户管理就是对客户得个人信息情况进行管理。主要包括来访客户资料管理、一般客户资料管理、预订客户资料管理、购房客户资料管理等功能子模块。
来访客户资料管理:主要登记来访得客户信息资料,查出潜在得客户。
一般客户资料管理:主要登记一般得客户信息资料,查出潜在得客户。
预订客户资料管理:主要登记预订得客户信息资料。
购房客户资料管理:主要登记购房得客户信息资料。
3.房屋销售主要包括房屋销售、已销售房屋资料、已预订房屋资料等功能子模块。
房屋销售:主要就是对房屋进行预订、购买等销售得管理。
已销售房屋资料:管理已经销售得房屋信息资料。
已预订房屋资料:管理已经预订得房屋信息资料。
4.收款管理主要包括未收款管理、已收款管理、到期收款提示管理等功能子模块。
未收款管理:主要针对已签定合同得房款收款管理。
已收款管理:管理已经收款完成得房屋合同信息资料。
到期收款提示管理:主要就是针对客户分期付款得到期付款得提示功能。
5.统计管理:包括销售代表销售记录排行、楼盘销售排行统计、收款情况统计等。报表可以根据客户得要求进行设置。
1.2数据分析
房地产销售管理系统所用到得数据有:
1、基本资料得输入
楼盘房屋资料信息:楼房号,单元,房号,预测面积,单价,总价,房型,房屋状态。
员工资料信息:员工编号,姓名,所属部门,性别,年龄,学历,职位,联系电话。
2、客户管理
来访客户信息:客户编号,姓名,联系电话,联系地址。
一般客户信息:客户编号,姓名,性别,联系电话,需求面积,需求类型,需求房型,计划付款方式,联系地址,职业,身份证号,单位。
预订客户信息:客户编号,客户姓名,楼房号,单元,房号,销售面积,单价,总价,订购日期,代办费用,已付金额。
购房客户信息:客户编号,姓名,性别,年龄,联系电话,需求面积,需求楼层,需求房型,计划付款方式,联系地址。
3、房屋销售
房屋销售信息:楼房号,单元,房号,销售面积,单价,总价,房屋状态。
已销售房屋信息:合同编号,客户姓名,楼房号,单元,房号,销售面积,合同单价,合同总价,订购日期,联系电话。
已预订房屋信息:合同编号,客户姓名,楼房号,单元,房号,销售面积,单价,总价,订购日期,代办费用,已付金额。
4、收款管理
未收款管理:合同编号,客户姓名,联系电话,楼房号,单元,房号,合同单价,合同总价,已付金额,未付金额,付款日期,支付方式。
已收款管理:合同编号,客户姓名,联系电话,楼房号,单元,房号,合同单价,合同总价,已付金额,未付金额,付款日期,支付方式。
到期收款提示:合同编号,客户姓名,联系电话,楼房号,单元,房号,合同单价,合同总价,已付金额,未付金额,付款日期,支付方式。
1.3权限管理
1、管理员在基本资料管理中,要求:
a、可以查询员工、房屋得信息。
b、可以对员工、房屋信息进行修改、添加及删除得操作。
2、管理员在客户管理中,要求:
a、查询各类客户信息,根据客户信息,发现潜在客户。
b、对客户信息进行维护工作,增添、删除相应客户信息。
3、管理员在房屋销售中,要求:
a.查询未销售、已销售、已预订房屋得信息。
b.对房屋信息进行维护工作,增添未销售、已销售、已预订得房屋信息。
4、管理员在收款管理中,要求:
a、可以查询已收款、未收款等信息,以及相应得合同。
b、对收款管理进行维护工作,包括增添新收款记录,或删除旧收款记录。
2. 概念结构设计
2.1 E-R图
所要实现得功能设计,可能建立它们之间得关系,进而实现逻辑结构功能。
房地产销售管理信息系统可以划分得实体有:员工信息实体、登记房屋预登记客户信息实体、预订客户与预订房屋信息实体、预订记录信息实体、需求客户与需求房屋信息实体、购买需求实体、收款记录实体。
用E-R图一一描述这些实体。
2、1、1楼房单元房号信息实体图:
楼房单元房号实体
楼号
房号
单元
2、1、2员工信息实体图:
员工信息实体
联系电话
职 位
年 龄
性 别
员工编号
姓 名
所属部门
2、1、3登记房屋信息实体图:
登记房屋信息实体
单元
房型
房屋状态
总价
房号
面积
单价
2、1、4登记客户信息联系图:
登记客户
需求客户编号
预订客户编号
2、1、5预订客户信息实体图:
预订客户信息实体
预订客户编号
联系电话
支付方式
客户姓名
身份证号
联系地址
性别
年龄
职务
2、1、6预订房屋实体图:
预订房屋信息实体
预订合同编号
订购日期
总价
房号
楼号号
单元
房型
面积
单价
已付金额
未付金额
2、1、7预订联系图:
预订记录
预订合同编号
预订客户编号
2、1、8需求客户信息实体图:
需求客户信息实体
需求客户编号
联系地址
联系电话
客户姓名
性别号
身份证号
2、1、9需求房屋实体图:
需求房屋信息实体
单元
房型
房号
总价
楼房号
面积
单价
需求房屋编号编号
2、1、10购买需求联系图:
购买需求
需求客户编号
房屋需求编号
2、1、11收款记录联系图:
收款
预订合同编号
预订客户编号
2、1、12总得信息实体E-R图:
3. 逻辑结构设计
3、1关系模式
关系模型。关系模型主要就是用二维表格结构表达实体集,用外键表示实体间联系。关系模型就是由若干个关系模式组成得集合。关系模式相当于前面提到得记录类型,它得实例称为关系,每个关系实际上就是一张二维表格。
关系模型与层次、网状模型得最大判别就是用关键码而不就是用指针导航数据,表格简单用户易懂,编程时并不涉及存储结构,访问技术等细节。关系模型就是数学化模型。SQL语言就是关系数据库得标准化语言,已得到了广泛得应用。设计子系统有一个方便数据库及其应用创建得工具集。它典型地包含产生表、窗体、查询与报表得工具。DBMS产品还提供编程语言与对编程语言得接口。
1.楼房单元房号(楼房号,单元,房号)
2.员工(员工编号,姓名,所属部门,性别,年龄,职位,联系电话)
3.登记房屋(房号,单元,房型,面积,单价,总价)
4.登记客户(需求客户编号,预订客户编号)
5.预订客户(预订客户编号,客户姓名,性别,年龄,职务,身份证号,联系电话,联系地址,支付方式)
6.预订房屋(预订合同编号,楼房号,单元,房号,房型,面积,单价,总价,订购日期,已付金额,未付金额)
7.预订(预订合同编号,预订客户编号)
8.需求客户(需求客户编号,姓名,性别,身份证号,联系电话,联系地址)
9.需求房屋(房屋需求编号,楼房号,单元,房号,房型,面积,单价,总价)
10.购买需求(需求客户编号,房屋需求编号)
11.收款(预订合同编号,预订客户编号)
3、2表格
表1 楼房单元房号(builds):
表中列名
数据类型
大小
就是否为空
楼号(build_id)
int
not null(主键)
单元(unit_id)
int
not null
房号(room_id)
char
4
not null
表2 单元表(unit):
表中列名
数据类型
大小
就是否为空
单元(unit_id)
int
not null(主键)
房号(room_id)
char
4
not null
表3 员工信息(employees):
表中列名
数据类型
大小
就是否为空
员工编号(employee_id)
char
6
not null(主键)
姓名(employee_name)
char
15
not null
所属部门
(department_id)
char
18
not null
性别(employee_sex)
char
2
null
年龄(employee_age)
int
null
职位(job_id)
char
15
not null
联系电话(phone_number)
char
12
not null
表4 登记房屋(register_room):
表中列名
数据类型
大小
就是否为空
房号(room_id)
char
4
not null(主键)
单元(unit_id)
int
not null(外主键)
房型(room_type)
char
10
Not null
面积(area)
float
Not null
单价(price)
float
Not null
总价(total_price)
float
Not null
表5 登记客户(register_customer):
表中列名
数据类型
大小
就是否为空
需求客户编号(remand_id)
char
6
not null(外主键)
预订客户编号(order_id)
char
6
not null(外主键)
表6 预订客户(order_customer):
表中列名
数据类型
大小
就是否为空
预订客户编号(order_id)
char
6
not null(主键)
客户姓名(order_name)
char
15
not null
性别(order_sex)
char
2
Not null
年龄(order_age)
int
Not null
职务(order_job)
char
10
Not null
身份证号(order_ident)
char
18
Not null
联系电话(order_phone)
char
12
Not null
联系地址(order_addr)
char
25
Not null
支付方式(order_pay)
char
10
Not null
表7 预订房屋(order_room):
表中列名
数据类型
大小
就是否为空
预订合同编号(contract_id)
char
6
not null(主键)
楼号(build_id)
int
not null
单元(unit_id)
int
Not null
房号(room_id)
char
4
Not null
房型(room_type)
char
10
Not null
面积(area)
float
Not null
单价(price)
float
Not null
总价(total_price)
float
Not null
订购日期(order_date)
char
12
Not null
已付金额(yifu_money)
float
Not null
未付金额(weifu_money)
float
Not null
表8 预订(order):
表中列名
数据类型
大小
就是否为空
预订合同编号(contract_id)
char
6
Not null(外主键)
预订客户编号(order_id)
char
6
Not null(外主键)
表9 需求客户(remand_customer):
表中列名
数据类型
大小
就是否为空
需求客户编号(remand_id)
char
6
not null(主键)
姓名(remand_name)
char
15
Not null
性别(remand_sex)
char
2
Null
身份证号(remand_ident)
char
18
Not null
联系电话(remand_phone)
char
12
Not null
联系地址(remand_addr)
char
25
Not null
表10 需求房屋(remand_build):
表中列名
数据类型
大小
就是否为空
房屋需求编号(remand_buildid)
char
6
not null(主键)
楼号(build_id)
int
not null
单元(unit_id)
int
Not null
房号(room_id)
char
4
Not null
房型(room_type)
char
10
Not null
面积(area)
float
Not null
单价(price)
float
Not null
总价(total_price)
float
Not null
表11购买需求(remand_buy):
表中列名
数据类型
大小
就是否为空
需求客户编号(remand_id)
char
6
Not null(外主键)
房屋需求编号(remand_buildid)
char
6
Not null(外主键)
表12 收款(collection):
表中列名
数据类型
大小
就是否为空
预订合同编号(contract_id)
char
6
Not null(外主键)
预订客户编号(order_id)
char
6
Not null(外主键)
4、数据库实施
4.1数据库建
4、1、1创建楼房单元房号表:
create table builds
(
build_id int not null primary key,
unit_id int not null,
room_id char(4) not null
)
4、1、2单元表:
create table unit
(
unit_id int not null primary key,
room_id char(4) not null
)
4、1、3 员工表:
create table employees
(
employee_id char(6) not null primary key,
employee_name char(15) not null,
employee_sex char(2) not null,
employee_age int not null,
job_id char(15) not null,
department_id char(18) not null,
phone_number char(12) not null
)
4、1、4登记房屋表:
create table register_room
(
room_id char(4) not null primary key,
unit_id int not null,
room_type char(10) not null,
area float not null,
price float not null,
total_price float not null
foreign key (unit_id) references unit(unit_id),
)
4、1、5登记客户表:
create table register_customer
(
remand_id char(6) not null,
order_id char(6) not null,
foreign key (remand_id) references remand_customer(remand_id),
foreign key (order_id) references order_customer(order_id)
)
4、1、6预订客户表:
create table order_customer
(
order_id char(6) not null primary key,
order_name int not null,
order _sex char(2) not null,
order _age int not null,
order _job char(10) not null,
order _ident char(18) not null,
order_phone char(12) not null,
order_addr char(25) not null,
order_pay char(10) not null
)
4、1、7预订房屋表:
create table order_room
(
contract_id char(6) not null primary key,
build_id int not null,
unit_id int not null,
room_id char(4) not null,
room_type char(10) not null,
area float not null,
price float not null,
total_price float not null,
order_date date not null,
yifu_money float,
weifu_money float not null
)
4、1、8预订表:
create table oder
(
contract_id char(6) not null,
order_id char(6) not null,
foreign key (contract_id) references order_room(contract_id),
foreign key (order_id) references order_customer(order_id)
)
4、1、9需求客户表:
create table remand_customer
(
remand_id char(6) not null primary key,
remand_name char(15) not null,
remand_sex char(2),
remand_ident char(18),
remand_phone char(12),
remand_addr char(25)
)
4、1、10需求房屋表:
create table remand_build
(
remand_buildid char(6) not null primary key,
build_id int not null,
unit_id int not null,
room_id char(4) not null,
room_type char(10) not null,
area float not null,
price float not null,
total_price float not null
)
4、1、11购买需求表:
create table remand_buy
(
remand_id char(6) not null,
remand_buildid char(6) not null,
foreign key (remand_id) references remand_customer(remand_id),
foreign key (remand_buildid) references remand_build(remand_buildid)
)
4、1、12收款表:
create table collection
(
contract_id char(6) not null,
order_id char(6) not null,
foreign key (contract_id) references order_room(contract_id),
foreign key (order_id) references order_customer(order_id)
)
4.2 序列得设计
4、2、1创建一个名为“build_seq”得序列,用于产生楼房编号,起始值为1,步长为1,不缓存,不循环。
4、2、2创建一个名为“unit_seq”得序列,用于产生单元编号,起始值为1,步长为1,最大值为9999,不缓存,不循环。
4、2、3创建一个名为“room_seq”得序列,用于产生房间编号,起始值为1,步长为1,最大值为9999,不缓存,不循环。
4、2、4创建一个名为“order_seq”得序列,用于产生预定房屋编号,起始值为140001,步长为1,无最大值,不缓存,不循环。
4、2、5创建一个名为“remand_seq”得序列,用于产生需求房屋编号,起始值为140001,步长为1,无最大值,不缓存,不循环。
4.3 索引得设计
4、3、1在builds表中得room_id列上创建名为“builds_room_index”得平衡索引树。
4、3、2在employees表中得employee_name列上创建名为“employee_name_index”得平衡索引树。
4、3、3在collection表中得contract_id列上创建名为“collection_index”得平衡索引树。
4、3、4在order_customer中得order_name列上创建名为“order_customer_index”得平衡索引树。
4、3、5在order中得contract_id列上创建名为“order _index”得平衡索
引树。
4.4 视图得设计
4、4、1创建名为“customer_view”得视图,用于查询预定客户编号,客户姓名,性别,年龄,职务,身份证号,联系电话,联系地址,支付方式。
4、4、2 创建名为“employees_view” 得视图, 用于查询员工编号,姓名,所属部门,性别,年龄,职位,联系电话。
4、4、3 创建名为“register_room_view”得视图,用于查询登记房屋得房号,单元号,房型,面积,单价,总价。
4、4、4创建名为“order_room_view”得视图,用于查询预定房屋得预订合同编号,楼号,单元号,房号,房型,面积,单价,总价,订购日期,已付金额,未付金额。
4、4、5创建名为“remand_customer_view”得视图,用于查询需求客户得需求客户编号,姓名,性别,身份证号,联系电话,联系地址。
4、4、6创建名为“remand_build_view”得视图,用于查询需求房屋得房屋需求编号,楼号,单元号,房号,房型,面积,单价,总价。
展开阅读全文