126 lines
5.5 KiB
Plaintext
126 lines
5.5 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "XMGZLQuery";
|
|
}
|
|
|
|
@section scripts{
|
|
<script type="text/javascript">
|
|
var openf;
|
|
$(function () {
|
|
$("#start").ligerDateEditor();
|
|
$("#end").ligerDateEditor();
|
|
//$("#start").ligerGetDateEditorManager().setValue(fun_date(-14));
|
|
//$("#end").ligerGetDateEditorManager().setValue(fun_date(0));
|
|
|
|
$("#xmlb").focus(function () {
|
|
openf = $.ligerDialog.open({
|
|
title: "选择项目",
|
|
url: "@Url.Action("getXM")",
|
|
width: 760,
|
|
height: 422
|
|
});
|
|
});
|
|
$("#dwmc").focus(function () {
|
|
openf = $.ligerDialog.open({
|
|
title: "选择企业",
|
|
url: "@Url.Action("SelectCompany", "Common")?lx=职业",
|
|
width: 760,
|
|
height: 422
|
|
});
|
|
});
|
|
|
|
cx();
|
|
})
|
|
function cx() {
|
|
var data = $("#searchForm").serializeArray();
|
|
$.ajax({
|
|
url: "@Url.Action("getXMGZLList")", data: data, type: "post", dataType: "json",
|
|
success: function (data) {
|
|
$("#grid1").ligerGrid({
|
|
height: '100%',
|
|
width: '100%',
|
|
isScroll: true,
|
|
dataAction: "local",
|
|
selectRowButtonOnly: true,
|
|
data: data.data,
|
|
columns: [
|
|
{ name: "project_name", display: "项目名称", width: 250, align: "left"},
|
|
{ name: "unqualified", display: "超标数", width: 80, align: "right" },
|
|
{ name: "qualified", display: "合格数", width: 80, align: "right" },
|
|
{ name: "complete", display: "完成数", width: 80, align: "right", },
|
|
{ name: "uncomplete", display: "未完成数", width: 80, align: "right" },
|
|
{ name: "allcount", display: "全部", width: 80, align: "right" }
|
|
],
|
|
alternatingRow: false,
|
|
usePager: false,
|
|
groupColumnName: 'exam_group',
|
|
groupColumnDisplay: '小组'
|
|
});
|
|
liger.get("grid1").reRender();
|
|
}
|
|
});
|
|
}
|
|
|
|
function selectedQY(row) {
|
|
$("#dwmc").val(row.enterprise_name);
|
|
openf.close();
|
|
}
|
|
function selectedXM(row) {
|
|
$("#xmlb").val(row);
|
|
openf.close();
|
|
}
|
|
|
|
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;
|
|
}
|
|
</script>
|
|
}
|
|
<form id="searchForm">
|
|
<table class="t1" style="width:100%">
|
|
<tr>
|
|
<td width="70" class="ltd">体检日期</td>
|
|
<td width="150" class="rtd"><input type="text" id="start" name="start"></td>
|
|
<td width="70" class="ltd">结束日期</td>
|
|
<td width="150" class="rtd"><input type="text" id="end" name="end"></td>
|
|
<td width="70" class="ltd">体检类型</td>
|
|
<td width="150" class="rtd">@Html.DropDownList("tjlx", ViewBag.tjlx as SelectList, "----请选择----")</td>
|
|
<td width="70" class="ltd">人员类别</td>
|
|
<td width="150" class="rtd">@Html.DropDownList("rylb", ViewBag.rylb as SelectList, "----请选择----")</td>
|
|
<td width="100" class="rtd" rowspan="3"><input type="button" value="查询" onclick="cx();" class="l-button" style="height:60px"/></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="70" class="ltd">项目类别</td>
|
|
<td width="150" class="rtd">@Html.TextBox("xmlb", "", new { @class = "l-text" })</td>
|
|
<td width="70" class="ltd">所属区域</td>
|
|
<td width="150" class="rtd">@Html.DropDownList("ssqy", ViewBag.ssqy as SelectList, "----请选择----")</td>
|
|
<td width="70" class="ltd">年级</td>
|
|
<td width="150" class="rtd">@Html.TextBox("nj", "", new { @class = "l-text" })</td>
|
|
<td width="70" class="ltd">班级</td>
|
|
<td width="150" class="rtd">@Html.TextBox("bj", "", new { @class = "l-text" })</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="70" class="ltd">单位名称</td>
|
|
<td width="150" class="rtd">@Html.TextBox("dwmc","", new { @class = "l-text"})</td>
|
|
<td width="70" class="ltd">在岗状态</td>
|
|
<td width="150" class="rtd">@Html.DropDownList("zgzt", ViewBag.zgzt as SelectList, "----请选择----")</td>
|
|
<td width="70" class="ltd">录入医师</td>
|
|
<td width="150" class="rtd">@Html.DropDownList("lrys", ViewBag.lrys as SelectList, "----请选择----")</td>
|
|
<td width="70" class="ltd">主检判断</td>
|
|
<td width="150" class="rtd">@Html.CheckBox("zjpd")主检判断完成</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<div id="grid1"></div>
|
|
|