using System;
using System.Collections;
using BP.DA;
using BP.En;
namespace BP.FrmTemplate
{
///
/// 表单类别2
///
public class SortFuncAttr : EntityNoNameAttr
{
///
/// 排序字段
///
public const string Idx = "Idx";
///
/// 组织机构编号
///
public const string OrgNo = "OrgNo";
}
///
/// 表单类别2
///
public class SortFunc : EntityNoName
{
#region 属性
#endregion
#region 实现基本的方方法
public override UAC HisUAC
{
get
{
UAC uac = new UAC();
uac.OpenForSysAdmin();
return uac;
}
}
#endregion
#region 构造方法
///
/// 表单类别2
///
public SortFunc()
{
}
///
/// 表单类别2
///
///
public SortFunc(string _No) : base(_No) { }
#endregion
///
/// 表单类别2Map
///
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
Map map = new Map("Frm_SortFunc", "表单类别2");
map.CodeStruct = "2";
map.AddTBStringPK(SortFuncAttr.No, null, "编号", false, false, 1, 40, 42);
map.AddTBString(SortFuncAttr.Name, null, "名称", true, false, 1, 50, 20);
map.AddTBInt(SortFuncAttr.Idx, 0, "顺序", false, false);
this._enMap = map;
return this._enMap;
}
}
}
///
/// 表单类别2
///
public class SortFuncs : EntitiesNoName
{
///
/// 表单类别2s
///
public SortFuncs() { }
///
/// 得到它的 Entity
///
public override Entity GetNewEntity
{
get
{
return new SortFunc();
}
}
#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((SortFunc)this[i]);
}
return list;
}
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
}
}