You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
157 lines
4.1 KiB
Plaintext
157 lines
4.1 KiB
Plaintext
11 months ago
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Data;
|
||
|
using BP.DA;
|
||
|
using BP.Web;
|
||
|
using BP.En;
|
||
|
|
||
|
namespace BP.GPM
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 岗位菜单
|
||
|
/// </summary>
|
||
|
public class StationMenuAttr
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 菜单
|
||
|
/// </summary>
|
||
|
public const string FK_Menu = "FK_Menu";
|
||
|
/// <summary>
|
||
|
/// 岗位
|
||
|
/// </summary>
|
||
|
public const string FK_Station = "FK_Station";
|
||
|
/// <summary>
|
||
|
/// 是否选中.
|
||
|
/// </summary>
|
||
|
public const string IsChecked = "IsChecked";
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 岗位菜单
|
||
|
/// </summary>
|
||
|
public class StationMenu : EntityMM
|
||
|
{
|
||
|
#region 属性
|
||
|
/// <summary>
|
||
|
/// 菜单
|
||
|
/// </summary>
|
||
|
public string FK_Menu
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return this.GetValStringByKey(StationMenuAttr.FK_Menu);
|
||
|
}
|
||
|
set
|
||
|
{
|
||
|
this.SetValByKey(StationMenuAttr.FK_Menu, value);
|
||
|
}
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 岗位
|
||
|
/// </summary>
|
||
|
public string FK_Station
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return this.GetValStringByKey(StationMenuAttr.FK_Station);
|
||
|
}
|
||
|
set
|
||
|
{
|
||
|
this.SetValByKey(StationMenuAttr.FK_Station, value);
|
||
|
}
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 是否选中
|
||
|
/// </summary>
|
||
|
public string IsChecked
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return this.GetValStringByKey(StationMenuAttr.IsChecked);
|
||
|
}
|
||
|
set
|
||
|
{
|
||
|
this.SetValByKey(StationMenuAttr.IsChecked, value);
|
||
|
}
|
||
|
}
|
||
|
#endregion
|
||
|
|
||
|
#region 构造方法
|
||
|
/// <summary>
|
||
|
/// 岗位菜单
|
||
|
/// </summary>
|
||
|
public StationMenu()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 岗位菜单
|
||
|
/// </summary>
|
||
|
public override Map EnMap
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
if (this._enMap != null)
|
||
|
return this._enMap;
|
||
|
Map map = new Map("GPM_StationMenu", "岗位菜单");
|
||
|
map.setEnType(EnType.Sys);
|
||
|
|
||
|
//map.AddTBStringPK(StationMenuAttr.FK_Station, null, "岗位", false, false, 0, 50, 20);
|
||
|
map.AddDDLEntitiesPK(StationMenuAttr.FK_Station, null, "岗位", new BP.Port.Stations(), true);
|
||
|
map.AddTBStringPK(StationMenuAttr.FK_Menu, null, "菜单", false, false, 0, 50, 20);
|
||
|
map.AddBoolean(StationMenuAttr.IsChecked, true, "是否选中", true, true);
|
||
|
this._enMap = map;
|
||
|
return this._enMap;
|
||
|
}
|
||
|
}
|
||
|
#endregion
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 岗位菜单s
|
||
|
/// </summary>
|
||
|
public class StationMenus : EntitiesMM
|
||
|
{
|
||
|
#region 构造
|
||
|
/// <summary>
|
||
|
/// 岗位s
|
||
|
/// </summary>
|
||
|
public StationMenus()
|
||
|
{
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 得到它的 Entity
|
||
|
/// </summary>
|
||
|
public override Entity GetNewEntity
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return new StationMenu();
|
||
|
}
|
||
|
}
|
||
|
#endregion
|
||
|
|
||
|
#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||
|
/// <summary>
|
||
|
/// 转化成 java list,C#不能调用.
|
||
|
/// </summary>
|
||
|
/// <returns>List</returns>
|
||
|
public System.Collections.Generic.IList<StationMenu> ToJavaList()
|
||
|
{
|
||
|
return (System.Collections.Generic.IList<StationMenu>)this;
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 转化成list
|
||
|
/// </summary>
|
||
|
/// <returns>List</returns>
|
||
|
public System.Collections.Generic.List<StationMenu> Tolist()
|
||
|
{
|
||
|
System.Collections.Generic.List<StationMenu> list = new System.Collections.Generic.List<StationMenu>();
|
||
|
for (int i = 0; i < this.Count; i++)
|
||
|
{
|
||
|
list.Add((StationMenu)this[i]);
|
||
|
}
|
||
|
return list;
|
||
|
}
|
||
|
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||
|
}
|
||
|
}
|