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

79 lines
2.8 KiB
Plaintext

@{
ViewBag.Title = "附加项选择";
}
<table class="t1" style="width:100%">
<tr>
<td class="ltd" style="width:100px">附加项名称:</td>
<td class="rtd">
<input class="l-text" id="chargeName" width="300" onkeydown="kedown(event,this)" />
</td>
<td><div id="search">查询</div></td>
<td><div id="ok">确定</div></td>
</tr>
</table>
<div id="chargeList"></div>
@section scripts{
<script type="text/javascript">
function cx() {
liger.get("chargeList").set("parms", { chargeName: $("#chargeName").val() });
liger.get("chargeList").set("page", 1);
liger.get("chargeList").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 () {
$("#search").ligerButton({
click: function () {
cx();
}
});
$("#ok").ligerButton({
click: function () {
if (window.parent.selectedQY) {
window.parent.selectedQY(liger.get("chargeList").getSelectedRows());
}
}
});
$("#chargeList").ligerGrid({
title: "企业列表", parms: { "chargeName": "" }, url: "@Url.Action("getChargeList")",
checkbox: true,
columns: [
{ name: "id", display: "ID", width: 60, align: "left", },
{ name: "charge_project_name", display: "收费项目名称", width: 180, align: "left" },
{ name: "occupation_type", display: "是否职业体检收费", width: 80, align: "left" }
, { name: "fee", display: "金额", width: 82, align: "left" }
, { name: "status", display: "是否启用", width: 82, align: "left" }
, { name: "general_status", display: "是否通用收费", width: 82, align: "left" }
, { name: "creator", display: "创建者", width: 82, align: "left" }
, { name: "create_time", display: "创建时间", width: 82, align: "left" }
], width: "798",
height: "100%",
rownumbers: true,
usePager: true,
heightDiff: -20,
delayLoad :true,
});
cx();
});
</script>
}