小区物业内部管理网_第1页
小区物业内部管理网_第2页
小区物业内部管理网_第3页
小区物业内部管理网_第4页
小区物业内部管理网_第5页
已阅读5页,还剩8页未读 继续免费阅读

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

课程设计说明书NO.PAGE17沈阳大学小区物业内部管理网1。课程设计目的随着市场经济的发展和人们生活水平的提高,住宅小区越来越成为居住的主流,小区物业管理正是针对当代社会这一市场需要应运而生的.人们在对居住条件的要求越来越高的同时,对小区物业的服务和管理水平的要求也相应提高。伴随着小区的规模不断扩大和业主的不断增多,物业管理的工作量越来越大,也更复杂。为了适应这种形势,要求物业管理者在不断完善小区的各项硬件条件的同时,还要配备现代化的物业管理系统。物业管理在手工操作时代,工作程序非常繁琐,需要大量的人力、物力和财力,极大地浪费了小区物业的资源,不能及时了解业主的各项需要、提供细致周到的服务使物业管理水平大打折扣。小区物业管理系统是现代居住小区不可缺少的一部分。一个好的小区物业管理系统可以提升小区的管理水平,使小区的日常管理更加方便,同时确保取得最大的经济效益。将计算机的强大功能与现代的管理思想相结合,建立现代的智能小区是物业管理发展的方向。2。课程设计方案论证2。1

设计思路2。1。1

系统介绍小区物业内部管理网属于中小型网络管理系统,可以对中小型物业进行有效管理.通过本系统可以达成以下目标:(1)系统采用人机对话方式,界面美观友好,操作方便.(2)业主可以及时获得物业公告及小区新闻.(3)业主可以随时了解各项费用的欠费情况。(4)实现业主在线投诉及设备报修,并提供及时周到的服务。(5)智能化管理业主车位及车费的缴纳情况。(6)全方位的数据查询,提高工作效率。(7)完整的数据及服务档案管理提高管理水平。(8)完善的权限管理,提高系统的安全性。系统最大限度地实现了易安装性、易维护性和易操作性。2.1.2基本功能根据小区物业内部管理的特点,可以将小区物业内部管理信息网分为前台和后台两个部分进行设计.前台主要用于用户注册和登录网站、站内链接、查询用户的相关信息以及查看站内新闻和站内公告;后台主要用于管理员对业主投诉、业主报修、反馈信息受理、物业设备维修、业主停车位、业主费用、费用催缴和值班员工信息等进行管理。2.1。3功能模块分析详细规划网站的功能,给出系统功能框图,前台功能框图如图1所示.图1前台功能框图小区物业内部管理网的后台功能框图,如图2所示。图2后台功能框图2.1.4业务流程业主在小区物业内部管理网上通过注册成为网站用户,登录网站进行相关操作.业主登录后,可以进行在线查询欠费信息、业主投诉信息查询、停车信息查询、设备维护信息查询、新闻信息查询和站内公告信息查看的操作。网站的管理员通过登录模块可以登录到网站的后台系统管理员主页面,对业主信息、欠费信息、停车信息、新闻信息、投诉信息和值班员工信息等进行管理。网站业务流程图如图3所示。图3业务流程图3.课程设计部分运行结果与分析整个系统的运行情况如下:进入主界面,如图4所示。图4主界面图代码如下所示:usingSystem;usingSystem。Data;usingSystem.Configuration;usingSystem.Collections;usingSystem.Web;usingSystem.Web。Security;usingSystem.Web。UI;usingSystem.Web。UI。WebControls;usingSystem。Web.UI.WebControls。WebParts;usingSystem。Web。UI.HtmlControls;usingSystem。Data。OleDb;publicpartialclassDefault2:System。Web。UI.Page{protectedvoidPage_Load(objectsender,EventArgse){this.xinwenfillgv();//调用用户自定义的xinwenfillgv()方法this。fillgougao();//调用用户自定义的fillgougao()方法this。qianfeifillgv();//调用用户自定义的qianfeifillgv()方法}publicvoidxinwenfillgv()//用户自定义的方法{OleDbConnectioncon=DB。createDB();//调用用户自定义的DB类的createDB()的方法OleDbCommandcmd=newOleDbCommand();//声明一个OleDbCommand的对象,并将该对象cmd实例化cmd.Connection=con;con。Open();//打开数据库连接OleDbDataAdaptersda=newOleDbDataAdapter("selecttop9*fromtb_xinwenorderbyfabushijiandesc”,con);//从新闻表tb_xinwen按发布时间fabushijian的降序排序DataSetds=newDataSet();//声明一个DataSet的对象,并将该对象ds实例化sda。Fill(ds,”tb_xinwen");//将新闻表tb_xinwen填充到数据库中this。gvXw。DataSource=ds;//this.GridView2.DataKeyNames=newstring[]{"title”};this.gvXw。DataBind();//将数据绑定到GridView控件中for(inti=0;i〈=gvXw。Rows。Count-1;i++){DataRowViewmydrv;//声明一个DataRowView的对象stringgintro;if(this。gvXw.PageIndex==0){mydrv=ds。Tables[”tb_xinwen”]。DefaultView[i];gintro=Convert。ToString(mydrv[”title”]);this。gvXw。Rows[i].Cells[0]。Text=SubStr(gintro,10);}else{mydrv=ds。Tables["tb_xinwen"].DefaultView[i+(5*gvXw。PageIndex)];gintro=Convert。ToString(mydrv["title"]);this。gvXw.Rows[i]。Cells[0].Text=SubStr(gintro,10);}}con。Close();//关闭数据库连接}publicvoidfillgougao(){OleDbConnectioncon=DB。createDB();//调用用户自定义的DB类的createDB()的方法OleDbCommandcmd=newOleDbCommand(”select*fromtb_zhannei”,con);con。Open();//打开数据库连接OleDbDataReadersdr=cmd.ExecuteReader();sdr.Read();//this.lblGgxx。Text=sdr。GetString(0);//从数据库中读取第一个数据放到Label标签中sdr。Close();//关闭阅读器con。Close();//关闭数据库连接}publicvoidqianfeifillgv(){OleDbConnectioncon=DB。createDB();con.Open();//打开数据库连接OleDbCommandcmd=newOleDbCommand();//调用用户自定义的DB类的createDB()的方法OleDbDataAdaptersda=newOleDbDataAdapter(”selecttop10*fromtb_qianfei",con);DataSetds=newDataSet();//声明一个DataSet的ds对象,并将其实例化sda。Fill(ds,”tb_qianfei”);this.gvQf。DataSource=ds;this。gvQf。DataBind();//将数据绑定到GridView控件中con.Close();//关闭数据库连接}publicstringSubStr(stringsString,intnLeng){if(sString。Length〈=nLeng)//判断字符串的长度{returnsString;//返回一个string类型的变量}stringsNewStr=sString.Substring(0,nLeng);//截取字符串sNewStr=sNewStr+”。。。”;//在变量后面加上".。..”returnsNewStr;//返回一个string类型的变量}protectedvoidgvXw_RowDataBound(objectsender,GridViewRowEventArgse){if(e.Row.RowType==DataControlRowType。DataRow){e。Row.Attributes.Add(”onMouseOver”,”Color=this。style。backgroundColor;this。style。backgroundColor=’lightBlue’");e。Row。Attributes。Add(”onMouseOut","this.style。backgroundColor=Color;”);e.Row。Cells[1].Text=Convert.ToDateTime(e。Row。Cells[1].Text)。ToShortDateString();}}protectedvoidgvQf_RowDataBound(objectsender,GridViewRowEventArgse){if(e。Row。RowType==DataControlRowType.DataRow){e。Row。Attributes。Add(”onMouseOver”,”Color=this。style。backgroundColor;this。style.backgroundColor=’lightBlue’");e。Row.Attributes.Add("onMouseOut”,”this.style.backgroundColor=Color;”);e.Row.Cells[3]。Text=Convert。ToDateTime(e.Row.Cells[3]。Text)。ToShortDateString();}}当进入程序首界面时,可看到用户登录的界面.如图5所示。图5用户登录界面图代码如下所示:OleDbCommandcmd=newOleDbCommand();cmd。Connection=con;con.Open();//打开数据库连接cmd.CommandText="selectcount(*)fromtb_zhucewherename=’”+this。txtyhname。Text+”’andpwd=’"+this.txtyhmm。Text+"'”;//查询注册表tb_zhuceinta=Convert。ToInt32(cmd。ExecuteScalar());if(a〉0)//如果变量大于0{this。lblshibai。Visible=true;//登录后提示登录失败信息的标签不可用this.lblxzchdl。Visible=false;//登录后提示登录成功信息的标签可用Session["nameyh"]=this。txtyhname。Text.ToString();//把传来的姓名存储到Session[”nameyh"]中Session[”pwdyh”]=this。txtyhmm。Text.ToString();//把传来的密码存储到Session["pwdyh”]中}else{this。lblshibai。Visible=true;//登录后提示登录失败信息的标签可用this.lblxzchdl。Visible=false;//登录后提示登录成功信息的标签不可用this.lblshibai。Text=”登录失败,请重新登录。。.”;//登录失败后提示信息为“登录失败,请重新登录。。。”}con。Close();//关闭数据库连接}}当需要会员注册时,可在会员注册界面中进行会员注册。如图6所示.图6会员注册界面图代码如下所示:usingSystem;usingSystem.Data;usingSystem。Configuration;usingSystem。Collections;usingSystem。Web;usingSystem.Web。Security;usingSystem。Web.UI;usingSystem.Web。UI。WebControls;usingSystem。Web.UI。WebControls.WebParts;usingSystem.Web.UI。HtmlControls;usingSystem。Data.OleDb;usingSystem.Text。RegularExpressions;publicpartialclassyuangongzhuce:System。Web。UI.Page{protectedvoidPage_Load(objectsender,EventArgse){}protectedvoidbtnYhm_Click(objectsender,EventArgse){OleDbConnectioncon=DB。createDB();//调用用户自定义的DB类的createDB()的方法OleDbCommandcmd=newOleDbCommand();//声明一个OleDbCommand的cmd对象,并将其实例化cmd。Connection=con;con。Open();//打开数据库连接cmd.CommandText=”select*fromtb_zhucewherename=’”+this。TextBox1.Text+”’";inti=Convert。ToInt32(cmd。ExecuteScalar());if(i〉1){this.TextBox1。Text=””;this.TextBox1.Focus();Response。Write(”〈scriptlanguage=javascript>alert('姓名存在,请在添加一个!’);location=’javascript:history。go(-1)’〈/script〉”);}else{Response。Write("<scriptlanguage=javascript〉alert(’姓名不存在,你可以继续注册!’);location='javascript:history.go(—1)’〈/script>”);}con。Close();}protectedvoidButton1_Click(objectsender,EventArgse){Response。Redirect("~/Default.aspx");//将该页跳转到指定的页面中}protectedvoidButton2_Click(objectsender,EventArgse){OleDbConnectioncon=DB。createDB();//调用用户自定义的DB类的createDB()的方法//声明一个OleDbCommand的cmd对象,并将其实例化OleDbCommandcmd=newOleDbCommand();cmd.Connection=con;con。Open();//打开数据库连接cmd。CommandText=”insertintotb_zhucevalues(’"+this。TextBox1.Text+"','”+this.TextBox2.Text+”',’”+this.DropDownList2.Text+”’,'”+this。TextBox4。Text+”’,’"+this。TextBox5。Text+”’,’"+this。DropDownList3。Text+”’,’”+this。TextBox6。Text+”’,’"+this。TextBox7。Text+"',’”+this。TextBox8。Text+”',’”+this。TextBox9.Text+"’,’"+this。TextBox10。Text+”’,’”+this.TextBox11。Text+"',’"+this.TextBox12.Text+"’,'"+this。TextBox13。Text+”')”;cmd.ExecuteNonQuery();//用OleDbCommand的ExecuteScalar()方法来执行添加操作Response。Redirect("~/Default.aspx");//将该页跳转到指定的页面中//Response。Write(”<script>alert(’恭喜您!!信息添加成功!');location=’javascript:history。go(—1)'</script〉”);con.Close();}}当查看新闻时,可看到如下界面,如图7所示。图7新闻界面图代码如下所示:usingSystem;usingSystem.Data;usingSystem。Configuration;usingSystem.Collections;usingSystem。Web;usingSystem。Web.Security;usingSystem。Web。UI;usingSystem.Web。UI。WebControls;usingSystem。Web。UI。WebControls。WebParts;usingSystem。Web。UI。HtmlControls;usingSystem。Data。OleDb;publicpartialclassxinwenxiangxi:System。Web。UI.Page{protectedvoidPage_Load(objectsender,EventArgse){if(!this.IsPostBack){stringtitle=Request[”title”];OleDbConnectioncon=DB。createDB();//调用用户自定义的DB类的createDB()的方法con.Open();OleDbCommandcmd=newOleDbCommand();//声明一个OleDbCommand的cmd对象,并将其实例化OleDbCommandcmd1=newOleDbCommand();cmd。Connection=con;cmd1。Connection=con;cmd.CommandText=”select*fromtb_xinwenwheretitle='”+title+"'”;cmd1。CommandText=”updatetb_xinwensetrenqi=renqi+1wheretitle=’”+title+"’”;cmd。ExecuteNonQuery();cmd1。ExecuteNonQuery();OleDbDataReadersdr=cmd。ExecuteReader();sdr。Read();if(title!=””){this。lbltitle.Text=sdr。GetString(0).ToString();this。TextBox1.Text=sdr.GetString(1)。ToString();this。lblFbsj。Text=sdr.GetDateTime(2).ToShortDateString();this.lblfbr。Text=sdr.GetString(3);this.lblzzlb.Text=sdr。GetString(4).ToString();this。lblzs.Text=sdr。GetString(5)。ToString();this.lblbz。Text=sdr。GetString(6)。ToString();}else{Response。Write("暂无主题,不能显示”);Response.Redirect("~/Default。aspx”);//将该页跳转到指定的页面中}con。Close();}}protectedvoidLinkButton1_Click(objectsender,EventArgse){Response。Redirect(”~/Default。aspx”);//将该页跳转到指定的页面中}protectedvoidLinkButton2_Click(objectsender,EventArgse){Response。Redirect(”xinwenguanli.aspx”);}protectedvoidLinkButton3_Click(objectsender,EventArgse){Response。Redirect(”xinwenguanli。aspx");}}查看欠费用户信息通知可得到界面,如图8所示.图8用户欠费信息通知界面图代码如下所示:usingSystem;usingSystem。Data;usingSystem。Configuration;usingSystem.Collections;usingSystem。Web;usingSystem。Web.Security;usingSystem。Web.UI;usingSystem。Web。UI。WebControls;usingSystem。Web。UI。WebControls.WebParts;usingSystem.Web。UI.HtmlControls;usingSystem。Data。OleDb;publicpartialclassqianfeicx:System。Web。UI.Page{protectedvoidPage_Load(objectsender,EventArgse){if(Session[”nameyh"]==null&&Session[”pwdyh”]==null){if(Session["name"]==null&&Session["pwd”]==null){Response.Redirect(”~/denglu。aspx”);//跳转到指定的页面中}}this.aa();}publicvoidaa(){OleDbConnectioncon=DB.createDB();//调用用户自定义的DB类的createDB()的方法con。Open();OleDbCommandcmd=newOleDbCommand();//声明一个OleDbCommand的cmd对象,并将其实例化OleDbDataAdaptersda=newOleDbDataAdapter(”select*fromtb_qianfei”,con);DataSetds=newDataSet();//声明一个DataSet的ds对象,并将其实例化sda。Fill(ds,"tb_qianfei");this。gvqf.DataSource=ds;this。gvqf。DataKeyNames=newstring[]{”name”};this.gvqf.DataBind();//将数据绑定到GridView控件中for(inti=0;i〈=gvqf。Rows.Count-1;i++){DataRowViewmydrv;stringgintro;if(this。gvqf.PageIndex==0){mydrv=ds。Tables["tb_qianfei"]。DefaultView[i];gintro=Convert。ToString(mydrv[”address"]);this。gvqf.Rows[i]。Cells[1]。Text=SubStr(gintro,10);}else{mydrv=ds.Tables["tb_qianfei”].DefaultView[i+(5*gvqf.PageIndex)];gintro=Convert。ToString(mydrv[”address”]);this。gvqf。Rows[i].Cells[1]。Text=SubStr(gintro,10);}}con。Close();}publicstringSubStr(stringsString,intnLeng){if(sString。Length〈=nLeng){returnsString;}stringsNewStr=sString。Substring(0,nLeng);sNewStr=sNewStr+”...”;returnsNewStr;}protectedvoidButton1_Click(objectsender,EventArgse){//调用用户自定义的DB类的createDB()的方法OleDbConnectioncon=DB。createDB();//声明一个OleDbCommand的cmd对象,并将其实例化OleDbCommandcmd=newOleDbCommand();cmd。Connection=con;con.Open();DataSetds=newDataSet();//声明一个DataSet的ds对象,并将其实例化if(this。rbtnqfzh。Checked==true){OleDbDataAdaptersda=newOleDbDataAdapter("select*fromtb_qianfeiwherename='"+this.txtqfzh。Text+”’”,con);sda.Fill(ds,”tb_qianfei");this。gvqf。DataSource=ds;this.gvqf。DataBind();//将数据绑定到GridView控件中}if(this.rbtnlx。Checked==true){OleDbDataAdaptersda=newOleDbDataAdapter(”select*fromtb_qianfeiwhereleibie=’”+this。ddllx。SelectedItem.Text。ToString()+”’",con);sda。Fill(ds,”tb_qianfei");this。gvqf。DataSource=ds;this。gvqf。DataBind();//将数据绑定到GridView控件中}if(this.rbtnqfje。Checked==true){OleDbDataAdaptersda=newOleDbDataAdapter(”select*fromtb_qianfeiwhereqianfei=’”+this。txtqfje.Text。ToString()+"'",con);sda。Fill(ds,”tb_qianfei”);this。gvqf。DataSource=ds;this。gvqf.DataBind();//将数据绑定到GridView控件中}}protectedvoidbtnqx_Click(objectsender,EventArgse){this。aa();}protectedvoidgvqf_RowDataBound(objectsender,GridViewRowEventArgse){if(e。Row.RowType==DataControlRowType。DataRow){e。Row。Attributes。Add("onMouseOver",”Color=this。style。backgroundColor;this。style.backgroundColor='lightBlue’”);e.Row.Attributes。Add(”onMouseOut”,”this。style.backgroundColor=Color;”);if(e。Row。Cells[6].Text=="已处理"){e.Row。Cells[6]。Text=”〈fontcolor=blue〉已处理〈/font〉”;}else{e.Row。Cells[6]。Text="〈fontcolor=red〉未处理〈/font>";}e.Row.Cells[3].Text=Convert.ToDateTime(e。Row.Cells[3].Text).ToShortDateString();e.Row.Cells[4]。Text=Convert。ToDateTime(e。Row。Cells[4]。Text).ToShortDateString();}}protectedvoidgvqf_SelectedIndexChanged(objectsender,EventArgse){}protectedvoidgvqf_RowDeleting(objectsender,GridViewDeleteEventArgse){stringname=this。gvqf。DataKeys[e.RowIndex]。Value。ToString();OleDbConnectioncon=DB

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论