using BP.DA;
using BP.En;
namespace BP.CCFast.Portal.WindowExt
{
///
/// 变量信息
///
public class TabDtl : EntityMyPK
{
///
/// 表达式
///
public string Exp0
{
get
{
return this.GetValStrByKey(DtlAttr.Exp0);
}
set
{
this.SetValByKey(DtlAttr.Exp0,value);
}
}
#region 权限控制.
///
/// 控制权限
///
public override UAC HisUAC
{
get
{
UAC uac = new UAC();
uac.IsInsert = true;
uac.IsDelete = true;
uac.IsView = true;
uac.IsUpdate = true;
return uac;
}
}
#endregion 权限控制.
#region 属性
#endregion 属性
#region 构造方法
///
/// 变量信息
///
public TabDtl()
{
}
///
/// EnMap
///
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
Map map = new Map("GPM_WindowTemplateDtl", "Tab页数据项");
map.AddMyPK(false);
map.AddTBString(DtlAttr.RefPK, null, "RefPK", false, false, 0, 40, 20, false);
map.AddDDLSysEnum(DtlAttr.DBType, 0, "数据源类型", true, true, "WindowsDBType",
"@0=数据库查询SQL@1=执行Url返回Json@2=执行\\DataUser\\JSLab\\Windows.js的函数.");
map.AddDDLEntities(DtlAttr.DBSrc, null, "数据源", new BP.Sys.SFDBSrcs(), true);
map.AddDDLSysEnum(DtlAttr.WindowsShowType, 0, "显示类型", true, true, "WindowsShowType",
"@0=饼图@1=柱图@2=折线图@4=简单Table");
map.AddTBString(DtlAttr.Name, null, "标签", true, false, 0, 300, 70, true);
map.AddTBString(DtlAttr.FontColor, null, "字体风格", true, false, 0, 300, 100, true);
map.AddTBString(DtlAttr.Exp0, null, "表达式", true, false, 0, 300, 1000, true);
this._enMap = map;
return this._enMap;
}
}
#endregion
protected override bool beforeInsert()
{
this.setMyPK(DBAccess.GenerGUID());
return base.beforeInsert();
}
}
///
/// 变量信息s
///
public class TabDtls : EntitiesMyPK
{
#region 构造
///
/// 变量信息s
///
public TabDtls()
{
}
///
/// 得到它的 Entity
///
public override Entity GetNewEntity
{
get
{
return new TabDtl();
}
}
#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((TabDtl)this[i]);
}
return list;
}
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
}
}