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

77 lines
3.0 KiB
Plaintext
Raw Normal View History

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

@{
ViewBag.Title = "小组合格量统计";
}
@section scripts{
<script type="text/javascript">
function init() {
$("#djrq_start").ligerDateEditor({
format: "yyyy-MM-dd", width: 90
});
$("#djrq_end").ligerDateEditor({
format: "yyyy-MM-dd", width: 90
});
//var d = new Date();
//d.setTime(d.getTime() - 168 * 60 * 60 * 1000);
//var s = d.getFullYear() + "-" + "0" + (d.getMonth() + 1) + "-" + d.getDate();
$("#djrq_start").ligerGetDateEditorManager().setValue("@DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd")");
$("#djrq_end").ligerGetDateEditorManager().setValue(new Date());
}
function cx()
{
if ($("#GL option:selected").val() !== "" && $("#GL option:selected").val() !== null)
{
$.ajax({
type: "post", cache: "false", async: true, dataType: "json",
data: { exam_group_maintain_id: $("#GL option:selected").val(), dateStr: $("#djrq_start").val(), dateEnd: $("#djrq_end").val() },
url: "@Url.Action("getXZHGL")",
success: function (result) {
//debugger
liger.get("xzhglList").options.data = result;
liger.get("xzhglList").reload();
}
});
}else
{
alert("请选择一个小组!");
}
}
$(function () {
init();
$("#xzhglList").ligerGrid({
isScroll: true,
//headerRowHeight: 0,
//inWindow: false,
//url: "@Url.Action("getXZHGL")",
columns: [
{ name: "team_name", display: "小组名称 ", align: "left", width: 100 },
{ name: "qualified", display: "合格人数", align: "right", width: 100 },
{ name: "unqualified", display: "不合格人数", align: "right", width: 100 },
{ name: "total", display: "合计", align: "right", width: 100 }
],
height: 400,
width:900,
rownumbers: false,
usePager: false
});
});
</script>
}
<table class="t1" style="width:900px">
<tr>
<td width="70" class="ltd">体检日期:</td>
<td width="150" class="rtd"><input type="text" id="djrq_start" name="djrq_start"></td>
<td width="20" class="ltd"> 到</td>
<td width="150" class="rtd"><input type="text" id="djrq_end" name="djrq_end"></td>
<td width="70" class="ltd">小组名称:</td>
<td width="150" class="rtd">@Html.DropDownList("GL", ViewData["GroupList"] as SelectList, "----请选择----", new { id = "GL" })</td>
<td width="150" class="rtd"><input type="button" value="查询" onclick="cx();" class="l-button" /></td>
</tr>
</table>
<div id="xzhglList"></div>