房屋中介管理系统设计说明书

上传人:第*** 文档编号:34037748 上传时间:2018-02-20 格式:DOC 页数:33 大小:502.50KB
返回 下载 相关 举报
房屋中介管理系统设计说明书_第1页
第1页 / 共33页
房屋中介管理系统设计说明书_第2页
第2页 / 共33页
房屋中介管理系统设计说明书_第3页
第3页 / 共33页
房屋中介管理系统设计说明书_第4页
第4页 / 共33页
房屋中介管理系统设计说明书_第5页
第5页 / 共33页
点击查看更多>>
资源描述

《房屋中介管理系统设计说明书》由会员分享,可在线阅读,更多相关《房屋中介管理系统设计说明书(33页珍藏版)》请在金锄头文库上搜索。

1、山东建筑大学计算机科学与技术学院程序设计实用案例选讲大作业说明书题 目: 房地产中介管理系统课 程: 程序设计实用案例选讲 院 (部): 计算机科学与技术专 业: 网络工程班 级: 网络 131学生姓名: 高雷学 号: 20131113033指导教师: 袁卫华完成日期: 2014/01/08山东建筑大学计算机学院大作业设计说明书I目 录房地产中介管理系统 .1一、问题描述 .1二、设计思想 .1三、系统结构 .1四、程序流程(或模块划分) .2五、源程序 .3六、系统测试及操作界面 .22结 论 .30参考文献 .31山东建筑大学计算机学院大作业设计说明书1房地产中介管理系统一、问题描述某房屋

2、中介公司主要的业务包括房屋出租和二手房买卖,请编程实现“房屋中介管理系统” ,具体要求如下:一、房源基本信息管理, (房屋编号,户型(如两室一厅,三室两厅) ,具体地址(坐落位置),建造年月,状态(待售,待出租,已售,已出租等) ,价格(租金/月或售价) ,房主姓名,联系方式等) , 请编程实现这些基本信息的增、删、改、查等操作。二、房屋出租操作,对于所有“待出租” 状态的房屋,可以 执行出租操作,其状态转换为“已出租” ,根据出租的月数,计算租金,并征收中介费(中介费一般等于一个月的租金) ;处于“已出租”状态的房屋不能执行该操作。3、房屋出售操作,对于所有“待出售” 状态的房屋,可以执行出

3、手操作,其状态转换为“已售” ,根据房价和中介费计算方法(自己 查) ,计算应该征收的中介费二、设计思想此管理系统主要实现对房源的增删改查四个主要功能,以及将数据输出保存文件。本系统分为管理员和普通用户两个类别用户,管理员可以对房源信息的增删改查等操作,普通用户无法更改信息,可以查询信息。另外,针对大量的用户,可以注册新的用户。管理员在添加新的房源信息时需要确保输入每一个信息,否则会提醒管理员输入完整。修改信息可以修改一个信息,也可以同时修改多个信息,修改成功会依次提示。查询时主要可以通过查询户型以及房屋状态查询。用户查询到需要的房源时通过管理员修改房源信息,并将房屋的状态改变出租或出售给用户

4、。3、系统结构房地产管理系统包括 7 个主要类:BuildingSystem.Java:主操作界面,登录界面、选择用户类型等信息山东建筑大学计算机学院大作业设计说明书2Admin.java 管理员登录界面Admin1.java 管理员操作界面RegisterException.java 用于两次密码不一致时抛异常User.java 普通用户登录界面User1.java 普通用户操作界面ZhuCe.java 新用户注册四、程序流程(或模块划分)山东建筑大学计算机学院大作业设计说明书3图 4-1 程序流程图山东建筑大学计算机学院大作业设计说明书4五、源程序BuildingStystempackag

5、e gaolei;public class BuildingSystem implements Runnable,ActionListener JFrame f1;JPanel p1, p2,p3,p4;JLabel l21;JButton function1, function2, function3, function4;JButton end;Thread scollWorsThread;boolean stopScorlling;BuildingSystem() f1 = new JFrame(-房屋中介管理系统-);p1 = new JPanel();p1.setBackground

6、(Color.white);p1.setLayout(new GridLayout(5, 1, 5, 5);function1 = new JButton( 【管理员登录通道】 );p1.add(function1);function1.setBackground(Color.getHSBColor(100, 152, 188);function1.addActionListener(this);function2 = new JButton(【普通用户登陆通道】);function2.setBackground(Color.getHSBColor(100, 152, 188);p1.add(

7、function2);function2.addActionListener(this);function3 = new JButton( 【新用户注册】 );p1.add(function3);function3.setBackground(Color.getHSBColor(100, 152, 188);function3.addActionListener(this);function4 = new JButton( 【系统信息】 );p1.add(function4);function4.setBackground(Color.getHSBColor(100, 152, 188);fu

8、nction4.addActionListener(this);end = new JButton( 【 退 出 程 序 】 );p1.add(end);end.setBackground(Color.getHSBColor(100, 152, 188);end.addActionListener(this);f1.add(BorderLayout.EAST, p1);p2 = new JPanel();p2.setBackground(Color.getHSBColor(100, 10,255);p2.setLayout(new GridLayout(3, 1);JLabel empty1

9、= new JLabel( );p2.add(empty1);l21 = new JLabel( 高雷房地产公司欢迎您 O(_)O );l21.setForeground(Color.DARK_GRAY);山东建筑大学计算机学院大作业设计说明书5l21.setFont(new Font(华文行楷,1,17);p2.add(l21);JLabel empty2 = new JLabel( );p2.add(empty2);f1.add(BorderLayout.NORTH, p2);p3 = new JPanel()private static final long serialVersionU

10、ID = 1L;public void paint(Graphics g)ImageIcon icon=new ImageIcon(F:Java information12.png);Image image=icon.getImage();g.drawImage(image, 0,0, null);p3.setBackground(Color.white);JLabel nn = new JLabel( );p3.add(nn);f1.add(BorderLayout.SOUTH, p3);p4 = new JPanel()private static final long serialVer

11、sionUID = 1L;public void paint(Graphics g)ImageIcon icon=new ImageIcon(F:Java information12.png);Image image=icon.getImage();g.drawImage(image, 0,0, null); ;p4.setBackground(Color.white);f1.add(BorderLayout.CENTER, p4);scollWorsThread = new Thread(this);scollWorsThread.start();f1.setResizable(false)

12、;f1.setSize(470, 285);f1.setVisible(true);f1.setLocation(400, 180);f1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);public void run() while (true) int x = l21.getBounds().x;int y = l21.getBounds().y;x += 5;l21.setLocation(x, y);if (x 420) x = 0;l21.setLocation(x, y);try Thread.sleep(1000); catch (I

13、nterruptedException e) if (stopScorlling = true) return;山东建筑大学计算机学院大作业设计说明书6public void actionPerformed(ActionEvent e)try if (e.getSource() = function1) new Admin(); else if (e.getSource() = function2) new User(); else if (e.getSource() = function3) new ZhuCe(); else if (e.getSource() = function4) J

14、OptionPane.showMessageDialog(null, this, 系统简介 , 3); else if (e.getSource() = end) System.exit(1); catch (Exception e1) e1.printStackTrace();public static void main(String args) throws Exceptionnew BuildingSystem();Adminpackage gaolei;public class BuildingSystem implements Runnable,ActionListener JFrame f1;JPanel p1, p2,p3,p4;JLabel l21;JButton function1, function2, function3, function4;JButton end;

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 办公文档 > 解决方案

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号