using System;
using System.Data;
using System.Collections;
using BP.DA;
using BP.En;
using System.Collections.Generic;
namespace BP.Sys
{
///
/// 映射基础
///
public class MapDataTemplateAttr : EntityNoNameAttr
{
public const string PTable = "PTable";
}
///
/// 映射基础
///
public class MapDataTemplate : EntityNoName
{
#region 构造方法
///
/// 映射基础
///
public MapDataTemplate()
{
}
///
/// 映射基础
///
/// 映射编号
public MapDataTemplate(string no)
: base(no)
{
}
///
/// EnMap
///
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
Map map = new Map("Sys_MapData", "表单模版表");
map.CodeStruct="4";
#region 基础信息.
map.AddTBStringPK(MapDataTemplateAttr.No, null, "编号", true, false, 1, 150, 100);
map.AddTBString(MapDataTemplateAttr.Name, null, "描述", true, false, 0, 200, 20);
map.AddTBString(MapDataTemplateAttr.PTable, null, "物理表", true, false, 0, 100, 20);
map.AddTBInt("IsTemplate", 0, "是否是表单模版", true, false);
#endregion 基础信息.
#region 设计者信息.
//增加参数字段.
map.AddTBAtParas(4000);
#endregion
this._enMap = map;
return this._enMap;
}
}
#endregion 构造方法
}
///
/// 映射基础s
///
public class MapDataTemplates : EntitiesNoName
{
#region 构造
///
/// 映射基础s
///
public MapDataTemplates()
{
}
///
/// 得到它的 Entity
///
public override Entity GetNewEntity
{
get
{
return new MapDataTemplate();
}
}
#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((MapDataTemplate)this[i]);
}
return list;
}
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
}
}