protected void Button1_Click(object sender, EventArgs e) { buyerIntSer buyer = new buyerIntSer(); GridView1.DataSource = buyer.ShowUser(); GridView1.DataBind(); }
protected void btnRecharge_Click(object sender, ImageClickEventArgs e) { string account = Session["UserAccount"].ToString().Trim(); buyerIntSer buyer = new buyerIntSer(); buyer.AddMoney(account, double.Parse(TextBox1.Text.Trim())); }
protected void Button1_Click(object sender, EventArgs e) { buyerIntSer buy = new buyerIntSer(); GridView1.DataSource = buy.SearchOrderByState(ddlState.SelectedItem.Value.ToString().Trim()); GridView1.DataBind(); }
protected void Button1_Click(object sender, EventArgs e) { buyer_Entity buyer = new buyer_Entity(); buyerIntSer B = new buyerIntSer(); buyer.B_account = Session["UserAccount"].ToString().Trim(); bool b = B.ifBuyerExist(buyer.B_account); if (b) { buyer.B_name = txtName.Text; buyer.B_tel = txtTel.Text; buyer.B_question = DropDownList1.SelectedItem.Value; buyer.B_answer = txtAnswer.Text; buyer.B_email = txtEmail.Text; B.BuyerModify(buyer.B_account, buyer.B_name, buyer.B_tel, buyer.B_question, buyer.B_answer, buyer.B_email); Response.Write(MessagesBox.showMessages("修改成功!")); System.Threading.Thread.Sleep(1000); Response.Redirect("~/Default.aspx"); } else { Response.Write(MessagesBox.showMessages("信息修改失败,请重新进行修改操作!")); } }
protected void Button1_Click(object sender, EventArgs e) { SellService a = new SellService(); buyerIntSer b = new buyerIntSer(); if (RadioButtonList1.SelectedItem != null) { if (RadioButtonList1.SelectedItem.Value.ToString() == "卖家") { if (!txtCode.Text.Trim().Equals(lblCode.Text.Trim())) { Response.Write(MessagesBox.showMessages("验证码错误!")); } else { if (a.landing(txtAccount.Text.Trim(), txtPassword.Text.Trim())) { Session["UserAccount"] = txtAccount.Text.Trim(); Session["UserPassword"] = txtPassword.Text.Trim(); Session["Logged"] = true; Session["UserType"] = "1"; System.Web.Security.FormsAuthentication.RedirectFromLoginPage(txtAccount.Text, true); } else { Response.Write(MessagesBox.showMessages("账号或密码错误!")); } } } else { if (!txtCode.Text.Trim().Equals(lblCode.Text.Trim())) { Response.Write(MessagesBox.showMessages("验证码错误!")); } else { if (b.login(txtAccount.Text.Trim(), txtPassword.Text.Trim())) { Session["UserAccount"] = txtAccount.Text.Trim(); Session["UserPassword"] = txtPassword.Text.Trim(); Session["Logged"] = true; Session["UserType"] = "0"; System.Web.Security.FormsAuthentication.RedirectFromLoginPage(txtAccount.Text, true); } else { Response.Write(MessagesBox.showMessages("账号或密码错误!")); } } } } else { Response.Write(MessagesBox.showMessages("请先选择用户角色!")); } }
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { buyerIntSer buyer = new buyerIntSer(); string str = GridView1.Rows[GridView1.SelectedIndex].Cells[1].Text.Trim(); PId = str; imagePath = buyer.SearchUrlOfProPhoto(int.Parse(str)); Response.Redirect("../buyer/pageOfEvaluation.aspx?imagePath=" + imagePath + "&PId=" + PId); }
protected void Page_Load(object sender, EventArgs e) { if (Session["UserAccount"] != null) { buyerIntSer buyer = new buyerIntSer(); GridView1.DataSource = buyer.SearchProItmeOrder(Session["UserAccount"].ToString()); GridView1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { buyerIntSer buyer = new buyerIntSer(); string account = Session["UserAccount"].ToString(); laccount.Text = account; lname.Text = buyer.name(account); ltel.Text = buyer.tel(account); lbalance.Text = buyer.balance(account); lemail.Text = buyer.email(account); }
protected void Button1_Click(object sender, EventArgs e) { b_evaluate_Entity evaluate = new b_evaluate_Entity(); buyerIntSer buyer = new buyerIntSer(); evaluate.P_evaluate = TextBox1.Text.Trim(); evaluate.B_account = Session["UserAccount"].ToString().Trim(); evaluate.P_name = buyer.SearchNameOfPro(int.Parse(PId)); evaluate.P_Id = int.Parse(PId); evaluate.P_photo = buyer.SearchUrlOfProPhoto(int.Parse(PId)); buyer.InsertToEvaluations(evaluate); }
protected void Page_Load(object sender, EventArgs e) { if (Session["UserAccount"] == null) { Response.Redirect("../login.aspx"); } else { string account = Session["UserAccount"].ToString(); lblAccount.Text = account; buyerIntSer buyer = new buyerIntSer(); lblbalance.Text = buyer.SearchBalance(account).ToString(); } }
protected void Button1_Click(object sender, EventArgs e) { if (Session["UserType"].ToString().Trim() == "0") { buyerIntSer buyer = new buyerIntSer(); buyer.Updatepassword(Session["UserAccount"].ToString().Trim(), txtSell_password.Text.Trim()); Response.Write(MessagesBox.showMessages("修改成功!")); Response.Redirect("~/Default.aspx"); } else { SellService a = new SellService(); a.change(Session["UserAccount"].ToString().Trim(), txtSell_password.Text.Trim()); Response.Write(MessagesBox.showMessages("修改成功!")); Response.Redirect("~/Default.aspx"); } }
protected void Button1_Click(object sender, EventArgs e) { buyerIntSer buyer = new buyerIntSer(); bool b = buyer.BuyerReg(txtSell_Account.Text.Trim(), txtSell_password.Text.Trim(), txtSell_Name.Text.Trim(), txtSell_tel.Text.Trim(), ddlQuestion.SelectedItem.Value, txtSell_answer.Text.Trim(), txtSell_mail.Text.Trim()); if (!b) { Response.Write(MessagesBox.showMessages("注册成功")); Response.Redirect("~/Default.aspx"); } else { Response.Write(MessagesBox.showMessages("账号已存在,请重新输入")); } }
protected void Button2_Click(object sender, EventArgs e) { buyerIntSer buyer = new buyerIntSer(); }