RoadFlow2.1 临时演示

Menu.ashx.cs 973B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. namespace WebForm.Platform.Home
  6. {
  7. /// <summary>
  8. /// Menu 的摘要说明
  9. /// </summary>
  10. public class Menu : IHttpHandler
  11. {
  12. public void ProcessRequest(HttpContext context)
  13. {
  14. context.Response.ContentType = "text/plain";
  15. string roleID = context.Request.QueryString["roleid"];
  16. string userID = context.Request.QueryString["userid"];
  17. Guid gid, uid;
  18. if (!roleID.IsGuid(out gid) || !userID.IsGuid(out uid))
  19. {
  20. context.Response.Write("[]");
  21. }
  22. else
  23. {
  24. context.Response.Write(new RoadFlow.Platform.RoleApp().GetRoleAppJsonString(gid, uid, Common.Tools.BaseUrl));
  25. }
  26. }
  27. public bool IsReusable
  28. {
  29. get
  30. {
  31. return false;
  32. }
  33. }
  34. }
  35. }