exchange.cs
来自「.NET工作流实例,适合刚接确工作流人员参考的例子.」· CS 代码 · 共 39 行
CS
39 行
using System;
using System.Collections.Generic;
using System.Text;
namespace WorkflowConsoleApplication2
{
[Serializable()]
public class NextStepEventArgs : System.Workflow.Activities.ExternalDataEventArgs
{
//一定要将实例ID向上传给基类
public NextStepEventArgs(Guid instanceId)
: base(instanceId)
{ }
public string content;
public string result;
}
[System.Workflow.Activities.ExternalDataExchange()]
public interface IExternalEvent
{
event System.EventHandler<NextStepEventArgs> ApproveEvent;
void Notify(dataform df);
}
[Serializable()]
public class dataform
{
public string content;
public string proposer;
public string approver;
public string result;
public int state;
public string guid;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?