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.

51 lines
2.6 KiB
Plaintext

11 months ago
using BP.En;
namespace BP.CCFast.Portal.WindowExt
{
public class Glo
{
public static Map StationDBSrcMap(string desc)
{
Map map = new Map("GPM_WindowTemplate", desc);
#region 基本信息.
map.AddTBStringPK(WindowTemplateAttr.No, null, "编号", true, true, 1, 40, 200);
map.AddTBInt(WindowTemplateAttr.ColSpan, 1, "占的列数", true, false);
map.SetHelperAlert(WindowTemplateAttr.ColSpan, "画布按照4列划分布局输入的输在在1=4之间.");
map.AddTBString(WindowTemplateAttr.Name, null, "标题", true, false, 0, 300, 20, true);
map.AddTBString(WindowTemplateAttr.Icon, null, "Icon", true, false, 0, 100, 20, true);
#endregion 基本信息.
map.AddTBString(WindowTemplateAttr.MoreLab, null, "更多标签", true, false, 0, 300, 20, true);
map.AddTBString(WindowTemplateAttr.MoreUrl, null, "更多链接", true, false, 0, 300, 20, true);
map.AddDDLSysEnum(WindowTemplateAttr.MoreLinkModel, 0, "打开方式", true, true, WindowTemplateAttr.MoreLinkModel,
"@0=新窗口@1=本窗口@2=覆盖新窗口");
map.AddBoolean("IsPie", false, "饼图?", true, true);
map.AddBoolean("IsLine", false, "折线图?", true, true);
map.AddBoolean("IsZZT", false, "柱状图?", true, true);
map.AddBoolean("IsRing", false, "显示环形图?", true, true);
map.AddBoolean("IsRate", false, "百分比扇形图?", true, true);
map.AddDDLSysEnum(WindowTemplateAttr.DefaultChart, 0, "默认显示图形", true, true, WindowTemplateAttr.DefaultChart,
"@0=饼图@1=折线图@2=柱状图@3=显示环形图@4=百分比扇形图");
#region 数据源.
map.AddDDLSysEnum(WindowTemplateAttr.DBType, 0, "数据源类型", true, true, "WindowsDBType",
"@0=数据库查询SQL@1=执行Url返回Json@2=执行\\DataUser\\JSLab\\Windows.js的函数.");
map.AddTBStringDoc(WindowTemplateAttr.Docs, null, "SQL内容表达式", true, false, true);
map.AddTBStringDoc(WindowTemplateAttr.C1Ens, null, "列1外键数据(可选)", true, false, true);
map.AddTBStringDoc(WindowTemplateAttr.C2Ens, null, "列2外键数据(可选)", true, false, true);
map.AddTBStringDoc(WindowTemplateAttr.C3Ens, null, "列3外键数据(可选)", true, false, true);
map.AddDDLEntities(WindowTemplateAttr.DBSrc, null, "数据源", new BP.Sys.SFDBSrcs(), true);
#endregion 数据源.
return map;
}
}
}