Skip to content

Commit ce97b35

Browse files
committed
单机版的书店管理系统(练习设计模块和思想_系列汇总)
0 parents  commit ce97b35

File tree

239 files changed

+14253
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

239 files changed

+14253
-0
lines changed

myBookStore/.classpath

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5+
<classpathentry kind="lib" path="lib/swing-layout-1.0.3.jar"/>
6+
<classpathentry kind="lib" path="lib/AbsoluteLayout.jar"/>
7+
<classpathentry kind="output" path="bin"/>
8+
</classpath>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
3+
<properties>
4+
<entry key="profiler.settings.instrument.empty.methods">true</entry>
5+
<entry key="ProfilerCPUSettings_profile_runnables">true</entry>
6+
<entry key="ProfilerCPUSettings_filter_type">2</entry>
7+
<entry key="ProfilerMemorySettings_track_every">10</entry>
8+
<entry key="ProfilerMemorySettings_mode">4</entry>
9+
<entry key="ProfilerCPUSettings_root_classes">cn.hncu.bookStore.**
10+
</entry>
11+
<entry key="ProfilerCPUSettings_filter_value">cn.hncu.bookStore.*</entry>
12+
<entry key="profiler.settings.istrument.getter.setter.methods">true</entry>
13+
<entry key="myeclipse.profiling.mode">0</entry>
14+
<entry key="ProfilerMemorySettings_stacktraces">-1</entry>
15+
</properties>

myBookStore/.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>myBookStore</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>

myBookStore/Book.txt

443 Bytes
Binary file not shown.

myBookStore/InDetail.txt

1.23 KB
Binary file not shown.

myBookStore/InMain.txt

487 Bytes
Binary file not shown.

myBookStore/OutDetail.txt

465 Bytes
Binary file not shown.

myBookStore/OutMain.txt

265 Bytes
Binary file not shown.

myBookStore/README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
单机版的书店管理系统(练习设计模块和思想_系列汇总)
2+
3+
项目练习目标 :
4+
5+
1、Java应用程序基本分析
6+
2、培养面向对象编程的基本思想
7+
3、Java基本设计模式综合应用
8+
4、掌握分层和接口的基本设计
9+
5、构建合理的Java应用程序包结构
10+
6、综合应用JSE所学习的知识
11+
7、在应用中合理使用集合框架
12+
8、在应用中综合使用swing的常用组件
13+
9、基本的表现层的实现机制
14+
10、IO流和文件的基本操作
15+
11、培养良好的Java编程习惯
16+
12、培养调试Java程序的能力,培养改错的能力
17+
18+
19+
项目功能需求 :
20+
21+
1、能进行操作用户的注册,修改基本信息,删除和查询。
22+
2、能对图书的基本信息进行增加、删除、修改和查询操作。
23+
3、能填写进货单,一张进货单带有多条具体的进货信息,进货的书籍必须是图书管理里面已经有的;进货的同时修改库存对应书籍的存货量。
24+
4、能填写销售单,一张销售单带有多条具体的销售信息,销售的书籍必须是图书管理里面已经有的,而且销售的数量不能超过当前库存的数量;销售的同时修改库存对应书籍的存货量。
25+
5、可以查看库存的明细,可以按照条件进行查找具体的图书的库存值。
26+
6、权限方面进行简化,做固定的权限控制。把用户按照模块分成不同操作权限的人员,特设一个admin的用户,可以操作全部的功能。
27+
28+
项目基本设计 :
29+
30+
★ 架构设计
31+
整体框架、模块划分
32+
模块划分:用户、图书、进货、销售和库存5个模块
33+
34+
★ 系统功能结构设计
35+
每个功能模块的具体功能子模块
36+
37+
★ 数据库设计
38+
项目框架实现:分模块、分层、分包、构建应用程序
39+
40+
自己的总结:
41+
42+
这可以说是自己的第一个项目吧。小项目。O(∩_∩)O哈哈~
43+
写到现在也有10多天了,自己比较享受写项目的这个过程,不过因为这个项目是跟着老师指导来做的,所以呢,自己的感触还不是很深,不过现在对分包啊,取名字啊,值对象封装啊,工厂方法,面向接口编程啊,表现层,逻辑层,数据层啊,这些以前用都没用过的,那时候完全不懂得怎么回事,不过在自己写了之后,感觉嘛、也就那么回事。
44+
O(∩_∩)O~,这种项目开发,还是得自己多练练手,写得多了,自己就熟了。
45+
以后就是手到擒来。
46+
47+
CSDN博客地址:
48+
http://blog.csdn.net/qq_26525215/article/details/51202656

myBookStore/User.txt

343 Bytes
Binary file not shown.

myBookStore/Uuid.txt

303 Bytes
Binary file not shown.
798 Bytes
Binary file not shown.
798 Bytes
Binary file not shown.
798 Bytes
Binary file not shown.
798 Bytes
Binary file not shown.
798 Bytes
Binary file not shown.
798 Bytes
Binary file not shown.
564 Bytes
Binary file not shown.
Binary file not shown.
Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,243 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
3+
<Form version="1.3" maxVersion="1.5" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
4+
<NonVisualComponents>
5+
<Menu class="javax.swing.JMenuBar" name="menuBar">
6+
<SubComponents>
7+
<Menu class="javax.swing.JMenu" name="fileMenu">
8+
<Properties>
9+
<Property name="text" type="java.lang.String" value="File"/>
10+
</Properties>
11+
<SubComponents>
12+
<MenuItem class="javax.swing.JMenuItem" name="openMenuItem">
13+
<Properties>
14+
<Property name="text" type="java.lang.String" value="Open"/>
15+
</Properties>
16+
</MenuItem>
17+
<MenuItem class="javax.swing.JMenuItem" name="saveMenuItem">
18+
<Properties>
19+
<Property name="text" type="java.lang.String" value="Save"/>
20+
</Properties>
21+
</MenuItem>
22+
<MenuItem class="javax.swing.JMenuItem" name="saveAsMenuItem">
23+
<Properties>
24+
<Property name="text" type="java.lang.String" value="Save As ..."/>
25+
</Properties>
26+
</MenuItem>
27+
<MenuItem class="javax.swing.JMenuItem" name="exitMenuItem">
28+
<Properties>
29+
<Property name="text" type="java.lang.String" value="Exit"/>
30+
</Properties>
31+
<Events>
32+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="exitMenuItemActionPerformed"/>
33+
</Events>
34+
</MenuItem>
35+
</SubComponents>
36+
</Menu>
37+
<Menu class="javax.swing.JMenu" name="editMenu">
38+
<Properties>
39+
<Property name="text" type="java.lang.String" value="Edit"/>
40+
</Properties>
41+
<SubComponents>
42+
<MenuItem class="javax.swing.JMenuItem" name="cutMenuItem">
43+
<Properties>
44+
<Property name="text" type="java.lang.String" value="Cut"/>
45+
</Properties>
46+
</MenuItem>
47+
<MenuItem class="javax.swing.JMenuItem" name="copyMenuItem">
48+
<Properties>
49+
<Property name="text" type="java.lang.String" value="Copy"/>
50+
</Properties>
51+
</MenuItem>
52+
<MenuItem class="javax.swing.JMenuItem" name="pasteMenuItem">
53+
<Properties>
54+
<Property name="text" type="java.lang.String" value="Paste"/>
55+
</Properties>
56+
</MenuItem>
57+
<MenuItem class="javax.swing.JMenuItem" name="deleteMenuItem">
58+
<Properties>
59+
<Property name="text" type="java.lang.String" value="Delete"/>
60+
</Properties>
61+
</MenuItem>
62+
</SubComponents>
63+
</Menu>
64+
<Menu class="javax.swing.JMenu" name="helpMenu">
65+
<Properties>
66+
<Property name="text" type="java.lang.String" value="Help"/>
67+
</Properties>
68+
<SubComponents>
69+
<MenuItem class="javax.swing.JMenuItem" name="contentsMenuItem">
70+
<Properties>
71+
<Property name="text" type="java.lang.String" value="Contents"/>
72+
</Properties>
73+
</MenuItem>
74+
<MenuItem class="javax.swing.JMenuItem" name="aboutMenuItem">
75+
<Properties>
76+
<Property name="text" type="java.lang.String" value="About"/>
77+
</Properties>
78+
</MenuItem>
79+
</SubComponents>
80+
</Menu>
81+
<Menu class="javax.swing.JMenu" name="jMenu1">
82+
<Properties>
83+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
84+
<Color blue="0" green="0" red="cc" type="rgb"/>
85+
</Property>
86+
<Property name="text" type="java.lang.String" value="&#x6a21;&#x5757;"/>
87+
</Properties>
88+
<SubComponents>
89+
<MenuItem class="javax.swing.JMenuItem" name="jMenuItemUser">
90+
<Properties>
91+
<Property name="accelerator" type="javax.swing.KeyStroke" editor="org.netbeans.modules.form.editors.KeyStrokeEditor">
92+
<KeyStroke key="Ctrl+U"/>
93+
</Property>
94+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
95+
<Font name="Dialog" size="14" style="1"/>
96+
</Property>
97+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
98+
<Color blue="0" green="cc" red="0" type="rgb"/>
99+
</Property>
100+
<Property name="text" type="java.lang.String" value="&#x7528;&#x6237;"/>
101+
</Properties>
102+
<Events>
103+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItemUserActionPerformed"/>
104+
</Events>
105+
</MenuItem>
106+
<MenuItem class="javax.swing.JMenuItem" name="jMenuItemBook">
107+
<Properties>
108+
<Property name="accelerator" type="javax.swing.KeyStroke" editor="org.netbeans.modules.form.editors.KeyStrokeEditor">
109+
<KeyStroke key="Ctrl+B"/>
110+
</Property>
111+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
112+
<Font name="Dialog" size="14" style="1"/>
113+
</Property>
114+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
115+
<Color blue="33" green="cc" red="0" type="rgb"/>
116+
</Property>
117+
<Property name="text" type="java.lang.String" value="&#x56fe;&#x4e66;"/>
118+
</Properties>
119+
<Events>
120+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItemBookActionPerformed"/>
121+
</Events>
122+
</MenuItem>
123+
<MenuItem class="javax.swing.JMenuItem" name="jMenuItem2">
124+
<Properties>
125+
<Property name="accelerator" type="javax.swing.KeyStroke" editor="org.netbeans.modules.form.editors.KeyStrokeEditor">
126+
<KeyStroke key="Ctrl+I"/>
127+
</Property>
128+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
129+
<Font name="Dialog" size="14" style="1"/>
130+
</Property>
131+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
132+
<Color blue="0" green="cc" red="0" type="rgb"/>
133+
</Property>
134+
<Property name="text" type="java.lang.String" value="&#x8fdb;&#x8d27;"/>
135+
</Properties>
136+
<Events>
137+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItem2ActionPerformed"/>
138+
</Events>
139+
</MenuItem>
140+
<MenuItem class="javax.swing.JMenuItem" name="jMenuItem3">
141+
<Properties>
142+
<Property name="accelerator" type="javax.swing.KeyStroke" editor="org.netbeans.modules.form.editors.KeyStrokeEditor">
143+
<KeyStroke key="Ctrl+O"/>
144+
</Property>
145+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
146+
<Font name="Dialog" size="14" style="1"/>
147+
</Property>
148+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
149+
<Color blue="0" green="cc" red="0" type="rgb"/>
150+
</Property>
151+
<Property name="text" type="java.lang.String" value="&#x9500;&#x552e;"/>
152+
</Properties>
153+
<Events>
154+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItem3ActionPerformed"/>
155+
</Events>
156+
</MenuItem>
157+
<MenuItem class="javax.swing.JMenuItem" name="jMenuItem1">
158+
<Properties>
159+
<Property name="accelerator" type="javax.swing.KeyStroke" editor="org.netbeans.modules.form.editors.KeyStrokeEditor">
160+
<KeyStroke key="Ctrl+DELETE"/>
161+
</Property>
162+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
163+
<Font name="Dialog" size="14" style="1"/>
164+
</Property>
165+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
166+
<Color blue="0" green="cc" red="0" type="rgb"/>
167+
</Property>
168+
<Property name="text" type="java.lang.String" value="&#x6ce8;&#x9500;"/>
169+
</Properties>
170+
<Events>
171+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItem1ActionPerformed"/>
172+
</Events>
173+
</MenuItem>
174+
</SubComponents>
175+
</Menu>
176+
</SubComponents>
177+
</Menu>
178+
</NonVisualComponents>
179+
<Properties>
180+
<Property name="defaultCloseOperation" type="int" value="3"/>
181+
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
182+
<Dimension value="[800, 600]"/>
183+
</Property>
184+
</Properties>
185+
<SyntheticProperties>
186+
<SyntheticProperty name="menuBar" type="java.lang.String" value="menuBar"/>
187+
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
188+
</SyntheticProperties>
189+
<AuxValues>
190+
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
191+
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
192+
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
193+
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
194+
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
195+
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
196+
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
197+
</AuxValues>
198+
199+
<Layout>
200+
<DimensionLayout dim="0">
201+
<Group type="103" groupAlignment="0" attributes="0">
202+
<Group type="102" attributes="0">
203+
<Group type="103" groupAlignment="0" attributes="0">
204+
<Group type="102" attributes="0">
205+
<EmptySpace min="-2" pref="214" max="-2" attributes="0"/>
206+
<Component id="jLabel2" min="-2" pref="320" max="-2" attributes="0"/>
207+
</Group>
208+
<Group type="102" alignment="0" attributes="0">
209+
<EmptySpace min="-2" pref="34" max="-2" attributes="0"/>
210+
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
211+
</Group>
212+
</Group>
213+
<EmptySpace pref="307" max="32767" attributes="0"/>
214+
</Group>
215+
</Group>
216+
</DimensionLayout>
217+
<DimensionLayout dim="1">
218+
<Group type="103" groupAlignment="0" attributes="0">
219+
<Group type="102" alignment="0" attributes="0">
220+
<Component id="jLabel2" min="-2" pref="119" max="-2" attributes="0"/>
221+
<EmptySpace pref="358" max="32767" attributes="0"/>
222+
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
223+
<EmptySpace min="-2" pref="12" max="-2" attributes="0"/>
224+
</Group>
225+
</Group>
226+
</DimensionLayout>
227+
</Layout>
228+
<SubComponents>
229+
<Component class="javax.swing.JLabel" name="jLabel1">
230+
</Component>
231+
<Component class="javax.swing.JLabel" name="jLabel2">
232+
<Properties>
233+
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
234+
<Font name="Dialog" size="48" style="1"/>
235+
</Property>
236+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
237+
<Color blue="0" green="0" red="cc" type="rgb"/>
238+
</Property>
239+
<Property name="text" type="java.lang.String" value="&#x4e66;&#x5e97;&#x7ba1;&#x7406;&#x7cfb;&#x7edf;"/>
240+
</Properties>
241+
</Component>
242+
</SubComponents>
243+
</Form>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)