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

77 lines
2.6 KiB
Plaintext

@{
ViewBag.Title = "企业选择";
}
<table class="t1" style="width:100%">
<tr>
<td class="ltd">归属:</td>
<td><select id="gs" onchange="cx()">
<option value="从业">从业</option>
<option value="职业">职业</option>
<option value="常规">常规</option>
<option value="学生">学生</option>
<option value="公用">公用</option>
</select></td>
<td class="ltd">企业名称:</td>
<td class="rtd">
<input class="l-text" id="qymc" width="300" onkeydown="kedown(event,this)" />
</td>
</tr>
</table>
<div id="qyList"></div>
@section scripts{
<script type="text/javascript">
function cx() {
liger.get("qyList").set("parms", { lx: $("#gs").val(), qyname: $("#qymc").val() });
liger.get("qyList").set("page", 1);
liger.get("qyList").reload();
}
function kedown(e, o) {
// //debugger
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 () {
$("#qyList").ligerGrid({
title: "企业列表", parms: {}, url: "@Url.Action("getQyList")",
columns: [
{ name: "attribution", display: "归属", width: 60, align: "left", },
{ name: "enterprise_name", display: "企业名称", width: 280, align: "left" },
{ name: "address", display: "单位地址", width: 200, align: "left" }
, { name: "telephone", display: "联系电话", width: 100, align: "left" }
, { name: "contacts", display: "联系人", width: 100, align: "left" }
], width: "798",
height: "100%",
rownumbers: true,
usePager: true,
heightDiff: -20,
fixedCellHeight: false,
delayLoad :true,
onSelectRow: function (rowdata, rowid, rowobj) {
if(window.parent.selectedQY)
{
window.parent.selectedQY(rowdata);
}
}
});
$("#gs").val("@ViewBag.lx");
cx();
});
</script>
}