物业管理系统数据库设计
- 格式:doc
- 大小:433.50 KB
- 文档页数:22
物业管理系统数据库设计题目物业管理系统数据库设计院(系)灾害信息工程专业班级 0950422学生姓名张翔学号 *********2011年06月目录一、需求分析 (3)二、数据流图 (3)【物业管理】 (3)【住户管理】 (3)【设备管理】 (4)【社区清洁管理】 (4)【财务管理】 (5)【系统功能结构图】 (6)三、数据字典 (6)【数据项】 (6)【数据结构】 (7)【数据流】 (7)四、概念结构设计 (7)【分ER图】 (7)【总ER图】 (10)五、逻辑结构设计 (11)CD M (11)PDM (12)六、物理结构设计 (12)七、个人总结 (21)一、需求分析经过十几年的发展,中国房地产业逐步走向成熟,物业管理也由新生到发展再到深入,面临着蓬勃发展的局面。
随着ISO9002等管理体系在物业管理中的引入,对原有的物业管理模式进行了一次深刻的变革,对物业管理公司朝着正规化、科学化、集团化的发展,起到有力的推动作用。
随着我国经济发展和城市开发,住宅小区越来越成为居住的主流,小区物业管理是针对当代社会这一市场需要应运而生的。
本系统是为住宅小区物业管理部门日常管理工作信息化,规范化而开发的软件。
它以物业管理部门为服务中心,以业主(住户)为服务对象。
通过实施各种服务项目,全面地反映了在小区物业经营管理活动中,物业部门与业主之间各种业务往来。
使各项业务的办理迅速、准确,极大的提高了小区物业管理的工作效率。
由于物业管理涉及的管理范围较为广泛,管理内容繁杂,加上政策性的变动因素,日常工作需要耗费大量人力和物力,而采取现代化电脑管理手段是一种行之有效的解决方法,用计算机操作的小区物业管理系统是为小区管理者和小区用户更好的维护各项物业管理业务处理工作而开发的管理软件。
电脑化管理在物业管理中的作用主要体现在:1.适用面广、可同时管理多个管理区和多栋大楼;2.计算机完整的工程档案与服务档案可以使管理人员随时了解最新的情况,更可以规范维护、服务标准,帮助管理人员合理安排工作时间。
3.计算机管理收费,灵活性、准确性大大提高。
4.强大的查询功能,最大限度地满足您的需要。
二、数据流图【物业管理】登陆后的每个用户可以对小区资料,楼房资料,车位资料,电话资料等进行查询,修改,添加,删除操作。
【住户管理】登录后的每个用户对小区内所有住户的基本信息及每个住户的入住情况进行查询,添加,修改,删除操作。
【设备管理】登录后的每个用户对小区内所有设备及设备的维修情况进行查询,添加,修改,删除操作。
【社区清洁管理】登录后的每个用户对小区内所有住户的清洁区的基本情况及清洁人员进行查询,添加,修改,删除操作。
【财务管理】登录后的系统使用者可以对小区内的水费,煤气费,电费等其他费用的基本情况及小区住户的缴纳情况查询,添加,修改,删除操作。
【系统功能结构图】三、数据字典【数据项】【数据结构】编号数据结构名属性01 小区名称,建成日期,占地面积,建筑面积,位置,负责人02 周边设施名称,类型,负责人,联系人,联系电话03 楼宇楼号,类别,方向,面积,层数,建成时间04 房间房号,住户,单元号,房型,建筑面积,使用面积05 车位车位号,位置,责任人,联系电话06 住户业主编号,姓名,性别,单位,电话07 设备设备名称,规格,数量,生产日期,生厂商,检修日期08 收费项目,名称,标准,收费时间09 保洁区域号,负责人,保洁员,保洁时间【数据流】编号数据流名输入输出1 变更小区资料变更信息小区资料信息2 查询小区资料小区名称小区资料信息3 变更楼房信息变更信息楼房信息4 查询楼房信息楼房号楼房信息5 变更车位信息变更信息车位信息6 查询车位信息车位号车位信息7 变更电话信息变更信息电话信息8 查询小区电话小区名电话信息9 变更住户信息变更信息住户信息10 查询住户信息住户名住户信息11 变更设备信息设备状态条件设备信息12 查询设备信息设备状态条件设备信息13 变更保洁人员信息变更信息保洁人员信息14 查询保洁人员信息保洁人员号保洁人员信息15 变更缴费信息变更信息缴费信息16 查询缴费信息房间号缴费信息4、概念结构设计(1)ER图【分ER图】1、小区模块2、楼宇信息模块3、住户信息模块4、房间信息模块5、收费模块6.、清洁管理模块7、周边设施8、车位信息模块9、设备模块【总ER图】5、逻辑结构设计(一)CDM(二)PDM6、物理结构设计/*==============================================================*/ /* DBMS name: Microsoft SQL Server 2005 *//* Created on: 2008-12-26 9:25:39 *//*==============================================================*/ alter table 住户信息drop constraint FK_住户信息_入住2_房间信息goalter table 周边设施drop constraint FK_周边设施_对应_小区信息goalter table 房间信息drop constraint FK_房间信息_入住_住户信息goalter table 房间信息goalter table 收费信息drop constraint FK_收费信息_收费_小区信息goalter table 楼宇信息drop constraint FK_楼宇信息_拥有的_小区信息goalter table 清洁管理drop constraint FK_清洁管理_保洁_小区信息goalter table 维修drop constraint FK_维修_维修_设备信息goalter table 维修drop constraint FK_维修_维修2_小区信息goalter table 设备信息drop constraint FK_设备信息_设备管理_小区信息goalter table 车位drop constraint FK_车位_拥有_小区信息goif exists (select 1from sysindexeswhere id = object_id('住户信息')and name = '入住2_FK'and indid > 0and indid < 255)drop index 住户信息.入住2_FKgoif exists (select 1from sysindexeswhere id = object_id('周边设施')and name = '对应_FK'and indid > 0and indid < 255)drop index 周边设施.对应_FKgoif exists (select 1from sysindexeswhere id = object_id('房间信息')and name = '入住_FK'and indid > 0and indid < 255)drop index 房间信息.入住_FKgoif exists (select 1from sysindexeswhere id = object_id('房间信息')and indid > 0and indid < 255)drop index 房间信息.对应的_FKgoif exists (select 1from sysindexeswhere id = object_id('收费信息')and name = '收费_FK'and indid > 0and indid < 255)drop index 收费信息.收费_FKgoif exists (select 1from sysindexeswhere id = object_id('楼宇信息')and name = '拥有的_FK'and indid > 0and indid < 255)drop index 楼宇信息.拥有的_FKgoif exists (select 1from sysindexeswhere id = object_id('清洁管理')and name = '保洁_FK'and indid > 0and indid < 255)drop index 清洁管理.保洁_FKgoif exists (select 1from sysindexeswhere id = object_id('维修')and name = '维修2_FK'and indid > 0and indid < 255)drop index 维修.维修2_FKgoif exists (select 1from sysindexeswhere id = object_id('维修')and name = '维修_FK'and indid > 0and indid < 255)drop index 维修.维修_FKgoif exists (select 1from sysindexeswhere id = object_id('设备信息')and name = '设备管理_FK'and indid > 0drop index 设备信息.设备管理_FKgoif exists (select 1from sysindexeswhere id = object_id('车位')and name = '拥有_FK'and indid > 0and indid < 255)drop index 车位.拥有_FKgoif exists (select 1from sysobjectswhere id = object_id('住户信息')and type = 'U')drop table 住户信息goif exists (select 1from sysobjectswhere id = object_id('周边设施')and type = 'U')drop table 周边设施goif exists (select 1from sysobjectswhere id = object_id('小区信息')and type = 'U')drop table 小区信息goif exists (select 1from sysobjectswhere id = object_id('房间信息')and type = 'U')drop table 房间信息goif exists (select 1from sysobjectswhere id = object_id('收费信息')and type = 'U')drop table 收费信息goif exists (select 1from sysobjectswhere id = object_id('楼宇信息')and type = 'U')drop table 楼宇信息goif exists (select 1from sysobjectswhere id = object_id('清洁管理')drop table 清洁管理goif exists (select 1from sysobjectswhere id = object_id('维修')and type = 'U')drop table 维修goif exists (select 1from sysobjectswhere id = object_id('设备信息')and type = 'U')drop table 设备信息goif exists (select 1from sysobjectswhere id = object_id('车位')and type = 'U')drop table 车位go/*==============================================================*/ /* Table: 住户信息*//*==============================================================*/ create table 住户信息(住户ID int not null,房间ID int null,姓名char(256) null,性别bit null,单位char(256) null,身份证号int null,联系电话int null,入住信息bit null,constraint PK_住户信息primary key nonclustered (住户ID))go/*==============================================================*/ /* Index: 入住2_FK *//*==============================================================*/ create index 入住2_FK on 住户信息(房间ID ASC)go/*==============================================================*/ /* Table: 周边设施*//*==============================================================*/ create table 周边设施(周边设施ID int not null,设施名称char(256) not null,负责人char(256) null,联系电话int null,备注text null,constraint PK_周边设施primary key nonclustered (周边设施ID, 设施名称))go/*==============================================================*/ /* Index: 对应_FK *//*==============================================================*/ create index 对应_FK on 周边设施(小区ID ASC)go/*==============================================================*/ /* Table: 小区信息*//*==============================================================*/ create table 小区信息(小区ID image not null,小区名char(256) not null,占地面积float not null,道路面积float not null,建筑面积float null,高层楼宇数量int not null,多层楼宇数量int not null,车位数量int not null,绿化面积float null,备注text null,constraint PK_小区信息primary key nonclustered (小区ID))go/*==============================================================*/ /* Table: 房间信息*//*==============================================================*/ create table 房间信息(房间ID int not null,住户ID int null,楼宇ID int null,单元int null,楼层int null,朝向char(256) null,房屋面积float null,业主姓名char(256) null,身份证号int null,联系电话int null,入住时间datetime null,备注text null,constraint PK_房间信息primary key nonclustered (房间ID))/*==============================================================*/ /* Index: 对应的_FK *//*==============================================================*/ create index 对应的_FK on 房间信息(楼宇ID ASC)go/*==============================================================*/ /* Index: 入住_FK *//*==============================================================*/ create index 入住_FK on 房间信息(住户ID ASC)go/*==============================================================*/ /* Table: 收费信息*//*==============================================================*/ create table 收费信息(收费ID int not null,小区ID image null,名称char(256) null,收费标准float null,收费时间datetime null,constraint PK_收费信息primary key nonclustered (收费ID))go/*==============================================================*/ /* Index: 收费_FK *//*==============================================================*/ create index 收费_FK on 收费信息(小区ID ASC)go/*==============================================================*/ /* Table: 楼宇信息*//*==============================================================*/ create table 楼宇信息(楼宇ID int not null,小区ID image null,楼宇名称char(256) not null,层数int not null,高度float not null,建筑面积float null,建成日期datetime not null,楼宇类型char(256) null,朝向char(256) null,备注text null,constraint PK_楼宇信息primary key nonclustered (楼宇ID)go/*==============================================================*/ /* Index: 拥有的_FK *//*==============================================================*/ create index 拥有的_FK on 楼宇信息(小区ID ASC)go/*==============================================================*/ /* Table: 清洁管理*//*==============================================================*/ create table 清洁管理(清洁区域ID int not null,小区ID image null,负责人char(256) null,保洁时间datetime null,保洁人员编号int null,保洁人员姓名char(256) null,地址char(256) null,备注text null,constraint PK_清洁管理primary key nonclustered (清洁区域ID))go/*==============================================================*/ /* Index: 保洁_FK *//*==============================================================*/ create index 保洁_FK on 清洁管理(小区ID ASC)go/*==============================================================*/ /* Table: 维修*//*==============================================================*/ create table 维修(设备信_设备ID int not null,小区ID image not null,设备ID int null,名称char(256) null,原因text null,施工单位char(256) null,负责人char(256) null,施工日期datetime null,是否付款bit null,备注text null,constraint PK_维修primary key (设备信_设备ID, 小区ID))go/*==============================================================*/ /* Index: 维修_FK */create index 维修_FK on 维修(设备信_设备ID ASC)go/*==============================================================*/ /* Index: 维修2_FK *//*==============================================================*/ create index 维修2_FK on 维修(小区ID ASC)go/*==============================================================*/ /* Table: 设备信息*//*==============================================================*/ create table 设备信息(设备ID int not null,小区ID image null,名称char(256) null,规格char(256) null,数量int null,生产厂商char(256) null,生产日期datetime null,检修周期int null,备注text null,constraint PK_设备信息primary key nonclustered (设备ID))go/*==============================================================*/ /* Index: 设备管理_FK *//*==============================================================*/ create index 设备管理_FK on 设备信息(小区ID ASC)go/*==============================================================*/ /* Table: 车位*//*==============================================================*/ create table 车位(车位号int not null,小区ID image null,车牌号int null,车类型int null,车主char(256) not null,车位面积float null,联系电话int null,备注text null,constraint PK_车位primary key nonclustered (车位号))go/* Index: 拥有_FK *//*==============================================================*/ create index 拥有_FK on 车位(小区ID ASC)goalter table 住户信息add constraint FK_住户信息_入住2_房间信息foreign key (房间ID)references 房间信息(房间ID)goalter table 周边设施add constraint FK_周边设施_对应_小区信息foreign key (小区ID)references 小区信息(小区ID)goalter table 房间信息add constraint FK_房间信息_入住_住户信息foreign key (住户ID)references 住户信息(住户ID)goalter table 房间信息add constraint FK_房间信息_对应的_楼宇信息foreign key (楼宇ID) references 楼宇信息(楼宇ID)goalter table 收费信息add constraint FK_收费信息_收费_小区信息foreign key (小区ID)references 小区信息(小区ID)goalter table 楼宇信息add constraint FK_楼宇信息_拥有的_小区信息foreign key (小区ID) references 小区信息(小区ID)goalter table 清洁管理add constraint FK_清洁管理_保洁_小区信息foreign key (小区ID)references 小区信息(小区ID)goalter table 维修add constraint FK_维修_维修_设备信息foreign key (设备信_设备ID) references 设备信息(设备ID)goalter table 维修add constraint FK_维修_维修2_小区信息foreign key (小区ID)references 小区信息(小区ID)goalter table 设备信息add constraint FK_设备信息_设备管理_小区信息foreign key (小区ID) references 小区信息(小区ID)goalter table 车位add constraint FK_车位_拥有_小区信息foreign key (小区ID)references 小区信息(小区ID)go七、个人总结从开始设计到现在,我都是在老师的关心和帮助下,小组成员合作中不断进步的。