using System; using System.Collections; using System.Data; using BP.DA; using BP.En; using BP.Sys.XML; using BP.Difference; namespace BP.Sys.XML { /// /// 属性 /// public class EnumInfoXmlAttr { /// /// 编号 /// public const string No = "No"; /// /// 名称 /// public const string Name = "Name"; /// /// 描述 /// public const string Vals = "Vals"; } /// /// EnumInfoXml 的摘要说明,属性的配置。 /// public class EnumInfoXml : XmlEn { #region 属性 public new string Name { get { return this.GetValStringByKey(BP.Web.WebUser.SysLang); } } public string Key { get { return this.GetValStringByKey("Key"); } } /// /// Vals /// public string Vals { get { string str = BP.Web.WebUser.SysLang; str = "CH"; return this.GetValStringByKey(str); } } #endregion #region 构造 public EnumInfoXml() { } public EnumInfoXml(string key) { this.RetrieveByPK("Key", key); } /// /// 获取一个实例 /// public override XmlEns GetNewEntities { get { return new EnumInfoXmls(); } } #endregion } /// /// 属性集合 /// public class EnumInfoXmls:XmlEns { #region 构造 /// /// 考核过错行为的数据元素 /// public EnumInfoXmls() { } #endregion #region 重写基类属性或方法。 /// /// 得到它的 Entity /// public override XmlEn GetNewEntity { get { return new EnumInfoXml(); } } public override string File { get { return BP.Difference.SystemConfig.PathOfXML + "Enum/"; } } /// /// 物理表名 /// public override string TableName { get { return "Item"; } } public override Entities RefEns { get { return null; } } #endregion } }