Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
玉米子禾
BlueRabbitLibrarySystem
提交
95788685
B
BlueRabbitLibrarySystem
项目概览
玉米子禾
/
BlueRabbitLibrarySystem
9 个月 前同步成功
通知
52
Star
6
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
BlueRabbitLibrarySystem
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
95788685
编写于
3月 10, 2023
作者:
玉米子禾
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
完善相关文档
上级
978d305e
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
65 addition
and
75 deletion
+65
-75
.idea/workspace.xml
.idea/workspace.xml
+1
-1
images/Snipaste_2023-03-09_09-37-47.png
images/Snipaste_2023-03-09_09-37-47.png
+0
-0
images/Snipaste_2023-03-10_21-01-57.png
images/Snipaste_2023-03-10_21-01-57.png
+0
-0
images/image-20230310210543192.png
images/image-20230310210543192.png
+0
-0
readme.md
readme.md
+41
-45
src/com/bluerabbit/librarysystem/BlueRabbitLibrarySystem.java
...com/bluerabbit/librarysystem/BlueRabbitLibrarySystem.java
+19
-27
src/com/bluerabbit/librarysystem/view/borrow/BorrowInAndRenewView.java
...abbit/librarysystem/view/borrow/BorrowInAndRenewView.java
+2
-1
src/com/bluerabbit/librarysystem/view/borrow/BorrowOutView.java
...m/bluerabbit/librarysystem/view/borrow/BorrowOutView.java
+2
-1
未找到文件。
.idea/workspace.xml
浏览文件 @
95788685
...
...
@@ -83,7 +83,7 @@
<option
name=
"presentableId"
value=
"Default"
/>
<updated>
1678258258162
</updated>
<workItem
from=
"1678258261101"
duration=
"4342000"
/>
<workItem
from=
"1678263081204"
duration=
"8
2343
000"
/>
<workItem
from=
"1678263081204"
duration=
"8
3851
000"
/>
</task>
<servers
/>
</component>
...
...
images/Snipaste_2023-03-09_09-37-47.png
查看替换文件 @
978d305e
浏览文件 @
95788685
201.0 KB
|
W:
|
H:
231.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
images/Snipaste_2023-03-10_21-01-57.png
0 → 100644
浏览文件 @
95788685
231.1 KB
images/image-20230310210543192.png
0 → 100644
浏览文件 @
95788685
226.6 KB
readme.md
浏览文件 @
95788685
...
...
@@ -10,12 +10,13 @@
## 壹、功能
1.
管理员登录、改密码、资料等
2.
有超级权限的账号能管理其他管理员
3.
图书信息的增删改查
4.
能对读者的信息进行管理
5.
借阅管理(暂停)
6.
退出登录
1.
管理员登录
2.
管理员改密码、编辑资料等
3.
有超级权限的账号能管理其他管理员
4.
图书信息的增删改查
5.
能对读者的信息进行管理
6.
借阅管理:图书借出、还入和续借等
7.
退出登录
## 贰、相关技术及开发环境
...
...
@@ -62,7 +63,16 @@
<center>
管理员管理:admin不是超级管理员,换了个账号,可直接改其他管理员信息(密码是MD5加密后保存的)
</center>
![
借阅管理
](
images/Snipaste_2023-03-09_09-37-47.png
)
<center>
借阅管理:实现了借出、还入、续借和借阅详情查看
</center>
<center>
借阅管理:借出
</center>
![
借阅管理
](
images/Snipaste_2023-03-10_21-01-57.png
)
<center>
借阅管理:还入
</center>
![
image-20230310210543192
](
images/image-20230310210543192.png
)
<center>
借阅管理:详情查看,还有续借等功能
</center>
## 肆、数据库设计
...
...
@@ -231,17 +241,6 @@ public abstract class DBUtil {
JOptionPane
.
showMessageDialog
(
null
,
"服务器连接失败"
);
e
.
printStackTrace
();
}
// new Thread(){
// public void run(){
// try {
// Connection con = DriverManager.getConnection(connectString, sql_user, sql_pwd);
// con.close();
// } catch (SQLException e) { //连接失败
// e.printStackTrace();
// }
// }
// }.start();
return
conn
;
}
...
...
@@ -310,7 +309,9 @@ public abstract class DBUtil {
```
只需要改SQL的地址、账号和密码就可以开始使用!
**但在此之前要设计好数据库!**
这个类在
`com.bluerabbit.librarysystem.database.DBUtil`
中:
> 这个类在`com.bluerabbit.librarysystem.database.DBUtil`中:
```
java
private
static
String
url
=
"jdbc:mysql://localhost:3306/library_system?useUnicode=true&characterEncoding=UTF-8"
;
private
static
String
userName
=
"root"
;
...
...
@@ -332,35 +333,30 @@ import com.bluerabbit.librarysystem.view.loginView;
/**
* 主函数,设置皮肤,启动窗口
* @author minuy
*
* @author minuhy
*/
public
class
BlueRabbitLibrarySystem
{
/**
* @param args
*/
public
static
void
main
(
String
[]
args
)
{
try
{
BeautyEyeLNFHelper
.
frameBorderStyle
=
FrameBorderStyle
.
translucencyAppleLike
;
org
.
jb2011
.
lnf
.
beautyeye
.
BeautyEyeLNFHelper
.
launchBeautyEyeLNF
();
UIManager
.
put
(
"RootPane.setupButtonVisible"
,
false
);
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
e
);
}
new
loginView
();
}
/**
* 主函数
*
* @param args 不需要参数
*/
public
static
void
main
(
String
[]
args
)
{
try
{
BeautyEyeLNFHelper
.
frameBorderStyle
=
FrameBorderStyle
.
translucencyAppleLike
;
org
.
jb2011
.
lnf
.
beautyeye
.
BeautyEyeLNFHelper
.
launchBeautyEyeLNF
();
UIManager
.
put
(
"RootPane.setupButtonVisible"
,
false
);
BeautyEyeLNFHelper
.
translucencyAtFrameInactive
=
false
;
// 关闭半透明效果
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
"在启用皮肤时出错"
+
e
.
getMessage
());
}
// 开启登录界面
new
loginView
();
}
}
```
-
登录界面:主要负责视图的初始化和监听层的启动(其他界面一样的原理,这里以登录界面举例)
...
...
@@ -391,7 +387,7 @@ import com.bluerabbit.librarysystem.listener.LoginView_helpButton_ActionListener
import
com.bluerabbit.librarysystem.listener.LoginView_loginButton_ActionListener
;
/**
* 登录界面
* @author minuy
* @author minu
h
y
*
*/
@SuppressWarnings
(
"serial"
)
...
...
@@ -567,7 +563,7 @@ import com.bluerabbit.librarysystem.view.MainView;
import
com.bluerabbit.librarysystem.view.loginView
;
/**
* 登录界面的登录按钮监听类
* @author minuy
* @author minu
h
y
*
*/
public
class
LoginView_loginButton_ActionListener
implements
ActionListener
{
...
...
src/com/bluerabbit/librarysystem/BlueRabbitLibrarySystem.java
浏览文件 @
95788685
...
...
@@ -9,35 +9,27 @@ import com.bluerabbit.librarysystem.view.loginView;
/**
* 主函数,设置皮肤,启动窗口
* @author minuy
*
* @author minuhy
*/
public
class
BlueRabbitLibrarySystem
{
/**
* @param args
*/
public
static
void
main
(
String
[]
args
)
{
try
{
BeautyEyeLNFHelper
.
frameBorderStyle
=
FrameBorderStyle
.
translucencyAppleLike
;
org
.
jb2011
.
lnf
.
beautyeye
.
BeautyEyeLNFHelper
.
launchBeautyEyeLNF
();
UIManager
.
put
(
"RootPane.setupButtonVisible"
,
false
);
BeautyEyeLNFHelper
.
translucencyAtFrameInactive
=
false
;
// 关闭半透明效果
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
e
);
}
new
loginView
();
}
/**
* 主函数
*
* @param args 不需要参数
*/
public
static
void
main
(
String
[]
args
)
{
try
{
BeautyEyeLNFHelper
.
frameBorderStyle
=
FrameBorderStyle
.
translucencyAppleLike
;
org
.
jb2011
.
lnf
.
beautyeye
.
BeautyEyeLNFHelper
.
launchBeautyEyeLNF
();
UIManager
.
put
(
"RootPane.setupButtonVisible"
,
false
);
BeautyEyeLNFHelper
.
translucencyAtFrameInactive
=
false
;
// 关闭半透明效果
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
"在启用皮肤时出错"
+
e
.
getMessage
());
}
// 开启登录界面
new
loginView
();
}
}
src/com/bluerabbit/librarysystem/view/borrow/BorrowInAndRenewView.java
浏览文件 @
95788685
...
...
@@ -310,7 +310,8 @@ public class BorrowInAndRenewView extends JDialog {
*/
private
void
createSearchBar
(
int
unitW
,
JPanel
jPanel
,
JLabel
jLabel
,
JTextField
jtfKeyword
,
JButton
btnSearch
,
JButton
btnPrev
,
JButton
btnNext
)
{
jPanel
.
setBorder
(
BorderFactory
.
createEtchedBorder
());
jPanel
.
setBackground
(
new
Color
(
236
,
233
,
216
));
// 月白
jPanel
.
setBackground
(
new
Color
(
212
,
227
,
237
));
jLabel
.
setFont
(
new
Font
(
Font
.
SERIF
,
Font
.
PLAIN
,
20
));
jLabel
.
setBounds
(
30
,
5
,
240
,
30
);
...
...
src/com/bluerabbit/librarysystem/view/borrow/BorrowOutView.java
浏览文件 @
95788685
...
...
@@ -366,7 +366,8 @@ public class BorrowOutView extends JDialog {
*/
private
void
createSearchBar
(
int
unitW
,
JPanel
jPanel
,
JLabel
jLabel
,
JTextField
jtfKeyword
,
JButton
btnSearch
,
JButton
btnPrev
,
JButton
btnNext
)
{
jPanel
.
setBorder
(
BorderFactory
.
createEtchedBorder
());
jPanel
.
setBackground
(
new
Color
(
236
,
233
,
216
));
// 月白
jPanel
.
setBackground
(
new
Color
(
212
,
227
,
237
));
jLabel
.
setFont
(
new
Font
(
Font
.
SERIF
,
Font
.
PLAIN
,
20
));
jLabel
.
setBounds
(
30
,
5
,
400
,
30
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录