114 lines
4.6 KiB
Plaintext
114 lines
4.6 KiB
Plaintext
@{
|
|
ViewBag.Title = "健康证发证信息查询";
|
|
}
|
|
@section scripts{
|
|
<script type="text/javascript" src="@Url.Content("~/Scripts/public.js")"></script>
|
|
<script>
|
|
var search = [
|
|
{ id: 'startdate', display: "发证日期", name: "startdate", newline: true, type: "date", format: "MM/dd/yyyy" },
|
|
{ id: 'enddate', display: "到", name: "enddate", newline: false, type: "date", format: "MM/dd/yyyy" },
|
|
{
|
|
display: "体检类型", name: "exam_type_id", newline: false, type: "select", options: {
|
|
url: "@Url.Action("GetCheckTypeMaintain","Dictionaries")",
|
|
valueField: "id",
|
|
textField: "check_type"
|
|
}
|
|
},
|
|
|
|
{
|
|
display: "工 种", name: "work_category_id", newline: false, type: "select", options: {
|
|
url: "@Url.Action("getWorkTypeMaintain")",
|
|
valueField: "id",
|
|
textField: "work_type_name"
|
|
}
|
|
},
|
|
{ id: 'checkstart', display: "体检日期", name: "checkstart", newline: true, type: "date", format: "yyyy-MM-dd" },
|
|
{ id: 'checkend', display: "到", name: "checkend", newline: false, type: "date", format: "yyyy-MM-dd" },
|
|
{ id: 'physical_num', display: "体检编号", name: "physical_num", newline: false, type: "text" },
|
|
{
|
|
display: "行业类别", name: "category", newline: false, type: "select", options: {
|
|
url: "@Url.Action("getHYLBT")",
|
|
valueField: "medical_scheme",
|
|
textField: "medical_scheme"
|
|
}
|
|
}
|
|
|
|
];
|
|
$(function () {
|
|
$("#layout").ligerLayout({
|
|
topHeight: 100
|
|
});
|
|
|
|
$("#searchForm").ligerForm({
|
|
inputWidth: 140, labelWidth: 80, space: 10, labelAlign: "right", validate: true,
|
|
fields: search
|
|
});
|
|
liger.get("startdate").setValue(new Date());
|
|
liger.get("enddate").setValue(new Date());
|
|
$("#maingrid").ligerGrid({
|
|
height: '97%',
|
|
columns: [
|
|
{ display: '健康证号', name: 'healthCertificateNumber', align: 'left', width: 120 },
|
|
{ display: '体检编号', name: 'physicalNum', align: 'left', width: 120 },
|
|
{ display: '人员姓名', name: 'personName', align: 'left', width: 80 },
|
|
{ display: '性别', name: 'Sex', align: 'left', width: 40 },
|
|
{ display: '年龄', name: 'personAge', align: 'left', width: 40 },
|
|
{ display: '身份证号', name: 'cardCumber', align: 'left', width: 120 },
|
|
{ display: '工作单位', name: 'utilName', align: 'left', width: 120 },
|
|
{ display: '联系电话', name: 'Phone', align: 'left', width: 100 },
|
|
{ display: '所属地区', name: 'Area', align: 'left', width: 120 },
|
|
{ display: '行业类别', name: 'categorys', align: 'left', width: 80 },
|
|
{ display: '工种', name: 'workCategory', align: 'left', width: 80 },
|
|
{ display: '登记日期', name: 'registerDate', align: 'left', width: 80 },
|
|
{ display: '体检日期', name: 'checkDate', align: 'left', width: 80 },
|
|
{ display: '发证日期', name: 'printTimes', align: 'left', width: 80 },
|
|
{ display: '人员类别', name: 'personCategory', align: 'left', width: 80 }
|
|
|
|
],
|
|
toolbar: {
|
|
items: [
|
|
{ text: "查询", click: fn_fetch }, { line: true },
|
|
{ text: "导出", click: fn_fetch }
|
|
]
|
|
}
|
|
});
|
|
});
|
|
function fn_fetch() {
|
|
var data = liger.get("searchForm").getData();
|
|
if(data.startdate==null||data.startdate==""||data.enddate==null||data.enddate==""){
|
|
alert("选择开始和结束时间!");
|
|
return;
|
|
}
|
|
data.startdate = data.startdate.format("yyyy-MM-dd hh:mm:ss");
|
|
data.enddate = data.enddate.format("yyyy-MM-dd hh:mm:ss");
|
|
if (data.checkstart)
|
|
data.checkstart = data.checkstart.format("yyyy-MM-dd hh:mm:ss");
|
|
if (data.checkend)
|
|
data.checkend = data.checkend.format("yyyy-MM-dd hh:mm:ss");
|
|
|
|
$.ajax({
|
|
type: "post", cache: "false", async: true, dataType: "json",
|
|
url: "@Url.Action("GetJKZFZXX")",
|
|
data:data,
|
|
success: function (result) {
|
|
liger.get("maingrid").options.data = result;
|
|
liger.get("maingrid").reload();
|
|
},
|
|
error: function (msg) {
|
|
return;
|
|
}
|
|
});
|
|
}
|
|
|
|
</script>
|
|
}
|
|
<div id="layout">
|
|
<div position="top">
|
|
<div id="searchForm">
|
|
</div>
|
|
</div>
|
|
<div position="center">
|
|
<div id="maingrid">
|
|
</div>
|
|
</div>
|
|
</div> |