| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- namespace WebForm.Platform.WorkFlowFormDesigner
- {
- /// <summary>
- /// GetEvents 的摘要说明
- /// </summary>
- public class GetEvents : IHttpHandler
- {
- public void ProcessRequest(HttpContext context)
- {
- context.Response.ContentType = "text/plain";
- string id = context.Request["id"];
- Guid gid;
- if (!id.IsGuid(out gid))
- {
- context.Response.Write("");
- return;
- }
- var wff = new RoadFlow.Platform.WorkFlowForm().Get(gid);
- if (wff == null)
- {
- context.Response.Write("");
- }
- else
- {
- context.Response.Write(wff.EventsJson);
- }
- }
- public bool IsReusable
- {
- get
- {
- return false;
- }
- }
- }
- }
|