|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
<head>
|
|
|
<title>基本设置</title>
|
|
|
<script type="text/javascript" src="../../Scripts/bootstrap/js/jquery.min.js"></script>
|
|
|
<script src="../../Scripts/QueryString.js" type="text/javascript"></script>
|
|
|
<script type="text/javascript" src="../../Scripts/config.js"></script>
|
|
|
<script src="../../Comm/Gener.js?va2=2" type="text/javascript"></script>
|
|
|
<link href="../../../DataUser/Style/ccbpm.css" rel="Stylesheet" />
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
//页面启动函数.
|
|
|
$(function () {
|
|
|
|
|
|
var ensName = GetQueryString("EnsName");
|
|
|
|
|
|
//全局配置.
|
|
|
var en = new Entity("BP.Sys.EnCfg");
|
|
|
en.No = ensName;
|
|
|
if (en.IsExits() == false) {
|
|
|
|
|
|
en.SetPara("UIRowStyleGlo", 1); //表格数据行风格(应用全局)
|
|
|
en.SetPara("IsEnableDouclickGlo", 1); //是否启动双击打开(应用全局)
|
|
|
en.SetPara("IsEnableFocusField", 0); //是否启用焦点字段
|
|
|
en.SetPara("FocusField", "无"); //焦点字段(用于显示点击打开的列
|
|
|
en.SetPara("IsEnableRefFunc", 1); //是否启用相关功能列
|
|
|
|
|
|
en.SetPara("IsEnableOpenICON", 1); //是否启用打开图标
|
|
|
en.SetPara("MoveToShowWay", 0); //移动到显示方式
|
|
|
en.SetPara("MoveTo", "无"); //是否启用相关功能列
|
|
|
en.SetPara("WinCardW", "1000"); //宽度
|
|
|
en.SetPara("WinCardH", "600"); //高度
|
|
|
en.SetPara("PageSize", 10); //显示的条数
|
|
|
en.SetPara("FontSize", 14); //字体的大小
|
|
|
|
|
|
en.SetPara("EditerType", 0); //是否启用相关功能列
|
|
|
|
|
|
//打开url类型.
|
|
|
en.SetPara("SearchUrlOpenType", "0"); //默认为打开En.htm
|
|
|
en.SetPara("OrderBy", "");
|
|
|
en.SetPara("IsDeSc", 1);
|
|
|
en.SetPara("IsEnableLazyload", 0); //是否启用懒加载,对树形解构有效.
|
|
|
|
|
|
en.Url = "";
|
|
|
en.Insert();
|
|
|
}
|
|
|
|
|
|
var en = new Entity("BP.Sys.EnCfg");
|
|
|
en.No = ensName;
|
|
|
en.Retrieve();
|
|
|
|
|
|
//赋值.
|
|
|
GenerBindEnumKey("DDLPara_UIRowStyleGlo", "UIRowStyleGlo");
|
|
|
GenerBindEnumKey("DDLPara_MoveToShowWay", "MoveToShowWay");
|
|
|
GenerBindEnumKey("DDLPara_EditerType", "EditerType");
|
|
|
|
|
|
//双击行打开内容类型.
|
|
|
//GenerBindEnumKey("DDLPara_SearchUrlOpenType", "SearchUrlOpenType", 0);
|
|
|
|
|
|
var enName = ensName.substring(0, ensName.length - 1);
|
|
|
//全局配置.
|
|
|
var myen = new Entity("BP.Sys.EnCfg");
|
|
|
myen.No = enName;
|
|
|
myen.RetrieveFromDBSources();
|
|
|
|
|
|
//设置标题.
|
|
|
en.GroupTitle = myen.GroupTitle;
|
|
|
|
|
|
//给页面的控件赋值.
|
|
|
GenerFullAllCtrlsVal(en);
|
|
|
|
|
|
});
|
|
|
|
|
|
function Save() {
|
|
|
|
|
|
var ensName = GetQueryString("EnsName");
|
|
|
//全局配置.
|
|
|
var en = new Entity("BP.Sys.EnCfg", ensName);
|
|
|
en.CopyForm(); //从from里面copy数据.
|
|
|
en.No = ensName;
|
|
|
en.Update();
|
|
|
|
|
|
//全局配置.
|
|
|
var enName = ensName.substring(0, ensName.length - 1);
|
|
|
var myen = new Entity("BP.Sys.EnCfg");
|
|
|
myen.No = enName;
|
|
|
myen.RetrieveFromDBSources();
|
|
|
myen.GroupTitle = en.GroupTitle;
|
|
|
myen.Save();
|
|
|
|
|
|
Reload();
|
|
|
}
|
|
|
|
|
|
function ShowCols() {
|
|
|
var url = "SearchSettingCols.htm?EnsName=" + GetQueryString("EnsName");
|
|
|
SetHref(url);
|
|
|
}
|
|
|
|
|
|
function StartFoolFormDesigner() {
|
|
|
var url = "../../Admin/FoolFormDesigner/Designer.htm?FK_MapData=" + GetQueryString("EnsName") + "&IsFirst=1";
|
|
|
WinOpen(url, "dd");
|
|
|
//window.location.href = filterXSS(url);
|
|
|
}
|
|
|
|
|
|
//导入设置.
|
|
|
function Imp() {
|
|
|
var url = "ImpData.htm?EnsName=" + GetQueryString("EnsName");
|
|
|
SetHref(url);
|
|
|
}
|
|
|
|
|
|
//清除傻瓜表达设计内容
|
|
|
function ClearMapData() {
|
|
|
var alt = "如果您确定要删除吗?";
|
|
|
alt += "\t\n1. 系统会清除Sys_MapAttr, Sys_MapData设计内容,包括排列顺序. ";
|
|
|
alt += "\t\n2. 清除后您可以通过启动傻瓜表单设计器. ";
|
|
|
if (confirm(alt) == false)
|
|
|
return;
|
|
|
|
|
|
var ensName = GetQueryString("EnsName");
|
|
|
var mapdata = new Entity("BP.Sys.MapData");
|
|
|
mapdata.SetPKVal(ensName);
|
|
|
mapdata.Delete();
|
|
|
|
|
|
alert("清除成功.");
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
</head>
|
|
|
<body>
|
|
|
|
|
|
|
|
|
<div style="width:95%;border-top: 0px solid #C0C0C0;">
|
|
|
<input type="button" value="保存" onclick="Save()" />
|
|
|
<input type="button" value="设置显示的列" onclick="ShowCols()" />
|
|
|
<input type="button" value="启动傻瓜表单设计器" onclick="StartFoolFormDesigner()" />
|
|
|
<input type="button" value="清除表单设计内容" onclick="ClearMapData()" />
|
|
|
<input type="button" value="导入数据" onclick="Imp()" />
|
|
|
</div>
|
|
|
|
|
|
|
|
|
<div style="overflow:auto;" id="tableDiv">
|
|
|
<table style="">
|
|
|
|
|
|
<tr>
|
|
|
<th colspan=4>基本配置</th>
|
|
|
</tr>
|
|
|
|
|
|
<tr bgcolor='white'>
|
|
|
<td>表格数据行风格(应用全局)</td>
|
|
|
<td><select name="DDLPara_UIRowStyleGlo" id="DDLPara_UIRowStyleGlo"></select></td>
|
|
|
|
|
|
<td>是否启动双击打开(应用全局)</td>
|
|
|
<td><label><input id="CBPara_IsEnableDouclickGlo" type="checkbox" name="CBPara_IsEnableDouclickGlo" />是否启动双击打开(应用全局)</label></td>
|
|
|
</tr>
|
|
|
|
|
|
<tr bgcolor='white'>
|
|
|
<td>是否启用焦点字段</td>
|
|
|
<td><label><input id="CBPara_IsEnableFocusField" type="checkbox" name="CBPara_IsEnableFocusField" />是否启用焦点字段</label></td>
|
|
|
<td>焦点字段(用于显示点击打开的列</td>
|
|
|
<td><input name="TBPara_FocusField" type="text" value="" id="TBPara_FocusField" style="width:100%;" /></td>
|
|
|
</tr>
|
|
|
|
|
|
<tr bgcolor='white'>
|
|
|
<td>是否启用相关功能列</td>
|
|
|
<td><label><input id="CBPara_IsEnableRefFunc" type="checkbox" name="CBPara_IsEnableRefFunc" />是否启用相关功能列</label></td>
|
|
|
<td>是否启用打开图标</td>
|
|
|
<td><label><input id="CBPara_IsEnableOpenICON" type="checkbox" name="CBPara_IsEnableOpenICON" />是否启用打开图标</label></td>
|
|
|
</tr>
|
|
|
|
|
|
<tr bgcolor='white'>
|
|
|
<td>移动到显示方式</td>
|
|
|
<td>
|
|
|
<select name="DDLPara_MoveToShowWay" id="DDLPara_MoveToShowWay">
|
|
|
</select>
|
|
|
</td>
|
|
|
<td>关键字Label(默认为:关键字:)</td>
|
|
|
<td><input name="TBPara_KeyLabel" type="text" id="TBPara_KeyLabel" style="width:100%" /> </td>
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
<tr bgcolor=''>
|
|
|
|
|
|
<td>弹出窗口宽度</td>
|
|
|
<td><input name="TBPara_WinCardW" type="text" id="TBPara_WinCardW" style="width:100%" /></td>
|
|
|
<td>弹出窗口高度</td>
|
|
|
<td><input name="TBPara_WinCardH" type="text" id="TBPara_WinCardH" style="width:100%" /></td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr bgcolor=''>
|
|
|
|
|
|
<td>页面显示的条数(默认:10)</td>
|
|
|
<td colspan="3"><input name="TBPara_PageSize" type="text" id="TBPara_PageSize" style="width:100%" /></td>
|
|
|
</tr>
|
|
|
|
|
|
<tr bgcolor=''>
|
|
|
<td>移动到字段</td>
|
|
|
<td><input name="TBPara_MoveTo" type="text" id="TBPara_MoveTo" style="width:100%" /></td>
|
|
|
|
|
|
<td>页面字体大小(默认:14px)</td>
|
|
|
<td colspan="3"><input name="TBPara_FontSize" type="text" id="TBPara_FontSize" style="width:100%" /></td>
|
|
|
</tr>
|
|
|
|
|
|
<tr bgcolor='white'>
|
|
|
<td>大块文本编辑器</td>
|
|
|
<td>
|
|
|
<select name="DDLPara_EditerType" id="DDLPara_EditerType">
|
|
|
</select>
|
|
|
</td>
|
|
|
|
|
|
<td>双击行打开内容</td>
|
|
|
<td>
|
|
|
<select name="DDLPara_SearchUrlOpenType" id="DDLPara_SearchUrlOpenType">
|
|
|
<option value="0"> En.htm 实体与实体相关功能编辑器 </option>
|
|
|
<option value="1"> EnOnly.htm 实体编辑器 </option>
|
|
|
<option value="2"> /CCForm/FrmGener.htm 傻瓜表单解析器 </option>
|
|
|
<option value="3"> /CCForm/FrmGener.htm 自由表单解析器 </option>
|
|
|
<option value="9"> 自定义URL </option>
|
|
|
</select>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td>URL(当为自定义url的时候有效)</td>
|
|
|
<td colspan=3><input name="TB_Url" type="text" value="" id="TB_Url" style="width:100%;" /></td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
</tr>
|
|
|
|
|
|
<!-- 卡片的分组显示 -->
|
|
|
<tr>
|
|
|
<td><a href="javascript:alert('填写格式为: @No=基础信息,基础信息权限信息.@IsBatchStart=数据&表单,数据导入导出.@DesignerNo=设计者,流程开发设计者信息');">卡片的Tab分组显示</a></td>
|
|
|
<td colspan=3><input name="TB_GroupTitle" type="text" value="" id="TB_GroupTitle" style="width:100%;" /></td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td>查询排序</td>
|
|
|
<td><input name="TBPara_OrderBy" type="text" value="" id="TBPara_OrderBy" style="width:100%;" /></td>
|
|
|
<td>排序方式</td>
|
|
|
<td><label><input id="CBPara_IsDeSc" type="checkbox" name="CBPara_IsDeSc" />是否降序</label></td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td>对树形实体有效</td>
|
|
|
<td colspan=3><label><input id="CBPara_IsEnableLazyload" type="checkbox" name="CBPara_IsEnableLazyload" />是否启用节点懒加载?</label></td>
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
<tr bgcolor='AliceBlue'>
|
|
|
<th colspan="4">自定义按钮与标签,函数可以写入到\DataUser\JSLabData\SearchSelf.js里面.</th>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td>自定义按钮标签1</td>
|
|
|
<td><input name="TBPara_BtnLab1" type="text" value="" id="TBPara_BtnLab1" style="width:100%;" /></td>
|
|
|
<td>Url/Javasccript</td>
|
|
|
<td><input name="TBPara_BtnJS1" type="text" value="" id="TBPara_BtnJS1" style="width:100%;" /></td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<td>自定义按钮标签2</td>
|
|
|
<td><input name="TBPara_BtnLab2" type="text" value="" id="TBPara_BtnLab2" style="width:100%;" /></td>
|
|
|
<td>Url/Javasccript</td>
|
|
|
<td><input name="TBPara_BtnJS2" type="text" value="" id="TBPara_BtnJS2" style="width:100%;" /></td>
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
</div>
|
|
|
|
|
|
</body>
|
|
|
</html>
|