183 lines
8.2 KiB
Plaintext
183 lines
8.2 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "慢病数据查漏";
|
|
}
|
|
|
|
|
|
<table class="t1" style="width:100%">
|
|
<tr>
|
|
<td style="width:100px" class="ltd">医疗机构:</td>
|
|
<td style="width:160px" class="rtd"><input id="org" /></td>
|
|
<td style="width:100px" class="ltd">类型:</td>
|
|
<td style="width:160px" class="rtd">
|
|
<select id="lx">
|
|
<option value="1" selected="selected">门诊</option>
|
|
<option value="2" >住院</option>
|
|
</select>
|
|
</td>
|
|
<td style="width:100px" class="ltd">疾病类型:</td>
|
|
<td style="width:160px" class="rtd">
|
|
<select id="jblx">
|
|
<option value="1" selected="selected">肿瘤</option>
|
|
<option value="2">脑卒中</option>
|
|
<option value="3">冠心病</option>
|
|
</select>
|
|
</td>
|
|
<td style="width:100px" class="ltd">开始日期:</td>
|
|
<td style="width:160px" class="rtd"><input id="bt" /></td>
|
|
<td style="width:100px" class="ltd">结束日期:</td>
|
|
<td style="width:160px" class="rtd"><input id="et" /></td>
|
|
<td style="width:160px" class="rtd"><input id="search" type="button" class="l-button" value="查询" /></td>
|
|
</tr>
|
|
</table>
|
|
<div id="list">
|
|
|
|
</div>
|
|
@section scripts{
|
|
<script type="text/javascript">
|
|
function f_showmz(row, detailPanel, callback) {
|
|
var grid = document.createElement('div');
|
|
$(detailPanel).append(grid);
|
|
$(grid).css('margin', 10).ligerGrid({
|
|
columns:
|
|
[
|
|
{ display: '诊断时间', name: 'diag_date', width: 180 },
|
|
{ display: '诊断名称', name: 'outpat_diag_name',align:"left", width: 500 }
|
|
],
|
|
url: "@Url.Action("getmzzd")",
|
|
parms: { org_code: row.org_code, outpat_form_no: row.outpat_form_no },
|
|
isScroll: false,
|
|
width: '90%',
|
|
onAfterShowData: callback,
|
|
usePager: false
|
|
});
|
|
}
|
|
function f_showzy(row, detailPanel, callback) {
|
|
var grid = document.createElement('div');
|
|
$(detailPanel).append(grid);
|
|
$(grid).css('margin', 10).ligerGrid({
|
|
columns:
|
|
[
|
|
{ display: '诊断编码', name: 'bm', width: 180 },
|
|
{ display: '诊断名称', name: 'zd',align:"left", width: 500 }
|
|
],
|
|
url: "@Url.Action("getzyzd")",
|
|
parms: { org_code: row.org_code, inpat_form_no: row.inpat_form_no },
|
|
isScroll: false,
|
|
width: '90%',
|
|
onAfterShowData: callback,
|
|
usePager: false
|
|
});
|
|
}
|
|
$(function () {
|
|
var mzgrid = {
|
|
title: "门诊传染病漏报查询", width: "100%", height: "100%", pageSize: 30,
|
|
columns: [
|
|
{ display: "姓名", name: "name", width: 100, align: "left" },
|
|
{ display: "性别", name: "sex_code", width: 100, align: "center", render: function (r, i, v) { if (v == "1") return "男"; else if (v == "2") return "女"; else return "未知"; } },
|
|
{ display: "出生日期", name: "birth_date", width: 100, align: "left" },
|
|
{ display: "身份证", name: "id_no", width: 140, align: "left" },
|
|
{ display: "就诊科室", name: "visit_dept_name", width: 140, align: "left" },
|
|
{ display: "就诊时间", name: "visit_dtime", width: 140, align: "left" },
|
|
{ display: "医生", name: "resp_doctor_name", width: 100, align: "left" }
|
|
], dataAction: "local", fixedCellHeight: false, selectRowButtonOnly: true, alternatingRow: false, detail: { onShowDetail: f_showmz }
|
|
|
|
};
|
|
var zygrid = {
|
|
title: "住院传染病漏报查询", width: "100%", height: "100%", pageSize: 30,
|
|
columns: [
|
|
{ display: "姓名", name: "name", width: 100, align: "left" },
|
|
{ display: "性别", name: "sex_code", width: 100, align: "center", render: function (r, i, v) { if (v == "1") return "男"; else if (v == "2") return "女"; else return "未知"; } },
|
|
{ display: "出生日期", name: "birth_date", width: 100, align: "left" },
|
|
{ display: "身份证", name: "id_no", width: 140, align: "left" },
|
|
{ display: "入院科室", name: "in_dept_name", width: 140, align: "left" },
|
|
{ display: "入院时间", name: "in_dtime", width: 140, align: "left" },
|
|
{ display: "出院时间", name: "discharge_date", width: 100, align: "left" }
|
|
], dataAction: "local", fixedCellHeight: false, selectRowButtonOnly: true, alternatingRow: false, detail: { onShowDetail: f_showzy }
|
|
|
|
};
|
|
$("#org").ligerComboBox(
|
|
{
|
|
url: '@Url.Action("getorg")',
|
|
valueField: 'zoe_code',
|
|
textField: 'zoe_value',
|
|
autocomplete: true,
|
|
width: 140
|
|
}
|
|
);
|
|
$("#lx").ligerComboBox({ width: 120 });
|
|
$("#jblx").ligerComboBox({ width: 120 });
|
|
$("#bt").ligerDateEditor({ width: 120, format: "yyyy-MM-dd" });
|
|
$("#et").ligerDateEditor({ width: 120, format: "yyyy-MM-dd" });
|
|
$("#search").bind("click", function () {
|
|
var org_code = liger.get("org").getValue();
|
|
var lx = liger.get("lx").getValue();
|
|
var jblx = liger.get("jblx").getValue();
|
|
var bt = $("#bt").val();
|
|
var et = $("#et").val();
|
|
if (!org_code) {
|
|
$.ligerDialog.alert("请选择医疗机构");
|
|
return;
|
|
}
|
|
if (!lx) {
|
|
$.ligerDialog.alert("请选择类型");
|
|
return;
|
|
}
|
|
if (!jblx) {
|
|
$.ligerDialog.alert("请选择疾病分类类型");
|
|
return;
|
|
}
|
|
if (!bt) {
|
|
$.ligerDialog.alert("请选择开始时间");
|
|
return;
|
|
}
|
|
if (!et) {
|
|
$.ligerDialog.alert("请选择结束时间");
|
|
return;
|
|
}
|
|
if (lx == "1") {
|
|
$.ajax({
|
|
url: "@Url.Action("getmzlb")", type: "post", dataType: "json", data: { org_code: org_code, bt: bt, et: et,jblx:jblx },
|
|
success: function (data) {
|
|
$.ligerDialog.closeWaitting();
|
|
mzgrid.data = data;
|
|
$("#list").ligerGrid(mzgrid);
|
|
liger.get("list").reRender();
|
|
},
|
|
beforeSend: function () {
|
|
$.ligerDialog.waitting("正在分析请稍后……");
|
|
},
|
|
error: function (e) {
|
|
$.ligerDialog.closeWaitting();
|
|
$.ligerDialog.alert(e.responseText);
|
|
}
|
|
});
|
|
}
|
|
else {
|
|
$.ajax({
|
|
url: "@Url.Action("getzylb")", type: "post", dataType: "json", data: { org_code: org_code, bt: bt, et: et, jblx: jblx },
|
|
success: function (data) {
|
|
$.ligerDialog.closeWaitting();
|
|
zygrid.data = data;
|
|
$("#list").ligerGrid(zygrid);
|
|
liger.get("list").reRender();
|
|
},
|
|
beforeSend: function () {
|
|
$.ligerDialog.waitting("正在分析请稍后……");
|
|
},
|
|
error: function (e) {
|
|
$.ligerDialog.closeWaitting();
|
|
$.ligerDialog.alert(e.responseText);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
}
|
|
|
|
|
|
|
|
|
|
|