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.

84 lines
3.3 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="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<link href="../../../Scripts/layui/layui/css/layui.css" rel="stylesheet" />
<script src="../../../Scripts/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="../../../Scripts/layui/layui/layui.js" type="text/javascript"></script>
<script src="../../../Scripts/layui/LayuiDialog.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="../../../Admin/Admin.js"></script>
<script type="text/javascript">
$(function () {
var frmID = GetQueryString("FrmID");
var dblist = new Entity("BP.CCBill.DBList", frmID);
dblist.ExpList = dblist.ExpList.replace('~', '\'');
dblist.ExpList = dblist.ExpList.replace('~', '\'');
$("#TB_DBSrc").val(dblist.ExpList);
});
/**
* 获取数据结构
*/
function Save() {
var frmID = GetQueryString("FrmID");
var dblist = new Entity("BP.CCBill.DBList", frmID);
dblist.ExpList = $("#TB_DBSrc").val();
if (dblist.ExpList == "") {
alert("列表URL不能为空");
return;
}
dblist.Update();
Reload();
}
</script>
</head>
<body>
<div id="bar">
</div>
<form id="cc">
<fieldset>
<legend>列表数据源: 必须有OID,BillNo,Title 字段.</legend>
<textarea value="" id="TB_DBSrc" name="TB_DBSrc"> </textarea>
<br />
<input type="button" value="保存并检查" id="Btn_Save" onclick="Save()" />
<legend>
说明:
</legend>
<ul>
<li>OID是内置主键BillNo是编号, Title 是名称, RDT是创建时间(如果没有就 '' as RDT) </li>
<li> 如果是多表关联查询时需要设置对应主表的别名,便于查询条件的拼接。 </li>
<li> 列表数据源不能为空。 </li>
<li>
查询条件相关的信息:<br />
1.查询条件已JSON数据格式传递给请求的URL<br />
2.参数的查询:<br />
&nbsp;&nbsp;①关键字的查询传递参数是SearchKey,如果输入的关键字内容为空时不传递参数<br />
&nbsp;&nbsp;②时间段的查询传递的参数是DTFrom、DTTo<br />
&nbsp;&nbsp;③其他字段的参数查询是以字段名传递请检测单实体URL返回的字段名和查询的字段名是否一一对应<br />
3.数据返回结果 JSON字符串格式<br />
&nbsp;&nbsp;{"count":10,"data":[{}]}
</li>
</ul>
</fieldset>
</form>
</body>
</html>