小区物业管理系统设计与实现-毕设论文

protected void LinkButton4_Click(object sender, EventArgs e) {

Response.Redirect(\ }

protected void LinkButton5_Click(object sender, EventArgs e) {

Response.Redirect(\ }

protected void LinkButton6_Click(object sender, EventArgs e) {

Response.Redirect(\ }

protected void ImageButton3_Click(object sender, ImageClickEventArgs e) {

Response.Redirect(\ }

protected void ImageButton4_Click(object sender, ImageClickEventArgs e) {

Response.Redirect(\ }

protected void ImageButton5_Click(object sender, ImageClickEventArgs e) {

Response.Redirect(\ }

protected void ImageButton7_Click(object sender, ImageClickEventArgs e) {

Response.Redirect(\ }

protected void ImageButton6_Click(object sender, ImageClickEventArgs e) {

Response.Redirect(\ }

protected void ImageButton8_Click(object sender, ImageClickEventArgs e) {

Response.Redirect(\ }

protected void ImageButton9_Click(object sender, ImageClickEventArgs e) {

Response.Redirect(\ }

protected void LinkButton8_Click(object sender, EventArgs e)

23

{

Response.Redirect(\ }

protected void ImageButton10_Click(object sender, ImageClickEventArgs e) {

Response.Redirect(\ }

protected void ImageButton1_Click(object sender, ImageClickEventArgs e) {

Response.Redirect(\ }

protected void ImageButton2_Click(object sender, ImageClickEventArgs e) {

Response.Redirect(\ }

protected void LinkButton2_Click1(object sender, EventArgs e) {

Response.Redirect(\ }

protected void LinkButton9_Click(object sender, EventArgs e) {

Response.Redirect(\ } }

5.3 管理员登陆页面的设计与实现

进入后台系统需要管理员登陆权限,这里提供管理员登陆的窗口界面,如图5.3所示:

24

图5.3管理员登陆页面

管理员登陆页面的部分代码为:

public partial class denglu : System.Web.UI.Page {

protected void Page_Load(object sender, EventArgs e) {

if (!this.IsPostBack) }

protected void ImageButton1_Click(object sender, ImageClickEventArgs e) {

SqlConnection con = DB.createDB(); SqlCommand cmd = new SqlCommand(); cmd.Connection = con; con.Open();

cmd.CommandText = \count(*) from tb_zhuce where name='\+ this.txtworkname.Text + \\

Session[\ Session[\

int a = Convert.ToInt32(cmd.ExecuteScalar()); // if (a > 0) {

Response.Redirect(\ } else {

Response.Write(\很遗憾,用户名或密码错误!

25

');\ }

con.Close(); }

5.4 车辆管理页面的设计与实现

随着社会的发展,车辆的数量在现在人们生活中日益增加,作为一个现代化管理的小区,重中之重需要把小区内的车位管理好,车辆管理主界面主要包含以下信息内容,界面视图如图5.4所示:

图5.4车辆管理页面图

车辆管理页面的部分代码为:

protected void Button1_Click(object sender, EventArgs e) {

SqlConnection con = DB.createDB(); SqlCommand cmd = new SqlCommand();

26

cmd.Connection = con; con.Open();

cmd.CommandText = \into tb_homePark values('\+ this.txtCph.Text + \+ this.txtTcch.Text + \+ this.txtEtime.Text + \+ this.txtTcglf.Text + \+ this.txtjsr.Text + \+ this.ddlsjqk.SelectedItem.Text.ToString() + \ cmd.ExecuteNonQuery();

Response.Write(\language=javascript>alert('恭喜您,信息添加成功!');\

con.Close(); this.aa(); }

protected void Button2_Click(object sender, EventArgs e) {

SqlConnection con = DB.createDB(); SqlCommand cmd = new SqlCommand(); cmd.Connection = con; con.Open();

cmd.CommandText = \ cmd.ExecuteNonQuery();

Response.Write(\恭喜您,信息删除成功!');\ con.Close(); this.aa(); }

protected void Button4_Click(object sender, EventArgs e) {

SqlConnection con = DB.createDB();

SqlCommand cmd = new SqlCommand(); cmd.Connection = con; con.Open();

cmd.CommandText = \tb_homePark set placeID='\+ this.txtTcch.Text + \+ this.txtCz.Text + \+ this.txtTcdd.Text + \+ this.txtstime.Text + \+ this.txtEtime.Text + \+ this.txtTcglf.Text + \+ this.txtjsr.Text + \+ this.ddlsjqk.SelectedItem.Text + \+ this.txtBz.Text + \ cmd.ExecuteNonQuery();

Response.Write(\language=javascript>alert('恭喜您,信息修改成功!');\

con.Close(); this.aa();

27

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4