using System;
using System.Collections;
using System.Data;
using BP.DA;
using BP.En;
using BP.Sys.XML;
namespace BP.Sys.XML
{
///
/// 属性
///
public class ActiveAttrAttr
{
///
/// AttrKey
///
public const string AttrKey = "AttrKey";
///
/// 表达式
///
public const string AttrName = "AttrName";
///
/// 描述
///
public const string Exp = "Exp";
///
/// ExpApp
///
public const string ExpApp = "ExpApp";
///
/// for
///
public const string For = "For";
///
/// 条件
///
public const string Condition = "Condition";
}
///
/// ActiveAttr 的摘要说明。
/// 考核过错行为的数据元素
/// 1,它是 ActiveAttr 的一个明细。
/// 2,它表示一个数据元素。
///
public class ActiveAttr : XmlEn
{
#region 属性
///
/// 选择这个属性时间需要的条件
///
public string Condition
{
get
{
return this.GetValStringByKey(ActiveAttrAttr.Condition);
}
}
public string AttrKey
{
get
{
return this.GetValStringByKey(ActiveAttrAttr.AttrKey);
}
}
public string AttrName
{
get
{
return this.GetValStringByKey(ActiveAttrAttr.AttrName);
}
}
public string Exp
{
get
{
return this.GetValStringByKey(ActiveAttrAttr.Exp);
}
}
public string ExpApp
{
get
{
return this.GetValStringByKey(ActiveAttrAttr.ExpApp);
}
}
public string For
{
get
{
return this.GetValStringByKey(ActiveAttrAttr.For);
}
}
#endregion
#region 构造
public ActiveAttr()
{
}
///
/// 获取一个实例
///
public override XmlEns GetNewEntities
{
get
{
return new ActiveAttrs();
}
}
#endregion
}
///
///
///
public class ActiveAttrs:XmlEns
{
#region 构造
///
/// 考核过错行为的数据元素
///
public ActiveAttrs(){}
#endregion
#region 重写基类属性或方法。
///
/// 得到它的 Entity
///
public override XmlEn GetNewEntity
{
get
{
return new ActiveAttr();
}
}
public override string File
{
get
{
return BP.Difference.SystemConfig.PathOfXML+"Ens/ActiveAttr.xml";
}
}
///
/// 物理表名
///
public override string TableName
{
get
{
return "Item";
}
}
public override Entities RefEns
{
get
{
return null;
}
}
#endregion
}
}