RoadFlow2.1 临时演示

Default.aspx.cs 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7. namespace WebForm.Platform.DBConnection
  8. {
  9. public partial class Default : Common.BasePage
  10. {
  11. protected string Query1 = string.Empty;
  12. protected List<RoadFlow.Data.Model.DBConnection> ConnList = new List<RoadFlow.Data.Model.DBConnection>();
  13. protected void Page_Load(object sender, EventArgs e)
  14. {
  15. string query1 = string.Format("&appid={0}&tabid={1}", Request.QueryString["appid"], Request.QueryString["tabid"]);
  16. RoadFlow.Platform.DBConnection bdbconn = new RoadFlow.Platform.DBConnection();
  17. if (IsPostBack)
  18. {
  19. if (!Request.Form["DeleteBut"].IsNullOrEmpty())
  20. {
  21. string deleteID = Request.Form["checkbox_app"];
  22. System.Text.StringBuilder delxml = new System.Text.StringBuilder();
  23. foreach (string id in deleteID.Split(','))
  24. {
  25. Guid gid;
  26. if (id.IsGuid(out gid))
  27. {
  28. delxml.Append(bdbconn.Get(gid).Serialize());
  29. bdbconn.Delete(gid);
  30. }
  31. }
  32. bdbconn.ClearCache();
  33. RoadFlow.Platform.Log.Add("删除了数据连接", delxml.ToString(), RoadFlow.Platform.Log.Types.流程相关);
  34. }
  35. }
  36. ConnList = bdbconn.GetAll();
  37. Query1 = query1;
  38. }
  39. }
  40. }