diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index b4d703968a488445345202ef8d45a35cc802aa03..0000000000000000000000000000000000000000
--- a/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-# Object file
-*.o
-
-# Ada Library Information
-*.ali
diff --git a/.idea/.gitignore b/.idea/.gitignore
deleted file mode 100644
index 5c98b428844d9f7d529e2b6fb918d15bf072f3df..0000000000000000000000000000000000000000
--- a/.idea/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-# Default ignored files
-/workspace.xml
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
deleted file mode 100644
index 11c91dcd06cfa9dc67510893c0b2a4397f996c7f..0000000000000000000000000000000000000000
--- a/.idea/encodings.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index deda55a83fa5af59cbe0c386ddebb8281679316e..0000000000000000000000000000000000000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index 979125aacaa34ec20facb1bed6f6fb654b900194..0000000000000000000000000000000000000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/se19_17200135122.iml b/.idea/se19_17200135122.iml
deleted file mode 100644
index ad9e3dc72ff168d1a597856354f170cb0b4354e6..0000000000000000000000000000000000000000
--- a/.idea/se19_17200135122.iml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 35eb1ddfbbc029bcab630581847471d7f238ec53..0000000000000000000000000000000000000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/README.en.md b/README.en.md
deleted file mode 100644
index a413474732316609d39c208a16faf8ccbf0e068a..0000000000000000000000000000000000000000
--- a/README.en.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# se19_17200135122
-
-#### Description
-se19_17200135122
-
-#### Software Architecture
-Software architecture description
-
-#### Installation
-
-1. 这是我的SE作业
-
-#### Instructions
-
-1.直接克隆就OK了
-
-#### Contribution
-
-1. Fork the repository
-2. Create Feat_xxx branch
-3. Commit your code
-4. Create Pull Request
-
-
-#### Gitee Feature
-
-1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
-2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
-3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
-4. The most valuable open source project [GVP](https://gitee.com/gvp)
-5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
-6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
\ No newline at end of file
diff --git a/README.md b/README.md
deleted file mode 100644
index a413474732316609d39c208a16faf8ccbf0e068a..0000000000000000000000000000000000000000
--- a/README.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# se19_17200135122
-
-#### Description
-se19_17200135122
-
-#### Software Architecture
-Software architecture description
-
-#### Installation
-
-1. 这是我的SE作业
-
-#### Instructions
-
-1.直接克隆就OK了
-
-#### Contribution
-
-1. Fork the repository
-2. Create Feat_xxx branch
-3. Commit your code
-4. Create Pull Request
-
-
-#### Gitee Feature
-
-1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
-2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
-3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
-4. The most valuable open source project [GVP](https://gitee.com/gvp)
-5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
-6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
\ No newline at end of file
diff --git a/hw1/.idea/misc.xml b/hw1/.idea/misc.xml
deleted file mode 100644
index 05483570e041eb648703359441d61bf9a5feeb13..0000000000000000000000000000000000000000
--- a/hw1/.idea/misc.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/hw1/.idea/modules.xml b/hw1/.idea/modules.xml
deleted file mode 100644
index 9b27cd1f8d45cd9ddf7d7d4e4e2aa74e7f1b7684..0000000000000000000000000000000000000000
--- a/hw1/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/hw1/.idea/vcs.xml b/hw1/.idea/vcs.xml
deleted file mode 100644
index 6c0b8635858dc7ad44b93df54b762707ce49eefc..0000000000000000000000000000000000000000
--- a/hw1/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/hw1/.idea/workspace.xml b/hw1/.idea/workspace.xml
deleted file mode 100644
index 3687456bb65dc52966005da18ecac0b865626466..0000000000000000000000000000000000000000
--- a/hw1/.idea/workspace.xml
+++ /dev/null
@@ -1,630 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ==
- JTextField
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 1568516528893
-
-
- 1568516528893
-
-
-
-
-
- 1568533976056
-
-
-
- 1568533976056
-
-
- 1568537863294
-
-
-
- 1568537863295
-
-
- 1568546155351
-
-
-
- 1568546155351
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- file://$PROJECT_DIR$/src/com/usts/edu/dao/AccountDaoImpl.java
- 22
-
-
-
-
- file://$PROJECT_DIR$/src/com/usts/edu/dao/AccountDaoImpl.java
- 23
-
-
-
-
- file://$PROJECT_DIR$/src/com/usts/edu/dao/AccountDaoImpl.java
- 24
-
-
-
-
- file://$PROJECT_DIR$/src/com/usts/edu/view/CostAddFrame.java
- 62
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- hw1
-
-
-
-
-
-
-
-
-
-
-
- 1.8
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git "a/hw1/17200135122_\350\203\241\345\206\240\344\270\255_\344\275\234\344\270\2321.docx" "b/hw1/17200135122_\350\203\241\345\206\240\344\270\255_\344\275\234\344\270\2321.docx"
deleted file mode 100644
index 9078cd1bbe0cf20eaeba3464d73d8d58ce38316f..0000000000000000000000000000000000000000
Binary files "a/hw1/17200135122_\350\203\241\345\206\240\344\270\255_\344\275\234\344\270\2321.docx" and /dev/null differ
diff --git a/hw1/hw1.iml b/hw1/hw1.iml
deleted file mode 100644
index eea5f3d3e03c43e140ca7905ccf247469730eb62..0000000000000000000000000000000000000000
--- a/hw1/hw1.iml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/hw1/out/production/hw1/T.class b/hw1/out/production/hw1/T.class
deleted file mode 100644
index 81a3cee37c9595e5d64e061800069d727fb53467..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/T.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/config/cs.properties b/hw1/out/production/hw1/com/usts/edu/config/cs.properties
deleted file mode 100644
index 94bddb857671c66478f924c196216d92a5b0dc3c..0000000000000000000000000000000000000000
--- a/hw1/out/production/hw1/com/usts/edu/config/cs.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-CS.DB.DRIVER=com.mysql.jdbc.Driver
-
-CS.DB.URL=jdbc:mysql://127.0.0.1:3306/ssf
-CS.DB.USER=root
-CS.DB.PASSWORD=123456
\ No newline at end of file
diff --git a/hw1/out/production/hw1/com/usts/edu/controller/MainController.class b/hw1/out/production/hw1/com/usts/edu/controller/MainController.class
deleted file mode 100644
index a0527eb940c67aeb16f551d4f7bda04390432d39..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/controller/MainController.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/dao/AccountDao.class b/hw1/out/production/hw1/com/usts/edu/dao/AccountDao.class
deleted file mode 100644
index f03178aad91143ebdab506c1957742df5b2d5166..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/dao/AccountDao.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/dao/AccountDaoImpl.class b/hw1/out/production/hw1/com/usts/edu/dao/AccountDaoImpl.class
deleted file mode 100644
index 4fdcfbe6a50760a3c98feb0e78f39803eb4befb4..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/dao/AccountDaoImpl.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/dao/CostDao.class b/hw1/out/production/hw1/com/usts/edu/dao/CostDao.class
deleted file mode 100644
index 08462418effda39303942ad31ff917cfe0599059..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/dao/CostDao.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/dao/CostDaoImpl.class b/hw1/out/production/hw1/com/usts/edu/dao/CostDaoImpl.class
deleted file mode 100644
index 8c797019f272303f63b545325b98e04348a61d9e..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/dao/CostDaoImpl.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/entity/Account.class b/hw1/out/production/hw1/com/usts/edu/entity/Account.class
deleted file mode 100644
index a0be2688443e2c5444d6bff8e807f5fc8f852772..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/entity/Account.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/entity/Cost.class b/hw1/out/production/hw1/com/usts/edu/entity/Cost.class
deleted file mode 100644
index 7dab23bbfa42f403a09c0dd3c46c05109b8f0def..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/entity/Cost.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/entity/Page.class b/hw1/out/production/hw1/com/usts/edu/entity/Page.class
deleted file mode 100644
index cb3bb5fe5bcfd2a7076533f300822eac598d1dc1..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/entity/Page.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/util/EncryptUtil.class b/hw1/out/production/hw1/com/usts/edu/util/EncryptUtil.class
deleted file mode 100644
index 4428688246a233b349a7f88aec70057e373badb2..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/util/EncryptUtil.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/util/InfoUtil.class b/hw1/out/production/hw1/com/usts/edu/util/InfoUtil.class
deleted file mode 100644
index b669ea3a3fb7706b296aa0f9f265c714d65e8e1c..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/util/InfoUtil.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/util/JdbcUtil.class b/hw1/out/production/hw1/com/usts/edu/util/JdbcUtil.class
deleted file mode 100644
index 20a945c48482beb9140fbe231e000d5a090e2ebc..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/util/JdbcUtil.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/util/RegExpUtil.class b/hw1/out/production/hw1/com/usts/edu/util/RegExpUtil.class
deleted file mode 100644
index c9ac75072236e2a1fd4d6b6deeaeac3d22b395fb..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/util/RegExpUtil.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostAddFrame$1.class b/hw1/out/production/hw1/com/usts/edu/view/CostAddFrame$1.class
deleted file mode 100644
index dc674c72a6f401a5b62e37cdb335ff26c691df75..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostAddFrame$1.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostAddFrame$2.class b/hw1/out/production/hw1/com/usts/edu/view/CostAddFrame$2.class
deleted file mode 100644
index d218b10ec704721639c4a7b8872ff02f2f0091b6..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostAddFrame$2.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostAddFrame$3.class b/hw1/out/production/hw1/com/usts/edu/view/CostAddFrame$3.class
deleted file mode 100644
index 21d86c1716f0585de9105c072565a05f669f2e90..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostAddFrame$3.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostAddFrame.class b/hw1/out/production/hw1/com/usts/edu/view/CostAddFrame.class
deleted file mode 100644
index c980d0e8a3d4de559cc3045180d8784cb31a8447..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostAddFrame.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostEditFrame$1.class b/hw1/out/production/hw1/com/usts/edu/view/CostEditFrame$1.class
deleted file mode 100644
index c46ef9afd6f2b3bc93e683a07e89b41f3fa39818..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostEditFrame$1.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostEditFrame$2.class b/hw1/out/production/hw1/com/usts/edu/view/CostEditFrame$2.class
deleted file mode 100644
index 7f123329a8818ec4b24aeadd130b80368192cfcb..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostEditFrame$2.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostEditFrame$3.class b/hw1/out/production/hw1/com/usts/edu/view/CostEditFrame$3.class
deleted file mode 100644
index 24fc4bce1b5d00bd18371dac6b2e7ac5e7fe74d1..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostEditFrame$3.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostEditFrame.class b/hw1/out/production/hw1/com/usts/edu/view/CostEditFrame.class
deleted file mode 100644
index 3890bc2bcac0887d62a2a5412364a20430a333bd..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostEditFrame.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$1.class b/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$1.class
deleted file mode 100644
index dc603ae86feb7bc31042b8e1c13c2adeedb25524..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$1.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$10.class b/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$10.class
deleted file mode 100644
index 448975bf4e3a7b7f003ad02ccaa11a643b104dbc..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$10.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$2.class b/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$2.class
deleted file mode 100644
index 24c9b313f856d35bd6d4beaff8e96681791e4b84..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$2.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$3.class b/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$3.class
deleted file mode 100644
index 2519cedbb0b113e9fcfaf9652cea6b9a68d4ab1f..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$3.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$4.class b/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$4.class
deleted file mode 100644
index 8877ae80150eadea2cce64465a70f88638936206..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$4.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$5.class b/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$5.class
deleted file mode 100644
index 9f5a57dc7d0931b6fd7e74746352d32dcb50e25b..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$5.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$6.class b/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$6.class
deleted file mode 100644
index 01ceb444f941b9906c1d08689acc34035e6b4beb..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$6.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$7.class b/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$7.class
deleted file mode 100644
index d6abb8d3f37f8feb443293d538703d504e91f355..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$7.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$8.class b/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$8.class
deleted file mode 100644
index ce4a9103a7cc22565e7d28e2b76bceb4511f006b..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$8.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$9.class b/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$9.class
deleted file mode 100644
index 1b415b17473aad39a1560b176608303f264e3722..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame$9.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame.class b/hw1/out/production/hw1/com/usts/edu/view/CostListFrame.class
deleted file mode 100644
index feec9a8a170e6f5b4a0271b1cb0161e997bb1b6a..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/CostListFrame.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/LoginFrame$1.class b/hw1/out/production/hw1/com/usts/edu/view/LoginFrame$1.class
deleted file mode 100644
index f930aa925407873039db1e9f28d697d9cb4e3182..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/LoginFrame$1.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/LoginFrame$2.class b/hw1/out/production/hw1/com/usts/edu/view/LoginFrame$2.class
deleted file mode 100644
index f7ca92dcbb72b3dfa855f16dcfc65557cc9ebbe5..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/LoginFrame$2.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/LoginFrame$3.class b/hw1/out/production/hw1/com/usts/edu/view/LoginFrame$3.class
deleted file mode 100644
index c873d0f02870a2fa661729cd22a31d3ae33eb9e3..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/LoginFrame$3.class and /dev/null differ
diff --git a/hw1/out/production/hw1/com/usts/edu/view/LoginFrame.class b/hw1/out/production/hw1/com/usts/edu/view/LoginFrame.class
deleted file mode 100644
index 6e0d313720339cd6a4b12eef13beb48426ed0d69..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/com/usts/edu/view/LoginFrame.class and /dev/null differ
diff --git a/hw1/out/production/hw1/images/btn_delete.png b/hw1/out/production/hw1/images/btn_delete.png
deleted file mode 100644
index ae5a677ebed070d1b72b2919ab9a2ebe7aa8b1f8..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/images/btn_delete.png and /dev/null differ
diff --git a/hw1/out/production/hw1/images/btn_edit.png b/hw1/out/production/hw1/images/btn_edit.png
deleted file mode 100644
index b1e738992e025b97f2cb047db0bcca7922b0b3ad..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/images/btn_edit.png and /dev/null differ
diff --git a/hw1/out/production/hw1/images/btn_exit.png b/hw1/out/production/hw1/images/btn_exit.png
deleted file mode 100644
index b0ea7f6495376aeec5c656a48755aac75931c662..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/images/btn_exit.png and /dev/null differ
diff --git a/hw1/out/production/hw1/mysql-connector-java-5.1.10-bin.jar b/hw1/out/production/hw1/mysql-connector-java-5.1.10-bin.jar
deleted file mode 100644
index 33c35c6ea7d836508eae86ca3cfcaa3d2dc52fcf..0000000000000000000000000000000000000000
Binary files a/hw1/out/production/hw1/mysql-connector-java-5.1.10-bin.jar and /dev/null differ
diff --git a/hw1/src/T.java b/hw1/src/T.java
deleted file mode 100644
index e78370dc889a12944d2262065280a05d3736740d..0000000000000000000000000000000000000000
--- a/hw1/src/T.java
+++ /dev/null
@@ -1,6 +0,0 @@
-public class T {
-
- public static void main(String[] args) {
- System.out.println(1);
- }
-}
diff --git a/hw1/src/com/usts/edu/config/cs.properties b/hw1/src/com/usts/edu/config/cs.properties
deleted file mode 100644
index 94bddb857671c66478f924c196216d92a5b0dc3c..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/config/cs.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-CS.DB.DRIVER=com.mysql.jdbc.Driver
-
-CS.DB.URL=jdbc:mysql://127.0.0.1:3306/ssf
-CS.DB.USER=root
-CS.DB.PASSWORD=123456
\ No newline at end of file
diff --git a/hw1/src/com/usts/edu/controller/MainController.java b/hw1/src/com/usts/edu/controller/MainController.java
deleted file mode 100644
index 72e2fdc6ae02999c7353cd4a284333ab1b6f98e2..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/controller/MainController.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.usts.edu.controller;
-
-import com.usts.edu.view.CostAddFrame;
-import com.usts.edu.view.CostEditFrame;
-import com.usts.edu.view.CostListFrame;
-import com.usts.edu.view.LoginFrame;
-
-public class MainController {
-
- public static void main(String[] args) {
- LoginFrame loginFrame = new LoginFrame();
- CostListFrame costListFrame = new CostListFrame();
- CostAddFrame costAddFrame = new CostAddFrame();
- CostEditFrame costEditFrame = new CostEditFrame();
- loginFrame.setCostListFrame(costListFrame);
- costListFrame.setLoginFrame(loginFrame);
- costListFrame.setCostAddFrame(costAddFrame);
- costAddFrame.setCostListFrame(costListFrame);
- costListFrame.setCostEditFrame(costEditFrame);
- costEditFrame.setCostListFrame(costListFrame);
- }
-}
diff --git a/hw1/src/com/usts/edu/dao/AccountDao.java b/hw1/src/com/usts/edu/dao/AccountDao.java
deleted file mode 100644
index bbbc5ba665646f44fc8360847787fdae2c081d06..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/dao/AccountDao.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.usts.edu.dao;
-
-import com.usts.edu.entity.Account;
-
-import java.util.List;
-
-
-
-
-public interface AccountDao {
-
- boolean checkAccountByAccount(Account account);
-
- void updateAccount_lastlogintimeByCurrentTime(String currenttime, String account_name);
-
-
-
-
-
-
-
-
-
-
-
-
-}
diff --git a/hw1/src/com/usts/edu/dao/AccountDaoImpl.java b/hw1/src/com/usts/edu/dao/AccountDaoImpl.java
deleted file mode 100644
index 75bc096d34b3e6759f9ff378c4f7d4f63e9b71d4..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/dao/AccountDaoImpl.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package com.usts.edu.dao;
-
-import com.usts.edu.entity.Account;
-import com.usts.edu.util.JdbcUtil;
-
-import java.sql.Connection;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.List;
-
-
-
-public class AccountDaoImpl implements AccountDao {
-
- private Connection conn = null ;
- private PreparedStatement ps = null ;
- private ResultSet rs = null ;
- @Override
- public boolean checkAccountByAccount(Account account) {
- System.out.println(account);
- String sql = "select * from t_account where account_name = ? and account_password = ? " ;
- conn = JdbcUtil.getConnection();
- boolean yn = false ;
- try {
- ps = conn.prepareStatement(sql);
- ps.setString(1, account.getAccount_name());
- ps.setString(2, account.getAccount_password());
- rs = ps.executeQuery();
- if(rs.next()){
- yn = true ;
- }
- } catch (SQLException e) {
- e.printStackTrace();
- }finally{
- JdbcUtil.release(rs, ps, conn);
- }
- return yn;
- }
- @Override
- public void updateAccount_lastlogintimeByCurrentTime(String currenttime , String account_name) {
- String sql = "update t_account set account_lastlogintime = ? where account_name = ? " ;
- conn = JdbcUtil.getConnection();
- try {
- ps = conn.prepareStatement(sql);
- ps.setString(1, currenttime);
- ps.setString(2, account_name);
- ps.executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- }finally{
- JdbcUtil.release(rs, ps, conn);
- }
- }
-}
diff --git a/hw1/src/com/usts/edu/dao/CostDao.java b/hw1/src/com/usts/edu/dao/CostDao.java
deleted file mode 100644
index 19b2454b1a57b99d75917a261e0b11e427c1d7c2..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/dao/CostDao.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package com.usts.edu.dao;
-
-import com.usts.edu.entity.Cost;
-import com.usts.edu.entity.Page;
-
-import java.util.List;
-
-
-
-
-public interface CostDao {
-
- int loadTotal_rows();
-
- List loadCostsByPage(Page page);
-
-
- Cost loadCostByCostID(int cost_id);
-
-
- boolean updateCostByCost(Cost cost);
-
-
- boolean deleteCostByCostID(int cost_id);
-
-
- boolean addCostByCost(Cost cost);
-
- int loadCostTotal_rowsByKey(String key);
-
- List loadCostsByPageAndKey(Page page, String key);
-}
diff --git a/hw1/src/com/usts/edu/dao/CostDaoImpl.java b/hw1/src/com/usts/edu/dao/CostDaoImpl.java
deleted file mode 100644
index 9ae183b61bb84436b7a7d50b1d902d3544dc138b..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/dao/CostDaoImpl.java
+++ /dev/null
@@ -1,255 +0,0 @@
-package com.usts.edu.dao;
-
-import com.usts.edu.entity.Cost;
-import com.usts.edu.entity.Page;
-import com.usts.edu.util.JdbcUtil;
-
-import java.sql.Connection;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.ArrayList;
-import java.util.List;
-
-
-public class CostDaoImpl implements CostDao {
- private Connection conn = null ;
- private PreparedStatement ps = null ;
- private ResultSet rs = null ;
-
- @Override
- public int loadTotal_rows() {
- String sql = "select count(*) total_rows from t_cost " ;
- int total_rows = 0 ;
- conn = JdbcUtil.getConnection();
- try {
- ps = conn.prepareStatement(sql);
- rs = ps.executeQuery();
- rs.next();
- total_rows =rs.getInt("total_rows");
- } catch (SQLException e) {
- e.printStackTrace();
- }finally{
- JdbcUtil.release(rs, ps, conn);
- }
- return total_rows;
- }
- @Override
- public List loadCostsByPage(Page page) {
- String sql = "select * from t_cost order by cost_addtime desc limit ? , ? " ;
- List costs = new ArrayList();
- conn = JdbcUtil.getConnection() ;
- try {
- ps = conn.prepareStatement(sql);
- ps.setInt(1, page.getOffset_row());
- ps.setInt(2, page.getPage_size());
- rs = ps.executeQuery();
- while(rs.next()){
- costs.add(
- new Cost(
- rs.getInt("cost_id"),
- rs.getString("cost_name"),
- rs.getString("cost_inex_type"),
- rs.getDouble("cost_amount"),
- rs.getString("cost_userleader"),
- rs.getString("cost_reterence"),
- rs.getString("cost_monitor"),
- rs.getString("cost_teacher"),
- rs.getString("cost_remarks"),
- rs.getTimestamp("cost_addtime")));
- }
- } catch (SQLException e) {
- e.printStackTrace();
- }
- return costs;
- }
- @Override
- public Cost loadCostByCostID(int cost_id) {
- String sql = "select * from t_cost where cost_id = ? " ;
- Cost cost = null ;
- conn = JdbcUtil.getConnection();
- try {
- ps = conn.prepareStatement(sql);
- ps.setInt(1, cost_id);
- rs = ps.executeQuery();
- if(rs.next()){
- cost = new Cost(
- rs.getInt("cost_id"),
- rs.getString("cost_name"),
- rs.getString("cost_inex_type"),
- rs.getDouble("cost_amount"),
- rs.getString("cost_userleader"),
- rs.getString("cost_reterence"),
- rs.getString("cost_monitor"),
- rs.getString("cost_teacher"),
- rs.getString("cost_remarks"),
- rs.getTimestamp("cost_addtime"));
- }
- } catch (SQLException e) {
- e.printStackTrace();
- }finally{
- JdbcUtil.release(rs, ps, conn);
- }
- return cost;
- }
- @Override
- public boolean updateCostByCost(Cost cost) {
- String sql = "update t_cost set "
- + " cost_name = ? , "
- + " cost_inex_type = ? , "
- + " cost_amount = ? , "
- + " cost_userleader = ? , "
- + " cost_reterence = ? , "
- + " cost_monitor = ? , "
- + " cost_teacher = ? , "
- + " cost_remarks = ? "
- + " where cost_id = ? " ;
- boolean yn = false ;
- conn = JdbcUtil.getConnection();
- try {
- ps = conn.prepareStatement(sql);
- ps.setString(1, cost.getCost_name());
- ps.setString(2, cost.getCost_inex_type());
- ps.setDouble(3, cost.getCost_amount());
- ps.setString(4 , cost.getCost_userleader());
- ps.setString(5, cost.getCost_reterence());
- ps.setString(6, cost.getCost_monitor());
- ps.setString(7, cost.getCost_teacher());
- ps.setString(8, cost.getCost_remarks());
- ps.setInt(9, cost.getCost_id());
- int executeUpdate = ps.executeUpdate();
- if(executeUpdate>0){
- yn = true ;
- }
- } catch (SQLException e) {
- e.printStackTrace();
- }finally{
- JdbcUtil.release(rs, ps, conn);
- }
- return yn;
- }
- @Override
- public boolean deleteCostByCostID(int cost_id) {
- String sql = "delete from t_cost where cost_id = ? " ;
- boolean yn = false ;
- conn = JdbcUtil.getConnection();
- try {
- ps = conn.prepareStatement(sql);
- ps.setInt(1, cost_id);
- int executeUpdate = ps.executeUpdate();
- if(executeUpdate>0){
- yn = true ;
- }
- } catch (SQLException e) {
- e.printStackTrace();
- }finally{
- JdbcUtil.release(rs, ps, conn);
- }
- return yn ;
- }
- @Override
- public boolean addCostByCost(Cost cost) {
- System.out.println("Cost======>"+cost);
- String sql = "insert into t_cost( "
- + "cost_name , "
- + "cost_inex_type ,"
- + "cost_amount,"
- + "cost_userleader, "
- + "cost_reterence ,"
- + "cost_monitor , "
- + "cost_teacher ,"
- + "cost_remarks"
- + ") values (?,?,?,?,?,?,?,?) " ;
- boolean yn = false ;
- conn = JdbcUtil.getConnection();
- try {
- ps = conn.prepareStatement(sql);
- ps.setString(1, cost.getCost_name());
- ps.setString(2, cost.getCost_inex_type());
- ps.setDouble(3, cost.getCost_amount());
- ps.setString(4 , cost.getCost_userleader());
- ps.setString(5, cost.getCost_reterence());
- ps.setString(6, cost.getCost_monitor());
- ps.setString(7, cost.getCost_teacher());
- ps.setString(8, cost.getCost_remarks());
- int executeUpdate = ps.executeUpdate();
- if(executeUpdate>0){
- yn = true ;
- }
- } catch (SQLException e) {
- e.printStackTrace();
- }finally{
- JdbcUtil.release(rs, ps, conn);
- }
- return yn;
- }
- @Override
- public int loadCostTotal_rowsByKey(String key) {
-
- StringBuffer sb = new StringBuffer();
- sb.append("select count(*) total_rows from t_cost ");
- if(key!=null){
- sb.append(" where cost_name like ? ");
- }
- String sql = sb.toString() ;
- int total_rows = 0 ;
- conn = JdbcUtil.getConnection();
- try {
- ps = conn.prepareStatement(sql);
- if(key!=null){
- ps.setString(1, "%"+key+"%");
- }
- rs = ps.executeQuery();
- if(rs.next()){
- total_rows = rs.getInt("total_rows");
- }
- } catch (SQLException e) {
- e.printStackTrace();
- }finally{
- JdbcUtil.release(rs, ps, conn);
- }
- return total_rows;
- }
- @Override
- public List loadCostsByPageAndKey(Page page, String key) {
- StringBuffer sb = new StringBuffer();
- sb.append("select * from t_cost ");
- if(key!=null){
- sb.append("where cost_name like ? ");
- }
- sb.append("order by cost_addtime desc limit ? , ? ");
- String sql = sb.toString() ;
- List costs = new ArrayList();
- conn = JdbcUtil.getConnection() ;
- try {
- ps = conn.prepareStatement(sql);
- if(key!=null){
- ps.setString(1, "%"+key+"%");
- ps.setInt(2, page.getOffset_row());
- ps.setInt(3, page.getPage_size());
- }else{
- ps.setInt(1, page.getOffset_row());
- ps.setInt(2, page.getPage_size());
- }
- rs = ps.executeQuery();
- while(rs.next()){
- costs.add(
- new Cost(
- rs.getInt("cost_id"),
- rs.getString("cost_name"),
- rs.getString("cost_inex_type"),
- rs.getDouble("cost_amount"),
- rs.getString("cost_userleader"),
- rs.getString("cost_reterence"),
- rs.getString("cost_monitor"),
- rs.getString("cost_teacher"),
- rs.getString("cost_remarks"),
- rs.getTimestamp("cost_addtime")));
- }
- } catch (SQLException e) {
- e.printStackTrace();
- }
- return costs;
- }
-
-}
diff --git a/hw1/src/com/usts/edu/entity/Account.java b/hw1/src/com/usts/edu/entity/Account.java
deleted file mode 100644
index 9ddcebe6b598356be79f5f12da35104b7d725b33..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/entity/Account.java
+++ /dev/null
@@ -1,89 +0,0 @@
-package com.usts.edu.entity;
-
-import java.io.Serializable;
-import java.sql.Timestamp;
-
-
-public class Account implements Serializable{
- private static final long serialVersionUID = 3319385094389760676L;
- private int account_id ;
- private String account_name ;
- private String account_password ;
- private String account_rosename ;
- private Timestamp account_addtime ;
- private String account_lastlogintime ;
- public Account(int account_id, String account_name,
- String account_password, String account_rosename,
- Timestamp account_addtime, String account_lastlogintime) {
- super();
- this.account_id = account_id;
- this.account_name = account_name;
- this.account_password = account_password;
- this.account_rosename = account_rosename;
- this.account_addtime = account_addtime;
- this.account_lastlogintime = account_lastlogintime;
- }
- public Account() {
- super();
- // TODO Auto-generated constructor stub
- }
- public Account(String account_name, String account_password,
- String account_rosename, String account_lastlogintime) {
- super();
- this.account_name = account_name;
- this.account_password = account_password;
- this.account_rosename = account_rosename;
- this.account_lastlogintime = account_lastlogintime;
- }
- public Account(String account_name, String account_password) {
- super();
- this.account_name = account_name;
- this.account_password = account_password;
- }
- public int getAccount_id() {
- return account_id;
- }
- public void setAccount_id(int account_id) {
- this.account_id = account_id;
- }
- public String getAccount_name() {
- return account_name;
- }
- public void setAccount_name(String account_name) {
- this.account_name = account_name;
- }
- public String getAccount_password() {
- return account_password;
- }
- public void setAccount_password(String account_password) {
- this.account_password = account_password;
- }
- public String getAccount_rosename() {
- return account_rosename;
- }
- public void setAccount_rosename(String account_rosename) {
- this.account_rosename = account_rosename;
- }
- public Timestamp getAccount_addtime() {
- return account_addtime;
- }
- public void setAccount_addtime(Timestamp account_addtime) {
- this.account_addtime = account_addtime;
- }
- public String getAccount_lastlogintime() {
- return account_lastlogintime;
- }
- public void setAccount_lastlogintime(String account_lastlogintime) {
- this.account_lastlogintime = account_lastlogintime;
- }
- @Override
- public String toString() {
- return "Account [account_id=" + account_id + ", account_name="
- + account_name + ", account_password=" + account_password
- + ", account_rosename=" + account_rosename
- + ", account_addtime=" + account_addtime
- + ", account_lastlogintime=" + account_lastlogintime + "]";
- }
-
-
-}
diff --git a/hw1/src/com/usts/edu/entity/Cost.java b/hw1/src/com/usts/edu/entity/Cost.java
deleted file mode 100644
index c79f0a4ca0d2127e19c9521250f5cb163f0f1f06..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/entity/Cost.java
+++ /dev/null
@@ -1,125 +0,0 @@
-package com.usts.edu.entity;
-
-import java.sql.Timestamp;
-
-
-public class Cost {
- private int cost_id ;
- private String cost_name ;
- private String cost_inex_type ;
- private double cost_amount ;
- private String cost_userleader ;
- private String cost_reterence ;
- private String cost_monitor ;
- private String cost_teacher ;
- private String cost_remarks ;
- private Timestamp cost_addtime ;
- public Cost() {
- super();
- // TODO Auto-generated constructor stub
- }
- public Cost(int cost_id, String cost_name, String cost_inex_type,
- double cost_amount, String cost_userleader, String cost_reterence,
- String cost_monitor, String cost_teacher, String cost_remarks,
- Timestamp cost_addtime) {
- super();
- this.cost_id = cost_id;
- this.cost_name = cost_name;
- this.cost_inex_type = cost_inex_type;
- this.cost_amount = cost_amount;
- this.cost_userleader = cost_userleader;
- this.cost_reterence = cost_reterence;
- this.cost_monitor = cost_monitor;
- this.cost_teacher = cost_teacher;
- this.cost_remarks = cost_remarks;
- this.cost_addtime = cost_addtime;
- }
- public Cost(String cost_name, String cost_inex_type, double cost_amount,
- String cost_userleader, String cost_reterence, String cost_monitor,
- String cost_teacher, String cost_remarks) {
- super();
- this.cost_name = cost_name;
- this.cost_inex_type = cost_inex_type;
- this.cost_amount = cost_amount;
- this.cost_userleader = cost_userleader;
- this.cost_reterence = cost_reterence;
- this.cost_monitor = cost_monitor;
- this.cost_teacher = cost_teacher;
- this.cost_remarks = cost_remarks;
- }
- //�����˵� shift+alt+s
- //
- public int getCost_id() {
- return cost_id;
- }
- public void setCost_id(int cost_id) {
- this.cost_id = cost_id;
- }
- public String getCost_name() {
- return cost_name;
- }
- public void setCost_name(String cost_name) {
- this.cost_name = cost_name;
- }
- public String getCost_inex_type() {
- return cost_inex_type;
- }
- public void setCost_inex_type(String cost_inex_type) {
- this.cost_inex_type = cost_inex_type;
- }
- public double getCost_amount() {
- return cost_amount;
- }
- public void setCost_amount(double cost_amount) {
- this.cost_amount = cost_amount;
- }
- public String getCost_userleader() {
- return cost_userleader;
- }
- public void setCost_userleader(String cost_userleader) {
- this.cost_userleader = cost_userleader;
- }
- public String getCost_reterence() {
- return cost_reterence;
- }
- public void setCost_reterence(String cost_reterence) {
- this.cost_reterence = cost_reterence;
- }
- public String getCost_monitor() {
- return cost_monitor;
- }
- public void setCost_monitor(String cost_monitor) {
- this.cost_monitor = cost_monitor;
- }
- public String getCost_teacher() {
- return cost_teacher;
- }
- public void setCost_teacher(String cost_teacher) {
- this.cost_teacher = cost_teacher;
- }
- public String getCost_remarks() {
- return cost_remarks;
- }
- public void setCost_remarks(String cost_remarks) {
- this.cost_remarks = cost_remarks;
- }
- public Timestamp getCost_addtime() {
- return cost_addtime;
- }
- public void setCost_addtime(Timestamp cost_addtime) {
- this.cost_addtime = cost_addtime;
- }
- @Override
- public String toString() {
- return "Cost [cost_id=" + cost_id + ", cost_name=" + cost_name
- + ", cost_inex_type=" + cost_inex_type + ", cost_amount="
- + cost_amount + ", cost_userleader=" + cost_userleader
- + ", cost_reterence=" + cost_reterence + ", cost_monitor="
- + cost_monitor + ", cost_teacher=" + cost_teacher
- + ", cost_remarks=" + cost_remarks + ", cost_addtime="
- + cost_addtime + "]";
- }
-
-
-
-}
diff --git a/hw1/src/com/usts/edu/entity/Page.java b/hw1/src/com/usts/edu/entity/Page.java
deleted file mode 100644
index 4e81a8a300ff24a07ba8dd4aa3a070ccf8572ede..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/entity/Page.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package com.usts.edu.entity;
-
-import java.io.Serializable;
-
-
-public class Page implements Serializable {
- private static final long serialVersionUID = 6976714636000490818L;
- private int total_rows ;
- private int current_page ;
- private int page_size ;
- private int offset_row ;
- private int total_page ;
- public Page(int total_rows, int current_page, int page_size) {
- super();
- this.total_rows = total_rows;
- this.current_page = current_page;
- this.page_size = page_size;
-
- this.total_page = this.total_rows % this.page_size == 0 ? this.total_rows / this.page_size : this.total_rows / this.page_size + 1 ;
-
- this.offset_row = ( this.current_page - 1 ) * this.page_size ;
-// (1-1)*4 == 0
-// (2-1)*4 == 4
-// limit 0 , 4
-// limit 4 , 4
-
- }
- public int getTotal_rows() {
- return total_rows;
- }
- public void setTotal_rows(int total_rows) {
- this.total_rows = total_rows;
- }
- public int getCurrent_page() {
- return current_page;
- }
- public void setCurrent_page(int current_page) {
- this.current_page = current_page;
- }
- public int getPage_size() {
- return page_size;
- }
- public void setPage_size(int page_size) {
- this.page_size = page_size;
- }
- public int getOffset_row() {
- return offset_row;
- }
- public void setOffset_row(int offset_row) {
- this.offset_row = offset_row;
- }
- public int getTotal_page() {
- return total_page;
- }
- public void setTotal_page(int total_page) {
- this.total_page = total_page;
- }
- @Override
- public String toString() {
- return "Page [total_rows=" + total_rows + ", current_page="
- + current_page + ", page_size=" + page_size + ", offset_row="
- + offset_row + ", total_page=" + total_page + "]";
- }
-}
diff --git a/hw1/src/com/usts/edu/util/EncryptUtil.java b/hw1/src/com/usts/edu/util/EncryptUtil.java
deleted file mode 100644
index 48a65e01be738cf880160b2e3ae12ca925a5e1f3..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/util/EncryptUtil.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package com.usts.edu.util;
-
-import java.io.UnsupportedEncodingException;
-import java.security.MessageDigest;
-import java.security.NoSuchAlgorithmException;
-
-import sun.misc.BASE64Encoder;
-
-/**
- * @ClassName: EncrypteUtil
- * @Description: ���ܹ�����
- * @author: hgz
- */
-public class EncryptUtil {
-
- public static String encrypt(String str){
- String sha = null ;
- try {
- MessageDigest digest = MessageDigest.getInstance("SHA");
- digest.update(str.getBytes("UTF-8"));
- byte[] sha_d = digest.digest();
- BASE64Encoder base64en = new BASE64Encoder();
- sha = base64en.encode(sha_d);
- } catch (NoSuchAlgorithmException e) {
- e.printStackTrace();
- } catch (UnsupportedEncodingException e) {
- e.printStackTrace();
- }
- return sha ;
- }
-
- public static void main(String[] args) {
- System.out.println(EncryptUtil.encrypt("123123"));
- }
-
-}
diff --git a/hw1/src/com/usts/edu/util/InfoUtil.java b/hw1/src/com/usts/edu/util/InfoUtil.java
deleted file mode 100644
index b82fb3f13f271df8690f1c180e3f4f56b532ab3e..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/util/InfoUtil.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.usts.edu.util;
-
-public class InfoUtil {
-
- public static final String SYSTEM_NAME = "班费管理系统" ;
- public static final String LOGINFRAME_TITLE = "登录界面" ;
- public static final String COSTLISTFRAME_TITLE = "款项列表界面" ;
- public static final String COSTADDFRAME_TITLE = "款项添加界面" ;
- public static final String COSTEDITFRAME_TITLE = "款项修改界面" ;
-}
diff --git a/hw1/src/com/usts/edu/util/JdbcUtil.java b/hw1/src/com/usts/edu/util/JdbcUtil.java
deleted file mode 100644
index 922328d6247fc109b7332b2ff9dc49c74020c50a..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/util/JdbcUtil.java
+++ /dev/null
@@ -1,77 +0,0 @@
-package com.usts.edu.util;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.sql.Connection;
-import java.sql.DriverManager;
-import java.sql.PreparedStatement;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.Properties;
-
-
-public class JdbcUtil {
- private static String driver ="com.mysql.jdbc.Driver";
- private static String url ="jdbc:mysql://localhost:3306/ssf?useUnicode=true&characterEncoding=utf-8";
- private static String user ="root";
- private static String password ="123456";
- private static Properties pp = new Properties();
-// static{
-// InputStream is = JdbcUtil.class.getClassLoader().getResourceAsStream("com.usts.edu.config.cs.properties");
-// try {
-// pp.load(is);
-// driver = pp.getProperty("CS.DB.DRIVER");
-// url = pp.getProperty("CS.DB.URL");
-// user = pp.getProperty("CS.DB.USER");
-// password = pp.getProperty("CS.DB.PASSWORD");
-//
-// Class.forName(driver);
-//
-// } catch (IOException e) {
-// e.printStackTrace();
-// } catch (ClassNotFoundException e) {
-// e.printStackTrace();
-// }
-// }
-
- public static Connection getConnection(){
- Connection conn = null ;
- try {
- conn = DriverManager.getConnection(url, user, password);
- } catch (SQLException e) {
- e.printStackTrace();
- }
- return conn ;
- }
-
- public static void release(
- ResultSet rs ,
- PreparedStatement ps ,
- Connection conn ){
- if(rs!=null){
- try {
- rs.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- if(ps!=null){
- try {
- ps.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- if(conn!=null){
- try {
- conn.close();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- }
-
- public static void main(String[] args) {
- System.out.println(JdbcUtil.getConnection());
- }
-}
diff --git a/hw1/src/com/usts/edu/util/RegExpUtil.java b/hw1/src/com/usts/edu/util/RegExpUtil.java
deleted file mode 100644
index 9bc8fe4f4f4ee253bb014d00ef172ea21f8a71df..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/util/RegExpUtil.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package com.usts.edu.util;
-
-import java.util.regex.Pattern;
-
-
-public class RegExpUtil {
-
- public static boolean isNull(String str){
- boolean yn = false ;
- if(str!=null){
- yn = true;
- }
- return yn ;
- }
- private final static String ACCOUNT_PASSWORD_REGEXP = "[0-9]{6,20}" ;
-
- public static boolean checkAccount_password(String account_password){
- return Pattern.matches(ACCOUNT_PASSWORD_REGEXP, account_password);
- }
-
- private final static String ACCOUNT_NAME_REGEXP = "[a-zA-Z0-9_]{5,30}" ;
-
- public static boolean checkAccount_name(String account_name){
- return Pattern.matches(ACCOUNT_NAME_REGEXP, account_name);
- }
-
- public static void main(String[] args) {
- System.out.println(checkAccount_name(""));
- }
-}
diff --git a/hw1/src/com/usts/edu/view/CostAddFrame.java b/hw1/src/com/usts/edu/view/CostAddFrame.java
deleted file mode 100644
index e20b3776b4a5c5336fecf9fcb633190f26aac0d0..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/view/CostAddFrame.java
+++ /dev/null
@@ -1,168 +0,0 @@
-package com.usts.edu.view;
-import com.usts.edu.dao.CostDao;
-import com.usts.edu.dao.CostDaoImpl;
-import com.usts.edu.entity.Cost;
-import com.usts.edu.util.InfoUtil;
-import com.usts.edu.view.CostListFrame;
-
-import java.awt.Font;
-import java.awt.GridLayout;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-
-import javax.swing.JButton;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JPanel;
-import javax.swing.JTextField;
-
-/**
- * @ClassName: CostAddFrame
- * @Description: 款项添加界面
- * @author: Huguanzhong
- * @date: 2019年9月14日 上午8:11:02
- */
-
-public class CostAddFrame extends JFrame {
- private static final long serialVersionUID = -6488867292570595115L;
-
- private CostDao costDao = new CostDaoImpl();
-
- private CostListFrame costListFrame ;
- public void setCostListFrame(CostListFrame costListFrame) {
- this.costListFrame = costListFrame;
- }
- public CostAddFrame(){
- initCostAddFrame();
- }
- private void initCostAddFrame() {
- this.setAlwaysOnTop(true);
- this.setSize(800, 600);
- this.setTitle(InfoUtil.COSTADDFRAME_TITLE+"-"+InfoUtil.SYSTEM_NAME);
- this.setResizable(false); //不允许修改尺寸
- this.setLocationRelativeTo(null); //当前界面位置不想对于其它界面 即 居中
- this.setUndecorated(true);//去掉边框及标题
- initCostAddPanel();
- this.add(jp_ca);
-
- }
- private JPanel jp_ca ;
- private void initCostAddPanel() {
- jp_ca = new JPanel(new GridLayout(6, 1));
-
- //添加标题
- JPanel jp_ca_title = new JPanel();
- JLabel jl_ca_title = new JLabel("添加款项记录");
- jl_ca_title.setFont(new Font("Microsoft YaHei", Font.BOLD, 26));
- jp_ca_title.add(jl_ca_title);
- jp_ca.add(jp_ca_title);
-
- //添加第一行输入框
- JPanel jp_ca_input_first = new JPanel();
- JLabel jl_ca_input_f_name = new JLabel("款项收支名称:");
- final JTextField jtf_ca_input_f_name = new JTextField(18);
- jp_ca_input_first.add(jl_ca_input_f_name);
- jp_ca_input_first.add(jtf_ca_input_f_name);
- jp_ca_input_first.add(new JLabel(" ")); //横向两组分割作用
- JLabel jl_ca_input_f_indextype = new JLabel("款项收支类型:");
- final JTextField jtf_ca_input_f_indextype = new JTextField(18);
- jp_ca_input_first.add(jl_ca_input_f_indextype);
- jp_ca_input_first.add(jtf_ca_input_f_indextype);
- jp_ca.add(jp_ca_input_first);
- //添加第二行输入框
- JPanel jp_ca_input_second = new JPanel();
- JLabel jl_ca_input_s_amount = new JLabel("款项收支金额:");
- final JTextField jtf_ca_input_s_amount = new JTextField(18);
- jp_ca_input_second.add(jl_ca_input_s_amount);
- jp_ca_input_second.add(jtf_ca_input_s_amount);
- jp_ca_input_second.add(new JLabel(" ")); //横向两组分割作用
- JLabel jl_ca_input_s_remarks = new JLabel("款项收支备注:");
- final JTextField jtf_ca_input_s_remarks = new JTextField(18);
- jp_ca_input_second.add(jl_ca_input_s_remarks);
- jp_ca_input_second.add(jtf_ca_input_s_remarks);
- jp_ca.add(jp_ca_input_second);
- //添加第三行输入框
- JPanel jp_ca_input_third = new JPanel();
- JLabel jl_ca_input_t_useleader = new JLabel("款项收支负责:");
- final JTextField jtf_ca_input_t_useleader = new JTextField(18);
- jp_ca_input_third.add(jl_ca_input_t_useleader);
- jp_ca_input_third.add(jtf_ca_input_t_useleader);
- jp_ca_input_third.add(new JLabel(" ")); //横向两组分割作用
- JLabel jl_ca_input_t_reterence = new JLabel("款项收支证明:");
- final JTextField jtf_ca_input_t_reterence = new JTextField(18);
- jp_ca_input_third.add(jl_ca_input_t_reterence);
- jp_ca_input_third.add(jtf_ca_input_t_reterence);
- jp_ca.add(jp_ca_input_third);
- //添加第四行输入框
- JPanel jp_ca_input_forth = new JPanel();
- JLabel jl_ca_input_fo_monitor = new JLabel("款项收支干部:");
- final JTextField jtf_ca_input_fo_monitor = new JTextField(18);
- jp_ca_input_forth.add(jl_ca_input_fo_monitor);
- jp_ca_input_forth.add(jtf_ca_input_fo_monitor);
- jp_ca_input_forth.add(new JLabel(" ")); //横向两组分割作用
- JLabel jl_ca_input_fo_teacher = new JLabel("款项收支老师:");
- final JTextField jtf_ca_input_fo_teacher = new JTextField(18);
- jp_ca_input_forth.add(jl_ca_input_fo_teacher);
- jp_ca_input_forth.add(jtf_ca_input_fo_teacher);
- jp_ca.add(jp_ca_input_forth);
- //添加操作按钮
- JPanel jp_ca_operate = new JPanel();
- JButton btn_ca_o_yes = new JButton("确认添加");
- btn_ca_o_yes.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- //获取所有输入控件的值
- //数据过滤
- String cost_name = jtf_ca_input_f_name.getText();
- System.out.println("总名称====================》"+cost_name);
- String cost_inex_type = jtf_ca_input_f_indextype.getText();
- double cost_amount = Double.parseDouble(jtf_ca_input_s_amount.getText());
- String cost_remarks = jtf_ca_input_s_remarks.getText();
- String cost_userleader = jtf_ca_input_t_useleader.getText();
- String cost_reterence = jtf_ca_input_t_reterence.getText();
- String cost_monitor = jtf_ca_input_fo_monitor.getText();
- String cost_teacher = jtf_ca_input_fo_teacher.getText();
- //封装成Java对象 cost
- Cost cost = new Cost(cost_name, cost_inex_type, cost_amount, cost_userleader, cost_reterence, cost_monitor, cost_teacher, cost_remarks);
- //调用dao层的add方法写入数据表
- costDao.addCostByCost(cost);
- //主动渲染listFrame的界面
- costListFrame.render(1 , null);
- //隐藏自己 显示ListFrame
- CostAddFrame.this.setVisible(false);
- costListFrame.setVisible(true);
- }
- });
- JButton btn_ca_o_cancel = new JButton("取 消");
- btn_ca_o_cancel.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- CostAddFrame.this.setVisible(false);
- costListFrame.setVisible(true);
- }
- });
- JButton btn_ca_o_reset = new JButton("重 置");
- btn_ca_o_reset.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- //清空所有的输入框
- jtf_ca_input_f_name.setText("");
- jtf_ca_input_f_indextype.setText("");
- jtf_ca_input_s_amount.setText("");
- jtf_ca_input_s_remarks.setText("");
- jtf_ca_input_t_useleader.setText("");
- jtf_ca_input_t_reterence.setText("");
- jtf_ca_input_fo_monitor.setText("");
- jtf_ca_input_fo_teacher.setText("");
- }
- });
- jp_ca_operate.add(btn_ca_o_yes);
- jp_ca_operate.add(btn_ca_o_cancel);
- jp_ca_operate.add(btn_ca_o_reset);
- jp_ca.add(jp_ca_operate);
- }
-
- public static void main(String[] args) {
- new CostAddFrame();
- }
-}
diff --git a/hw1/src/com/usts/edu/view/CostEditFrame.java b/hw1/src/com/usts/edu/view/CostEditFrame.java
deleted file mode 100644
index d8c919345d20377636866763b526e3abaaba9dc1..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/view/CostEditFrame.java
+++ /dev/null
@@ -1,201 +0,0 @@
-package com.usts.edu.view;
-
-import com.usts.edu.dao.CostDao;
-import com.usts.edu.dao.CostDaoImpl;
-import com.usts.edu.entity.Cost;
-import com.usts.edu.util.InfoUtil;
-
-import java.awt.Font;
-import java.awt.GridLayout;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-
-import javax.swing.JButton;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JPanel;
-import javax.swing.JTextField;
-
-/**
- * @ClassName: CostEditFrame
- * @Description: 款项修改界面
- * @author: Huguanzhong
- * @date: 2019年9月14日 上午15::41:11
- */
-public class CostEditFrame extends JFrame {
- private static final long serialVersionUID = -6488867292570595115L;
-
- private CostDao costDao = new CostDaoImpl() ;
-
- private int current_page ;
- public void setCurrent_page(int current_page) {
- this.current_page = current_page;
- }
-
- private String key ;
- public void setKey(String key) {
- this.key = key;
- }
-
- private Cost cost ;
- public void setCost(Cost cost) {
- this.cost = cost;
- }
-
- private CostListFrame costListFrame ;
- public void setCostListFrame(CostListFrame costListFrame) {
- this.costListFrame = costListFrame;
- }
-
- public CostEditFrame(){
- initCostEditFrame();
- }
- private void initCostEditFrame() {
- this.setAlwaysOnTop(true);
- this.setSize(800, 600);
- this.setTitle(InfoUtil.COSTEDITFRAME_TITLE+"-"+InfoUtil.SYSTEM_NAME);
-// this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- this.setResizable(false); //不允许修改尺寸
- this.setLocationRelativeTo(null); //当前界面位置不想对于其它界面 即 居中
- this.setUndecorated(true);//去掉边框及标题
- initCostEditPanel();
- this.add(jp_ca);
-
-// this.setVisible(true);
- }
- private JPanel jp_ca ;
- private void initCostEditPanel() {
- jp_ca = new JPanel(new GridLayout(6, 1));
- }
-
- public void render_costEditPanel(){
- jp_ca.removeAll();//清空当前面板的所有内容控件
-
-
- //添加标题
- JPanel jp_ca_title = new JPanel();
- JLabel jl_ca_title = new JLabel("修改款项记录");
- jl_ca_title.setFont(new Font("Microsoft YaHei", Font.BOLD, 26));
- jp_ca_title.add(jl_ca_title);
- jp_ca.add(jp_ca_title);
-
- //添加第一行输入框
- JPanel jp_ca_input_first = new JPanel();
- JLabel jl_ca_input_f_name = new JLabel("款项收支名称:");
- final JTextField jtf_ca_input_f_name = new JTextField(18);
- jtf_ca_input_f_name.setText(cost.getCost_name());
- jp_ca_input_first.add(jl_ca_input_f_name);
- jp_ca_input_first.add(jtf_ca_input_f_name);
- jp_ca_input_first.add(new JLabel(" ")); //横向两组分割作用
- JLabel jl_ca_input_f_indextype = new JLabel("款项收支类型:");
- final JTextField jtf_ca_input_f_indextype = new JTextField(18);
- jtf_ca_input_f_indextype.setText(cost.getCost_inex_type());
- jp_ca_input_first.add(jl_ca_input_f_indextype);
- jp_ca_input_first.add(jtf_ca_input_f_indextype);
- jp_ca.add(jp_ca_input_first);
- //添加第二行输入框
- JPanel jp_ca_input_second = new JPanel();
- JLabel jl_ca_input_s_amount = new JLabel("款项收支金额:");
- final JTextField jtf_ca_input_s_amount = new JTextField(18);
- jtf_ca_input_s_amount.setText(cost.getCost_amount()+"");
- jp_ca_input_second.add(jl_ca_input_s_amount);
- jp_ca_input_second.add(jtf_ca_input_s_amount);
- jp_ca_input_second.add(new JLabel(" ")); //横向两组分割作用
- JLabel jl_ca_input_s_remarks = new JLabel("款项收支备注:");
- final JTextField jtf_ca_input_s_remarks = new JTextField(18);
- jtf_ca_input_s_remarks.setText(cost.getCost_remarks());
- jp_ca_input_second.add(jl_ca_input_s_remarks);
- jp_ca_input_second.add(jtf_ca_input_s_remarks);
- jp_ca.add(jp_ca_input_second);
- //添加第三行输入框
- JPanel jp_ca_input_third = new JPanel();
- JLabel jl_ca_input_t_useleader = new JLabel("款项收支负责:");
- final JTextField jtf_ca_input_t_useleader = new JTextField(18);
- jtf_ca_input_t_useleader.setText(cost.getCost_userleader());
- jp_ca_input_third.add(jl_ca_input_t_useleader);
- jp_ca_input_third.add(jtf_ca_input_t_useleader);
- jp_ca_input_third.add(new JLabel(" ")); //横向两组分割作用
- JLabel jl_ca_input_t_reterence = new JLabel("款项收支证明:");
- final JTextField jtf_ca_input_t_reterence = new JTextField(18);
- jtf_ca_input_t_reterence.setText(cost.getCost_reterence());
- jp_ca_input_third.add(jl_ca_input_t_reterence);
- jp_ca_input_third.add(jtf_ca_input_t_reterence);
- jp_ca.add(jp_ca_input_third);
- //添加第四行输入框
- JPanel jp_ca_input_forth = new JPanel();
- JLabel jl_ca_input_fo_monitor = new JLabel("款项收支干部:");
- final JTextField jtf_ca_input_fo_monitor = new JTextField(18);
- jtf_ca_input_fo_monitor.setText(cost.getCost_monitor());
- jp_ca_input_forth.add(jl_ca_input_fo_monitor);
- jp_ca_input_forth.add(jtf_ca_input_fo_monitor);
- jp_ca_input_forth.add(new JLabel(" ")); //横向两组分割作用
- JLabel jl_ca_input_fo_teacher = new JLabel("款项收支老师:");
- final JTextField jtf_ca_input_fo_teacher = new JTextField(18);
- jtf_ca_input_fo_teacher.setText(cost.getCost_teacher());
- jp_ca_input_forth.add(jl_ca_input_fo_teacher);
- jp_ca_input_forth.add(jtf_ca_input_fo_teacher);
- jp_ca.add(jp_ca_input_forth);
-
- //添加操作按钮
- JPanel jp_ca_operate = new JPanel();
- JButton btn_ca_o_yes = new JButton("确认修改");
- btn_ca_o_yes.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- //获取所有数据
- //数据过滤
- String cost_name = jtf_ca_input_f_name.getText();
- String cost_inex_type = jtf_ca_input_f_indextype.getText();
- double cost_amount = Double.parseDouble(jtf_ca_input_s_amount.getText());
- String cost_remarks = jtf_ca_input_s_remarks.getText();
- String cost_userleader = jtf_ca_input_t_useleader.getText();
- String cost_reterence = jtf_ca_input_t_reterence.getText();
- String cost_monitor = jtf_ca_input_fo_monitor.getText();
- String cost_teacher = jtf_ca_input_fo_teacher.getText();
- //封装成cost对象
- Cost cost1 = new Cost(cost_name, cost_inex_type, cost_amount, cost_userleader, cost_reterence, cost_monitor, cost_teacher, cost_remarks);
- cost1.setCost_id(cost.getCost_id());
- //调用dao更新数据表
- costDao.updateCostByCost(cost1);
- //让costListFrame重新渲染
- //key必须是真实存在的,不能直接给null
- costListFrame.render(current_page , key);
- //显示与隐藏
- CostEditFrame.this.setVisible(false);
- costListFrame.setVisible(true);
- }
- });
- JButton btn_ca_o_cancel = new JButton("取 消");
- btn_ca_o_cancel.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- CostEditFrame.this.setVisible(false);
- costListFrame.setVisible(true);
- }
- });
- JButton btn_ca_o_reset = new JButton("重 置");
- btn_ca_o_reset.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- //清空所有的输入框
- jtf_ca_input_f_name.setText("");
- jtf_ca_input_f_indextype.setText("");
- jtf_ca_input_s_amount.setText("");
- jtf_ca_input_s_remarks.setText("");
- jtf_ca_input_t_useleader.setText("");
- jtf_ca_input_t_reterence.setText("");
- jtf_ca_input_fo_monitor.setText("");
- jtf_ca_input_fo_teacher.setText("");
- }
- });
- jp_ca_operate.add(btn_ca_o_yes);
- jp_ca_operate.add(btn_ca_o_cancel);
- jp_ca_operate.add(btn_ca_o_reset);
- jp_ca.add(jp_ca_operate);
- }
-
- //在英文输入法中 alt+shift+x , j
- public static void main(String[] args) {
- new CostEditFrame();
- }
-}
diff --git a/hw1/src/com/usts/edu/view/CostListFrame.java b/hw1/src/com/usts/edu/view/CostListFrame.java
deleted file mode 100644
index 7533621dd50423c172ce9b88689ee2a910a1ddc5..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/view/CostListFrame.java
+++ /dev/null
@@ -1,327 +0,0 @@
-package com.usts.edu.view;
-
-import com.usts.edu.dao.CostDao;
-import com.usts.edu.dao.CostDaoImpl;
-import com.usts.edu.entity.Cost;
-import com.usts.edu.entity.Page;
-import com.usts.edu.util.InfoUtil;
-
-import java.awt.BorderLayout;
-import java.awt.Dimension;
-import java.awt.Font;
-import java.awt.GridLayout;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.ItemEvent;
-import java.awt.event.ItemListener;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.swing.ImageIcon;
-import javax.swing.JButton;
-import javax.swing.JComboBox;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JOptionPane;
-import javax.swing.JPanel;
-import javax.swing.JScrollPane;
-import javax.swing.JTextField;
-
-/**
- * @ClassName: CostListFrame
- * @Description: 款项列表界面
- * @author: Huguanzhong
- * @date: 2019年9月14日 上午10:44:25
- */
-public class CostListFrame extends JFrame {
-
- private CostDao costDao = new CostDaoImpl() ;
-
- //定义一个AddFrame类型的变量
- private CostAddFrame costAddFrame ;
- public void setCostAddFrame(CostAddFrame costAddFrame) {
- this.costAddFrame = costAddFrame;
- }
- private CostEditFrame costEditFrame ;
- public void setCostEditFrame(CostEditFrame costEditFrame) {
- this.costEditFrame = costEditFrame;
- }
- private LoginFrame loginFrame ;
- public void setLoginFrame(LoginFrame loginFrame) {
- this.loginFrame = loginFrame;
- }
- //可序列化版本标识常量
- private static final long serialVersionUID = 7890431065691376577L;
- //在构造器中完成界面初始化工作
- public CostListFrame() {
- initCostListFrame();
- }
- private void initCostListFrame() { //初始化Frame窗口
- this.setSize(800, 600);
- this.setTitle(InfoUtil.COSTLISTFRAME_TITLE+"-"+InfoUtil.SYSTEM_NAME);
-// this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- this.setAlwaysOnTop(true); //窗口始终处在最前端
- this.setResizable(false); //不允许修改尺寸
- this.setLocationRelativeTo(null); //当前界面位置不想对于其它界面 即 居中
- this.setUndecorated(true);//去掉边框及标题
- //调用初始化画纸(主面板)
- initCostListPanel();
- this.add(jp_cl); //将面板添加到窗口中
-// this.setVisible(true);
- }
- private JPanel jp_cl ;
- private JScrollPane jsp_cl_center ;
- private void initCostListPanel() { //初始化面板方法
- jp_cl = new JPanel() ;
- jp_cl.setLayout(new BorderLayout()); //边框布局
-// render(1);
- }
- //渲染当前list界面的所有区域
- //最后解决:带搜索条件的查询
- //调用该方法时,需要传递一个key
- public void render(int current_page , String key){
- jp_cl.removeAll();//将当前总面板所有空间清空
-
- //从数据库中分页查询listFrame中的列表数据
- //select * from t_account limit 0 , 4 ; 0--从那一条开始 ,4--查多少条
-// int total_rows = costDao.loadTotal_rows();
- int total_rows = costDao.loadCostTotal_rowsByKey(key);
- int page_size = 10 ;
- final Page page = new Page(total_rows, current_page, page_size);
- System.out.println(page);
-
- //按照分页对象查询出指定的Cost数据
-// List costs = costDao.loadCostsByPage(page);
- List costs = costDao.loadCostsByPageAndKey(page , key);
- for (Cost cost : costs) {
- System.out.println(cost);
- }
-
-
- //North
- JPanel jp_cl_north = new JPanel(new BorderLayout());
- //North--left
- JPanel jp_cl_north_left = new JPanel();
- JButton btn_cl_north_add = new JButton("添加记录");
- btn_cl_north_add.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- //隐藏自己 显示AddFrame
- CostListFrame.this.setVisible(false);
- costAddFrame.setVisible(true);
- }
- });
- jp_cl_north_left.add(btn_cl_north_add);
- jp_cl_north.add("West",jp_cl_north_left);
-
- //North--center
- JPanel jp_cl_north_center = new JPanel();
- final JTextField jtf_cl_north_center = new JTextField(20);
- jtf_cl_north_center.setFont(new Font("", Font.PLAIN, 16));
- JButton btn_cl_north_center = new JButton("Search");
- btn_cl_north_center.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- //获取key
- String key = jtf_cl_north_center.getText();
- //重新渲染界面
- render(1, key);
- //刷新界面
- CostListFrame.this.setVisible(false);
- CostListFrame.this.setVisible(true);
- }
- });
- jp_cl_north_center.add(jtf_cl_north_center);
- jp_cl_north_center.add(btn_cl_north_center);
- jp_cl_north.add(jp_cl_north_center);
-
- //North--right
- JPanel jp_cl_north_east = new JPanel();
- JLabel label_cl_north_account_l = new JLabel("管理员:");
- JLabel label_cl_north_account_name = new JLabel("胡冠中");
- JButton btn_exit = new JButton(new ImageIcon(getToolkit().getImage("src/images/btn_exit.png")));
- btn_exit.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- loginFrame.render_loginPanel();
- //当前的隐藏 显示登录界面
- CostListFrame.this.setVisible(false);
- loginFrame.setVisible(true);
- }
- });
- btn_exit.setPreferredSize(new Dimension(25, 25));
- jp_cl_north_east.add(label_cl_north_account_l);
- jp_cl_north_east.add(label_cl_north_account_name);
- jp_cl_north_east.add(btn_exit);
- jp_cl_north.add("East",jp_cl_north_east);
-
- jp_cl.add("North" , jp_cl_north);
-
- //Center
- JPanel jp_cl_center = new JPanel(new GridLayout(10,1));
- //Center
- //将数据显示在界面控件上
- for (int i = 0; i < costs.size(); i++) {
- JPanel jp_cl_center_row = new JPanel();
- JLabel jl_no = new JLabel(i+1+"");
- jl_no.setPreferredSize(new Dimension(30, 30));
- JLabel jl_name = new JLabel(costs.get(i).getCost_name());
- jl_name.setPreferredSize(new Dimension(100, 30));
- JLabel jl_inex_type = new JLabel(costs.get(i).getCost_inex_type());
- jl_inex_type.setPreferredSize(new Dimension(30, 30));
- JLabel jl_amount = new JLabel(costs.get(i).getCost_amount()+"");
- jl_amount.setPreferredSize(new Dimension(100, 30));
- JLabel jl_userleader = new JLabel(costs.get(i).getCost_inex_type());
- jl_userleader.setPreferredSize(new Dimension(40, 30));
- JLabel jl_reterence = new JLabel(costs.get(i).getCost_reterence());
- jl_reterence.setPreferredSize(new Dimension(40, 30));
- JLabel jl_monitor = new JLabel(costs.get(i).getCost_monitor());
- jl_monitor.setPreferredSize(new Dimension(40, 30));
- JLabel jl_teacher = new JLabel(costs.get(i).getCost_teacher());
- jl_teacher.setPreferredSize(new Dimension(40, 30));
- JLabel jl_remarks = new JLabel(costs.get(i).getCost_remarks());
- jl_remarks.setPreferredSize(new Dimension(100, 30));
- final JButton btn_update = new JButton(/*"修改" , */new ImageIcon(getToolkit().getImage("src/images/btn_edit.png")));
- btn_update.setActionCommand(costs.get(i).getCost_id()+"");
- btn_update.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- //如何获取当前记录的ID
- int cost_id = Integer.parseInt(e.getActionCommand());
- //根据ID查询对应的cost对象
- Cost cost = costDao.loadCostByCostID(cost_id);
- //将当前cost注入到costEditFrame中
- costEditFrame.setCost(cost);
- //再传递一个page的当前页码过去
- costEditFrame.setCurrent_page(page.getCurrent_page());
- //再传递一个搜索条件的key
- String key = jtf_cl_north_center.getText();
- costEditFrame.setKey(key);
- //手动渲染costEditPanel界面
- costEditFrame.render_costEditPanel();
- //界面的转换
- //隐藏自己 显示EditFrame
- CostListFrame.this.setVisible(false);
- costEditFrame.setVisible(true);
- }
- });
- final JButton btn_delete = new JButton(/*"删除"*/new ImageIcon(getToolkit().getImage("src/images/btn_delete.png")));
- btn_delete.setActionCommand(costs.get(i).getCost_id()+"");
- btn_delete.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- //获取当前记录的ID
- int cost_id = Integer.parseInt(e.getActionCommand());
- //调用dao删除指定的记录
- costDao.deleteCostByCostID(cost_id);
- //重新渲染panel
- String key = jtf_cl_north_center.getText();
- render(page.getCurrent_page() , key);
- //刷新当前界面
- CostListFrame.this.setVisible(false);
- CostListFrame.this.setVisible(true);
- }
- });
- jp_cl_center_row.add(jl_no);
- jp_cl_center_row.add(jl_name);
- jp_cl_center_row.add(jl_inex_type);
- jp_cl_center_row.add(jl_amount);
- jp_cl_center_row.add(jl_userleader);
- jp_cl_center_row.add(jl_reterence);
- jp_cl_center_row.add(jl_monitor);
- jp_cl_center_row.add(jl_teacher);
- jp_cl_center_row.add(jl_remarks);
- jp_cl_center_row.add(btn_update);
- jp_cl_center_row.add(btn_delete);
- jp_cl_center.add(jp_cl_center_row);
- }
-
- jsp_cl_center = new JScrollPane(jp_cl_center);
- jp_cl.add("Center" , jsp_cl_center);
-
- //South
- JPanel jp_cl_south = new JPanel();
- JLabel label_cl_south_page_left = new JLabel();
- label_cl_south_page_left.setText("第"+page.getCurrent_page()+"/"+page.getTotal_page()+"页,共"+page.getTotal_rows()+"条记录");
- jp_cl_south.add(label_cl_south_page_left);
-
- JButton btn_cl_south_page_center_first= new JButton("首页");
- btn_cl_south_page_center_first.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- //查询第一页数据
- String key = jtf_cl_north_center.getText();
- render(1 , key);
-
- //CostListFrame重新渲染
- CostListFrame.this.setVisible(false);
- CostListFrame.this.setVisible(true);
- }
- });
- JButton btn_cl_south_page_center_pre= new JButton("上一页");
- btn_cl_south_page_center_pre.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- int cp = page.getCurrent_page()==1?1:page.getCurrent_page()-1;
- String key = jtf_cl_north_center.getText();
- render(cp , key);
- CostListFrame.this.setVisible(false);
- CostListFrame.this.setVisible(true);
- }
- });
- JButton btn_cl_south_page_center_next= new JButton("下一页");
- btn_cl_south_page_center_next.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- //在当前页的基础上+1
- //如果当前页是最后一页 还能+1吗?
- //如果当前页==总页数 就不+1,否则就+1
- int cp = page.getCurrent_page()==page.getTotal_page()?page.getTotal_page():page.getCurrent_page()+1;
- String key = jtf_cl_north_center.getText();
- render(cp , key);
- CostListFrame.this.setVisible(false);
- CostListFrame.this.setVisible(true);
- }
- });
- JButton btn_cl_south_page_center_last= new JButton("末页");
- btn_cl_south_page_center_last.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- String key = jtf_cl_north_center.getText();
- render(page.getTotal_page() , key);
- CostListFrame.this.setVisible(false);
- CostListFrame.this.setVisible(true);
- }
- });
- jp_cl_south.add(btn_cl_south_page_center_first);
- jp_cl_south.add(btn_cl_south_page_center_pre);
- jp_cl_south.add(btn_cl_south_page_center_next);
- jp_cl_south.add(btn_cl_south_page_center_last);
- //下拉框
- JComboBox jcb_cl_south = new JComboBox();
- for (int i = 1; i < page.getTotal_page() + 1; i++) {
- jcb_cl_south.addItem(i);
- if(i==page.getCurrent_page()){
- jcb_cl_south.setSelectedItem(i);
- }
- }
- jcb_cl_south.addItemListener(new ItemListener() {
- @Override
- public void itemStateChanged(ItemEvent e) {
- //当item被选中就实现重新查询并刷新
- String key = jtf_cl_north_center.getText();
- render(Integer.parseInt(e.getItem().toString()) , key);
- CostListFrame.this.setVisible(false);
- CostListFrame.this.setVisible(true);
- }
- });
- jp_cl_south.add(jcb_cl_south);
-
- jp_cl.add("South" , jp_cl_south);
-
- }
-
- public static void main(String[] args) {
- new CostListFrame();
- }
-}
diff --git a/hw1/src/com/usts/edu/view/LoginFrame.java b/hw1/src/com/usts/edu/view/LoginFrame.java
deleted file mode 100644
index b5af32066ca2a0e973333fc9d54cde26c30431bb..0000000000000000000000000000000000000000
--- a/hw1/src/com/usts/edu/view/LoginFrame.java
+++ /dev/null
@@ -1,174 +0,0 @@
-package com.usts.edu.view;
-
-import com.usts.edu.dao.AccountDao;
-import com.usts.edu.dao.AccountDaoImpl;
-import com.usts.edu.entity.Account;
-import com.usts.edu.util.EncryptUtil;
-import com.usts.edu.util.InfoUtil;
-import com.usts.edu.util.RegExpUtil;
-
-import java.awt.Color;
-import java.awt.Font;
-import java.awt.GridLayout;
-import java.awt.HeadlessException;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.FocusEvent;
-import java.awt.event.FocusListener;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-import java.util.List;
-
-import javax.swing.JButton;
-import javax.swing.JFrame;
-import javax.swing.JLabel;
-import javax.swing.JPanel;
-import javax.swing.JPasswordField;
-import javax.swing.JTextField;
-
-
-
-/**
- * @ClassName: LoginFrame
- * @Description: 系统登录界面
- * @author: Huguanzhong
- * @date: 2019年9月13日 下午2:20:05
- */
-public class LoginFrame extends JFrame {
- private static final long serialVersionUID = -7964824525041893981L;
-
- //定义CostListFrame类型变量
- private CostListFrame costListFrame ;
- public void setCostListFrame(CostListFrame costListFrame) {
- this.costListFrame = costListFrame;
- }
-
- //软件初始化可以在构造器中对当前登录窗口初始化各种参数
- public LoginFrame() throws HeadlessException {
- this.setSize(600, 400);
- this.setTitle(InfoUtil.LOGINFRAME_TITLE+"-"+InfoUtil.SYSTEM_NAME);
- this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- this.setResizable(false); //不允许修改尺寸
- this.setLocationRelativeTo(null); //当前界面位置不想对于其它界面 即 居中
-// this.setUndecorated(true);//去掉边框及标题
- initPanel();
- this.add(jp_login);
- this.setVisible(true);
- }
- private JPanel jp_login ;
- JLabel label_login_error = null ;
- private AccountDao accountDao = new AccountDaoImpl();
- private void initPanel(){
- jp_login = new JPanel();
- jp_login.setLayout(new GridLayout(8, 1)); //设置当前面板的布局管理器
- render_loginPanel();
- }
- public void render_loginPanel(){
- jp_login.removeAll();
-
- //第一行
- jp_login.add(new JPanel());
- //第二行
- JPanel jp_login_02 = new JPanel();
- JLabel label_login_title = new JLabel("Welcome!!");
- label_login_title.setFont(new Font("华文行楷", Font.BOLD, 24));
- jp_login_02.add(label_login_title);
- jp_login.add(jp_login_02);
- //第三行
- JPanel jp_login_03 = new JPanel();
- JLabel label_login_title_s = new JLabel("管理员登录界面");
- label_login_title_s.setFont(new Font("宋体", Font.PLAIN, 16));
- jp_login_03.add(label_login_title_s);
- jp_login.add(jp_login_03);
- //第四行
- JPanel jp_login_04 = new JPanel(); //jpanel默认就是FlowLayout
- JLabel label_login_name = new JLabel("账号:");
- final JTextField jtf_login_name = new JTextField(16);
- jtf_login_name.addFocusListener(new FocusListener() {
- @Override
- public void focusLost(FocusEvent e) {
- }
- @Override
- public void focusGained(FocusEvent e) {
- //该控件失去焦点 把错误信息清除掉
- label_login_error.setText("");
- }
- });
- jp_login_04.add(label_login_name);
- jp_login_04.add(jtf_login_name);
- jp_login.add(jp_login_04);
- //第五行
- JPanel jp_login_05 = new JPanel();
- JLabel label_login_pwd = new JLabel("密码:");
- final JPasswordField jpf_login_pwd = new JPasswordField(16);
- jpf_login_pwd.addFocusListener(new FocusListener() {
- @Override
- public void focusLost(FocusEvent e) {
- }
- @Override
- public void focusGained(FocusEvent e) {
- //该控件失去焦点 把错误信息清除掉
- label_login_error.setText("");
- }
- });
- jp_login_05.add(label_login_pwd);
- jp_login_05.add(jpf_login_pwd);
- jp_login.add(jp_login_05);
- //第六行
- JPanel jp_login_06 = new JPanel();
- label_login_error = new JLabel("Error!");
- label_login_error.setForeground(Color.RED);
- jp_login_06.add(label_login_error);
- jp_login.add(jp_login_06);
- //第七行
- JPanel jp_login_07 = new JPanel();
- JButton btn_login_submit = new JButton("立即登录");
- btn_login_submit.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- //获取管理员填入的信息(name password)
- String account_name = jtf_login_name.getText();
- String account_password = new String(jpf_login_pwd.getPassword());
- //格式上的过滤--提示用户 52个字母 10个数字 以及下划线 5-30
- //在Java中使用正则表达式
- if( !RegExpUtil.isNull(account_name) ||/*短路或*/ /*&&*/ /*短路与*/
- !RegExpUtil.checkAccount_name(account_name)){
- label_login_error.setText("请检查输入的内容...1");
- return ;
- }
- if( !RegExpUtil.isNull(account_password) ||/*短路或*/ /*&&*/ /*短路与*/
- !RegExpUtil.checkAccount_password(account_password)){
- label_login_error.setText("请检查输入的内容...2");
- return ;
- }
-
- //数据库层面的过滤--提示用户
- //调用dao层的接口方法 返回boolean
- Account account = new Account(account_name, EncryptUtil.encrypt(account_password));
- if(!accountDao.checkAccountByAccount(account)){
- label_login_error.setText("请检查输入的内容...3");
- return ;
- }
-
- //更新数据库的account_lastlogintime字段的值为当前时
- String currenttime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
- accountDao.updateAccount_lastlogintimeByCurrentTime(currenttime, account_name);
-
- costListFrame.render(1 , null);
-
- //隐藏loginFrame 显示ListFrame
- LoginFrame.this.setVisible(false);
- costListFrame.setVisible(true);
- }
- });
- jp_login_07.add(btn_login_submit);
- jp_login.add(jp_login_07);
- //第八行
- jp_login.add(new JPanel());
- }
-
- public static void main(String[] args) {
- new LoginFrame();
- }
-
-}
diff --git a/hw1/src/images/btn_delete.png b/hw1/src/images/btn_delete.png
deleted file mode 100644
index ae5a677ebed070d1b72b2919ab9a2ebe7aa8b1f8..0000000000000000000000000000000000000000
Binary files a/hw1/src/images/btn_delete.png and /dev/null differ
diff --git a/hw1/src/images/btn_edit.png b/hw1/src/images/btn_edit.png
deleted file mode 100644
index b1e738992e025b97f2cb047db0bcca7922b0b3ad..0000000000000000000000000000000000000000
Binary files a/hw1/src/images/btn_edit.png and /dev/null differ
diff --git a/hw1/src/images/btn_exit.png b/hw1/src/images/btn_exit.png
deleted file mode 100644
index b0ea7f6495376aeec5c656a48755aac75931c662..0000000000000000000000000000000000000000
Binary files a/hw1/src/images/btn_exit.png and /dev/null differ
diff --git a/hw1/src/mysql-connector-java-5.1.10-bin.jar b/hw1/src/mysql-connector-java-5.1.10-bin.jar
deleted file mode 100644
index 33c35c6ea7d836508eae86ca3cfcaa3d2dc52fcf..0000000000000000000000000000000000000000
Binary files a/hw1/src/mysql-connector-java-5.1.10-bin.jar and /dev/null differ
diff --git a/hw1/ssf.sql b/hw1/ssf.sql
deleted file mode 100644
index a0ffdb929cbf65ecbfb0834414725768db43c546..0000000000000000000000000000000000000000
--- a/hw1/ssf.sql
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
-Navicat MySQL Data Transfer
-
-Source Server : goods
-Source Server Version : 50528
-Source Host : localhost:3306
-Source Database : ssf
-
-Target Server Type : MYSQL
-Target Server Version : 50528
-File Encoding : 65001
-
-Date: 2019-09-15 16:56:22
-*/
-
-SET FOREIGN_KEY_CHECKS=0;
-
--- ----------------------------
--- Table structure for t_account
--- ----------------------------
-DROP TABLE IF EXISTS `t_account`;
-CREATE TABLE `t_account` (
- `account_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '账号ID',
- `account_name` varchar(100) NOT NULL COMMENT '账号名称',
- `account_password` char(28) NOT NULL COMMENT '账号密码',
- `account_rosename` varchar(100) NOT NULL DEFAULT '班长' COMMENT '账号角色名称',
- `account_addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '账号添加时间',
- `account_lastlogintime` char(19) NOT NULL COMMENT '账号最后一次登录时间 ex:2001-12-12 15:30:50',
- PRIMARY KEY (`account_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-
--- ----------------------------
--- Records of t_account
--- ----------------------------
-INSERT INTO `t_account` VALUES ('1', 'admin', 'YB8YiWZ++uuzO4wSVyg12j8Cf3g=', '班长', '2019-09-15 13:16:09', '2019-09-15 16:39:52');
-
--- ----------------------------
--- Table structure for t_cost
--- ----------------------------
-DROP TABLE IF EXISTS `t_cost`;
-CREATE TABLE `t_cost` (
- `cost_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '款项收支记录ID',
- `cost_name` varchar(200) NOT NULL COMMENT '款项收支用途名称',
- `cost_inex_type` char(1) NOT NULL COMMENT '款项收支类型 支出expenditure-0 收入income-1',
- `cost_amount` double NOT NULL COMMENT '款项收支金额',
- `cost_userleader` varchar(50) NOT NULL COMMENT '款项收支负责人',
- `cost_reterence` varchar(50) NOT NULL COMMENT '款项收支证明人',
- `cost_monitor` varchar(50) NOT NULL COMMENT '款项收支管理班长',
- `cost_teacher` varchar(50) NOT NULL COMMENT '款项收支管理老师',
- `cost_remarks` varchar(200) NOT NULL DEFAULT '--' COMMENT '款项收支备注',
- `cost_addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '款项收支记录添加时间',
- PRIMARY KEY (`cost_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;
-
--- ----------------------------
--- Records of t_cost
--- ----------------------------
-INSERT INTO `t_cost` VALUES ('15', '六一节茶话会', '支', '2680', '胡冠中', '小夏', '肖刚', '胡老师', '--', '2019-09-15 15:49:51');
-INSERT INTO `t_cost` VALUES ('16', '七夕节相亲会', '支', '9680', '胡冠中', '小夏', '肖刚', '胡老师', '--', '2019-09-15 15:49:52');
-INSERT INTO `t_cost` VALUES ('17', '八一双拥晚会', '支', '4600', '胡冠中', '小夏', '肖刚', '胡老师', '--', '2019-09-15 15:49:52');
-INSERT INTO `t_cost` VALUES ('18', '教师节', '支', '10800', '胡冠中', '小夏', '肖刚', '胡老师', '--', '2019-09-15 15:49:52');
-INSERT INTO `t_cost` VALUES ('19', '国庆节联欢会', '支', '3980', '胡冠中', '小夏', '肖刚', '胡老师', '--', '2019-09-15 15:49:52');
-INSERT INTO `t_cost` VALUES ('20', '双十一淘宝团购', '支', '20080', '胡冠中', '小夏', '肖刚', '胡老师', '--', '2019-09-15 15:49:52');
-INSERT INTO `t_cost` VALUES ('21', '圣诞节新年礼物', '支', '7890', '胡冠中', '小夏', '肖刚', '胡老师', '--', '2019-09-15 15:49:52');
-
--- ----------------------------
--- Table structure for t_cost_detail
--- ----------------------------
-DROP TABLE IF EXISTS `t_cost_detail`;
-CREATE TABLE `t_cost_detail` (
- `cost_detail_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '款项收支记录明细ID',
- `cost_detail_name` varchar(100) NOT NULL COMMENT '款项收支记录明细名称',
- `cost_detail_price` double NOT NULL COMMENT '款项收支记录明细单价',
- `cost_detail_num` int(11) NOT NULL COMMENT '款项收支记录明细数量',
- `cost_detail_addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '款项收支记录明细添加时间',
- `cost_id` int(11) NOT NULL COMMENT '款项收支记录ID',
- PRIMARY KEY (`cost_detail_id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-
--- ----------------------------
--- Records of t_cost_detail
--- ----------------------------
diff --git "a/hw2/17200135122_\350\203\241\345\206\240\344\270\255_\344\275\234\344\270\2322.docx" "b/hw2/17200135122_\350\203\241\345\206\240\344\270\255_\344\275\234\344\270\2322.docx"
deleted file mode 100644
index 7ab7dc6e2c52b090f602b153c3d6735543e93291..0000000000000000000000000000000000000000
Binary files "a/hw2/17200135122_\350\203\241\345\206\240\344\270\255_\344\275\234\344\270\2322.docx" and /dev/null differ
diff --git a/hw2/out/production/se19_17200135122/Makefile.win b/hw2/out/production/se19_17200135122/Makefile.win
deleted file mode 100644
index 68cafdd63edc45ccbeba76706451a522c88ab571..0000000000000000000000000000000000000000
--- a/hw2/out/production/se19_17200135122/Makefile.win
+++ /dev/null
@@ -1,37 +0,0 @@
-# Project: test_framewrok
-# Makefile created by Dev-C++ 5.11
-
-CPP = g++.exe
-CC = gcc.exe
-WINDRES = windres.exe
-OBJ = main.o reverse_string.o reverse_string_test.o assert.o
-LINKOBJ = main.o reverse_string.o reverse_string_test.o assert.o
-LIBS = -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib" -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib" -static-libgcc
-INCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include"
-CXXINCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++"
-BIN = test_framework.exe
-CXXFLAGS = $(CXXINCS)
-CFLAGS = $(INCS)
-RM = rm.exe -f
-
-.PHONY: all all-before all-after clean clean-custom
-
-all: all-before $(BIN) all-after
-
-clean: clean-custom
- ${RM} $(OBJ) $(BIN)
-
-$(BIN): $(OBJ)
- $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
-
-main.o: main.cpp
- $(CPP) -c main.cpp -o main.o $(CXXFLAGS)
-
-reverse_string.o: reverse_string.cpp
- $(CPP) -c reverse_string.cpp -o reverse_string.o $(CXXFLAGS)
-
-reverse_string_test.o: reverse_string_test.cpp
- $(CPP) -c reverse_string_test.cpp -o reverse_string_test.o $(CXXFLAGS)
-
-assert.o: assert.cpp
- $(CPP) -c assert.cpp -o assert.o $(CXXFLAGS)
diff --git a/hw2/out/production/se19_17200135122/Reverse_String.class b/hw2/out/production/se19_17200135122/Reverse_String.class
deleted file mode 100644
index 1f6021bc2e2a7073777d64069d0109ce55c86355..0000000000000000000000000000000000000000
Binary files a/hw2/out/production/se19_17200135122/Reverse_String.class and /dev/null differ
diff --git a/hw2/out/production/se19_17200135122/Split_String.class b/hw2/out/production/se19_17200135122/Split_String.class
deleted file mode 100644
index 8cbf17d96a4b3cd447636bace153f470f111d6aa..0000000000000000000000000000000000000000
Binary files a/hw2/out/production/se19_17200135122/Split_String.class and /dev/null differ
diff --git a/hw2/out/production/se19_17200135122/assert.h b/hw2/out/production/se19_17200135122/assert.h
deleted file mode 100644
index 0f28198fea905384b22aafca66d6062b7e8725f6..0000000000000000000000000000000000000000
--- a/hw2/out/production/se19_17200135122/assert.h
+++ /dev/null
@@ -1,22 +0,0 @@
-#ifndef ASSERT_H
-#define ASSERT_H
-#include
-using std::cout;
-using std::endl;
-
-void errorAndExit();
-
-//ģT Խκͣ磺string, int, floatȵ
-template
-void assertEqual(T& left, T& right)
-{
- if(left != right)
- {
- errorAndExit();
- }
-}
-
-void assert(int res);
-
-#endif
-
diff --git a/hw2/out/production/se19_17200135122/del_git.bat b/hw2/out/production/se19_17200135122/del_git.bat
deleted file mode 100644
index 3eaa0d096d4342bba09db5c12f621583682b5dbd..0000000000000000000000000000000000000000
--- a/hw2/out/production/se19_17200135122/del_git.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-rd /s /q .git
-echo "folder detached."
-pause
diff --git a/hw2/out/production/se19_17200135122/reverse_string.h b/hw2/out/production/se19_17200135122/reverse_string.h
deleted file mode 100644
index f29fc331aeb2865fbea0c752b055c47518451c20..0000000000000000000000000000000000000000
--- a/hw2/out/production/se19_17200135122/reverse_string.h
+++ /dev/null
@@ -1,2 +0,0 @@
-#pragma once
-void reverse(char *str);
diff --git a/hw2/out/production/se19_17200135122/reverse_string_test.h b/hw2/out/production/se19_17200135122/reverse_string_test.h
deleted file mode 100644
index b7a3333b9996a15b6b85bff64b363512547ea093..0000000000000000000000000000000000000000
--- a/hw2/out/production/se19_17200135122/reverse_string_test.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#pragma once
-#include
-using std::string;
-class ReverseStringTest
-{
-public:
- static void testReverseNormal();
- static void testReverseBlank();
-private:
- static void stringToCharArray(char *str, string& testWord);
-};
diff --git a/hw2/out/production/se19_17200135122/split_string.h b/hw2/out/production/se19_17200135122/split_string.h
deleted file mode 100644
index 70020c04d8cc7c71bc897774cdccb7208df3fb5d..0000000000000000000000000000000000000000
--- a/hw2/out/production/se19_17200135122/split_string.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#pragma once
-#include
-#include
-
-using std::string;
-using std::vector;
-vector split(const string& line, char x);
diff --git a/hw2/out/production/se19_17200135122/split_string_test.h b/hw2/out/production/se19_17200135122/split_string_test.h
deleted file mode 100644
index 87f938c3b714f06f6b67f5f1d2f1345c561e2682..0000000000000000000000000000000000000000
--- a/hw2/out/production/se19_17200135122/split_string_test.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#pragma once
-class SplitStringTest
-{
-public:
- static void testSplitNormal();
- static void testSplitBlank();
-};
diff --git a/hw2/out/production/se19_17200135122/test_framework.dev b/hw2/out/production/se19_17200135122/test_framework.dev
deleted file mode 100644
index bd87f573b46806d035ebb3e371cdd0e290665eda..0000000000000000000000000000000000000000
--- a/hw2/out/production/se19_17200135122/test_framework.dev
+++ /dev/null
@@ -1,162 +0,0 @@
-[Project]
-FileName=test_framework.dev
-Name=test_framewrok
-Type=1
-Ver=2
-ObjFiles=
-Includes=
-Libs=
-PrivateResource=
-ResourceIncludes=
-MakeIncludes=
-Compiler=
-CppCompiler=
-Linker=
-IsCpp=1
-Icon=
-ExeOutput=
-ObjectOutput=
-LogOutput=
-LogOutputEnabled=0
-OverrideOutput=0
-OverrideOutputName=test_framewrk.exe
-HostApplication=
-UseCustomMakefile=0
-CustomMakefile=
-CommandLine=
-Folders=
-IncludeVersionInfo=0
-SupportXPThemes=0
-CompilerSet=0
-CompilerSettings=0000000000000000000000000
-UnitCount=11
-
-[VersionInfo]
-Major=1
-Minor=0
-Release=0
-Build=0
-LanguageID=1033
-CharsetID=1252
-CompanyName=
-FileVersion=1.0.0.0
-FileDescription=Developed using the Dev-C++ IDE
-InternalName=
-LegalCopyright=
-LegalTrademarks=
-OriginalFilename=
-ProductName=
-ProductVersion=1.0.0.0
-AutoIncBuildNr=0
-SyncProduct=1
-
-[Unit3]
-FileName=reverse_string.cpp
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit4]
-FileName=reverse_string.h
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit5]
-FileName=reverse_string_test.cpp
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit7]
-FileName=split_string.cpp
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit1]
-FileName=assert.h
-Folder=
-Compile=0
-Link=0
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-CompileCpp=1
-
-[Unit2]
-FileName=main.cpp
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit6]
-FileName=reverse_string_test.h
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit8]
-FileName=split_string_test.cpp
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit9]
-FileName=split_string.h
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit10]
-FileName=split_string_test.h
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit11]
-FileName=assert.cpp
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
diff --git a/hw2/out/production/se19_17200135122/test_framework.layout b/hw2/out/production/se19_17200135122/test_framework.layout
deleted file mode 100644
index 4d0304210aeaf2c727b592357feef26cc2cca4d1..0000000000000000000000000000000000000000
--- a/hw2/out/production/se19_17200135122/test_framework.layout
+++ /dev/null
@@ -1,58 +0,0 @@
-[Editor_0]
-CursorCol=17
-CursorRow=1
-TopLine=1
-LeftChar=1
-[Editor_1]
-CursorCol=20
-CursorRow=1
-TopLine=1
-LeftChar=1
-[Editor_4]
-CursorCol=19
-CursorRow=3
-TopLine=27
-LeftChar=1
-[Editor_2]
-CursorCol=11
-CursorRow=11
-TopLine=1
-LeftChar=1
-[Editor_3]
-CursorCol=1
-CursorRow=1
-TopLine=1
-LeftChar=1
-[Editor_5]
-CursorCol=17
-CursorRow=4
-TopLine=1
-LeftChar=1
-[Editors]
-Order=1,2,3,4,5,0,6,7,8
-Focused=-1
-[Editor_6]
-CursorCol=25
-CursorRow=7
-TopLine=1
-LeftChar=1
-[Editor_7]
-CursorCol=3
-CursorRow=7
-TopLine=1
-LeftChar=1
-[Editor_8]
-CursorCol=1
-CursorRow=4
-TopLine=1
-LeftChar=1
-[Editor_9]
-CursorCol=31
-CursorRow=6
-TopLine=1
-LeftChar=1
-[Editor_10]
-CursorCol=14
-CursorRow=14
-TopLine=1
-LeftChar=1
diff --git a/hw2/test_framework/Makefile.win b/hw2/test_framework/Makefile.win
deleted file mode 100644
index 68cafdd63edc45ccbeba76706451a522c88ab571..0000000000000000000000000000000000000000
--- a/hw2/test_framework/Makefile.win
+++ /dev/null
@@ -1,37 +0,0 @@
-# Project: test_framewrok
-# Makefile created by Dev-C++ 5.11
-
-CPP = g++.exe
-CC = gcc.exe
-WINDRES = windres.exe
-OBJ = main.o reverse_string.o reverse_string_test.o assert.o
-LINKOBJ = main.o reverse_string.o reverse_string_test.o assert.o
-LIBS = -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib" -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib" -static-libgcc
-INCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include"
-CXXINCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++"
-BIN = test_framework.exe
-CXXFLAGS = $(CXXINCS)
-CFLAGS = $(INCS)
-RM = rm.exe -f
-
-.PHONY: all all-before all-after clean clean-custom
-
-all: all-before $(BIN) all-after
-
-clean: clean-custom
- ${RM} $(OBJ) $(BIN)
-
-$(BIN): $(OBJ)
- $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
-
-main.o: main.cpp
- $(CPP) -c main.cpp -o main.o $(CXXFLAGS)
-
-reverse_string.o: reverse_string.cpp
- $(CPP) -c reverse_string.cpp -o reverse_string.o $(CXXFLAGS)
-
-reverse_string_test.o: reverse_string_test.cpp
- $(CPP) -c reverse_string_test.cpp -o reverse_string_test.o $(CXXFLAGS)
-
-assert.o: assert.cpp
- $(CPP) -c assert.cpp -o assert.o $(CXXFLAGS)
diff --git a/hw2/test_framework/Reverse_String.java b/hw2/test_framework/Reverse_String.java
deleted file mode 100644
index 17d916db9733a9b62af8c7c492ed07f0a508b0c3..0000000000000000000000000000000000000000
--- a/hw2/test_framework/Reverse_String.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- * 根据String => char 进行遍历后字符串反转。
- * 1.将String转换成char[]
- * 2.遍历char[] 进行位置调换,使用for循环遍历后进行反转
- */
-
-public class Reverse_String {
-
- public static void main(String[] args) {
-// 测试
- String test = "123asd";
- System.out.println("old:"+test);
- System.out.println("new::"+reverseString(test));
- }
-
-// reverse
- public static String reverseString(String oldStr){
- if (oldStr.isEmpty()) return "";
- char[] oldChar = oldStr.toCharArray();
- char temp;
-// 反转
- for (int i = 0;i splitString(String str, char c) {
- List strList = new ArrayList<>();
- int start = 0;
- for (int i = 0; i < str.length();i++) {
- char sc = str.charAt(i);
- if (c == sc) {
- if (start < i) {
-// 把截取到的放到list
- strList.add(str.substring(start, i));
- }
- start = ++i;
-// 将最后一段放进list
- strList.add(str.substring(start,str.length()));
- } else {
- i++;
- }
-
- }
- return strList;
- }
-
-}
diff --git a/hw2/test_framework/assert.h b/hw2/test_framework/assert.h
deleted file mode 100644
index 0f28198fea905384b22aafca66d6062b7e8725f6..0000000000000000000000000000000000000000
--- a/hw2/test_framework/assert.h
+++ /dev/null
@@ -1,22 +0,0 @@
-#ifndef ASSERT_H
-#define ASSERT_H
-#include
-using std::cout;
-using std::endl;
-
-void errorAndExit();
-
-//ģT Խκͣ磺string, int, floatȵ
-template
-void assertEqual(T& left, T& right)
-{
- if(left != right)
- {
- errorAndExit();
- }
-}
-
-void assert(int res);
-
-#endif
-
diff --git a/hw2/test_framework/copy/se19_17200135122 b/hw2/test_framework/copy/se19_17200135122
deleted file mode 160000
index 8e00221d90f1daf532c9e5683b1e85ec97786b75..0000000000000000000000000000000000000000
--- a/hw2/test_framework/copy/se19_17200135122
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 8e00221d90f1daf532c9e5683b1e85ec97786b75
diff --git a/hw2/test_framework/del_git.bat b/hw2/test_framework/del_git.bat
deleted file mode 100644
index 3eaa0d096d4342bba09db5c12f621583682b5dbd..0000000000000000000000000000000000000000
--- a/hw2/test_framework/del_git.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-rd /s /q .git
-echo "folder detached."
-pause
diff --git a/hw2/test_framework/reverse_string.h b/hw2/test_framework/reverse_string.h
deleted file mode 100644
index f29fc331aeb2865fbea0c752b055c47518451c20..0000000000000000000000000000000000000000
--- a/hw2/test_framework/reverse_string.h
+++ /dev/null
@@ -1,2 +0,0 @@
-#pragma once
-void reverse(char *str);
diff --git a/hw2/test_framework/reverse_string_test.h b/hw2/test_framework/reverse_string_test.h
deleted file mode 100644
index b7a3333b9996a15b6b85bff64b363512547ea093..0000000000000000000000000000000000000000
--- a/hw2/test_framework/reverse_string_test.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#pragma once
-#include
-using std::string;
-class ReverseStringTest
-{
-public:
- static void testReverseNormal();
- static void testReverseBlank();
-private:
- static void stringToCharArray(char *str, string& testWord);
-};
diff --git a/hw2/test_framework/split_string.h b/hw2/test_framework/split_string.h
deleted file mode 100644
index 70020c04d8cc7c71bc897774cdccb7208df3fb5d..0000000000000000000000000000000000000000
--- a/hw2/test_framework/split_string.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#pragma once
-#include
-#include
-
-using std::string;
-using std::vector;
-vector split(const string& line, char x);
diff --git a/hw2/test_framework/split_string_test.h b/hw2/test_framework/split_string_test.h
deleted file mode 100644
index 87f938c3b714f06f6b67f5f1d2f1345c561e2682..0000000000000000000000000000000000000000
--- a/hw2/test_framework/split_string_test.h
+++ /dev/null
@@ -1,7 +0,0 @@
-#pragma once
-class SplitStringTest
-{
-public:
- static void testSplitNormal();
- static void testSplitBlank();
-};
diff --git a/hw2/test_framework/testAddFile.cpp b/hw2/test_framework/testAddFile.cpp
deleted file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000
diff --git a/hw2/test_framework/test_framework.dev b/hw2/test_framework/test_framework.dev
deleted file mode 100644
index bd87f573b46806d035ebb3e371cdd0e290665eda..0000000000000000000000000000000000000000
--- a/hw2/test_framework/test_framework.dev
+++ /dev/null
@@ -1,162 +0,0 @@
-[Project]
-FileName=test_framework.dev
-Name=test_framewrok
-Type=1
-Ver=2
-ObjFiles=
-Includes=
-Libs=
-PrivateResource=
-ResourceIncludes=
-MakeIncludes=
-Compiler=
-CppCompiler=
-Linker=
-IsCpp=1
-Icon=
-ExeOutput=
-ObjectOutput=
-LogOutput=
-LogOutputEnabled=0
-OverrideOutput=0
-OverrideOutputName=test_framewrk.exe
-HostApplication=
-UseCustomMakefile=0
-CustomMakefile=
-CommandLine=
-Folders=
-IncludeVersionInfo=0
-SupportXPThemes=0
-CompilerSet=0
-CompilerSettings=0000000000000000000000000
-UnitCount=11
-
-[VersionInfo]
-Major=1
-Minor=0
-Release=0
-Build=0
-LanguageID=1033
-CharsetID=1252
-CompanyName=
-FileVersion=1.0.0.0
-FileDescription=Developed using the Dev-C++ IDE
-InternalName=
-LegalCopyright=
-LegalTrademarks=
-OriginalFilename=
-ProductName=
-ProductVersion=1.0.0.0
-AutoIncBuildNr=0
-SyncProduct=1
-
-[Unit3]
-FileName=reverse_string.cpp
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit4]
-FileName=reverse_string.h
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit5]
-FileName=reverse_string_test.cpp
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit7]
-FileName=split_string.cpp
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit1]
-FileName=assert.h
-Folder=
-Compile=0
-Link=0
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-CompileCpp=1
-
-[Unit2]
-FileName=main.cpp
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit6]
-FileName=reverse_string_test.h
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit8]
-FileName=split_string_test.cpp
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit9]
-FileName=split_string.h
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit10]
-FileName=split_string_test.h
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
-[Unit11]
-FileName=assert.cpp
-CompileCpp=1
-Folder=
-Compile=1
-Link=1
-Priority=1000
-OverrideBuildCmd=0
-BuildCmd=
-
diff --git a/hw2/test_framework/test_framework.layout b/hw2/test_framework/test_framework.layout
deleted file mode 100644
index 4d0304210aeaf2c727b592357feef26cc2cca4d1..0000000000000000000000000000000000000000
--- a/hw2/test_framework/test_framework.layout
+++ /dev/null
@@ -1,58 +0,0 @@
-[Editor_0]
-CursorCol=17
-CursorRow=1
-TopLine=1
-LeftChar=1
-[Editor_1]
-CursorCol=20
-CursorRow=1
-TopLine=1
-LeftChar=1
-[Editor_4]
-CursorCol=19
-CursorRow=3
-TopLine=27
-LeftChar=1
-[Editor_2]
-CursorCol=11
-CursorRow=11
-TopLine=1
-LeftChar=1
-[Editor_3]
-CursorCol=1
-CursorRow=1
-TopLine=1
-LeftChar=1
-[Editor_5]
-CursorCol=17
-CursorRow=4
-TopLine=1
-LeftChar=1
-[Editors]
-Order=1,2,3,4,5,0,6,7,8
-Focused=-1
-[Editor_6]
-CursorCol=25
-CursorRow=7
-TopLine=1
-LeftChar=1
-[Editor_7]
-CursorCol=3
-CursorRow=7
-TopLine=1
-LeftChar=1
-[Editor_8]
-CursorCol=1
-CursorRow=4
-TopLine=1
-LeftChar=1
-[Editor_9]
-CursorCol=31
-CursorRow=6
-TopLine=1
-LeftChar=1
-[Editor_10]
-CursorCol=14
-CursorRow=14
-TopLine=1
-LeftChar=1
diff --git "a/hw3/17200135122_\350\203\241\345\206\240\344\270\255_\344\275\234\344\270\2323.docx" "b/hw3/17200135122_\350\203\241\345\206\240\344\270\255_\344\275\234\344\270\2323.docx"
deleted file mode 100644
index cf00d4baf2a6162383125bd96c7e5d72e1db3c5b..0000000000000000000000000000000000000000
Binary files "a/hw3/17200135122_\350\203\241\345\206\240\344\270\255_\344\275\234\344\270\2323.docx" and /dev/null differ
diff --git a/hw3/file_io/FileIOMain.java b/hw3/file_io/FileIOMain.java
deleted file mode 100644
index bbfc6c021ac01fd8446deaaa14db057f56bc53be..0000000000000000000000000000000000000000
--- a/hw3/file_io/FileIOMain.java
+++ /dev/null
@@ -1,92 +0,0 @@
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FileReader;
-import java.io.IOException;
-
-import java.io.FileWriter;
-import java.io.PrintWriter;
-import java.util.ArrayList;
-
-public class FileIOMain {
-
- private ArrayList outputList = new ArrayList();
-
- FileIOMain()
- {
- outputList.add("学号:17200135122");
- outputList.add("姓名:胡冠中");
- outputList.add("我爱运动:爬不动山");
- for (int i = 0; i < 1000; i++)
- {
- String morning ="Good Morning";
- outputList.add(morning + i);
- }
- }
-
- public void readFile(String file_path) throws IOException
- {
- File file;
- FileReader fr;
- BufferedReader br;
-
- file = new File(file_path);
- if (!file.exists()){
- System.out.println("\""+file_path+"\" does not exsit!");
- return;
- }
-
- /*
- 1.FileReader是由java.io.InputStreamReade扩展来的,是针对文件读取的,只能进行底层的字节操作。
- BufferedReader由Reader类扩展而来,提供通用的缓冲方式文本读取,而且提供了很实用的readLine,读取分行文本很适合,BufferedReader是针对Reader的,不直接针对文件,也不是只针对文件读取。
- 2.FileReader是用来读文件的类,而BufferReader是将IO流转换为Buffer以提高程序的处理速度。
- */
- fr = new FileReader(file);
- br = new BufferedReader(fr);
-
- /*作业:改写以下代码,使用循环读取文件全部内容并打印到屏幕,提示:需要使用BufferedReader.ready()方法,判断文件访问是否到文件末尾*/
- while (br.ready()){
- String lineText = br.readLine();
- System.out.println(lineText);
- }
-
- /*作业end*/
-
- br.close();
- }
-
- public void writeFile(String file_path) throws IOException
- {
- File file;
- FileWriter fw;
- PrintWriter pw;
-
- file = new File(file_path);
- if (!file.exists()){
- file.createNewFile();
- }
- fw = new FileWriter(file);
- pw = new PrintWriter(fw);
-
- /*作业:改写以下代码,使用循环输出FileIOMain.outputList至文件*/
- /**
- * 根据list长度进行循环遍历存储
- */
- Integer flag = outputList.size();
- Integer index =0;
- while (index va, ArrayList vb)
- {
- // 如果向量维度不相等,则不能计算,函数退出
- if (va.size() != vb.size())
- {
- return 0;
- }
-
- int a = va.size();
- int b = vb.size();
- float simVal = 0;
-
-
- //sim(va,vb) = (va * vb) / (|va| * |vb|)
- // 分子 = va.get(0)*vb.get(0) + va.get(1)*vb.get(1) +...+ va.get(size - 1)*vb.get(size - 1)
- // 分母 = va的模 * vb的模 = sqrt((va.get(0))的平方 + (va.get(1))的平方 + ... + va.get(size - 1)的平方) * sqrt((vb.get(0))的平方 + (vb.get(1))的平方 + ... + vb.get(size - 1)的平方)
- float num = 0;// numerator分子
- float den = 1;// denominator分母
-
- /*作业,第三题*/
-
- for (int i = 0; i va = new ArrayList();
- ArrayList vb = new ArrayList();
- for (int i = 0; i < a.length; i++)
- {
- vitem.add(item[i]);
- va.add(new Float(a[i]));
- vb.add(new Float(b[i]));
- }
- System.out.print("兴趣");
- System.out.println(vitem);
- System.out.print("小红");
- System.out.println(va);
- System.out.print("胡冠中");
- System.out.println(vb);
-
- SimilarityMain sim = new SimilarityMain();
-
- float simVal = sim.sim(va, vb);
-
- System.out.println("The sim value is:" + simVal);
- }
-
-}
diff --git "a/team_project/17200135122_\350\203\241\345\206\240\344\270\255_\345\233\242\351\230\237\344\275\234\344\270\2321.doc" "b/team_project/17200135122_\350\203\241\345\206\240\344\270\255_\345\233\242\351\230\237\344\275\234\344\270\2321.doc"
index 622586aac6811bb8881559f308bbd675da1e92eb..c3fe436d4f6e8eb496caabe094353378990710d1 100644
Binary files "a/team_project/17200135122_\350\203\241\345\206\240\344\270\255_\345\233\242\351\230\237\344\275\234\344\270\2321.doc" and "b/team_project/17200135122_\350\203\241\345\206\240\344\270\255_\345\233\242\351\230\237\344\275\234\344\270\2321.doc" differ