70 lines
2.4 KiB
Plaintext
70 lines
2.4 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "choosccsqView";
|
|
}
|
|
|
|
@using Newtonsoft.Json;
|
|
<div id="maingrid"></div>
|
|
<div style="width:100%;">
|
|
<input id="qd" type="button" style="float:right;margin:10px" class="l-button" value="确定" />
|
|
</div>
|
|
@section scripts{
|
|
<script type="text/javascript" src="@Url.Content("~/Scripts/public.js")"></script>
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
$("#maingrid").ligerGrid({
|
|
height: '100%',
|
|
columns: [
|
|
{ display: '编号', name: 'id', align: 'left', width: 60 },
|
|
{ display: '入库单号', name: 'rkdh', align: 'left', width: 100 },
|
|
{ display: '入库人', name: 'rkr', width: 80 },
|
|
{ display: '入库日期', name: 'rksj', width: 100, render: function (r, i, v) { if (v) return formatTime(v) } },
|
|
{ display: '供应商', name: 'gys', width: 150 },
|
|
{ display: '入库金额', name: 'rkje', width: 80 },
|
|
{
|
|
display: '入库类型', name: 'rklx', width: 80, render: function (r, i, v) {
|
|
switch (v) {
|
|
case 1: return "申请单入库";
|
|
case 2: return "调拨入库";
|
|
}
|
|
}
|
|
},
|
|
{
|
|
display: '入库状态', name: 'zt', width: 80, render: function (r, i, v) {
|
|
switch (v) {
|
|
case 0: return "未入库";
|
|
case 1: return "已入库";
|
|
}
|
|
}
|
|
}
|
|
],
|
|
url: "@Url.Action("getwzrk")?dydh=@ViewBag.dydh",
|
|
pageSize: 1000,
|
|
rownumbers: true,
|
|
usePager: true,
|
|
heightDiff: -49,
|
|
checkbox:true
|
|
|
|
});
|
|
$("#qd").click(xz);
|
|
});
|
|
function xz()
|
|
{
|
|
var rows = liger.get("maingrid").getSelectedRows();
|
|
if(rows&&rows.length>0)
|
|
{
|
|
window.parent.selectedWZRK(rows);
|
|
}
|
|
else
|
|
{
|
|
$.ligerDialog.alert("请选择要报销的入库单!");
|
|
}
|
|
}
|
|
</script>
|
|
}
|
|
|
|
|
|
|
|
|