WorkflowChart.aspx.cs
上传用户:li2971742
上传日期:2021-11-18
资源大小:39096k
文件大小:1k
源码类别:

OA系统

开发平台:

C#

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Collections;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. using System.Web.UI.WebControls.WebParts;
  10. using System.Web.UI.HtmlControls;
  11. namespace OThinker.H3.Portal
  12. {
  13.     public partial class WorkflowChart : PortalPage
  14.     {
  15.         protected string WorkflowPackage
  16.         {
  17.             get
  18.             {
  19.                 return HttpUtility.UrlDecode(this.Request.QueryString[Param_WorkflowPackage]);
  20.             }
  21.         }
  22.         protected string WorkflowName
  23.         {
  24.             get
  25.             {
  26.                 return HttpUtility.UrlDecode(this.Request.QueryString[Param_WorkflowName]);
  27.             }
  28.         }
  29.         protected int WorkflowVersion
  30.         {
  31.             get
  32.             {
  33.                 return int.Parse(this.Request.QueryString[Param_WorkflowVersion]);
  34.             }
  35.         }
  36.         protected void Page_Load(object sender, EventArgs e)
  37.         {
  38.             // 图片的二进制内容
  39.             byte[] chartContent = OThinker.H3.Server.Engine.WorkflowManager.ChartWorkflow(
  40.                 this.WorkflowPackage,
  41.                 this.WorkflowName,
  42.                 this.WorkflowVersion,
  43.                 null, 
  44.                 null, 
  45.                 null);
  46.             this.Response.ContentType = "image/jpeg";
  47.             this.Response.BinaryWrite(chartContent);
  48.         }
  49.     }
  50. }