RoadFlow2.1 临时演示

Detail.aspx.cs 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.Log
  8. {
  9. public partial class Detail : Common.BasePage
  10. {
  11. protected RoadFlow.Data.Model.Log log;
  12. protected void Page_Load(object sender, EventArgs e)
  13. {
  14. string id = Request.QueryString["id"];
  15. if (id.IsGuid())
  16. {
  17. log = new RoadFlow.Platform.Log().Get(id.ToGuid());
  18. if (log != null)
  19. {
  20. this.Title1.Text = log.Title;
  21. this.Type.Text = log.Type;
  22. this.WriteTime.Text = log.WriteTime.ToDateTimeStringS();
  23. this.UserName.Text = log.UserName;
  24. this.IPAddress.Text = log.IPAddress;
  25. this.URL.Text = log.URL;
  26. this.Others.Text = log.Others;
  27. this.Contents.Text = log.Contents.HtmlEncode();
  28. this.OldXml.Text = log.OldXml.HtmlEncode();
  29. this.NewXml.Text = log.NewXml.HtmlEncode();
  30. if (log.Contents.IsNullOrEmpty())
  31. {
  32. this.contentstr.Visible = false;
  33. }
  34. if (log.OldXml.IsNullOrEmpty())
  35. {
  36. this.oldxmlstr.Visible = false;
  37. }
  38. if (log.NewXml.IsNullOrEmpty())
  39. {
  40. this.newxmlstr.Visible = false;
  41. }
  42. }
  43. }
  44. }
  45. }
  46. }