|
@ -0,0 +1,87 @@
|
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8" %>
|
|
|
|
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
|
|
|
|
<script>
|
|
|
|
(function ($, win) {
|
|
|
|
$(function () {
|
|
|
|
/* ************************** 变量定义 ******************************** */
|
|
|
|
// 通用工具类库
|
|
|
|
var Util = $.Util;
|
|
|
|
var master = null;
|
|
|
|
var patient = $('#patient').val();
|
|
|
|
|
|
|
|
/* *************************** 函数定义 ******************************* */
|
|
|
|
function pageInit() {
|
|
|
|
master.init();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* *************************** 模块初始化 ***************************** */
|
|
|
|
|
|
|
|
master = {
|
|
|
|
grid: null,
|
|
|
|
init: function () {
|
|
|
|
this.grid = $("#div_patient_reservation_grid").ligerGrid($.LigerGridEx.config(
|
|
|
|
{
|
|
|
|
url: ctx + "/admin/sign/reservationInfo",
|
|
|
|
parms: {patient: patient},
|
|
|
|
ajaxHeader: ajaxHeaderName,
|
|
|
|
ajaxHeaderValue: ajaxHeaderValue,
|
|
|
|
root: "data",
|
|
|
|
columns: [
|
|
|
|
{display: '预约号', name: 'code', width: '20%', align: "left"},
|
|
|
|
{
|
|
|
|
display: '预约时间段',
|
|
|
|
name: 'sectionType',
|
|
|
|
width: '5%',
|
|
|
|
minColumnWidth: 20,
|
|
|
|
render: function (row) {
|
|
|
|
if (Util.isStrEquals(row.sectionType, "a")) {
|
|
|
|
return "上午";
|
|
|
|
} else if (Util.isStrEquals(row.available, "p")) {
|
|
|
|
return "下午";
|
|
|
|
}
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{display: '开始时间', name: 'startTime', width: '12%', align: "left"},
|
|
|
|
{display: '结束时间', name: 'endTime', width: '12%', align: "center"},
|
|
|
|
{display: '医院名称', name: 'orgName', width: '10%', align: "left"},
|
|
|
|
{display: '预约科室', name: 'deptName', width: '10%', align: "center"},
|
|
|
|
{display: '专家名称', name: 'doctorName', width: '10%', align: "center"},
|
|
|
|
{display: '专家职位', name: 'doctorJob', width: '10%', align: "left"},
|
|
|
|
{
|
|
|
|
display: '状态',
|
|
|
|
name: 'status',
|
|
|
|
width: '10%',
|
|
|
|
minColumnWidth: 20,
|
|
|
|
render: function (row) {
|
|
|
|
if (Util.isStrEquals(row.status, "0")) {
|
|
|
|
return "取消预约";
|
|
|
|
} else if (Util.isStrEquals(row.status, "1")) {
|
|
|
|
return "预约成功";
|
|
|
|
} else if (Util.isStrEquals(row.status, "2")) {
|
|
|
|
return "已诊";
|
|
|
|
} else if (Util.isStrEquals(row.status, "3")) {
|
|
|
|
return "停诊";
|
|
|
|
}
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
|
|
|
enabledEdit: true,
|
|
|
|
validate: true,
|
|
|
|
unSetValidateAttr: false,
|
|
|
|
usePager: false, //是否分页
|
|
|
|
rownumbers: true, //是否显示行号
|
|
|
|
alternatingRow: false, //是否附加奇偶行效果行
|
|
|
|
}));
|
|
|
|
// 自适应宽度
|
|
|
|
this.grid.adjustToWidth();
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
/* *************************** 页面初始化 **************************** */
|
|
|
|
pageInit();
|
|
|
|
});
|
|
|
|
})(jQuery, window);
|
|
|
|
</script>
|