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.

73 lines
2.6 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!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>
<link href="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
<link href="../../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<script src="../../../Scripts/easyUI145/jquery.min.js"></script>
<script src="../../../Scripts/easyUI145/jquery.easyui.min.js" type="text/javascript"></script>
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
<script src="../../../Scripts/config.js" type="text/javascript"></script>
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
<script src="../../../Comm/Gener.js" type="text/javascript"></script>
<script src="DDLBar.js" type="text/javascript"></script>
<script type="text/javascript">
var frmID = "";
//页面启动函数.
$(function () {
InitBar("Length");
frmID = GetQueryString("FrmID");
//所有的string字段. GroupID =是分组的ID.
var mapAttrs = new Entities("BP.Sys.MapAttrs");
mapAttrs.Retrieve("FK_MapData", frmID, "MyDataType", "1", "Idx");
console.log(mapAttrs);
//var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_FoolFormDesigner_Batch");
//handler.AddPara("FrmID", frmID);
//var data = handler.DoMethodReturnJSON("Length_Init");
//返回的列请参考BatchFieldName_Init
//字段分组.
var gfs = new Entities("BP.Sys.GroupFields");
gfs.Retrieve("FrmID", frmID, "Idx");
//生成列表.
});
//单行的保存。
function SaveOne(mypk,name,minLen,maxLen,width) {
var en = new Entities("BP.Sys.FrmUI.MapAttrString", mypk);
en.Name = name;
en.MaxLen = maxLen;
en.MinLen = minLen;
en.UIWidth = width;
en.Update();
}
</script>
</head>
<body>
<div id="bar"></div>
<table>
<tr>
<th>Idx</th>
<th>字段</th>
<th>字段名</th>
<th>最小长度</th>
<th>最大长度</th>
<th>宽度(从表有效)</th>
<th>其他</th>
</tr>
</table>
<button onclick="Save()">保存</button>
</body>
</html>