123 lines
5.1 KiB
Plaintext
123 lines
5.1 KiB
Plaintext
|
|
|
|||
|
|
@{
|
|||
|
|
ViewBag.Title = "sqjksh";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
<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" style="width:120px">@Html.DropDownList("key2", ViewBag.ksD as SelectList, "----请选择科室----", new { @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("sqjkshMessage")?id=" + id,
|
|||
|
|
title: item.text,
|
|||
|
|
width: 800,
|
|||
|
|
height: 500
|
|||
|
|
});
|
|||
|
|
@*window.open("@Url.Action("sqjkshMessageNew")?id=" + id)*@
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function spgc(item) {
|
|||
|
|
var id;
|
|||
|
|
var r = liger.get("maingrid").getSelectedRow();
|
|||
|
|
if (!r) {
|
|||
|
|
$.ligerDialog.alert("请选择要修改的数据!");
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
id = r.id;
|
|||
|
|
|
|||
|
|
openf = $.ligerDialog.open({
|
|||
|
|
url: "@Url.Action("chooseSqshView","sq")?type=" + encodeURIComponent("借款申请") + "&sqid=" + id,
|
|||
|
|
title: item.text,
|
|||
|
|
width: 800,
|
|||
|
|
height: 500
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function init() {
|
|||
|
|
liger.get("maingrid").reload();
|
|||
|
|
//$.ligerDialog.open弹出子窗口 需要关闭 window.open打开新窗口 不需要关闭
|
|||
|
|
if (openf)
|
|||
|
|
openf.close();
|
|||
|
|
}
|
|||
|
|
$(function () {
|
|||
|
|
$("#search").click(function () {
|
|||
|
|
liger.get("maingrid").set("parms", { key: $("#key").val(), key2: $("#key2").val() });
|
|||
|
|
liger.get("maingrid").changePage("first");
|
|||
|
|
liger.get("maingrid").reload();
|
|||
|
|
})
|
|||
|
|
|
|||
|
|
$("#maingrid").ligerGrid({
|
|||
|
|
height: '100%',
|
|||
|
|
columns: [
|
|||
|
|
{ display: '编号', name: 'id', align: 'left', width: 60 },
|
|||
|
|
{ display: '申请单号', name: 'sqdh', align: 'left', width: 90 },
|
|||
|
|
{ display: '申请科室', name: 'ksmc', align: 'left', width: 80 },
|
|||
|
|
{ display: '申请人', name: 'sqr', align: 'left', width: 80 },
|
|||
|
|
{ display: '申请金额', name: 'je', align: 'right', width: 60 },
|
|||
|
|
{ display: '申请时间', name: 'sqsj', width: 100, render: function (r, i, v) { if (v) return formatTime(v) } },
|
|||
|
|
{ display: '备注', name: 'bz', align: 'left', width: 200 },
|
|||
|
|
{
|
|||
|
|
display: '状态', name: 'zt', width: 120, render: function (r, i, v) {
|
|||
|
|
switch (v) {
|
|||
|
|
case 1: return "等待科室领导审批";
|
|||
|
|
case 2: return "等待分管领导审批";
|
|||
|
|
case 3: return "等待内审领导审批";
|
|||
|
|
case 4: return "等待所有会签审批";
|
|||
|
|
case 5: return "等待备案领导审批";
|
|||
|
|
case 6: return "等待财务领导审批";
|
|||
|
|
case 7: return "等待中心领导审批";
|
|||
|
|
case 8: return "审核完成";
|
|||
|
|
case -1: return "科室领导驳回";
|
|||
|
|
case -2: return "分管领导驳回";
|
|||
|
|
case -3: return "内审领导驳回";
|
|||
|
|
case -4: return "会签驳回";
|
|||
|
|
case -5: return "备案领导驳回";
|
|||
|
|
case -6: return "财务领导驳回";
|
|||
|
|
case -7: return "中心领导驳回";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
{ display: '支付人', name: 'zfr', align: 'left', width: 80 },
|
|||
|
|
{ display: '支付时间', name: 'zftime', width: 100, render: function (r, i, v) { if (v) return formatTime(v) } }
|
|||
|
|
],
|
|||
|
|
url: "@Url.Action("getsqjkshPage")",
|
|||
|
|
pageSize: 10,
|
|||
|
|
rownumbers: true,
|
|||
|
|
usePager: true,
|
|||
|
|
heightDiff: -20,
|
|||
|
|
toolbar: {
|
|||
|
|
items: [
|
|||
|
|
{ text: '审批', click: sp, icon: 'modify' },
|
|||
|
|
{ line: true },
|
|||
|
|
{ text: '审批过程', click: spgc, icon: 'view' }
|
|||
|
|
]
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
</script>
|
|||
|
|
}
|
|||
|
|
|