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

47 lines
1.8 KiB
Plaintext

@model dccdc.Models.ResultViewModels.lishi
@{
ViewBag.Title = "结果录入-历史记录";
}
@section scripts{
<script type="text/javascript">
$(function () {
//debugger
$("#lishiList").ligerGrid({
isScroll: true,
url: "@Url.Action("getLiShi")",
parms:{sfzh:"@ViewBag.sfzh"},
columns: [
{ name: "physical_num", display: "体检编号 ", align: "left", width: 100 ,hide:true},
{ name: "project_name", display: "项目名称 ", align: "left", width: 150 },
{ name: "reference_value", display: "标准值", align: "centre", width: 200 },
{ name: "project_result", display: "结果", align: "left", width: 200 },
{ name: "qualified", display: "是否合格", align: "left", width: 50 }
],
groupColumnName:'physical_num',
//groupColumnDisplay: '体检编号',
groupRender: function (physical_num, data) {
//debugger
return '体检日期:' + data[0].register_date + '体检编号:' + physical_num;
},
height: 500,
rownumbers: false,
usePager: false,
onAfterShowData:f_onAfterShowData
});
});
function f_onAfterShowData()
{
$("span[class='l-grid-group-togglebtn']").each(function (i, val){ $(this).click(); });
}
</script>
}
<table style="width:100%">
<tr>
<td class="ltd">当前体检编号:</td><td class="rtd">@Html.TextBoxFor(k => k.tjbh)</td><td class="ltd"> 姓名:</td><td class="rtd">@Html.TextBoxFor(k => k.xm)</td>
</tr>
<tr>
<td colspan="4"><div id="lishiList"></div></td>
</tr>
</table>