tijian_tieying/web/dccdc/Views/sq2/sqysbxcxbybxdid2.cshtml
2025-02-20 12:14:39 +08:00

71 lines
2.6 KiB
Plaintext

@{
ViewBag.Title = "sqyscx";
}
<div id="maingrid"></div>
@using Newtonsoft.Json;
@section scripts{
<script type="text/javascript" src="@Url.Content("~/Scripts/public.js")"></script>
<script type="text/javascript">
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;
}
$(function () {
$("#maingrid").ligerGrid({
height: '100%',
columns: [
{ display: '预算年份', name: 'year', align: 'left', width: 80 },
{ display: '科室', name: 'ksmc', align: 'left', width: 80 },
{ display: "经费名称", name: "xmmc", align: "left", width: 100 },
{ display: "科目名称", name: "kmmc", align: "left", width: 100 },
{
display: "使用金额", name: "je", align: "right", width: 80, totalSummary: {
render: function (suminf, column) {
return "<span style='color:red'>合计:" + suminf.sum + "</span>";
}
}
},
{
display: "剩余预算", name: "je3", align: "right", width: 80, totalSummary: {
render: function (suminf, column) {
return "<span style='color:red'>合计:" + suminf.sum + "</span>";
}
}
},
{ display: '操作员', name: 'czyname', align: 'left', width: 80 },
{
display: '操作时间', name: 'czsj', width: 100,
render: function (r, i, v) {
return v.split('T')[0];
}
}
],
url: "@Url.Action("getSqysbxcxPage2")?type=" + encodeURIComponent("@ViewBag.type") + "&bxdid=@ViewBag.bxdid",
pageSize: 10,
rownumbers: true,
usePager: false
});
});
</script>
}