?? deadline.cs
字號:
using System;
using System.Collections;
using com.use.wfp.util;
namespace com.use.wfp.xpdl.elements
{
/// <summary>
/// Deadline 的摘要說明。
/// </summary>
public class Deadline:BaseElement
{
/// <remarks/>
private Node DeadlineCondition = NodeFactory.CreateEmptyNode();
public Node GetDeadlineCondition()
{
if(DeadlineCondition.IsEmpty()){
Init();
}
return DeadlineCondition;
}
/// <remarks/>
private Node ExceptionName = NodeFactory.CreateEmptyNode();
public Node GetExceptionName()
{
if(ExceptionName.IsEmpty()){
Init();
}
return ExceptionName;
}
private String gc;
private static Hashtable modes;
public DeadlineExecution GetDeadlineExecution()
{
if(IsExecutionSpecified())
{
return (DeadlineExecution)modes[gc];
}
throw new ObjectNotFound("DeadlineExecution is not specified");
}
public Deadline()
{
if(modes == null)
{
modes = new Hashtable();
modes.Add("ASYNCHR", DeadlineExecution.ASYNCHR);
modes.Add("SYNCHR", DeadlineExecution.SYNCHR);
}
}
private void Init()
{
IList nodes = null;
GetChildren(nodes, out nodes);
foreach(Node node in nodes)
{
if(node.GetName().Equals("DeadlineCondition"))
{
DeadlineCondition = node;
}
else if(node.GetName().Equals("ExceptionName"))
{
ExceptionName = node;
}
}
}
public bool IsExecutionSpecified()
{
return GetAttribute(gc, out gc, "Execution") != "";
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -