房屋管理系统课程设计报告
《房屋管理系统课程设计报告》由会员分享,可在线阅读,更多相关《房屋管理系统课程设计报告(8页珍藏版)》请在装配图网上搜索。
1、一、设计目的 基于SQL Server数据库并以Java为编程语言,结合Java的Web技术,设计一个房屋信息管理系统。二、系统的功能分析房屋信息管理系统登录验证发布租房信息房屋信息的删除房屋信息的更新查询特定房屋信息查询房屋详细信息查询所有房屋信息 三、系统的数据库设计用户表TBL_USER字段名字段类型约束描述Uidsnchar(15)主键用户编号Unamenchar(10)非空用户姓名UpasssNchar(15)非空用户密码区县表TBL_QX字段名字段类型约束描述QXIDnchar(15)主键区县编号QXnchar(50)空值区县名称街道表TBL_JD字段名字段类型约束描述JDIDnc
2、har(15)主键街道编号JDnchar(50)空值街道名称QUJDnchar(15)非空区县街道名称房屋信息表TBL_FWXX字段名字段类型约束描述FWIDnchar(10)主键房屋编号UIDSnchar(15)非空用户编号JDIDnchar(15)非空街道编号LXIDnchar(15)非空联系人编号SHInchar(15)非空室TINGnchar(15)非空厅FWXXnchar(200)空值房屋信息ZJnchar(15)空值租金TITLEnchar(15)非空标题PUBDATEDatetime空值发布日期TELEPHONEnchar(15)空值联系电话LXRnchar(20)空值联系人QX
3、IDnchar(15)非空区县编号房屋类型TBL_FWLX字段名字段类型约束描述FWIDnchar(15)主键区县编号FWLXnchar(50)空值区县名称);四、系统的程序设计与实现程序的运行环境:Windows开发环境:Java、myEclipse、SQL程序的详细设计五、系统的运行结果与分析 房屋信息删除修改页面效果 房屋信息查询页面效果 My.htm页面效果 还有比较多的内容,由于篇幅有限,不便详述。附录:一、Servlet类的实现的核心代码实现删除信息的Servlet类package myweb.hncu.control;import java.io.IOException;impo
4、rt java.io.PrintWriter;import javax.servlet.ServletException;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import myweb.hncu.model.dao.HouseDao;public class DelServlet extends HttpServlet /* * The doGet method of the
5、servlet. * * This method is called when a form has its tag value method equals to get. * * param request the request send by the client to the server * param response the response send by the server to the client * throws ServletException if an error occurred * throws IOException if an error occurre
6、d */public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException doPost(request, response);/* * The doPost method of the servlet. * * This method is called when a form has its tag value method equals to post. * * param request the request send by th
7、e client to the server * param response the response send by the server to the client * throws ServletException if an error occurred * throws IOException if an error occurred */public void doPost(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException int fwid=I
8、nteger.parseInt(request.getParameter(fwid);boolean flag=HouseDao.delHouserInfoByID(fwid);if(flag)request.getRequestDispatcher(queryHouse).forward(request,response);实现房屋信息查询的Servlet类package myweb.hncu.control;import java.io.IOException;import java.util.List;import javax.servlet.ServletException;impor
9、t javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import myweb.hncu.model.dao.HouseDao;import myweb.hncu.vo.TblHouseVO;public class QueryHouseServlet extends HttpServlet public void doGet(HttpServletRequest request, HttpServle
10、tResponse response)throws ServletException, IOException doPost(request, response);public void doPost(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException int uid=(Integer)request.getSession().getAttribute(uid);List lstHouse=HouseDao.queryHouseByUid(uid);reque
11、st.setAttribute(lstInfo, lstHouse);request.getRequestDispatcher(my.jsp).forward(request, response);课程设计任务分工情况说明我组的课程设计项目是:房屋信息管理系统其分工如下:组长:刘组员:收集信息、查询资料,登陆、注册页面设计。: 房屋信息查询模块的实现以及数据库的管理;管理房屋信息页面设计。:前期的初步规划以及对项目增、删、改、查,界面的整合;房屋发布信息页面设计。共同设计:页面跳转、相关servlet。自评意见在本次课程设计中,我主要负责房屋信息查询模块的实现以及数据库的管理,管理房屋信息页面设计。由于在前期基础知识不扎实,许多新的知识不易上手,所以在设计与编码中遇到了许多问题。通过老师的讲解、组员的协同合作以及通过网上资料查询,在不断的修改与调试中,问题终于逐一而解,最终完成了任务,尽管效果不尽人意,但是此次试验依然让人很充实,很有成就感。 自评等级 良 好指导教师意见 签名: 2012年12月 日最终等级 - 8 - / 8文档可自由编辑打印
- 温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。