using System; using System.Collections; using System.Data; using BP.DA; using BP.Web; using BP.En; using BP.Port; namespace BP.Port { /// /// 用户组人员 /// public class TeamEmpAttr { /// /// 操作员 /// public const string FK_Emp = "FK_Emp"; /// /// 用户组 /// public const string FK_Team = "FK_Team"; } /// /// 用户组人员 /// public class TeamEmp : EntityMM { #region 属性 public string EmpNo { get { return this.GetValStringByKey(TeamEmpAttr.FK_Emp); } set { this.SetValByKey(TeamEmpAttr.FK_Emp, value); } } public string FK_Team { get { return this.GetValStringByKey(TeamEmpAttr.FK_Team); } set { this.SetValByKey(TeamEmpAttr.FK_Team, value); } } #endregion #region 构造方法 /// /// 用户组人员 /// public TeamEmp() { } /// /// 用户组人员 /// public override Map EnMap { get { if (this._enMap != null) return this._enMap; Map map = new Map("Port_TeamEmp", "用户组人员"); map.setEnType(EnType.App); map.AddTBStringPK(TeamEmpAttr.FK_Team, null, "用户组", true, false, 0, 50, 20); map.AddDDLEntitiesPK(TeamEmpAttr.FK_Emp, null, "人员", new Emps(), true); this._enMap = map; return this._enMap; } } #endregion } /// /// 用户组人员s /// public class TeamEmps : EntitiesMM { #region 构造 /// /// 用户组s /// public TeamEmps() { } /// /// 得到它的 Entity /// public override Entity GetNewEntity { get { return new TeamEmp(); } } #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((TeamEmp)this[i]); } return list; } #endregion 为了适应自动翻译成java的需要,把实体转换成List. } }