using System;
using System.Data;
using System.Collections;
using BP.DA;
using BP.En;
namespace BP.Sys
{
public class GEEntityWordFrmAttr
{
///
/// 文件路径
///
public const string FilePath="FilePath";
///
/// 记录时间
///
public const string RDT="RDT";
///
/// 最后修改人
///
public const string LastEditer="LastEditer";
public const string OID="OID";
}
///
/// 通用实体
///
public class GEEntityWordFrm : Entity
{
#region 属性。
public int OID
{
get
{
return this.GetValIntByKey(GEEntityWordFrmAttr.OID);
}
set
{
this.SetValByKey(GEEntityWordFrmAttr.OID,value);
}
}
///
/// 最后修改人
///
public string LastEditer
{
get
{
return this.GetValStringByKey(GEEntityWordFrmAttr.LastEditer);
}
set
{
this.SetValByKey(GEEntityWordFrmAttr.LastEditer,value);
}
}
///
/// 记录时间
///
public string RDT
{
get
{
return this.GetValStringByKey(GEEntityWordFrmAttr.RDT);
}
set
{
this.SetValByKey(GEEntityWordFrmAttr.RDT,value);
}
}
///
/// 文件路径
///
public string FilePath
{
get
{
return this.GetValStringByKey(GEEntityWordFrmAttr.FilePath);
}
set
{
this.SetValByKey(GEEntityWordFrmAttr.FilePath, value);
}
}
#endregion 属性。
#region 构造函数
public override string PK
{
get
{
return "OID";
}
}
public override string PKField
{
get
{
return "OID";
}
}
public override string ToString()
{
return this.FrmID;
}
public override string ClassID
{
get
{
return this.FrmID;
}
}
///
/// 主键
///
public string FrmID = null;
///
/// 通用实体
///
public GEEntityWordFrm()
{
}
///
/// 通用实体
///
/// 节点ID
public GEEntityWordFrm(string fk_mapdata)
{
this.FrmID = fk_mapdata;
}
///
/// 通用实体
///
/// 节点ID
/// OID
public GEEntityWordFrm(string fk_mapdata, object pk)
{
this.FrmID= fk_mapdata;
this.PKVal = pk;
this.Retrieve();
}
#endregion
#region Map
///
/// 重写基类方法
///
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
if (this.FrmID == null)
throw new Exception("没有给" + this.FrmID + "值,您不能获取它的Map。");
this._enMap = BP.Sys.MapData.GenerHisMap(this.FrmID);
return this._enMap;
}
}
///
/// GEEntitys
///
public override Entities GetNewEntities
{
get
{
if (this.FrmID == null)
return new GEEntityWordFrms();
return new GEEntityWordFrms(this.FrmID);
}
}
#endregion
private ArrayList _Dtls = null;
public ArrayList Dtls
{
get
{
if (_Dtls == null)
_Dtls = new ArrayList();
return _Dtls;
}
}
}
///
/// 通用实体s
///
public class GEEntityWordFrms : EntitiesOID
{
#region 重载基类方法
public override string ToString()
{
//if (this.FrmID == null)
// throw new Exception("@没有能 FK_MapData 给值。");
return this.FrmID;
}
///
/// 主键
///
public string FrmID = null;
#endregion
#region 方法
///
/// 得到它的 Entity
///
public override Entity GetNewEntity
{
get
{
//if (this.FrmID == null)
// throw new Exception("@没有能 FK_MapData 给值。");
if (this.FrmID == null)
return new GEEntity();
return new GEEntity(this.FrmID);
}
}
///
/// 通用实体ID
///
public GEEntityWordFrms()
{
}
///
/// 通用实体ID
///
///
public GEEntityWordFrms(string fk_mapdata)
{
this.FrmID = fk_mapdata;
}
#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((GEEntityWordFrm)this[i]);
}
return list;
}
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
}
}