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