79 lines
2.4 KiB
Plaintext
79 lines
2.4 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "szyd_zjspView";
|
|
}
|
|
|
|
<div style="width:100%">
|
|
<table class="t1" style="width:100%">
|
|
<tr>
|
|
<td class="ltd" style="width:120px">查询条件:</td>
|
|
<td class="rtd" style="width:120px"><input id="key" class="l-text" /></td>
|
|
<td class="rtd"><div id="search" class="l-button">查询</div></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div id="maingrid"></div>
|
|
|
|
@using Newtonsoft.Json;
|
|
@section scripts{
|
|
<script type="text/javascript" src="@Url.Content("~/Scripts/public.js")"></script>
|
|
<script type="text/javascript">
|
|
var openf;
|
|
function sp(item) {
|
|
var id;
|
|
var r = liger.get("maingrid").getSelectedRow();
|
|
if (!r) {
|
|
$.ligerDialog.alert("请选择要审批的数据!");
|
|
return;
|
|
}
|
|
id = r.id;
|
|
|
|
openf = $.ligerDialog.open({
|
|
url: "@Url.Action("szyd_zjspMessage")?id=" + id,
|
|
title: item.text,
|
|
width: 800,
|
|
height: 300
|
|
});
|
|
}
|
|
function init() {
|
|
liger.get("maingrid").reload();
|
|
openf.close();
|
|
}
|
|
$(function () {
|
|
$("#search").click(function () {
|
|
liger.get("maingrid").set("parms", { key: $("#key").val() });
|
|
liger.get("maingrid").changePage("first");
|
|
liger.get("maingrid").reload();
|
|
})
|
|
|
|
$("#maingrid").ligerGrid({
|
|
height: '100%',
|
|
columns: [
|
|
{ display: '编号', name: 'id', align: 'left', width: 60 },
|
|
{ display: '金额', name: 'je', align: 'right', width: 60 },
|
|
//{ display: '申请时间', name: 'sqsj', width: 180, render: function (r, i, v) { if (v) return formatTime(v) } },
|
|
|
|
//{ display: '项目经费单号', name: 'xmjfdh', align: 'right', width: 80 },
|
|
|
|
],
|
|
url: "@Url.Action("getszydspPage")",
|
|
pageSize: 10,
|
|
rownumbers: true,
|
|
usePager: true,
|
|
heightDiff: -20,
|
|
onSelectRow: function (rowdata, rowid, rowobj) {
|
|
if (window.parent.selectedJFSQD) {
|
|
window.parent.selectedSZYD(rowdata);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
</script>
|
|
}
|
|
|
|
|
|
|
|
|
|
|