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