using System;
using System.Collections;
using System.Data;
using BP.DA;
using BP.Web;
using BP.En;
namespace BP.Cloud
{
///
/// 部门编号人员
///
public class OrgEmpAttr
{
///
/// 操作员
///
public const string FK_Emp = "FK_Emp";
///
/// 组织结构编码
///
public const string OrgNo = "OrgNo";
}
///
/// 部门编号人员
///
public class OrgEmp : EntityMM
{
#region 属性
public string FK_Emp
{
get
{
return this.GetValStringByKey(OrgEmpAttr.FK_Emp);
}
set
{
this.SetValByKey(OrgEmpAttr.FK_Emp, value);
}
}
///
/// 组织结构编码
///
public string OrgNo
{
get
{
return this.GetValStrByKey(EmpAttr.OrgNo);
}
set
{
this.SetValByKey(EmpAttr.OrgNo, value);
}
}
#endregion
#region 构造方法
///
/// 部门编号人员
///
public OrgEmp()
{
}
///
/// 部门编号人员
///
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
Map map = new Map("Port_OrgEmp", "组织人员");
map.AddTBStringPK(OrgEmpAttr.FK_Emp, null, "人员", false, false, 0, 100, 36);
map.AddTBStringPK(EmpAttr.OrgNo, null, "OrgNo", false, false, 0, 100, 36);
this._enMap = map;
return this._enMap;
}
}
#endregion
}
///
/// 部门编号人员s
///
public class OrgEmps : EntitiesMM
{
#region 构造
///
/// 部门编号s
///
public OrgEmps()
{
}
///
/// 得到它的 Entity
///
public override Entity GetNewEntity
{
get
{
return new OrgEmp();
}
}
#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((OrgEmp)this[i]);
}
return list;
}
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
}
}