tijian_tieying/web/dccdc/Views/QueryStatistics/getXM.cshtml
2025-02-20 12:14:39 +08:00

66 lines
1.9 KiB
Plaintext

@{
ViewBag.Title = "getXM";
}
<table class="t1" style="width:100%">
<tr>
<td class="ltd" style="width:150px">项目编号或名称或编码:</td>
<td class="rtd"><input class="l-text" id="where" width="300" onkeydown="keydown(event,this)" /></td>
</tr>
</table>
<div id="grid1"></div>
@section scripts{
<script type="text/javascript">
function cx() {
liger.get("grid1").set("parms", { where: $("#where").val() });
liger.get("grid1").reload();
}
function keydown(e, o) {
var keynum
var keychar
var numcheck
if (window.event) // IE
{
keynum = e.keyCode
}
else if (e.which) // Netscape/Firefox/Opera
{
keynum = e.which
}
if (keynum == 13)
{
cx();
}
}
$(function () {
$("#grid1").ligerGrid({
title: "项目",
parms: {},
url: "@Url.Action("getXMList")",
columns: [
{ name: "project_id", display: "项目编码", width: 60, align: "left", },
{ name: "project_name", display: "项目名称", width: 280, align: "left" },
{ name: "pinyin_code", display: "拼音吗", width: 200, align: "left" }
],
width: "100%",
height: "100%",
rownumbers: true,
//usePager: true,
heightDiff: -20,
delayLoad :true,
onSelectRow: function (rowdata, rowid, rowobj) {
if(window.parent.selectedXM)
{
window.parent.selectedXM(rowdata.project_name);
}
}
});
cx();
});
</script>
}