protected void Button1_Click(object sender, EventArgs e) { string ids = Request.Form["docbox"] ?? ""; foreach (string id in ids.Split(',')) { Doc.Delete(id.ToGuid()); } InitData(); }
protected void LinkButton1_Click(object sender, EventArgs e) { if (doc != null) { Doc.Delete(doc.ID); new RoadFlow.Platform.DocumentsReadUsers().Delete(doc.ID); RoadFlow.Platform.Log.Add("删除了文档", doc.Serialize(), RoadFlow.Platform.Log.Types.文档中心); Page.ClientScript.RegisterStartupScript(Page.GetType(), "ok", "alert('删除成功');window.location='List.aspx" + Request.Url.Query + "'", true); } }
public string DocDelete() { RoadFlow.Data.Model.Documents documents1 = (RoadFlow.Data.Model.Documents)null; RoadFlow.Platform.Documents documents2 = new RoadFlow.Platform.Documents(); string str = this.Request.QueryString["docid"]; if (str.IsGuid()) { documents1 = documents2.Get(str.ToGuid()); } if (documents1 == null) { return("未找到文档"); } documents2.Delete(documents1.ID); new RoadFlow.Platform.DocumentsReadUsers().Delete(documents1.ID); RoadFlow.Platform.Log.Add("删除了文档", documents1.Serialize(), RoadFlow.Platform.Log.Types.文档中心, "", "", (RoadFlow.Data.Model.Users)null); return("1"); }