%@ 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 = "";
int positionCode = currentEmployee.getPosition();
switch (positionCode) {
case 1: positionDesc = "馆员"; break;
case 2: positionDesc = "工作人员"; break;
case 3: positionDesc = "经理"; break;
}
String empJson = String.format(
"{\"id\":\"%s\",\"name\":\"%s\",\"position\":\"%s\",\"positionCode\":%d}",
currentEmployee.getEmployeeCode(),
currentEmployee.getName(),
positionDesc,
positionCode
);
%>
员工门户
您的权限:管理图书(增删改查)
图书管理
| ID | ISBN | 书名 | 作者 | 出版社 | 出版年 | 库存 | 群体 | 简介 | 操作 |
| 暂无图书 |
| {{ book.id }} |
{{ book.isbn }} |
{{ book.title }} |
{{ book.author }} |
{{ book.publisher }} |
{{ book.publishYear }} |
{{ book.totalStock }} |
儿童通用 |
{{ book.description || '—' }} |
|
您的权限:帮助注册读者、代借代还图书
代借 / 代还图书
| ID | ISBN | 书名 | 借阅日 | 应还日 | 操作 |
| 暂无借阅记录 |
| {{ item.borrowId }} |
{{ item.isbn }} |
{{ item.bookTitle }} |
{{ item.borrowDate }} |
{{ item.dueDate }} |
|
您的权限:管理活动、管理员工
活动管理
| ID | 名称 | 时间 | 地点 | 简介 | 最大人数 | 操作 |
| 暂无活动 |
| {{ act.id }} |
{{ act.name }} |
{{ act.startTime }} |
{{ act.location }} |
{{ act.description || '—' }} |
{{ act.maxParticipants }} |
|