RoadFlow2.1 临时演示

Show.aspx.cs 929B

12345678910111213141516171819202122232425262728293031323334
  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.WorkFlowArchives
  8. {
  9. public partial class Show : Common.BasePage
  10. {
  11. protected string Contents = string.Empty;
  12. protected string Comments = string.Empty;
  13. protected void Page_Load(object sender, EventArgs e)
  14. {
  15. string id = Request.QueryString["id"];
  16. if (!id.IsGuid())
  17. {
  18. Contents = "无内容";
  19. return;
  20. }
  21. var archives = new RoadFlow.Platform.WorkFlowArchives().Get(id.ToGuid());
  22. if (archives != null)
  23. {
  24. Contents = archives.Contents;
  25. Comments = archives.Comments;
  26. }
  27. else
  28. {
  29. Contents = "无内容";
  30. }
  31. }
  32. }
  33. }