join.cs

来自「工作流的基本资料(文档资料」· CS 代码 · 共 39 行

CS
39
字号
using System;
using System.Collections;
using com.use.wfp.util;

namespace com.use.wfp.xpdl.elements
{
	/// <summary>
	/// Join 的摘要说明。
	/// </summary>
	public class Join:BaseElement
	{
		private String gc;
		private static Hashtable modes;
		public JoinType GetJoinType()
		{
			if(IsTypeSpecified())
			{
				return (JoinType)modes[gc];
			}
			throw new ObjectNotFound("JoinType is not specified");
		}

		public Join()
		{
			if(modes == null)
			{
				modes = new Hashtable();
				modes.Add("AND", JoinType.AND);
				modes.Add("XOR", JoinType.XOR);
			}			
		}

		public bool IsTypeSpecified()
		{
			return GetAttribute(gc, out gc, "Type") != "";
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?