89 lines
3.7 KiB
Plaintext
89 lines
3.7 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: "gg", width: 100, align: "right", type: 'float', totalSummary: {
|
|||
|
|
type: "sum", render: function (suminf, column) {
|
|||
|
|
return suminf.sum;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
, {
|
|||
|
|
display: "食品从业", name: "sp", width: 100, align: "right", type: 'float', totalSummary: {
|
|||
|
|
type: "sum", render: function (suminf, column) {
|
|||
|
|
return suminf.sum;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
, {
|
|||
|
|
display: "药品从业", name: "yp", width: 100, align: "right", type: 'float', totalSummary: {
|
|||
|
|
type: "sum", render: function (suminf, column) {
|
|||
|
|
return suminf.sum;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
, {
|
|||
|
|
display: "自助机", name: "zzj", width: 100, align: "right", type: 'float', totalSummary: {
|
|||
|
|
type: "sum", render: function (suminf, column) {
|
|||
|
|
return suminf.sum;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
, {
|
|||
|
|
display: "微信", name: "wx", width: 100, align: "right", type: 'float', totalSummary: {
|
|||
|
|
type: "sum", render: function (suminf, column) {
|
|||
|
|
return suminf.sum;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
, {
|
|||
|
|
display: "合计", name: "hj", width: 100, align: "right", type: 'float', totalSummary: {
|
|||
|
|
type: "sum", render: function (suminf, column) {
|
|||
|
|
return suminf.sum;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
], width: "98%", height: "98%", url: "@Url.Action("getYYQKTJ")", 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>
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|