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