%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
com.chinasofti.model.Employee currentEmployee = (com.chinasofti.model.Employee) session.getAttribute("currentEmployee");
if (currentEmployee == null) {
response.sendRedirect(request.getContextPath() + "/Login.jsp");
return;
}
String positionDesc = "";
switch (currentEmployee.getPosition()) {
case 1: positionDesc = "馆员"; break;
case 2: positionDesc = "工作人员"; break;
case 3: positionDesc = "经理"; break;
}
String empJson = String.format(
"{\"id\":\"%s\",\"name\":\"%s\",\"position\":\"%s\"}",
currentEmployee.getEmployeeCode(),
currentEmployee.getName(),
positionDesc
);
request.setAttribute("empJson", empJson);
%>
员工门户 · 职位驱动
📚 图书管理 · 馆员
| book_id | ISBN | 书名 | 作者 | 出版社 | 出版年 | 总库存 | 已借 | 儿童书 | 简介 | 操作 |
| {{ book.id }} |
{{ book.isbn }} |
{{ book.title }} |
{{ book.author }} |
{{ book.publisher }} |
{{ book.publishYear }} |
{{ book.totalStock }} |
{{ book.borrowedCount || 0 }} |
儿童通用 |
{{ book.description || '—' }} |
|
📖 代借阅/归还
| 借阅ID | ISBN | 书名 | 作者 | 借阅日 | 应还日 | 操作 |
| 暂无借阅记录 |
| {{ item.borrowId }} | {{ item.isbn }} | {{ item.bookTitle }} | {{ item.author }} |
{{ item.borrowDate }} | {{ item.dueDate }} |
|
🎉 活动管理
| 名称 | 时间 | 地点 | 简介 | 操作 |
| {{ act.name }} | {{ act.startTime }} | {{ act.location }} | {{ act.description }} |
|