124 lines
5.1 KiB
Plaintext
124 lines
5.1 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "TJRSTJQuery";
|
|
}
|
|
|
|
|
|
@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: "person_name", newline: false, type: "select", options: {
|
|
isShowCheckBox: true, isMultiSelect: true,
|
|
url: "@Url.Action("GetAlPersonList")",
|
|
valueField: "register_person",
|
|
textField: "register_person"
|
|
}
|
|
},
|
|
{ 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" },
|
|
{
|
|
display: "体检类型", name: "exam_type", newline: false, type: "select", options: {
|
|
isShowCheckBox: true, isMultiSelect: true,
|
|
url: "@Url.Action("GetCheckTypeMaintain","Dictionaries")",
|
|
valueField: "check_type",
|
|
textField: "check_type"
|
|
}
|
|
}
|
|
];
|
|
|
|
var columns = [{ display: '体检类型', name: 'exam_type', minWidth: 60, width: 100 },
|
|
{
|
|
display: '正常体检情况', columns:
|
|
[
|
|
{ display: '涉及单位', name: 'col1', align: 'left', width: 120,align:"right" },
|
|
{ display: '登记人员', name: 'col2', align: 'left', width: 60, align: "right" },
|
|
{ display: '登记未收费', name: 'col3', align: 'left', width: 80, align: "right" },
|
|
{ display: '登记已收费未体检', name: 'col4', align: 'left', width: 100, align: "right" },
|
|
{ display: '登记已收费未完成', name: 'col5', align: 'left', width: 100, align: "right" },
|
|
{ display: '未主检判断', name: 'col6', align: 'left', width: 100, align: "right" },
|
|
{ display: '未完成', name: 'col7', align: 'left', width: 50, align: "right" },
|
|
{ display: '已完成', name: 'col8', align: 'left', width: 50, align: "right" },
|
|
{ display: '已打印', name: 'col9', align: 'left', width: 50, align: "right" },
|
|
{ display: '主检判断复检', name: 'col10', align: 'left', width: 100, align: "right" }
|
|
]
|
|
},
|
|
{
|
|
display: '复检情况', columns:
|
|
[
|
|
{ display: '涉及单位', name: 'col11', align: 'left', width: 120, align: "right" },
|
|
{ display: '已复检登记', name: 'col12', align: 'left', width: 100, align: "right" },
|
|
{ display: '未复检登记', name: 'col13', align: 'left', width: 100, align: "right" },
|
|
{ display: '复检完成', name: 'col14', align: 'left', width: 100, align: "right" },
|
|
{ display: '已打印', name: 'col15', align: 'left', width: 50, align: "right" }
|
|
]
|
|
}
|
|
];
|
|
$(function () {
|
|
$("#layout").ligerLayout({
|
|
topHeight: 100
|
|
});
|
|
|
|
$("#searchForm").ligerForm({
|
|
inputWidth: 140, labelWidth: 180, 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:columns,
|
|
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 != undefined && data.checkstart != null && data.checkstart != "") {
|
|
data.checkstart = data.checkstart.format("yyyy-MM-dd hh:mm:ss");
|
|
}
|
|
if (data.checkend != undefined && data.checkend != null && 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("GetTJRSTJ")",
|
|
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>
|
|
|