using System; using System.Collections; using BP.DA; using BP.En; using BP.Sys; namespace BP.ZS { /// /// 项目类型 attr /// public class PrjTypeAttr : EntityNoNameAttr { } /// /// 项目类型 /// public class PrjType : EntityNoName { #region 属性. /// /// UI界面上的访问控制 /// public override UAC HisUAC { get { UAC uac = new UAC(); uac.OpenAll(); return uac; } } #endregion 属性. #region 构造方法 /// /// 项目类型 /// public PrjType() { } /// /// 项目类型 /// /// public PrjType(string _No) : base(_No) { } /// /// 项目类型Map /// public override Map EnMap { get { if (this._enMap != null) return this._enMap; Map map = new Map("ZS_PrjType", "项目类型"); map.IsAutoGenerNo = true; map.CodeStruct = "2"; map.AddTBStringPK(PrjTypeAttr.No, null, "编号", true, true, 2, 2, 12); map.AddTBString(PrjTypeAttr.Name, null, "名称", true, false, 0, 50, 50); this._enMap = map; return this._enMap; } } #endregion } /// /// 项目类型s /// public class PrjTypes : EntitiesNoName { /// /// 项目类型s /// public PrjTypes() { } /// /// 得到它的 Entity /// public override Entity GetNewEntity { get { return new PrjType(); } } } }