95 lines
3.9 KiB
Plaintext
95 lines
3.9 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "收费情况统计";
|
|
}
|
|
|
|
@section scripts{
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
$("#start").ligerDateEditor();
|
|
$("#end").ligerDateEditor();
|
|
//$("#start").ligerGetDateEditorManager().setValue(fun_date(-14));
|
|
//$("#end").ligerGetDateEditorManager().setValue(fun_date(0));
|
|
|
|
cx();
|
|
})
|
|
|
|
function cx() {
|
|
var data = $("#searchForm").serializeArray();
|
|
$.ajax({
|
|
url: "@Url.Action("getShouFeiList")?bm=@Server.UrlEncode(Request.QueryString["bm"])", data: data, type: "post", dataType: "json",
|
|
success: function (data) {
|
|
$("#sfgrid").ligerGrid({
|
|
height: '500',
|
|
width: '80%',
|
|
isScroll: true,
|
|
dataAction: "local",
|
|
selectRowButtonOnly: true,
|
|
data: data.data,
|
|
columns: data.columns, rowAttrRender: function (rowdata, rowid) {
|
|
if (rowdata.sl == "" && rowdata.dj == "") {
|
|
return "style='font-size:30 !important;color:#FF3333;'";
|
|
}
|
|
return "";
|
|
},
|
|
alternatingRow: false,
|
|
usePager: false
|
|
});
|
|
liger.get("sfgrid").reRender();
|
|
$("#sffs").html("<span style='text-align:left;font-size:20px;font-weight:bold' id='sfhj'>" + data.sffs + "</span>");
|
|
}
|
|
});
|
|
}
|
|
|
|
function dy(lx) {
|
|
var url = "@(Request.Url.Scheme + "://" + Request.Url.Authority + Url.Content("~/"))";
|
|
if (window.top.Formium.external.Print.finit( "sftj.frx")) {
|
|
@if(string.IsNullOrEmpty(Request.QueryString["bm"]))
|
|
{
|
|
@: window.top.Formium.external.Print.PrintSftj(lx, $("#start").val(), $("#end").val());
|
|
}
|
|
else
|
|
{
|
|
@: window.top.Formium.external.Print.PrintSftjws(lx, $("#start").val(), $("#end").val(),"@Request.QueryString["bm"]");
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
function fun_date(days) {
|
|
var date1 = new Date(),
|
|
time1 = date1.getFullYear() + "-" + (date1.getMonth() + 1) + "-" + date1.getDate();//time1表示当前时间
|
|
var date2 = new Date(date1);
|
|
date2.setDate(date1.getDate() + days);
|
|
|
|
var y = date2.getFullYear();
|
|
var m = date2.getMonth() + 1;
|
|
m = m < 10 ? '0' + m : m;
|
|
var d = date2.getDate();
|
|
d = d < 10 ? ('0' + d) : d;
|
|
var time2 = y + "-" + m + "-" + d;
|
|
return time2;
|
|
}
|
|
</script>
|
|
}
|
|
<form id="searchForm">
|
|
<table class="t1" style="width:50%">
|
|
<tr>
|
|
<td width="70" class="ltd">缴费日期</td>
|
|
<td width="150" class="rtd"><input type="text" id="start" name="start" value="@DateTime.Now.ToString("yyyy-MM-dd")"></td>
|
|
<td width="20" class="ltd">到</td>
|
|
<td width="150" class="rtd"><input type="text" id="end" name="end" value="@DateTime.Now.ToString("yyyy-MM-dd")"></td>
|
|
<td width="50" class="rtd"><input type="button" value="查询" onclick="cx();" class="l-button" /></td>
|
|
<td width="50" class="rtd"><input type="button" value="预览" onclick="dy('预览');" class="l-button" /></td>
|
|
<td width="50" class="rtd"><input type="button" value="打印" onclick="dy('打印');" class="l-button" /></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<div class="dispReport">
|
|
<object classid="clsid:F6A015E2-092A-4006-93DA-4CBDE3AFF4B8" id="window.top.Formium.external.Print" width="300" height="50"></object>
|
|
</div>
|
|
<div id="sfgrid"></div>
|
|
<div id="sffs" style="width:50%"></div>
|