using BP.En; namespace BP.CCOA.CCInfo { /// /// 类型 属性 /// public class InfoTypeAttr : EntityNoNameAttr { } /// /// 类型 /// public class InfoType : EntityNoName { #region 基本属性 #endregion #region 构造方法 /// /// 权限控制 /// public override UAC HisUAC { get { UAC uac = new UAC(); uac.IsUpdate = true; uac.IsInsert = true; return uac; } } /// /// 类型 /// public InfoType() { } public InfoType(string no) { this.No = no; this.Retrieve(); } /// /// 重写基类方法 /// public override Map EnMap { get { if (this._enMap != null) return this._enMap; Map map = new Map("OA_InfoType", "类型类型"); map.setCodeStruct("3"); map.AddTBStringPK(InfoTypeAttr.No, null, "编号", false, true, 3, 3, 3); map.AddTBString(InfoTypeAttr.Name, null, "名称", true, false, 0, 100, 10, true); this._enMap = map; return this._enMap; } } #endregion } /// /// 类型 s /// public class InfoTypes : EntitiesNoName { /// /// 类型 /// public InfoTypes() { } /// /// 得到它的 Entity /// public override Entity GetNewEntity { get { return new InfoType(); } } #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((InfoType)this[i]); } return list; } #endregion 为了适应自动翻译成java的需要,把实体转换成List. } }