RoadFlow2.1 临时演示

SaveAs.aspx.cs 1.0KB

123456789101112131415161718192021222324252627282930
  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.WorkFlowDesigner
  8. {
  9. public partial class SaveAs : Common.BasePage
  10. {
  11. protected string saveOpen = string.Empty;
  12. protected string newid = string.Empty;
  13. protected void Page_Load(object sender, EventArgs e)
  14. {
  15. string flowid = Request.QueryString["flowid"];
  16. if (IsPostBack && flowid.IsGuid() && !Request.Form["save"].IsNullOrEmpty())
  17. {
  18. string newName = Request.Form["NewFlowName"];
  19. saveOpen = Request.Form["SaveOpen"];
  20. var wf = new RoadFlow.Platform.WorkFlow().SaveAs(flowid.ToGuid(), newName);
  21. if(wf!=null)
  22. {
  23. newid=wf.ID.ToString();
  24. Page.ClientScript.RegisterStartupScript(Page.GetType(), "ok", "alert('另存成功!');", true);
  25. }
  26. }
  27. }
  28. }
  29. }