RoadFlow2.1 临时演示

Open_List.aspx.cs 1.1KB

123456789101112131415161718192021222324252627282930313233
  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.WorkFlowDesigner
  8. {
  9. public partial class Open_List : Common.BasePage
  10. {
  11. protected RoadFlow.Platform.Users busers = new RoadFlow.Platform.Users();
  12. protected RoadFlow.Platform.Organize borg = new RoadFlow.Platform.Organize();
  13. protected RoadFlow.Platform.WorkFlow bwf = new RoadFlow.Platform.WorkFlow();
  14. protected IEnumerable<RoadFlow.Data.Model.WorkFlow> flows;
  15. protected string type = string.Empty;
  16. protected void Page_Load(object sender, EventArgs e)
  17. {
  18. type = Request.QueryString["typeid"];
  19. string name = string.Empty;
  20. if (IsPostBack)
  21. {
  22. name = Request.Form["flow_name"];
  23. }
  24. flows = bwf.GetAll().Where(p => p.Status != 4);
  25. if (!name.IsNullOrEmpty())
  26. {
  27. flows = flows.Where(p => p.Name.IndexOf(name) >= 0);
  28. }
  29. }
  30. }
  31. }