/// <summary> /// 视频事件的单个删除 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnEventDel_Click(object sender, ImageClickEventArgs e) { WeiSha.WebControl.RowDelete img = (WeiSha.WebControl.RowDelete)sender; int id = int.Parse(img.CommandArgument); Business.Do <IOutline>().EventDelete(id); EventBindData(null, null); }
/// <summary> /// 单个删除 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnDel_Click(object sender, ImageClickEventArgs e) { WeiSha.WebControl.RowDelete img = (WeiSha.WebControl.RowDelete)sender; int index = ((GridViewRow)(img.Parent.Parent)).RowIndex; int id = int.Parse(this.GridView1.DataKeys[index].Value.ToString()); Business.Do <IQuestions>().QuesDelete(id); BindData(null, null); }
/// <summary> /// 单个删除 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnDel_Click(object sender, ImageClickEventArgs e) { WeiSha.WebControl.RowDelete img = (WeiSha.WebControl.RowDelete)sender; int index = ((GridViewRow)(img.Parent.Parent)).RowIndex; int id = int.Parse(this.gvPrice.DataKeys[index].Value.ToString()); Business.Do <ICourse>().PriceDelete(id); BindPriceData(); }
/// <summary> /// 单个删除 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnDel_Click(object sender, ImageClickEventArgs e) { WeiSha.WebControl.RowDelete img = (WeiSha.WebControl.RowDelete)sender; int index = ((GridViewRow)(img.Parent.Parent)).RowIndex; int id = int.Parse(this.GridView1.DataKeys[index].Value.ToString()); int stid = Extend.LoginState.Accounts.CurrentUser.Ac_ID; Business.Do <IStudent>().QuesDelete(id, stid); BindData(null, null); }
} /// <summary> /// 单个删除 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnDel_Click(object sender, ImageClickEventArgs e) { try { WeiSha.WebControl.RowDelete img = (WeiSha.WebControl.RowDelete)sender; int index = ((GridViewRow)(img.Parent.Parent)).RowIndex; int id = int.Parse(this.GridView1.DataKeys[index].Value.ToString()); Business.Do <IContents>().ProductDelete(id); BindData(null, null); } catch (Exception ex) { Message.ExceptionShow(ex); } }
/// <summary> /// µ¥¸öɾ³ý /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnDel_Click(object sender, ImageClickEventArgs e) { try { WeiSha.WebControl.RowDelete img = (WeiSha.WebControl.RowDelete)sender; int index = ((GridViewRow)(img.Parent.Parent)).RowIndex; int id = int.Parse(this.GridView1.DataKeys[index].Value.ToString()); Business.Do <ILearningCard>().SetDelete(id); BindData(null, null); } catch (Exception ex) { this.Alert("´íÎó£º" + ex.Message); } }
/// <summary> /// 单个删除 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnDel_Click(object sender, ImageClickEventArgs e) { WeiSha.WebControl.RowDelete img = (WeiSha.WebControl.RowDelete)sender; int index = ((GridViewRow)(img.Parent.Parent)).RowIndex; int id = int.Parse(this.GridView1.DataKeys[index].Value.ToString()); Business.Do <IOutline>().OutlineDelete(id); BindData(null, null); DataTable dt = (DataTable)GridView1.DataSource; olineInitBind(couid); int tmid = 0; if (dt != null && dt.Rows.Count > 0) { int.TryParse(dt.Rows[0]["Ol_ID"].ToString(), out tmid); Response.Redirect("Courses_Outline.aspx?couid=" + couid + "&olid=" + tmid); } else { Response.Redirect("Courses_Outline.aspx?couid=" + couid + "&olid=" + tmid); } }