attributeupdateimpl.cs

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

CS
42
字号
using System;
using NetBpm.Workflow.Definition;
using NetBpm.Workflow.Execution.Impl;

namespace NetBpm.Workflow.Log.Impl
{
	public class AttributeUpdateImpl : LogDetailImpl, IAttributeUpdate
	{
		private IAttribute _attribute = null;
		private String _valueText = null;

		public IAttribute Attribute
		{
			get { return this._attribute; }
			set { this._attribute = value; }
		}

		public String ValueText
		{
			get { return this._valueText; }
			set { this._valueText = value; }
		}

		public AttributeUpdateImpl()
		{
		}

		public AttributeUpdateImpl(AttributeInstanceImpl attributeInstance)
		{
			this._attribute = attributeInstance.Attribute;
			this._valueText = attributeInstance.ValueText;
		}

		public Object GetValue()
		{
			// until it is possible to access a default html-formatter
			// for an attribute, it is not possible to give the real 
			// object here, sorry. 
			return this._valueText;
		}
	}
}

⌨️ 快捷键说明

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