using System; using System.Data; using System.Collections; using BP.DA; using BP.En; using BP.Port; namespace BP.Sys { /// /// 级别 /// public class UserLogLevel : EntityNoName { #region 构造方法 /// /// 级别 /// public UserLogLevel() { } /// /// 表单目录 /// /// public UserLogLevel(string _No) : base(_No) { } public override UAC HisUAC { get { UAC uac = new UAC(); uac.Readonly(); return uac; } } #endregion /// /// 级别 /// public override Map EnMap { get { if (this._enMap != null) return this._enMap; Map map = new Map("Sys_UserLogLevel", "级别"); map.AddTBStringPK("No", null, "编号", true, true, 1, 100, 300); map.AddTBString("Name", null, "名称", true, false, 0, 100, 600); this._enMap = map; return this._enMap; } } } /// /// 级别 /// public class UserLogLevels : EntitiesNoName { #region 构造. /// /// 级别s /// public UserLogLevels() { } /// /// 得到它的 Entity /// public override Entity GetNewEntity { get { return new UserLogLevel(); } } #endregion 构造. #region 为了适应自动翻译成java的需要,把实体转换成List. /// /// 转化成 java list,C#不能调用. /// /// List public System.Collections.Generic.IList ToJavaList() { return (System.Collections.Generic.IList)this; } /// /// 转化成list /// /// List public System.Collections.Generic.List Tolist() { System.Collections.Generic.List list = new System.Collections.Generic.List(); for (int i = 0; i < this.Count; i++) { list.Add((UserLogLevel)this[i]); } return list; } #endregion 为了适应自动翻译成java的需要,把实体转换成List. } }