participanttype.cs
来自「xpdl的c#解析器 完全依照xpdl标准」· CS 代码 · 共 33 行
CS
33 行
using System;
using System.Collections;
namespace com.use.wfp.xpdl.elements
{
/// <summary>
/// ParticipantType 的摘要说明。
/// </summary>
public class ParticipantType:BaseElement
{
private String mode;
private static Hashtable modes;
public ParticipantTypeType GetParticipantTypeType()
{
return (ParticipantTypeType)modes[GetAttribute(mode, out mode, "Type")];
}
public ParticipantType()
{
if(modes == null)
{
modes = new Hashtable();
modes.Add("RESOURCE_SET", ParticipantTypeType.RESOURCE_SET);
modes.Add("RESOURCE", ParticipantTypeType.RESOURCE);
modes.Add("ROLE", ParticipantTypeType.ROLE);
modes.Add("ORGANIZATIONAL_UNIT", ParticipantTypeType.ORGANIZATIONAL_UNIT);
modes.Add("HUMAN", ParticipantTypeType.HUMAN);
modes.Add("SYSTEM", ParticipantTypeType.SYSTEM);
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?