WorkflowChart.aspx.cs
资源名称:H3_OA.rar [点击查看]
上传用户:li2971742
上传日期:2021-11-18
资源大小:39096k
文件大小:1k
源码类别:
OA系统
开发平台:
C#
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- namespace OThinker.H3.Portal
- {
- public partial class WorkflowChart : PortalPage
- {
- protected string WorkflowPackage
- {
- get
- {
- return HttpUtility.UrlDecode(this.Request.QueryString[Param_WorkflowPackage]);
- }
- }
- protected string WorkflowName
- {
- get
- {
- return HttpUtility.UrlDecode(this.Request.QueryString[Param_WorkflowName]);
- }
- }
- protected int WorkflowVersion
- {
- get
- {
- return int.Parse(this.Request.QueryString[Param_WorkflowVersion]);
- }
- }
- protected void Page_Load(object sender, EventArgs e)
- {
- // 图片的二进制内容
- byte[] chartContent = OThinker.H3.Server.Engine.WorkflowManager.ChartWorkflow(
- this.WorkflowPackage,
- this.WorkflowName,
- this.WorkflowVersion,
- null,
- null,
- null);
- this.Response.ContentType = "image/jpeg";
- this.Response.BinaryWrite(chartContent);
- }
- }
- }