117 lines
4.2 KiB
Plaintext
117 lines
4.2 KiB
Plaintext
|
|
@{
|
|
ViewBag.Title = "疾病目标维护";
|
|
}
|
|
<div style="width:100%">
|
|
<table class="t1" style="width:100%">
|
|
<tr>
|
|
<td class="ltd" style="width:100px">目标疾病名称:</td>
|
|
<td class="rtd" style="width:120px"><input id="s_teamName" class="l-text" /></td>
|
|
<td class="rtd"><div id="search">查询</div></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div id="ExamGroupList">
|
|
|
|
</div>
|
|
|
|
@section scripts{
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$("#search").ligerButton({
|
|
click: function () {
|
|
liger.get("ExamGroupList").set("parms", { key: $("#s_teamName").val() });
|
|
liger.get("ExamGroupList").changePage("first");
|
|
liger.get("ExamGroupList").reload();
|
|
}
|
|
});
|
|
init();
|
|
});
|
|
function init() {
|
|
$("#ExamGroupList").ligerGrid({
|
|
url: "@Url.Action("GetAllMbjbList")",
|
|
toolbar: {
|
|
items: [
|
|
{
|
|
text: '添加', click: itemclick, icon: 'add'
|
|
},
|
|
{ line: true },
|
|
{ text: '修改', click: itemclick, icon: "edit" },
|
|
{ line: true },
|
|
{ text: '删除', click: itemclick, icon: 'delete' }
|
|
|
|
]
|
|
},
|
|
title: "目标疾病",
|
|
parms: { key: $("#s_teamName").val() },
|
|
columns: [
|
|
{ name: "id", display: "编号", width: 60, align: "left" },
|
|
{ name: "code", display: "编码", width: 60, align: "left" },
|
|
{ name: "disease_name", display: "目标疾病名称", width: 200, align: "left" },
|
|
{ name: "status", display: "是否使用", width: 60, align: "left" },
|
|
{ name: "pinyin_code", display: "简码", width: 200, align: "left" },
|
|
{ name: "creator", display: "创建人", width: 60, align: "left" },
|
|
{ name: "create_time", display: "创建时间", width: 100, align: "left" }
|
|
|
|
], width: "98%",
|
|
height: "100%",
|
|
rownumbers: true,
|
|
fixedCellHeight: false,
|
|
usePager: true,
|
|
heightDiff: -20
|
|
});
|
|
if (openf)
|
|
openf.close();
|
|
}
|
|
var openf;
|
|
function itemclick(item) {
|
|
var id;
|
|
if (item.text === "删除") {
|
|
var r1 = liger.get("ExamGroupList").getSelectedRow();
|
|
if (!r1) {
|
|
$.ligerDialog.alert("请选择要删除的数据!");
|
|
return;
|
|
} else {
|
|
$.ajax({
|
|
url: "@Url.Action("delMbjb")", type: "post", dataType: "json", data: { id: r1.id },
|
|
success: function (d) {
|
|
$.ligerDialog.closeWaitting();
|
|
$.ligerDialog.alert(d.Message, function () {
|
|
if (d.State == 1) {
|
|
liger.get("ExamGroupList").reload();
|
|
return;
|
|
}
|
|
});
|
|
},
|
|
beforeSend: function () {
|
|
$.ligerDialog.waitting("正在保存请稍后……");
|
|
}
|
|
});
|
|
}
|
|
}
|
|
else {
|
|
if (item.text === "添加") {
|
|
id = "0";
|
|
}
|
|
else if (item.text === "修改") {
|
|
var r = liger.get("ExamGroupList").getSelectedRow();
|
|
if (!r) {
|
|
$.ligerDialog.alert("请选择要修改的数据!");
|
|
return;
|
|
}
|
|
id = r.id;
|
|
}
|
|
openf = $.ligerDialog.open({
|
|
url: "@Url.Action("EditMbjb")?id=" + id,
|
|
title: item.text,
|
|
width: 380,
|
|
height: 200
|
|
});
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
}
|
|
|