using BP.En;
using BP.Port;
namespace BP.CCFast.CCMenu
{
///
/// 权限组Dept
///
public class GroupDeptAttr
{
///
/// Dept
///
public const string FK_Dept = "FK_Dept";
///
/// 权限组
///
public const string FK_Group = "FK_Group";
}
///
/// 权限组部门
///
public class GroupDept : EntityMyPK
{
#region 属性
public string FK_Dept
{
get
{
return this.GetValStringByKey(GroupDeptAttr.FK_Dept);
}
set
{
this.SetValByKey(GroupDeptAttr.FK_Dept, value);
}
}
public string FK_Group
{
get
{
return this.GetValStringByKey(GroupDeptAttr.FK_Group);
}
set
{
this.SetValByKey(GroupDeptAttr.FK_Group, value);
}
}
#endregion
#region 构造方法
///
/// 权限组部门
///
public GroupDept()
{
}
///
/// 权限组Dept
///
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
Map map = new Map("GPM_GroupDept", "权限组部门");
map.AddMyPK();
map.AddTBString(GroupDeptAttr.FK_Group, null, "权限组", false, false, 0, 50, 20);
map.AddDDLEntities(GroupDeptAttr.FK_Dept, null, "部门", new Depts(), true);
this._enMap = map;
return this._enMap;
}
}
#endregion
protected override bool beforeInsert()
{
//
this.MyPK = this.FK_Group + "_" + this.FK_Dept;
return base.beforeInsert();
}
}
///
/// 权限组部门s
///
public class GroupDepts : EntitiesMyPK
{
#region 构造
///
/// 权限组s
///
public GroupDepts()
{
}
///
/// 得到它的 Entity
///
public override Entity GetNewEntity
{
get
{
return new GroupDept();
}
}
#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((GroupDept)this[i]);
}
return list;
}
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
}
}