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

60 lines
1.8 KiB
Plaintext

@{
ViewBag.Title = "JfJkxx";
}
@model dccdc.Models.JfJkxx
<div class="l-clear"></div>
<div style="width:100%">
<table class="t1" style="width:100%">
<tr>
<td class="rtd" style="width:120px">@Html.TextBoxFor(m => m.jkrxm)</td>
<td class="rtd"><div id="search" class="l-button">查询</div></td>
</tr>
</table>
</div>
<div id="maingrid"></div>
<div style="display:none;">
</div>
@section scripts{
<script type="text/javascript">
function init() {
liger.get("maingrid").reload();
openf.close();
}
$(function() {
$("#search").click(function () {
liger.get("maingrid").set("parms", { key: $("#jkrxm").val() });
liger.get("maingrid").changePage("first");
liger.get("maingrid").reload();
})
$("#maingrid").ligerGrid({
height: '99%',
columns: [
, { display: '借款人姓名', name: 'jkrxm', align: 'left', width: 120, minWidth: 60 }
, { display: '借款部门', name: 'jkbm', align: 'left', width: 180, minWidth: 60 }
, { display: '借款日期', name: 'jkrq', align: 'left', width: 120, minWidth: 60, type: 'date', format: 'yyyy年MM月dd' }
, { display: '借款原因', name: 'jkyy', align: 'left', width: 200, minWidth: 60 }
, { display: '借款金额', name: 'jkje', align: 'left', width: 100, minWidth: 60 }
],
url: "@Url.Action("GetJfJkxxbyxm")",
pageSize: 20,
rownumbers: true,
onDblClickRow: function (data, rowindex, rowobj)
{
window.parent.selectedjkd(data);
}
});
});
</script>
}