participants.cs
来自「工作流的基本资料(文档资料」· CS 代码 · 共 36 行
CS
36 行
using System;
using System.Collections;
using com.use.wfp.util;
namespace com.use.wfp.xpdl.elements
{
/// <summary>
/// Participants 的摘要说明。
/// </summary>
public class Participants:BaseElement
{
public Participant GetParticipantById(String Id)
{
if(null == apps)
{
GetParticipants();
}
foreach(Participant app in apps)
{
if(app.GetId().Equals(Id))
{
return app;
}
}
throw new ObjectNotFound("Participant Not Found! Id=" +Id);
}
private IList apps;
public IList GetParticipants()
{
return GetChildren(apps, out apps, typeof(Participant), "Participant");
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?