using BP.En;
namespace BP.CCFast.Portal.WindowExt
{
public class DtlAttr : EntityNoNameAttr
{
public const string FontColor = "FontColor";
///
/// 打开的链接或函数
///
public const string UrlExt = "UrlExt";
public const string DBSrc = "DBSrc";
public const string DBType = "DBType";
public const string Exp0 = "Exp0";
public const string Exp1 = "Exp1";
public const string RefPK = "RefPK";
///
/// 显示类型
///
public const string WindowsShowType = "WindowsShowType";
}
///
/// 变量信息
///
public class Dtl : EntityMyPK
{
#region 权限控制.
///
/// 控制权限
///
public override UAC HisUAC
{
get
{
UAC uac = new UAC();
if (BP.Web.WebUser.IsAdmin == true)
uac.OpenAll();
else
uac.IsView = false;
uac.IsInsert = false;
uac.IsDelete = false;
return uac;
}
}
#endregion 权限控制.
#region 属性
#endregion 属性
#region 构造方法
///
/// 变量信息
///
public Dtl()
{
}
///
/// EnMap
///
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
Map map = new Map("GPM_WindowTemplateDtl", "Dtl变量信息");
map.AddMyPK();
map.AddTBString(DtlAttr.Name, null, "标签", true, false, 0, 300, 20, true);
map.AddTBString(DtlAttr.FontColor, null, "颜色", true, false, 0, 300, 20, true);
map.AddTBString(DtlAttr.Exp0, null, "表达式0", true, false, 0, 300, 20, true);
map.AddTBString(DtlAttr.Exp1, null, "表达式1", true, false, 0, 300, 20, true);
map.AddTBString(DtlAttr.DBSrc, null, "数据源", true, false, 0, 100, 20, true);
map.AddTBInt(DtlAttr.WindowsShowType, 0, "显示类型", true, false);
this._enMap = map;
return this._enMap;
}
}
#endregion
}
///
/// 变量信息s
///
public class Dtls : EntitiesMyPK
{
#region 构造
///
/// 变量信息s
///
public Dtls()
{
}
///
/// 得到它的 Entity
///
public override Entity GetNewEntity
{
get
{
return new Dtl();
}
}
#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((Dtl)this[i]);
}
return list;
}
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
}
}