Esempio n. 1
0
 protected void RPT_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     if (e.CommandName.Equals("Del"))
     {
         B_GradeOption.DelGradeOption(DataConverter.CLng(e.CommandArgument));
     }
     MyBind();
 }
 protected void Lnk_Click(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "Del")
     {
         string Id = e.CommandArgument.ToString();
         B_GradeOption.DelGradeOption(DataConverter.CLng(Id));
         dBind();
     }
     if (e.CommandName == "Edit1")
     {
         string  Id   = e.CommandArgument.ToString();
         M_Grade info = B_GradeOption.GetGradeOption(DataConverter.CLng(Id));
         this.txtGradeName.Text = info.GradeName;
         this.HdnGradeID.Value  = Id;
         this.btnSave.Text      = "修改";
     }
     if (e.CommandName == "DicList")
     {
         string Id = e.CommandArgument.ToString();
         Response.Redirect("GradeOption.aspx?CateID=" + this.HdnCateID.Value + "&ParentID=" + Id);
     }
 }
Esempio n. 3
0
 public int QuestGrade_Del(int id)
 {
     B_GradeOption.DelGradeOption(id);
     return(Success);
 }