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