RoadFlow2.1 临时演示

SaveData.aspx 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SaveData.aspx.cs" Inherits="WebForm.Platform.WorkFlowRun.SaveData" %>
  2. <!DOCTYPE html>
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6. <title></title>
  7. </head>
  8. <body>
  9. <form id="form1" runat="server">
  10. <div>
  11. <%
  12. WebForm.Common.Tools.CheckLogin(false);
  13. string flowid = Request.QueryString["flowid"];
  14. string instanceid = Request.QueryString["instanceid"];
  15. string taskid = Request.QueryString["taskid"];
  16. string stepid = Request.QueryString["stepid"];
  17. string groupid = Request.QueryString["groupid"];
  18. string opation = Request.QueryString["opation"];
  19. if (instanceid.IsNullOrEmpty())
  20. {
  21. instanceid = Request.Form["instanceid"];
  22. }
  23. RoadFlow.Platform.WorkFlow bworkFlow = new RoadFlow.Platform.WorkFlow();
  24. RoadFlow.Data.Model.WorkFlowCustomEventParams eventParams = new RoadFlow.Data.Model.WorkFlowCustomEventParams();
  25. eventParams.FlowID = flowid.ToGuid();
  26. eventParams.GroupID = groupid.ToGuid();
  27. eventParams.StepID = stepid.ToGuid();
  28. eventParams.TaskID = taskid.ToGuid();
  29. eventParams.InstanceID = instanceid;
  30. string instanceid1 = bworkFlow.SaveFromData(instanceid, eventParams);
  31. if (instanceid.IsNullOrEmpty())
  32. {
  33. instanceid = instanceid1;
  34. eventParams.InstanceID = instanceid1;
  35. }
  36. Response.Write("<script>new RoadUI.Window().close();$('#instanceid',parent.document).val('" + instanceid + "');parent." + opation + "(true);</script>");
  37. %>
  38. </div>
  39. </form>
  40. </body>
  41. </html>