163 lines
6.5 KiB
Plaintext
163 lines
6.5 KiB
Plaintext
@{
|
|
ViewBag.Title = "减免申请列表";
|
|
}
|
|
|
|
@section scripts{
|
|
<script type="text/javascript">
|
|
var grid;
|
|
$(function () {
|
|
$("#sqsjb").ligerDateEditor({ width: 100 });
|
|
$("#sqsje").ligerDateEditor({ width: 100 });
|
|
|
|
$("#btSelect").ligerButton({
|
|
click: function () {
|
|
liger.get("chargeProjectList").set("parms", { lx: $("#ff option:selected").val(), xm: $("#xm").val(), sqsjb: $("#sqsjb").val(), sqsje: $("#sqsje").val()});
|
|
liger.get("chargeProjectList").changePage("first");
|
|
liger.get("chargeProjectList").reload();
|
|
}
|
|
});
|
|
|
|
grid = $("#chargeProjectList").ligerGrid({
|
|
url: "@Url.Action("GetJmsqList")",
|
|
toolbar: {
|
|
items: [
|
|
{
|
|
text: '查看明细',
|
|
click: select,
|
|
icon: 'view'
|
|
}, {
|
|
text: '审核通过',
|
|
click: Update,
|
|
icon: 'calendar'
|
|
},
|
|
{
|
|
text: '审核不通过',
|
|
click: Update,
|
|
icon: 'delete'
|
|
}
|
|
,
|
|
{
|
|
text: '导出',
|
|
click: function () {
|
|
$.ajax({
|
|
url: "@Url.Action("expJMJL")", type: "post", dataType: "json", data: { lx: $("#ff option:selected").val(), xm: $("#xm").val(), sqsjb: $("#sqsjb").val(), sqsje: $("#sqsje").val() },
|
|
success: function (data) {
|
|
$.ligerDialog.closeWaitting();
|
|
if(data.State!=1)
|
|
{
|
|
$.ligerDialog.alert(data.Message);
|
|
|
|
}
|
|
else
|
|
{
|
|
$("#exp").attr("src", data.Message);
|
|
}
|
|
},
|
|
beforeSend: function () {
|
|
$.ligerDialog.waitting("正在导出请稍后……");
|
|
}
|
|
});
|
|
},
|
|
icon: 'down'
|
|
}
|
|
|
|
]
|
|
},
|
|
title: "减免申请列表",
|
|
parms: { lx: "0" },
|
|
columns: [
|
|
{ name: "xm", display: "缴费人姓名", width: 80, align: "left" },
|
|
{ name: "sqrxm", display: "申请人姓名", width: 80, align: "left" },
|
|
{ name: "sqsj", display: "申请时间", width: 180, align: "left" }
|
|
, {
|
|
name: "lx", display: "审核状态", width: 82, align: "left", render: function (r, i, v) {
|
|
if (v == "0")
|
|
return "申请中";
|
|
else if (v == "1")
|
|
return "通过";
|
|
else if (v == "2")
|
|
return "未通过";
|
|
return "申请中";
|
|
}
|
|
}
|
|
], width: "98%",
|
|
height: "100%",
|
|
rownumbers: true,
|
|
usePager: false,
|
|
heightDiff: -20
|
|
});
|
|
});
|
|
var openf;
|
|
function select(item) {
|
|
var id;
|
|
var r = liger.get("chargeProjectList").getSelectedRow();
|
|
if (!r) {
|
|
$.ligerDialog.alert("请选择要查看的数据!");
|
|
return;
|
|
}
|
|
id = r.id;
|
|
openf = $.ligerDialog.open({
|
|
url: "@Url.Action("JmmxResult")?jmid=" + id,
|
|
title: item.text,
|
|
width: 600,
|
|
height: 400
|
|
});
|
|
}
|
|
|
|
|
|
function Update(item) {
|
|
var type = 0;
|
|
var id;
|
|
var r = liger.get("chargeProjectList").getSelectedRow();
|
|
if (!r) {
|
|
$.ligerDialog.alert("请选择要查看的数据!");
|
|
return;
|
|
}
|
|
if (r.lx == "1") {
|
|
$.ligerDialog.alert("审核通过的减免申请无需审核!");
|
|
return;
|
|
}
|
|
id = r.id;
|
|
if (item.text == "审核通过") {
|
|
|
|
type = 1;
|
|
}
|
|
if (item.text == "审核不通过") {
|
|
type = 2;
|
|
}
|
|
|
|
$.ligerDialog.confirm('是否确认操作' + item.text + '?', function (confirm) {
|
|
if (confirm)
|
|
$.ajax({
|
|
url: '@Url.Action("UpdateJmsqLx")',
|
|
data: { "jmsqid": id, "lx": type },
|
|
type: 'post',
|
|
cache: false,
|
|
dataType: 'json',
|
|
success: function (data) {
|
|
grid.reload();
|
|
}
|
|
});
|
|
});
|
|
}
|
|
</script>}
|
|
|
|
<table class="t1" style="width:100%">
|
|
<tr>
|
|
<td class="ltd">缴费人姓名:</td>
|
|
<td class="rtd">@Html.TextBox("ff1", "", new { id = "xm",@class="l-text" })</td>
|
|
<td class="ltd">审核状态:</td>
|
|
<td class="rtd">@Html.DropDownList("ff", ViewBag.lx as SelectList, new { id = "ff" })</td>
|
|
@*<td class="rtd"><input type="text" id="djr" name="djr" style="width:100px" class="l-text" /></td>*@
|
|
<td class="ltd">申请时间:</td>
|
|
<td class="rtd"><input type="text" id="sqsjb" name="sqsjb" style="width:100px" /></td>
|
|
<td class="rtd">至</td>
|
|
<td class="rtd"><input type="text" id="sqsje" name="sqsje" style="width:100px" /></td>
|
|
<td width="100" class="rtd"><input type="button" id="btSelect" value="查询" class="l-button" /></td>
|
|
</tr>
|
|
</table>
|
|
<div id="chargeProjectList">
|
|
</div>
|
|
<div style="display:none;">
|
|
<iframe id="exp" src="about:blank"></iframe>
|
|
</div> |