using System; using System.Collections; using BP.DA; using BP.Sys; using BP.En; using BP.Sys.XML; namespace BP.Sys.XML { /// /// RegularExpressionDtl 正则表达模版 /// public class RegularExpressionDtl : XmlEn { #region 属性 /// /// 编号 /// public string ItemNo { get { return this.GetValStringByKey("ItemNo"); } } /// /// 名称 /// public string Name { get { return this.GetValStringByKey("Name"); } } public string Note { get { return this.GetValStringByKey("Note"); } } public string Exp { get { return this.GetValStringByKey("Exp"); } } public string ForEvent { get { return this.GetValStringByKey("ForEvent"); } } public string Msg { get { return this.GetValStringByKey("Msg"); } } #endregion #region 构造 /// /// 节点扩展信息 /// public RegularExpressionDtl() { } /// /// 获取一个实例 /// public override XmlEns GetNewEntities { get { return new RegularExpressionDtls(); } } #endregion } /// /// /// public class RegularExpressionDtls:XmlEns { #region 构造 /// /// 考核率的数据元素 /// public RegularExpressionDtls() { } #endregion #region 重写基类属性或方法。 /// /// 得到它的 Entity /// public override XmlEn GetNewEntity { get { return new RegularExpressionDtl(); } } public override string File { get { return BP.Difference.SystemConfig.PathOfData + "XML/RegularExpression.xml"; } } /// /// 物理表名 /// public override string TableName { get { return "Dtl"; } } public override Entities RefEns { get { return null; } } #endregion } }