void conut(string Accounts, string Investment_state) { ItemManageBLL upb = new ItemManageBLL(); this.anp_project.RecordCount = upb.UserProjects(Accounts, Investment_state); this.rpProductInfo.DataSource = upb.UserProjectGoods(Accounts, this.anp_project.PageSize, anp_project.CurrentPageIndex - 1, Investment_state); this.rpProductInfo.DataBind(); }
protected void rp_zixun_ItemCommand(object source, RepeaterCommandEventArgs e) { if (e.CommandName == "del") { Project_User pry = new Project_User(); pry.Project_UserID = int.Parse(e.CommandArgument.ToString()); ItemManageBLL upb = new ItemManageBLL(); if (upb.UserProject_user(pry)) { Response.Write("<script>alert('删除成功');</script>"); if (Request.QueryString["Investment_state"] == null) { conut(Accounts, "支持的"); } else if (Request.QueryString["Investment_state"] != null) { string selectname = Request.QueryString["Investment_state"]; Session["Investment_state"] = Request.QueryString["Investment_state"]; conut(Accounts, selectname); } } else { Response.Write("<script>alert('删除失败');</script>"); if (Request.QueryString["Investment_state"] == null) { conut(Accounts, "支持的"); } else if (Request.QueryString["Investment_state"] != null) { string selectname = Request.QueryString["Investment_state"]; Session["Investment_state"] = Request.QueryString["Investment_state"]; conut(Accounts, selectname); } } } //if (e.CommandName == "bianj") //{ // //************************************如果是用户发起的才能进行编辑 // if (Request.QueryString["Investment_state"] == "发起的") // { // Zd.Project_Xz = 2; // Zd.ProjectID = int.Parse(e.CommandArgument.ToString()); // Response.Redirect("information.aspx"); // } //} }