using System; using System.Collections; using BP.DA; using BP.En; using BP.Sys; namespace BP.ZS { /// /// 机构选定 attr /// public class ProjectAgencyBindAttr : EntityNoNameAttr { public const string SGSta = "SGSta"; } /// /// 机构选定 /// public class ProjectAgencyBind : EntityNoName { #region 属性. /// /// UI界面上的访问控制 /// public override UAC HisUAC { get { UAC uac = new UAC(); uac.OpenAll(); return uac; } } #endregion 属性. #region 构造方法 /// /// 机构选定 /// public ProjectAgencyBind() { } /// /// 机构选定 /// /// public ProjectAgencyBind(string _No) : base(_No) { } /// /// 机构选定Map /// public override Map EnMap { get { if (this._enMap != null) return this._enMap; Map map = new Map("ZS_project_agency_bind", "单位选定"); map.IsAutoGenerNo = true; map.CodeStruct = "4"; map.AddTBStringPK("No", null, "编号", true, true, 5, 5, 20); map.AddTBString("Name", null, "名称", true, false, 0, 50, 50); map.AddTBString("project_id", null, "项目id", true, false, 0, 50, 50); map.AddTBString("agency_id", null, "机构id", true, false, 0, 50, 50); map.AddTBString("bind_date", null, "选定日期", true, false, 0, 50, 50); map.AddTBString("work_describe", null, "工作描述", true, false, 0, 50, 50); map.AddTBString("file", null, "附件", true, false, 0, 50, 50); map.AddTBString("sys_created_time", null, "创建时间", true, false, 0, 50, 50); map.AddTBString("sys_created_user", null, "创建人ID", true, false, 0, 50, 50); map.AddTBString("sys_modified_time", null, "UPDATE", true, false, 0, 50, 50); map.AddTBString("sys_modified_user", null, "最后修改人ID", true, false, 0, 50, 50); map.AddTBDate("sys_created_time", null, "创建时间", false, false); map.AddTBDate("sys_modified_time", null, "修改时间", false, false); map.AddTBString("sys_created_user", null, "创建人ID", false, false, 0, 50, 50); map.AddTBString("sys_modified_user", null, "最后修改人ID", false, false, 0, 50, 50); map.AddMyFile("FU"); // map.AddMyFile("照片"); this._enMap = map; return this._enMap; } } #endregion } /// /// 机构选定s /// public class ProjectAgencyBinds : EntitiesNoName { /// /// 机构选定s /// public ProjectAgencyBinds() { } /// /// 得到它的 Entity /// public override Entity GetNewEntity { get { return new ProjectAgencyBind(); } } } }