You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
111 lines
2.8 KiB
Plaintext
111 lines
2.8 KiB
Plaintext
using BP.En;
|
|
|
|
|
|
namespace BP.CCOA.CCInfo
|
|
{
|
|
/// <summary>
|
|
/// 类型 属性
|
|
/// </summary>
|
|
public class InfoTypeAttr : EntityNoNameAttr
|
|
{
|
|
|
|
}
|
|
/// <summary>
|
|
/// 类型
|
|
/// </summary>
|
|
public class InfoType : EntityNoName
|
|
{
|
|
#region 基本属性
|
|
#endregion
|
|
|
|
#region 构造方法
|
|
/// <summary>
|
|
/// 权限控制
|
|
/// </summary>
|
|
public override UAC HisUAC
|
|
{
|
|
get
|
|
{
|
|
UAC uac = new UAC();
|
|
uac.IsUpdate = true;
|
|
uac.IsInsert = true;
|
|
return uac;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 类型
|
|
/// </summary>
|
|
public InfoType()
|
|
{
|
|
}
|
|
public InfoType(string no)
|
|
{
|
|
this.No = no;
|
|
this.Retrieve();
|
|
}
|
|
/// <summary>
|
|
/// 重写基类方法
|
|
/// </summary>
|
|
public override Map EnMap
|
|
{
|
|
get
|
|
{
|
|
if (this._enMap != null)
|
|
return this._enMap;
|
|
|
|
Map map = new Map("OA_InfoType", "类型类型");
|
|
map.setCodeStruct("3");
|
|
map.AddTBStringPK(InfoTypeAttr.No, null, "编号", false, true, 3, 3, 3);
|
|
map.AddTBString(InfoTypeAttr.Name, null, "名称", true, false, 0, 100, 10, true);
|
|
this._enMap = map;
|
|
return this._enMap;
|
|
}
|
|
}
|
|
#endregion
|
|
}
|
|
/// <summary>
|
|
/// 类型 s
|
|
/// </summary>
|
|
public class InfoTypes : EntitiesNoName
|
|
{
|
|
/// <summary>
|
|
/// 类型
|
|
/// </summary>
|
|
public InfoTypes() { }
|
|
/// <summary>
|
|
/// 得到它的 Entity
|
|
/// </summary>
|
|
public override Entity GetNewEntity
|
|
{
|
|
get
|
|
{
|
|
return new InfoType();
|
|
}
|
|
}
|
|
|
|
#region 为了适应自动翻译成java的需要,把实体转换成List.
|
|
/// <summary>
|
|
/// 转化成 java list,C#不能调用.
|
|
/// </summary>
|
|
/// <returns>List</returns>
|
|
public System.Collections.Generic.IList<InfoType> ToJavaList()
|
|
{
|
|
return (System.Collections.Generic.IList<InfoType>)this;
|
|
}
|
|
/// <summary>
|
|
/// 转化成list
|
|
/// </summary>
|
|
/// <returns>List</returns>
|
|
public System.Collections.Generic.List<InfoType> Tolist()
|
|
{
|
|
System.Collections.Generic.List<InfoType> list = new System.Collections.Generic.List<InfoType>();
|
|
for (int i = 0; i < this.Count; i++)
|
|
{
|
|
list.Add((InfoType)this[i]);
|
|
}
|
|
return list;
|
|
}
|
|
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
|
}
|
|
}
|