小區(qū)物業(yè)內(nèi)部管理網(wǎng)_第1頁
小區(qū)物業(yè)內(nèi)部管理網(wǎng)_第2頁
小區(qū)物業(yè)內(nèi)部管理網(wǎng)_第3頁
小區(qū)物業(yè)內(nèi)部管理網(wǎng)_第4頁
小區(qū)物業(yè)內(nèi)部管理網(wǎng)_第5頁
已閱讀5頁,還剩13頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領

文檔簡介

1、課程設計說明書 NO. 18小區(qū)物業(yè)內(nèi)部管理網(wǎng)1.課程設計目的隨著市場經(jīng)濟的發(fā)展和人們生活水平的提高,住宅小區(qū)越來越成為居住的主流,小區(qū)物業(yè)管理正是針對當代社會這一市場需要應運而生的。人們在對居住條件的要求越來越高的同時,對小區(qū)物業(yè)的服務和管理水平的要求也相應提高。伴隨著小區(qū)的規(guī)模不斷擴大和業(yè)主的不斷增多,物業(yè)管理的工作量越來越大,也更復雜。為了適應這種形勢,要求物業(yè)管理者在不斷完善小區(qū)的各項硬件條件的同時,還要配備現(xiàn)代化的物業(yè)管理系統(tǒng)。 物業(yè)管理在手工操作時代,工作程序非常繁瑣,需要大量的人力、物力和財力,極大地浪費了小區(qū)物業(yè)的資源,不能及時了解業(yè)主的各項需要、提供細致周到的服務使物業(yè)管理水

2、平大打折扣。小區(qū)物業(yè)管理系統(tǒng)是現(xiàn)代居住小區(qū)不可缺少的一部分。一個好的小區(qū)物業(yè)管理系統(tǒng)可以提升小區(qū)的管理水平,使小區(qū)的日常管理更加方便,同時確保取得最大的經(jīng)濟效益。將計算機的強大功能與現(xiàn)代的管理思想相結合,建立現(xiàn)代的智能小區(qū)是物業(yè)管理發(fā)展的方向。2.課程設計方案論證2.1  設計思路2.1.1 系統(tǒng)介紹小區(qū)物業(yè)內(nèi)部管理網(wǎng)屬于中小型網(wǎng)絡管理系統(tǒng),可以對中小型物業(yè)進行有效管理。通過本系統(tǒng)可以達成以下目標: (1)系統(tǒng)采用人機對話方式,界面美觀友好,操作方便。 (2)業(yè)主可以及時獲得物業(yè)公告及小區(qū)新聞。 (3)業(yè)主可以隨時了解各項費用的欠費情況。 (4)實現(xiàn)業(yè)主在線投訴及

3、設備報修,并提供及時周到的服務。 (5)智能化管理業(yè)主車位及車費的繳納情況。 (6)全方位的數(shù)據(jù)查詢,提高工作效率。 (7)完整的數(shù)據(jù)及服務檔案管理提高管理水平。þ (8)完善的權限管理,提高系統(tǒng)的安全性。(9) 系統(tǒng)最大限度地實現(xiàn)了易安裝性、易維護性和易操作性。2.1.2基本功能 根據(jù)小區(qū)物業(yè)內(nèi)部管理的特點,可以將小區(qū)物業(yè)內(nèi)部管理信息網(wǎng)分為前臺和后臺兩個部分進行設計。前臺主要用于用戶注冊和登錄網(wǎng)站、站內(nèi)鏈接、查詢用戶的相關信息以及查看站內(nèi)新聞和站內(nèi)公告;后臺主要用于管理員對業(yè)主投訴、業(yè)主報修、反饋信息受理、物業(yè)設備維修、業(yè)主停車位、業(yè)主費用、費用催繳和值班員工信息等進行管理。2.1

4、.3 功能模塊分析詳細規(guī)劃網(wǎng)站的功能,給出系統(tǒng)功能框圖,前臺功能框圖如圖1所示。圖1 前臺功能框圖小區(qū)物業(yè)內(nèi)部管理網(wǎng)的后臺功能框圖,如圖2所示。圖2 后臺功能框圖2.1.4業(yè)務流程業(yè)主在小區(qū)物業(yè)內(nèi)部管理網(wǎng)上通過注冊成為網(wǎng)站用戶,登錄網(wǎng)站進行相關操作。業(yè)主登錄后,可以進行在線查詢欠費信息、業(yè)主投訴信息查詢、停車信息查詢、設備維護信息查詢、新聞信息查詢和站內(nèi)公告信息查看的操作。網(wǎng)站的管理員通過登錄模塊可以登錄到網(wǎng)站的后臺系統(tǒng)管理員主頁面,對業(yè)主信息、欠費信息、停車信息、新聞信息、投訴信息和值班員工信息等進行管理。網(wǎng)站業(yè)務流程圖如圖3所示。圖3 業(yè)務流程圖3.課程設計部分運行結果與分析整個系統(tǒng)的運行

5、情況如下:進入主界面,如圖4所示。圖4 主界面圖代碼如下所示: using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using

6、System.Data.OleDb; public partial class Default2 : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) this.xinwenfillgv();/調(diào)用用戶自定義的xinwenfillgv()方法 this.fillgougao();/調(diào)用用戶自定義的fillgougao()方法 this.qianfeifillgv();/調(diào)用用戶自定義的qianfeifillgv()方法 public void xinwenfillgv() /用戶自定義的方法 OleD

7、bConnection con = DB.createDB();/調(diào)用用戶自定義的DB類的createDB() 的方法 OleDbCommand cmd = new OleDbCommand();/聲明一個OleDbCommand的對象,并將該對象cmd實例化 cmd.Connection = con; con.Open();/打開數(shù)據(jù)庫連接 OleDbDataAdapter sda = new OleDbDataAdapter("select top 9 * from tb_xinwen order by fabushijian desc", con);/從新聞表tb_x

8、inwen按發(fā)布時間fabushijian的降序排序 DataSet ds = new DataSet();/聲明一個DataSet的對象,并將該對象ds實例化 sda.Fill(ds, "tb_xinwen");/將新聞表tb_xinwen填充到數(shù)據(jù)庫中 this.gvXw.DataSource = ds; /this.GridView2.DataKeyNames = new string "title" ; this.gvXw.DataBind();/將數(shù)據(jù)綁定到GridView控件中 for (int i = 0; i <= gvXw.Row

9、s.Count - 1; i+) DataRowView mydrv; /聲明一個DataRowView的對象 string gintro; if (this.gvXw.PageIndex = 0) mydrv = ds.Tables"tb_xinwen".DefaultViewi; gintro = Convert.ToString(mydrv"title"); this.gvXw.Rowsi.Cells0.Text = SubStr(gintro, 10); else mydrv = ds.Tables"tb_xinwen".De

10、faultViewi + (5 * gvXw.PageIndex); gintro = Convert.ToString(mydrv"title"); this.gvXw.Rowsi.Cells0.Text = SubStr(gintro, 10); con.Close();/關閉數(shù)據(jù)庫連接 public void fillgougao() OleDbConnection con = DB.createDB();/調(diào)用用戶自定義的DB類的createDB()的方法 OleDbCommand cmd = new OleDbCommand(" select * fro

11、m tb_zhannei", con); con.Open();/打開數(shù)據(jù)庫連接 OleDbDataReader sdr = cmd.ExecuteReader(); sdr.Read();/ this.lblGgxx.Text = sdr.GetString(0);/從數(shù)據(jù)庫中讀取第一個數(shù)據(jù)放到Label標簽中 sdr.Close();/關閉閱讀器 con.Close();/關閉數(shù)據(jù)庫連接 public void qianfeifillgv() OleDbConnection con = DB.createDB(); con.Open(); /打開數(shù)據(jù)庫連接 OleDbComman

12、d cmd = new OleDbCommand();/調(diào)用用戶自定義的DB類的createDB()的方法 OleDbDataAdapter sda = new OleDbDataAdapter("select top 10 * from tb_qianfei", con); DataSet ds = new DataSet(); /聲明一個DataSet的ds對象,并將其實例化 sda.Fill(ds, "tb_qianfei"); this.gvQf.DataSource = ds; this.gvQf.DataBind();/將數(shù)據(jù)綁定到GridV

13、iew控件中 con.Close();/關閉數(shù)據(jù)庫連接 public string SubStr(string sString, int nLeng) if (sString.Length <= nLeng) /判斷字符串的長度 return sString;/返回一個string類型的變量 string sNewStr = sString.Substring(0, nLeng);/截取字符串 sNewStr = sNewStr + "."/在變量后面加上"." return sNewStr; /返回一個string類型的變量 protected

14、void gvXw_RowDataBound(object sender, GridViewRowEventArgs e) if (e.Row.RowType = DataControlRowType.DataRow) e.Row.Attributes.Add("onMouseOver", "Color=this.style.backgroundColor;this.style.backgroundColor='lightBlue'"); e.Row.Attributes.Add("onMouseOut", "

15、;this.style.backgroundColor=Color;"); e.Row.Cells1.Text = Convert.ToDateTime(e.Row.Cells1.Text).ToShortDateString(); protected void gvQf_RowDataBound(object sender, GridViewRowEventArgs e) if (e.Row.RowType = DataControlRowType.DataRow) e.Row.Attributes.Add("onMouseOver", "Color=

16、this.style.backgroundColor;this.style.backgroundColor='lightBlue'"); e.Row.Attributes.Add("onMouseOut", "this.style.backgroundColor=Color;"); e.Row.Cells3.Text = Convert.ToDateTime(e.Row.Cells3.Text).ToShortDateString(); 當進入程序首界面時,可看到用戶登錄的界面。如圖5所示。圖5 用戶登錄界面圖 代碼如下所示:

17、OleDbCommand cmd = new OleDbCommand(); cmd.Connection = con; con.Open();/打開數(shù)據(jù)庫連接 cmd.CommandText = "select count(*) from tb_zhuce where name='" + this.txtyhname.Text + "'and pwd='" + this.txtyhmm.Text + "' "/查詢注冊表tb_zhuce int a = Convert.ToInt32(cmd.Exec

18、uteScalar(); 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();/把傳來的密碼存儲到Sess

19、ion"pwdyh"中 else this.lblshibai.Visible = true;/登錄后提示登錄失敗信息的標簽可用 this.lblxzchdl.Visible = false;/登錄后提示登錄成功信息的標簽不可用 this.lblshibai.Text = "登錄失敗,請重新登錄."/登錄失敗后提示信息為“登錄失敗,請重新登錄.” con.Close();/關閉數(shù)據(jù)庫連接 當需要會員注冊時,可在會員注冊界面中進行會員注冊。如圖6所示。圖6 會員注冊界面圖代碼如下所示:using System;using System.Data;using

20、 System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Data.OleDb;using System.Text.RegularExpressions;public partial class yu

21、angongzhuce : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) protected void btnYhm_Click(object sender, EventArgs e) OleDbConnection con = DB.createDB(); /調(diào)用用戶自定義的DB類的createDB()的方法 OleDbCommand cmd = new OleDbCommand();/聲明一個OleDbCommand的 cmd對象,并將其實例化 cmd.Connection = con; co

22、n.Open(); /打開數(shù)據(jù)庫連接 cmd.CommandText = "select * from tb_zhuce where name='" + this.TextBox1.Text + "'" int i = Convert.ToInt32(cmd.ExecuteScalar(); if (i > 1) this.TextBox1.Text = "" this.TextBox1.Focus(); Response.Write("<script language=javascript>

23、;alert('姓名存在,請在添加一個!');location='javascript:history.go(-1)'</script>"); else Response.Write("<script language=javascript>alert('姓名不存在,你可以繼續(xù)注冊!');location='javascript:history.go(-1)'</script>"); con.Close(); protected void Button1_Click

24、(object sender, EventArgs e) Response.Redirect("/Default.aspx");/將該頁跳轉到指定的頁面中 protected void Button2_Click(object sender, EventArgs e) OleDbConnection con = DB.createDB(); /調(diào)用用戶自定義的DB類的createDB()的方法 /聲明一個OleDbCommand的 cmd對象,并將其實例化OleDbCommand cmd = new OleDbCommand(); cmd.Connection = con;

25、 con.Open(); /打開數(shù)據(jù)庫連接 cmd.CommandText = "insert into tb_zhuce values('" + this.TextBox1.Text + "','" + this.TextBox2.Text + "','" + this.DropDownList2.Text + "','" + this.TextBox4.Text + "','" + this.TextBox5.Text

26、+ "','" + this.DropDownList3.Text + "','" + this.TextBox6.Text + "','" + this.TextBox7.Text + "','" + this.TextBox8.Text + "','" + this.TextBox9.Text + "','" + this.TextBox10.Text + "'

27、;,'" + this.TextBox11.Text + "','" + this.TextBox12.Text + "','" + this.TextBox13.Text + "')" cmd.ExecuteNonQuery();/用OleDbCommand的ExecuteScalar()方法來執(zhí)行添加操作 Response.Redirect("/Default.aspx");/將該頁跳轉到指定的頁面中 / Response.Write("<

28、;script>alert('恭喜您!信息添加成功!');location='javascript:history.go(-1)'</script>"); con.Close(); 當查看新聞時,可看到如下界面,如圖7所示。圖7 新聞界面圖代碼如下所示:using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.

29、UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Data.OleDb;public partial class xinwenxiangxi : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) if (!this.IsPostBack) string title = Request"title&qu

30、ot; OleDbConnection con = DB.createDB(); /調(diào)用用戶自定義的DB類的createDB()的方法 con.Open(); OleDbCommand cmd = new OleDbCommand();/聲明一個OleDbCommand的 cmd對象,并將其實例化 OleDbCommand cmd1 = new OleDbCommand(); cmd.Connection = con; cmd1.Connection = con; cmd.CommandText = "select * from tb_xinwen where title='

31、" + title + "'" cmd1.CommandText = "update tb_xinwen set renqi=renqi+1 where title='" + title + "'" cmd.ExecuteNonQuery(); cmd1.ExecuteNonQuery(); OleDbDataReader sdr = cmd.ExecuteReader(); sdr.Read(); if (title != "") this.lbltitle.Text = sdr

32、.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

33、(6).ToString(); else Response.Write("暫無主題,不能顯示"); Response.Redirect("/Default.aspx");/將該頁跳轉到指定的頁面中 con.Close(); protected void LinkButton1_Click(object sender, EventArgs e) Response.Redirect("/Default.aspx");/將該頁跳轉到指定的頁面中 protected void LinkButton2_Click(object sender,

34、EventArgs e) Response.Redirect("xinwenguanli.aspx"); protected void LinkButton3_Click(object sender, EventArgs e) Response.Redirect("xinwenguanli.aspx"); 查看欠費用戶信息通知可得到界面,如圖8所示。圖8 用戶欠費信息通知界面圖代碼如下所示:using System;using System.Data;using System.Configuration;using System.Collections;

35、using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Data.OleDb;public partial class qianfeicx : System.Web.UI.Page protected void Page_Load(object sender, EventArgs e) if

36、 (Session"nameyh" = null && Session"pwdyh" = null) if (Session"name" = null && Session"pwd" = null) Response.Redirect("/denglu.aspx");/跳轉到指定的頁面中 this.aa(); public void aa() OleDbConnection con = DB.createDB(); /調(diào)用用戶自定義的DB類的createDB()的

37、方法 con.Open(); OleDbCommand cmd = new OleDbCommand();/聲明一個OleDbCommand的 cmd對象,并將其實例化 OleDbDataAdapter sda = new OleDbDataAdapter("select * from tb_qianfei", con); DataSet ds = new DataSet(); /聲明一個DataSet的ds對象,并將其實例化 sda.Fill(ds, "tb_qianfei"); this.gvqf.DataSource = ds; this.gvqf

38、.DataKeyNames = new string "name" ; this.gvqf.DataBind();/將數(shù)據(jù)綁定到GridView控件中 for (int i = 0; i <= gvqf.Rows.Count - 1; i+) DataRowView mydrv; string gintro; if (this.gvqf.PageIndex = 0) mydrv = ds.Tables"tb_qianfei".DefaultViewi; gintro = Convert.ToString(mydrv"address&quo

39、t;); this.gvqf.Rowsi.Cells1.Text = SubStr(gintro, 10); else mydrv = ds.Tables"tb_qianfei".DefaultViewi + (5 * gvqf.PageIndex); gintro = Convert.ToString(mydrv"address"); this.gvqf.Rowsi.Cells1.Text = SubStr(gintro,10); con.Close(); public string SubStr(string sString, int nLeng)

40、if (sString.Length <= nLeng) return sString; string sNewStr = sString.Substring(0, nLeng); sNewStr = sNewStr + "." return sNewStr; protected void Button1_Click(object sender, EventArgs e) /調(diào)用用戶自定義的DB類的createDB()的方法 OleDbConnection con = DB.createDB(); /聲明一個OleDbCommand的 cmd對象,并將其實例化 Ole

41、DbCommand cmd = new OleDbCommand(); cmd.Connection = con; con.Open(); DataSet ds = new DataSet(); /聲明一個DataSet的ds對象,并將其實例化 if (this.rbtnqfzh.Checked = true) OleDbDataAdapter sda = new OleDbDataAdapter("select * from tb_qianfei where name='" + this.txtqfzh.Text + "'", con)

42、; sda.Fill(ds, "tb_qianfei"); this.gvqf.DataSource = ds; this.gvqf.DataBind();/將數(shù)據(jù)綁定到GridView控件中 if (this.rbtnlx.Checked = true) OleDbDataAdapter sda = new OleDbDataAdapter("select * from tb_qianfei where leibie='" + this.ddllx.SelectedItem.Text.ToString() + "'"

43、, con); sda.Fill(ds, "tb_qianfei"); this.gvqf.DataSource = ds; this.gvqf.DataBind();/將數(shù)據(jù)綁定到GridView控件中 if (this.rbtnqfje.Checked = true) OleDbDataAdapter sda = new OleDbDataAdapter("select * from tb_qianfei where qianfei='" + this.txtqfje.Text.ToString() + "'",

44、con); sda.Fill(ds, "tb_qianfei"); this.gvqf.DataSource = ds; this.gvqf.DataBind();/將數(shù)據(jù)綁定到GridView控件中 protected void btnqx_Click(object sender, EventArgs e) this.aa(); protected void gvqf_RowDataBound(object sender, GridViewRowEventArgs e) if (e.Row.RowType = DataControlRowType.DataRow) e.R

45、ow.Attributes.Add("onMouseOver", "Color=this.style.backgroundColor;this.style.backgroundColor='lightBlue'"); e.Row.Attributes.Add("onMouseOut", "this.style.backgroundColor=Color;"); if (e.Row.Cells6.Text = "已處理") e.Row.Cells6.Text = "<

46、;font color=blue>已處理</font>" else e.Row.Cells6.Text = "<font color=red>未處理</font>" e.Row.Cells3.Text = Convert.ToDateTime(e.Row.Cells3.Text).ToShortDateString(); e.Row.Cells4.Text = Convert.ToDateTime(e.Row.Cells4.Text).ToShortDateString(); protected void gvqf_SelectedIndexChanged(object sender, EventArgs e) protected void gvqf_RowDeleting(object sender, GridViewDeleteEventArgs e) string name = this.gvqf.DataKeyse.RowIndex.Value.ToString(); OleDbConnection con = DB.createDB(); /調(diào)用用戶自定義的DB類的createDB()的方法 con.Open(); OleDbCommand cmd = new OleDbComma

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論