using System; using System.Data; using System.Collections; using BP.DA; using BP.En; using BP.Port; namespace BP.Sys { /// /// 类型 /// public class UserLogType : EntityNoName { #region 构造方法 /// /// 类型 /// public UserLogType() { } /// /// 类型 /// /// public UserLogType(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_UserLogType", "类型"); map.AddTBStringPK("No", null, "编号", true, true, 1, 100, 20); map.AddTBString("Name", null, "名称", true, false, 0, 100, 300); this._enMap = map; return this._enMap; } } } /// /// 类型 /// public class UserLogTypes : EntitiesNoName { #region 构造. /// /// 表单目录s /// public UserLogTypes() { } /// /// 得到它的 Entity /// public override Entity GetNewEntity { get { return new UserLogType(); } } #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((UserLogType)this[i]); } return list; } #endregion 为了适应自动翻译成java的需要,把实体转换成List. } }