tijian_tieying/web/dccdc/Views/QueryStatistics/mrsfhzQuery.cshtml

78 lines
3.4 KiB
Plaintext
Raw Permalink Normal View History

2025-02-20 12:14:39 +08:00

@{
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.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: "xj", width: 100, align: "right", type: 'float', totalSummary: {
type: "sum", render: function (suminf, column) {
return suminf.sum;
}
}
}
, {
display: "转账", name: "zz", 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: "zfb", 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("getmrsfhz")", 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>
}