protected void btnSaveCar_OnClick(object sender, EventArgs e) { //准备参数 string carNum = this.txbcarNum.Text.Trim(); CarInfoBLL bll = new CarInfoBLL(); //调用方法保存车辆 if (bll.AddCar((Session["UserInfo"] as UserInfo).UserName, carNum)) { Helper.jsPrint("保存成功!"); this.paddCar.Visible = false; this.pManager.Visible = true; } else { Helper.jsPrint("保存失败!"); } }
protected void btnAddCar_OnClick(object sender, EventArgs e) { string carNum = this.txbNewCar.Text.Trim(); CarInfoBLL bll = new CarInfoBLL(); if (bll.AddCar((Session["UserInfo"] as UserInfo).UserName, carNum)) { Helper.jsPrint("添加成功!"); this.rblCarNum.Visible = true; this.lbmsgNoCar.Visible = false; this.btnAddCar.Visible = false; this.txbNewCar.Visible = false; this.btnGotoport.Visible = true; LoadUserCar(list); return; } Helper.jsPrint("添加失败!"); }