51 lines
2.2 KiB
Plaintext
51 lines
2.2 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "健康证每日打印人数查询";
|
|
}
|
|
|
|
<form id="sform">
|
|
<table style="width:100%" class="t1">
|
|
<tr>
|
|
<td class="ltd" style="width:100px">开始日期:</td>
|
|
<td class="rtd" style="width:120px"><input id="b" name="b" type="text" value="@(string.IsNullOrEmpty(Request.QueryString["b"])?DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd"):Request.QueryString["b"])" /></td>
|
|
<td class="ltd" style="width:100px">结束日期:</td>
|
|
<td class="rtd" style="width:120px"><input id="e" name="e" type="text" value="@(string.IsNullOrEmpty(Request.QueryString["e"])?DateTime.Now.ToString("yyyy-MM-dd"):Request.QueryString["e"])" /></td>
|
|
<td class="rtd"><input id="cx" value="查询" type="button" class="l-button" /></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<div id="hzGrid"></div>
|
|
@section scripts{
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#b").ligerDateEditor();
|
|
$("#e").ligerDateEditor();
|
|
$("#hzGrid").ligerGrid({
|
|
title: "健康证每日打印人数",
|
|
columns: [
|
|
{
|
|
display: "日期", name: "rq", width: 100, align: "center", totalSummary: {
|
|
type: "",
|
|
render: function (suminf, column) {
|
|
return "合计:";
|
|
}
|
|
}
|
|
}
|
|
, {
|
|
display: "人数", name: "rs", width: 100, align: "right", type: 'float', totalSummary: {
|
|
type: "sum", render: function (suminf, column) {
|
|
return suminf.sum;
|
|
}
|
|
}
|
|
}
|
|
], width: "98%", height: "98%", url: "@Url.Action("getJKZDYRS")", parms: { b: $("#b").val(), e: $("#e").val() }, usePager: false
|
|
});
|
|
$("#cx").bind("click", function () {
|
|
var g = liger.get("hzGrid");
|
|
g.set("parms", { b: $("#b").val(), e: $("#e").val() });
|
|
g.reload();
|
|
});
|
|
});
|
|
</script>
|
|
}
|