diff --git a/.idea/artifacts/GDMS_war_exploded.xml b/.idea/artifacts/GDMS_war_exploded.xml new file mode 100644 index 0000000..e69de29 diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml index c685b63..81ea5c7 100644 --- a/.idea/dataSources.xml +++ b/.idea/dataSources.xml @@ -1,7 +1,7 @@ - + mariadb true org.mariadb.jdbc.Driver diff --git a/.idea/dataSources/356b1cbb-8e8d-401f-bdfc-b3e917bc8301.corrupted.20190114-065036.reason.txt b/.idea/dataSources/356b1cbb-8e8d-401f-bdfc-b3e917bc8301.corrupted.20190114-065036.reason.txt new file mode 100644 index 0000000..cf4b29f --- /dev/null +++ b/.idea/dataSources/356b1cbb-8e8d-401f-bdfc-b3e917bc8301.corrupted.20190114-065036.reason.txt @@ -0,0 +1,22 @@ +com.intellij.database.serialization.ImportException: RDBMS is not specified int the model file + at com.intellij.database.serialization.ModelImporter.deserializeModel(ModelImporter.java:57) + at com.intellij.database.serialization.ModelSerializerKt.deserialize(ModelSerializer.kt:37) + at com.intellij.database.serialization.ModelSerializerKt.deserialize(ModelSerializer.kt:27) + at com.intellij.database.dataSource.DataSourceStorage.readModel(DataSourceStorage.java:683) + at com.intellij.database.dataSource.DataSourceStorage.readModel(DataSourceStorage.java:671) + at com.intellij.database.dataSource.DataSourceStorage.loadModels(DataSourceStorage.java:488) + at com.intellij.database.dataSource.DataSourceStorage.access$000(DataSourceStorage.java:90) + at com.intellij.database.dataSource.DataSourceStorage$2.run(DataSourceStorage.java:398) + at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:736) + at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157) + at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580) + at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525) + at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85) + at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144) + at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:395) + at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314) + at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) + at java.util.concurrent.FutureTask.run(FutureTask.java:266) + at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) + at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) + at java.lang.Thread.run(Thread.java:745) diff --git a/.idea/dataSources/356b1cbb-8e8d-401f-bdfc-b3e917bc8301.corrupted.20190114-065036.xml b/.idea/dataSources/356b1cbb-8e8d-401f-bdfc-b3e917bc8301.corrupted.20190114-065036.xml new file mode 100644 index 0000000..3473dc6 --- /dev/null +++ b/.idea/dataSources/356b1cbb-8e8d-401f-bdfc-b3e917bc8301.corrupted.20190114-065036.xml @@ -0,0 +1,2144 @@ + + + + + 10.3.10 + MARIADB + InnoDB + lower/lower + + + 1 + 1 + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + latin1_swedish_ci + + + utf8_general_ci + + + armscii8 + 0 + + + armscii8 + 1 + + + armscii8 + 0 + + + armscii8 + 0 + + + ascii + 0 + + + ascii + 1 + + + ascii + 0 + + + ascii + 0 + + + big5 + 0 + + + big5 + 1 + + + big5 + 0 + + + big5 + 0 + + + binary + 1 + + + cp1250 + 0 + + + cp1250 + 0 + + + cp1250 + 0 + + + cp1250 + 1 + + + cp1250 + 0 + + + cp1250 + 0 + + + cp1250 + 0 + + + cp1251 + 0 + + + cp1251 + 0 + + + cp1251 + 1 + + + cp1251 + 0 + + + cp1251 + 0 + + + cp1251 + 0 + + + cp1251 + 0 + + + cp1256 + 0 + + + cp1256 + 1 + + + cp1256 + 0 + + + cp1256 + 0 + + + cp1257 + 0 + + + cp1257 + 1 + + + cp1257 + 0 + + + cp1257 + 0 + + + cp1257 + 0 + + + cp850 + 0 + + + cp850 + 1 + + + cp850 + 0 + + + cp850 + 0 + + + cp852 + 0 + + + cp852 + 1 + + + cp852 + 0 + + + cp852 + 0 + + + cp866 + 0 + + + cp866 + 1 + + + cp866 + 0 + + + cp866 + 0 + + + cp932 + 0 + + + cp932 + 1 + + + cp932 + 0 + + + cp932 + 0 + + + dec8 + 0 + + + dec8 + 0 + + + dec8 + 1 + + + dec8 + 0 + + + eucjpms + 0 + + + eucjpms + 1 + + + eucjpms + 0 + + + eucjpms + 0 + + + euckr + 0 + + + euckr + 1 + + + euckr + 0 + + + euckr + 0 + + + gb2312 + 0 + + + gb2312 + 1 + + + gb2312 + 0 + + + gb2312 + 0 + + + gbk + 0 + + + gbk + 1 + + + gbk + 0 + + + gbk + 0 + + + geostd8 + 0 + + + geostd8 + 1 + + + geostd8 + 0 + + + geostd8 + 0 + + + greek + 0 + + + greek + 1 + + + greek + 0 + + + greek + 0 + + + hebrew + 0 + + + hebrew + 1 + + + hebrew + 0 + + + hebrew + 0 + + + hp8 + 0 + + + hp8 + 1 + + + hp8 + 0 + + + hp8 + 0 + + + keybcs2 + 0 + + + keybcs2 + 1 + + + keybcs2 + 0 + + + keybcs2 + 0 + + + koi8r + 0 + + + koi8r + 1 + + + koi8r + 0 + + + koi8r + 0 + + + koi8u + 0 + + + koi8u + 1 + + + koi8u + 0 + + + koi8u + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 1 + + + latin1 + 0 + + + latin2 + 0 + + + latin2 + 0 + + + latin2 + 0 + + + latin2 + 1 + + + latin2 + 0 + + + latin2 + 0 + + + latin2 + 0 + + + latin5 + 0 + + + latin5 + 0 + + + latin5 + 1 + + + latin5 + 0 + + + latin7 + 0 + + + latin7 + 0 + + + latin7 + 1 + + + latin7 + 0 + + + latin7 + 0 + + + latin7 + 0 + + + macce + 0 + + + macce + 1 + + + macce + 0 + + + macce + 0 + + + macroman + 0 + + + macroman + 1 + + + macroman + 0 + + + macroman + 0 + + + sjis + 0 + + + sjis + 1 + + + sjis + 0 + + + sjis + 0 + + + swe7 + 0 + + + swe7 + 0 + + + swe7 + 1 + + + swe7 + 0 + + + tis620 + 0 + + + tis620 + 0 + + + tis620 + 1 + + + tis620 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 1 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ujis + 0 + + + ujis + 1 + + + ujis + 0 + + + ujis + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 1 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16le + 0 + + + utf16le + 1 + + + utf16le + 0 + + + utf16le + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 1 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 1 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 1 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + 管理员 +
+ + 公告 +
+ + 毕业设计 +
+ + 毕设论文 +
+ + 指导老师评定成绩 +
+ + 评阅老师对论文的评审成绩 +
+ + 毕业设计信息 +
+ + 开题报告 +
+ + 开题报告会纪要 +
+ + 答辩 +
+ + 答辩记录表 +
+ + 开题报告秘书组 +
+ + 开题报告老师组 +
+ + 专业信息 +
+ + 答辩秘书小组 +
+ + 答辩教师组 +
+ + 学生用户 +
+ + 老师用户 +
+ + 1 + char(20)|0s + 1 + normal + + + 2 + char(255)|0s + 1 + normal + + + 3 + char(30)|0s + normal + + + 4 + char(40)|0s + normal + + + 5 + char(20)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + text|0s + normal + + + 3 + text|0s + normal + + + 4 + date|0s + normal + + + 5 + varchar(255)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(20)|0s + normal + + + 3 + char(20)|0s + normal + + + 4 + char(1)|0s + normal + + + 5 + char(1)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + int(11)|0s + normal + + + 3 + date|0s + normal + + + 4 + varchar(255)|0s + normal + + + 5 + text|0s + normal + + + 6 + text|0s + normal + + + 7 + text|0s + normal + + + 8 + text|0s + normal + + + 9 + float|0s + normal + + + 10 + char(1)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + float|0s + normal + + + 3 + float|0s + normal + + + 4 + float|0s + normal + + + 5 + float|0s + normal + + + 6 + float|0s + normal + + + 7 + float|0s + normal + + + 8 + float|0s + normal + + + 9 + float|0s + normal + + + 10 + float|0s + normal + + + 11 + float|0s + normal + + + 12 + float|0s + normal + + + 13 + float|0s + normal + + + 14 + float|0s + normal + + + 15 + float|0s + normal + + + 16 + float|0s + normal + + + 17 + text|0s + normal + + + 18 + date|0s + normal + + + 19 + char(1)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + float|0s + normal + + + 3 + text|0s + normal + + + 4 + date|0s + normal + + + 5 + char(1)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + varchar(255)|0s + normal + + + 4 + varchar(255)|0s + normal + + + 5 + varchar(255)|0s + normal + + + 6 + varchar(255)|0s + normal + + + 7 + text|0s + normal + + + 8 + char(1)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + date|0s + normal + + + 3 + varchar(255)|0s + normal + + + 4 + varchar(255)|0s + normal + + + 5 + char(20)|0s + normal + + + 6 + char(20)|0s + normal + + + 7 + int(11)|0s + normal + + + 8 + char(1)|0s + normal + + + 9 + char(1)|0s + normal + + + 10 + char(1)|0s + normal + + + 11 + char(1)|0s + normal + + + 12 + char(1)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + text|0s + normal + + + 3 + date|0s + normal + + + 4 + text|0s + normal + + + 5 + date|0s + normal + + + 6 + text|0s + normal + + + 7 + date|0s + normal + + + 8 + text|0s + normal + + + 9 + date|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + date|0s + normal + + + 3 + varchar(255)|0s + normal + + + 4 + char(20)|0s + normal + + + 5 + char(20)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + text|0s + normal + + + 3 + date|0s + normal + + + 4 + text|0s + normal + + + 5 + date|0s + normal + + + 6 + text|0s + normal + + + 7 + float|0s + normal + + + 8 + date|0s + normal + + + 9 + text|0s + normal + + + 10 + float|0s + normal + + + 11 + date|0s + normal + + + 12 + text|0s + normal + + + 13 + float|0s + normal + + + 14 + date|0s + normal + + + 15 + char(1)|0s + normal + + + 16 + char(1)|0s + normal + + + 17 + char(1)|0s + normal + + + 18 + char(1)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(20)|0s + normal + + + 3 + char(20)|0s + normal + + + 1 + leader_student_id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(20)|0s + normal + + + 3 + char(20)|0s + normal + + + 1 + leader_teacher_id + 1 + + + 1 + char(8)|0s + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + varchar(255)|0s + normal + + + 4 + varchar(255)|0s + normal + + + 1 + profession_code + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(20)|0s + normal + + + 3 + char(20)|0s + normal + + + 1 + leader_student_id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(20)|0s + normal + + + 3 + char(20)|0s + normal + + + 1 + leader_teacher_id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(255)|0s + 1 + normal + + + 3 + char(30)|0s + normal + + + 4 + char(40)|0s + normal + + + 5 + char(20)|0s + normal + + + 6 + char(4)|0s + normal + + + 7 + char(8)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(255)|0s + 1 + normal + + + 3 + char(30)|0s + normal + + + 4 + char(40)|0s + normal + + + 5 + char(20)|0s + normal + + + 6 + varchar(255)|0s + normal + + + 7 + varchar(255)|0s + normal + + + 8 + char(8)|0s + normal + + + 1 + id + 1 + +
+
\ No newline at end of file diff --git a/.idea/dataSources/9ab10673-d584-44a7-a783-8ac833d52c51.xml b/.idea/dataSources/9ab10673-d584-44a7-a783-8ac833d52c51.xml new file mode 100644 index 0000000..cf34b4f --- /dev/null +++ b/.idea/dataSources/9ab10673-d584-44a7-a783-8ac833d52c51.xml @@ -0,0 +1,2272 @@ + + + + + 10.3.10 + MariaDB + InnoDB + lower/lower + + + 1 + 1 + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + utf8_general_ci + + + latin1_swedish_ci + + + utf8_general_ci + + + armscii8 + 0 + + + armscii8 + 1 + + + armscii8 + 0 + + + armscii8 + 0 + + + ascii + 0 + + + ascii + 1 + + + ascii + 0 + + + ascii + 0 + + + big5 + 0 + + + big5 + 1 + + + big5 + 0 + + + big5 + 0 + + + binary + 1 + + + cp1250 + 0 + + + cp1250 + 0 + + + cp1250 + 0 + + + cp1250 + 1 + + + cp1250 + 0 + + + cp1250 + 0 + + + cp1250 + 0 + + + cp1251 + 0 + + + cp1251 + 0 + + + cp1251 + 1 + + + cp1251 + 0 + + + cp1251 + 0 + + + cp1251 + 0 + + + cp1251 + 0 + + + cp1256 + 0 + + + cp1256 + 1 + + + cp1256 + 0 + + + cp1256 + 0 + + + cp1257 + 0 + + + cp1257 + 1 + + + cp1257 + 0 + + + cp1257 + 0 + + + cp1257 + 0 + + + cp850 + 0 + + + cp850 + 1 + + + cp850 + 0 + + + cp850 + 0 + + + cp852 + 0 + + + cp852 + 1 + + + cp852 + 0 + + + cp852 + 0 + + + cp866 + 0 + + + cp866 + 1 + + + cp866 + 0 + + + cp866 + 0 + + + cp932 + 0 + + + cp932 + 1 + + + cp932 + 0 + + + cp932 + 0 + + + dec8 + 0 + + + dec8 + 0 + + + dec8 + 1 + + + dec8 + 0 + + + eucjpms + 0 + + + eucjpms + 1 + + + eucjpms + 0 + + + eucjpms + 0 + + + euckr + 0 + + + euckr + 1 + + + euckr + 0 + + + euckr + 0 + + + gb2312 + 0 + + + gb2312 + 1 + + + gb2312 + 0 + + + gb2312 + 0 + + + gbk + 0 + + + gbk + 1 + + + gbk + 0 + + + gbk + 0 + + + geostd8 + 0 + + + geostd8 + 1 + + + geostd8 + 0 + + + geostd8 + 0 + + + greek + 0 + + + greek + 1 + + + greek + 0 + + + greek + 0 + + + hebrew + 0 + + + hebrew + 1 + + + hebrew + 0 + + + hebrew + 0 + + + hp8 + 0 + + + hp8 + 1 + + + hp8 + 0 + + + hp8 + 0 + + + keybcs2 + 0 + + + keybcs2 + 1 + + + keybcs2 + 0 + + + keybcs2 + 0 + + + koi8r + 0 + + + koi8r + 1 + + + koi8r + 0 + + + koi8r + 0 + + + koi8u + 0 + + + koi8u + 1 + + + koi8u + 0 + + + koi8u + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 0 + + + latin1 + 1 + + + latin1 + 0 + + + latin2 + 0 + + + latin2 + 0 + + + latin2 + 0 + + + latin2 + 1 + + + latin2 + 0 + + + latin2 + 0 + + + latin2 + 0 + + + latin5 + 0 + + + latin5 + 0 + + + latin5 + 1 + + + latin5 + 0 + + + latin7 + 0 + + + latin7 + 0 + + + latin7 + 1 + + + latin7 + 0 + + + latin7 + 0 + + + latin7 + 0 + + + macce + 0 + + + macce + 1 + + + macce + 0 + + + macce + 0 + + + macroman + 0 + + + macroman + 1 + + + macroman + 0 + + + macroman + 0 + + + sjis + 0 + + + sjis + 1 + + + sjis + 0 + + + sjis + 0 + + + swe7 + 0 + + + swe7 + 0 + + + swe7 + 1 + + + swe7 + 0 + + + tis620 + 0 + + + tis620 + 0 + + + tis620 + 1 + + + tis620 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 1 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ucs2 + 0 + + + ujis + 0 + + + ujis + 1 + + + ujis + 0 + + + ujis + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 1 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16 + 0 + + + utf16le + 0 + + + utf16le + 1 + + + utf16le + 0 + + + utf16le + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 1 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf32 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 1 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 1 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + utf8mb4 + 0 + + + 管理员 +
+ + 公告 +
+ + 毕业设计 +
+ + 毕设论文 +
+ + 指导老师评定成绩 +
+ + 评阅老师对论文的评审成绩 +
+ + 毕业设计信息 +
+ + 开题报告 +
+ + 开题报告会纪要 +
+ + 答辩 +
+ + 答辩记录表 +
+ + 开题报告秘书组 +
+ + 开题报告老师组 +
+ + 专业信息 +
+ + 答辩秘书小组 +
+ + 答辩教师组 +
+ + 学生用户 +
+ + 老师用户 +
+ + 898 + + + 772 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(255)|0s + 1 + normal + + + 3 + char(30)|0s + normal + + + 4 + char(40)|0s + normal + + + 5 + char(20)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + text|0s + normal + + + 3 + text|0s + normal + + + 4 + date|0s + normal + + + 5 + varchar(255)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(20)|0s + normal + + + 3 + char(20)|0s + normal + + + 4 + char(1)|0s + normal + + + 5 + char(1)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + int(11)|0s + normal + + + 3 + date|0s + normal + + + 4 + varchar(255)|0s + normal + + + 5 + text|0s + normal + + + 6 + text|0s + normal + + + 7 + text|0s + normal + + + 8 + text|0s + normal + + + 9 + float|0s + normal + + + 10 + char(1)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + float|0s + normal + + + 3 + float|0s + normal + + + 4 + float|0s + normal + + + 5 + float|0s + normal + + + 6 + float|0s + normal + + + 7 + float|0s + normal + + + 8 + float|0s + normal + + + 9 + float|0s + normal + + + 10 + float|0s + normal + + + 11 + float|0s + normal + + + 12 + float|0s + normal + + + 13 + float|0s + normal + + + 14 + float|0s + normal + + + 15 + float|0s + normal + + + 16 + float|0s + normal + + + 17 + text|0s + normal + + + 18 + date|0s + normal + + + 19 + char(1)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(20)|0s + normal + + + 3 + float|0s + normal + + + 4 + text|0s + normal + + + 5 + date|0s + normal + + + 6 + char(1)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + varchar(255)|0s + normal + + + 4 + varchar(255)|0s + normal + + + 5 + varchar(255)|0s + normal + + + 6 + varchar(255)|0s + normal + + + 7 + text|0s + normal + + + 8 + char(1)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + date|0s + normal + + + 3 + varchar(255)|0s + normal + + + 4 + varchar(255)|0s + normal + + + 5 + char(20)|0s + normal + + + 6 + char(20)|0s + normal + + + 7 + int(11)|0s + normal + + + 8 + char(1)|0s + normal + + + teacher_leader_team_id + btree + + + secretary_leader_team_id + btree + + + 1 + id + 1 + + + teacher_leader_team_id + gdms + opening_report_teacher_team + leader_teacher_id + + + secretary_leader_team_id + gdms + opening_report_secretary_team + leader_student_id + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(20)|0s + normal + + + 3 + text|0s + normal + + + 4 + date|0s + normal + + + 5 + text|0s + normal + + + 6 + date|0s + normal + + + 7 + text|0s + normal + + + 8 + date|0s + normal + + + 9 + text|0s + normal + + + 10 + date|0s + normal + + + 11 + char(1)|0s + normal + + + 12 + char(1)|0s + normal + + + 13 + char(1)|0s + normal + + + 14 + char(1)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + date|0s + normal + + + 3 + varchar(255)|0s + normal + + + 4 + char(20)|0s + normal + + + 5 + char(20)|0s + normal + + + teacher_team_leader_id + btree + + + secretary_team_leader_id + btree + + + 1 + id + 1 + + + teacher_team_leader_id + gdms + reply_teacher_team + leader_teacher_id + + + secretary_team_leader_id + gdms + reply_secretary_team + leader_student_id + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(20)|0s + normal + + + 3 + char(20)|0s + normal + + + 4 + text|0s + normal + + + 5 + date|0s + normal + + + 6 + text|0s + normal + + + 7 + date|0s + normal + + + 8 + text|0s + normal + + + 9 + float|0s + normal + + + 10 + date|0s + normal + + + 11 + text|0s + normal + + + 12 + float|0s + normal + + + 13 + date|0s + normal + + + 14 + text|0s + normal + + + 15 + float|0s + normal + + + 16 + date|0s + normal + + + 17 + char(1)|0s + normal + + + 18 + char(1)|0s + normal + + + 19 + char(1)|0s + normal + + + 20 + char(1)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(20)|0s + normal + + + 3 + char(20)|0s + normal + + + 1 + leader_student_id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(20)|0s + normal + + + 3 + char(20)|0s + normal + + + 1 + leader_teacher_id + 1 + + + 1 + char(8)|0s + 1 + normal + + + 2 + varchar(255)|0s + normal + + + 3 + varchar(255)|0s + normal + + + 4 + varchar(255)|0s + normal + + + 1 + profession_code + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(20)|0s + normal + + + 3 + char(20)|0s + normal + + + 1 + leader_student_id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(20)|0s + normal + + + 3 + char(20)|0s + normal + + + 1 + leader_teacher_id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(255)|0s + 1 + normal + + + 3 + char(30)|0s + normal + + + 4 + char(40)|0s + normal + + + 5 + char(20)|0s + normal + + + 6 + char(4)|0s + normal + + + 7 + char(8)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + normal + + + 2 + char(255)|0s + 1 + normal + + + 3 + char(30)|0s + normal + + + 4 + char(40)|0s + normal + + + 5 + char(20)|0s + normal + + + 6 + varchar(255)|0s + normal + + + 7 + varchar(255)|0s + normal + + + 8 + char(8)|0s + normal + + + 1 + id + 1 + + + 1 + char(20)|0s + 1 + + + 2 + char(20)|0s + 1 + + + 3 + char(20)|0s + + + 4 + char(20)|0s + + + 5 + char(20)|0s + 1 + + + 6 + char(20)|0s + + + 7 + char(20)|0s + + + 1 + char(20)|0s + 1 + + + 2 + char(20)|0s + 1 + + + 3 + char(20)|0s + + + 4 + char(20)|0s + + + 5 + char(20)|0s + 1 + + + 6 + char(20)|0s + + + 7 + char(20)|0s + +
+
\ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..15a15b2 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ b/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/GDMS.iml b/GDMS.iml index e49e437..35bf961 100644 --- a/GDMS.iml +++ b/GDMS.iml @@ -19,6 +19,7 @@ + @@ -28,6 +29,5 @@ -
\ No newline at end of file diff --git a/src/core/operation/Delete.java b/src/core/operation/Delete.java index f9e7acd..678aeaf 100644 --- a/src/core/operation/Delete.java +++ b/src/core/operation/Delete.java @@ -12,9 +12,7 @@ public class Delete extends Operation { public Map execute(User subject) throws GExcptSQL { Map map = new HashMap<>(); map.put("id",(String)this.getOptions().get("id")); - for(String table:DBManagement.graduationDesignTables){ - DBManagement.delete(table,map); - } + //todo return this.getOptions(); } } diff --git a/src/core/operation/Select.java b/src/core/operation/Select.java index 9d09797..7b5b6ab 100644 --- a/src/core/operation/Select.java +++ b/src/core/operation/Select.java @@ -12,17 +12,15 @@ public class Select extends Operation { @Override public Map execute(User subject) throws GExcptSQL { Map vMap = new HashMap<>(); + Map limits = new HashMap<>(); String id = (String)this.getOptions().get("student_id"); String teacher_id = (String)this.getOptions().get("teacher_id"); - vMap.put("id",id); + limits.put("id",id); vMap.put("student_id",id); vMap.put("teacher_id",teacher_id); - DBManagement.insert("graduation_design", vMap); + DBManagement.update("graduation_design", vMap,limits); vMap.remove("student_id"); vMap.remove("teacher_id"); - for(int i=1;i vMap; + private static String buttonName ="学院开题意见"; + protected static String iconURL="../cssFile/images/fill.png"; + protected static String targetURL="/home/college-fill-opening-report-opinion"; static String table="graduation_design_opening_report_opinion_record"; diff --git a/src/core/process/C_CollegeFillScoreOpinion.java b/src/core/process/C_CollegeFillScoreOpinion.java index 96e4e7d..e15869b 100644 --- a/src/core/process/C_CollegeFillScoreOpinion.java +++ b/src/core/process/C_CollegeFillScoreOpinion.java @@ -12,7 +12,9 @@ public class C_CollegeFillScoreOpinion extends TempProcess{ String graduationDesignId; Map vMap; - + private static String buttonName ="学院老师评分"; + protected static String iconURL="../cssFile/images/fill.png"; + protected static String targetURL="/home/college-fill-score-opinion"; static String table="graduation_design_reply_opinion_record_score"; public void fillInformation() throws Exception{ @@ -30,7 +32,7 @@ public class C_CollegeFillScoreOpinion extends TempProcess{ } protected boolean check() { - if(this.getGraduationDesignId()==null) + if(this.getGraduationDesignId()==null||this.getVMap()==null) return false; return true; } diff --git a/src/core/process/C_MentorFillOpeningReportOpinion.java b/src/core/process/C_MentorFillOpeningReportOpinion.java index 139904e..9f5ab53 100644 --- a/src/core/process/C_MentorFillOpeningReportOpinion.java +++ b/src/core/process/C_MentorFillOpeningReportOpinion.java @@ -10,7 +10,11 @@ import java.util.Map; public class C_MentorFillOpeningReportOpinion extends TempProcess{ + String graduationDesignId; Map vMap; + private static String buttonName ="导师开题意见"; + protected static String iconURL="../cssFile/images/fill.png"; + protected static String targetURL="/home/mentor-fill-opening-report-opinion"; static String table="graduation_design_opening_report_opinion_record"; @@ -33,6 +37,16 @@ public class C_MentorFillOpeningReportOpinion extends TempProcess{ return false; return true; } + @Override + public String getGraduationDesignId() { + return graduationDesignId; + } + + @Override + public void setGraduationDesignId(String graduationDesignId) { + this.graduationDesignId = graduationDesignId; + } + public void setVMap(Map vMap) { this.vMap = vMap; } diff --git a/src/core/process/C_MentorFillReview.java b/src/core/process/C_MentorFillReview.java index d9a3128..49c6402 100644 --- a/src/core/process/C_MentorFillReview.java +++ b/src/core/process/C_MentorFillReview.java @@ -9,30 +9,16 @@ import java.util.HashMap; import java.util.Map; public class C_MentorFillReview extends TempProcess { - public String teacherID; - public String teacher_opinion; + + public String graduationDesignId; public Map vMap; + private static String buttonName ="指导老师评阅"; + protected static String targetURL="/home/mentor-fill-review"; + protected static String iconURL="../cssFile/images/fill.png"; static String table="graduation_design_finished_product_mentor_score"; - public String getTeacher_opinion() { - return teacher_opinion; - } - public void setTeacher_opinion(String teacher_opinion) { - this.teacher_opinion = teacher_opinion; - } - public String getTeacherID() { - return teacherID; - } - public void setTeacherID(String teacherID) { - this.teacherID = teacherID; - } - public Map getvMap() { - return vMap; - } - public void setvMap(Map vMap) { - this.vMap = vMap; - } - public void TeacherTeamFillOpeningReportOpinion() throws Exception{ + + public void teacherTeamFillOpeningReportOpinion() throws Exception{ if(!check()) throw new GExcptInit("MentorFillReview Attrs init error!"); FillInformation fillInformation=new FillInformation(); fillInformation.setOptions(new HashMap<>()); @@ -41,18 +27,30 @@ public class C_MentorFillReview extends TempProcess { String date=df.format(new Date()); vMap.put("review_opinion_date",date); Maplimits = new HashMap<>(); - limits.put("id",this.getTeacherID()); + limits.put("id",this.getGraduationDesignId()); fillInformation.addOptions("limits",limits); fillInformation.execute(null); } - @Override protected boolean check() { - if(this.getTeacherID().equals(null)||this.getTeacher_opinion().equals(null)||this.getvMap().equals(null)) + if(this.getGraduationDesignId()==null||this.getVMap()==null) return false; else return true; } + public String getGraduationDesignId() { + return graduationDesignId; + } + + public void setGraduationDesignId(String graduationDesignId) { + this.graduationDesignId = graduationDesignId; + } + public void setVMap(Map vMap) { + this.vMap = vMap; + } + public Map getVMap() { + return vMap; + } } diff --git a/src/core/process/C_ReviewerFillReview.java b/src/core/process/C_ReviewerFillReview.java new file mode 100644 index 0000000..d501066 --- /dev/null +++ b/src/core/process/C_ReviewerFillReview.java @@ -0,0 +1,64 @@ +package core.process; + +import core.operation.FillInformation; +import error.GExcptInit; + +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; +//评阅老师评阅 +public class C_ReviewerFillReview extends TempProcess { + public String graduationDesignId; + public Map vMap; + private static String buttonName ="评阅老师评阅"; + protected static String iconURL="../cssFile/images/fill.png"; + protected static String targetURL="/home/reviewer-fill-review"; + + static String table="graduation_design_finished_product_reviewer_score"; + + public void TeacherTeamFillOpeningReportOpinion() throws Exception{ + if(!check()) throw new GExcptInit("ReviewerFillReview Attrs init error!"); + FillInformation fillInformation=new FillInformation(); + fillInformation.setOptions(new HashMap<>()); + fillInformation.addOptions("table",table); + SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss"); + String date=df.format(new Date()); + vMap.put("reviewer_score_date",date); + Maplimits = new HashMap<>(); + limits.put("id",this.getGraduationDesignId()); + fillInformation.addOptions("limits",limits); + fillInformation.execute(null); + } + + @Override + protected boolean check() { + if(this.getGraduationDesignId()==null||this.getVMap()==null) + return false; + else + return true; + } + public String getGraduationDesignId() { + return graduationDesignId; + } + public void setGraduationDesignId(String teacherID) { + this.graduationDesignId = graduationDesignId; + } + public Map getVMap() { + return vMap; + } + public void setVMap(Map vMap) { + this.vMap = vMap; + } +} + + + + + + + + + + + diff --git a/src/core/process/C_SchoolFillScoreOpinion.java b/src/core/process/C_SchoolFillScoreOpinion.java index 652cf1b..e512506 100644 --- a/src/core/process/C_SchoolFillScoreOpinion.java +++ b/src/core/process/C_SchoolFillScoreOpinion.java @@ -12,6 +12,9 @@ public class C_SchoolFillScoreOpinion extends TempProcess { String graduationDesignId; Map vMap; + private static String buttonName ="学院老师评分"; + protected static String iconURL="../cssFile/images/fill.png"; + protected static String targetURL="/home/school-fill-score-opinion"; static String table="graduation_design_reply_opinion_record_score"; public void fillInformation() throws Exception{ @@ -28,7 +31,7 @@ public class C_SchoolFillScoreOpinion extends TempProcess { fillInformation.execute(null); } protected boolean check() { - if(this.getGraduationDesignId()==null) + if(this.getGraduationDesignId()==null||this.getVMap()==null) return false; return true; } @@ -45,6 +48,10 @@ public class C_SchoolFillScoreOpinion extends TempProcess { this.vMap = vMap; } + public Map getVMap() { + return vMap; + } + } diff --git a/src/core/process/C_SecretaryFillOpeningReportOpinion.java b/src/core/process/C_SecretaryFillOpeningReportRecord.java similarity index 77% rename from src/core/process/C_SecretaryFillOpeningReportOpinion.java rename to src/core/process/C_SecretaryFillOpeningReportRecord.java index d0398a3..011b507 100644 --- a/src/core/process/C_SecretaryFillOpeningReportOpinion.java +++ b/src/core/process/C_SecretaryFillOpeningReportRecord.java @@ -8,10 +8,13 @@ import java.util.Date; import java.util.HashMap; import java.util.Map; -public class C_SecretaryFillOpeningReportOpinion extends TempProcess{ +public class C_SecretaryFillOpeningReportRecord extends TempProcess{ String graduationDesignId; Map vMap; + private static String buttonName ="提交开题纪要"; + protected static String iconURL="../cssFile/images/fill.png"; + protected static String targetURL="/home/secretary-fill-opening-report-record"; static String table="graduation_design_opening_report_opinion_record"; @@ -29,7 +32,7 @@ public class C_SecretaryFillOpeningReportOpinion extends TempProcess{ fillInformation.execute(null); } protected boolean check() { - if(this.getGraduationDesignId()==null) + if(this.getGraduationDesignId()==null||this.getVMap()==null) return false; return true; } @@ -46,5 +49,8 @@ public class C_SecretaryFillOpeningReportOpinion extends TempProcess{ public void setVMap(Map vMap) { this.vMap = vMap; } + public Map getVMap() { + return vMap; + } } diff --git a/src/core/process/C_SecretaryFillReplyRecord.java b/src/core/process/C_SecretaryFillReplyRecord.java index 0c8c478..17557dd 100644 --- a/src/core/process/C_SecretaryFillReplyRecord.java +++ b/src/core/process/C_SecretaryFillReplyRecord.java @@ -12,6 +12,9 @@ public class C_SecretaryFillReplyRecord extends TempProcess{ String graduationDesignId; Map vMap; + private static String buttonName ="提交答辩记录"; + protected static String iconURL="../cssFile/images/fill.png"; + protected static String targetURL="/home/secretary-fill-reply-record"; static String table="graduation_design_reply_opinion_record_score"; @@ -30,7 +33,7 @@ public class C_SecretaryFillReplyRecord extends TempProcess{ } protected boolean check() { - if(this.getGraduationDesignId()==null) + if(this.getGraduationDesignId()==null||this.getVMap()==null) return false; return true; } @@ -46,6 +49,9 @@ public class C_SecretaryFillReplyRecord extends TempProcess{ this.vMap = vMap; } + public Map getVMap() { + return vMap; + } } diff --git a/src/core/process/C_StudentFillGraduationDesignInformation.java b/src/core/process/C_StudentFillGraduationDesignInformation.java index 33e6df4..6462ecf 100644 --- a/src/core/process/C_StudentFillGraduationDesignInformation.java +++ b/src/core/process/C_StudentFillGraduationDesignInformation.java @@ -11,6 +11,9 @@ import java.util.Map; public class C_StudentFillGraduationDesignInformation extends TempProcess{ String graduationDesignId; Map vMap; + private static String buttonName ="填写选题信息"; + protected static String iconURL="../cssFile/images/filText.png"; + protected static String targetURL="/home/student-fill-graduation-design-information"; static String table="graduation_design_opening_report_opinion_record"; @@ -25,7 +28,7 @@ public class C_StudentFillGraduationDesignInformation extends TempProcess{ fillInformation.execute(null); } protected boolean check() { - if(this.getGraduationDesignId()==null) + if(this.getGraduationDesignId()==null||this.getVMap()==null) return false; return true; } @@ -43,5 +46,9 @@ public class C_StudentFillGraduationDesignInformation extends TempProcess{ this.vMap = vMap; } + public Map getVMap() { + return vMap; + } + } \ No newline at end of file diff --git a/src/core/process/C_StudentSearchTeacher.java b/src/core/process/C_StudentSearchTeacher.java index 65931e4..a519a53 100644 --- a/src/core/process/C_StudentSearchTeacher.java +++ b/src/core/process/C_StudentSearchTeacher.java @@ -36,6 +36,25 @@ public class C_StudentSearchTeacher extends TempProcess{ TeacherInfo.put("phone_number",s[4]); return TeacherInfo; } + public List> _search() throws Exception{ + if(!check()) throw new GExcptInit("teacherId Attrs init error!"); + Search search = new Search() ; + search.setOptions(new HashMap<>()); + search.addOptions("table",table); + List fields = new ArrayList<>(); + fields.add("*"); + search.addOptions("field",fields); + Map limits = new HashMap<>(); + limits.put("id",this.getTeacherID()); + search.addOptions("limits",limits); + search.addOptions("start",0); + search.addOptions("end",10); + Map options = search.execute(null); + List result = (List) options.get("result"); + List> teachersInfo = new ArrayList<>(); + core.process.Utils.formatResult(result, teachersInfo); + return teachersInfo; + } protected boolean check() { if(this.getTeacherID()==null) diff --git a/src/core/process/C_StudentSelectTeacher.java b/src/core/process/C_StudentSelectTeacher.java index ee8ada0..d4e57ca 100644 --- a/src/core/process/C_StudentSelectTeacher.java +++ b/src/core/process/C_StudentSelectTeacher.java @@ -1,5 +1,6 @@ package core.process; +import core.operation.Search; import core.operation.Select; import error.GExcptInit; @@ -11,6 +12,9 @@ import java.util.Map; public class C_StudentSelectTeacher extends TempProcess { String studentId; String teacherId; + private static String buttonName ="选择老师"; + protected static String targetURL="/home/student-select-teacher"; + protected static String iconURL="../cssFile/images/select.png"; public void select()throws Exception{ if(!check()) throw new GExcptInit("ID Attrs init error!"); @@ -20,6 +24,24 @@ public class C_StudentSelectTeacher extends TempProcess { select.addOptions("teacher_id",this.getTeacherId()); Map options=select.execute(null); } + public List> search(String teacherId) throws Exception{ + Search search = new Search() ; + search.setOptions(new HashMap<>()); + search.addOptions("table","teacher"); + List fields = new ArrayList<>(); + fields.add("*"); + search.addOptions("field",fields); + Map limits = new HashMap<>(); + limits.put("id",teacherId); + search.addOptions("limits",limits); + search.addOptions("start",0); + search.addOptions("end",10); + Map options = search.execute(null); + List result = (List) options.get("result"); + List> teachersInfo = new ArrayList<>(); + core.process.Utils.formatResult(result, teachersInfo); + return teachersInfo; + } protected boolean check() { if(this.getStudentId()==null||this.getTeacherId()==null) return false; diff --git a/src/core/process/C_StudentUploadFinishedProduct.java b/src/core/process/C_StudentUploadFinishedProduct.java index efd36a8..8bb0ea3 100644 --- a/src/core/process/C_StudentUploadFinishedProduct.java +++ b/src/core/process/C_StudentUploadFinishedProduct.java @@ -7,10 +7,13 @@ import java.io.File; import java.util.HashMap; import java.util.Map; -public class C_StudentUploadFinishedProduct { +public class C_StudentUploadFinishedProduct extends TempProcess { File finishedProduct; String graduationDesignId; + private static String buttonName ="提交定稿"; + protected static String iconURL="../cssFile/images/upload.png"; + protected static String targetURL="/home/student-upload-finished-product"; static String file_type = "finished_product"; public void uploadOpeningReport() throws Exception{ diff --git a/src/core/process/C_StudentUploadOpeningReport.java b/src/core/process/C_StudentUploadOpeningReport.java index 69c70b3..3ccb7e3 100644 --- a/src/core/process/C_StudentUploadOpeningReport.java +++ b/src/core/process/C_StudentUploadOpeningReport.java @@ -10,8 +10,10 @@ import java.util.Map; public class C_StudentUploadOpeningReport extends TempProcess{ File openingReport; String graduationDesignId; - + private static String buttonName ="提交开题报告"; static String file_type = "opening_report"; + protected static String targetURL="/home/student-upload-opening-report"; + protected static String iconURL="../cssFile/images/upload.png"; public void uploadOpeningReport() throws Exception{ if(!check()) throw new GExcptInit("Upload OpeningReport Attrs init error!"); diff --git a/src/core/process/C_TeacherSearchStudent.java b/src/core/process/C_TeacherSearchStudent.java index c915c93..5696b8b 100644 --- a/src/core/process/C_TeacherSearchStudent.java +++ b/src/core/process/C_TeacherSearchStudent.java @@ -48,18 +48,11 @@ public class C_TeacherSearchStudent extends TempProcess { limits.put("id",this.getStudentId()); search.addOptions("limits",limits); search.addOptions("start",0); - search.addOptions("end",1); + search.addOptions("end",10); Map options = search.execute(null); List result = (List) options.get("result"); List> studentsInfo = new ArrayList<>(); - for(String[] s:result){ - Map studentInfo = new HashMap<>(); - studentInfo.put("id",s[0]); - studentInfo.put("name",s[2]); - studentInfo.put("e_mail_location",s[3]); - studentInfo.put("phone_number",s[4]); - studentsInfo.add(studentInfo); - } + core.process.Utils.formatResult(result, studentsInfo); return studentsInfo; } protected boolean check() { diff --git a/src/core/process/C_TeacherSelectStudent.java b/src/core/process/C_TeacherSelectStudent.java index 643b493..acb5021 100644 --- a/src/core/process/C_TeacherSelectStudent.java +++ b/src/core/process/C_TeacherSelectStudent.java @@ -1,5 +1,6 @@ package core.process; +import core.operation.Search; import core.operation.Select; import error.GExcptInit; @@ -11,6 +12,9 @@ import java.util.Map; public class C_TeacherSelectStudent extends TempProcess { String studentId; String teacherId; + private static String buttonName ="选择学生"; + protected static String iconURL=""; + protected static String targetURL="/home/teacher-select-student"; public void select()throws Exception{ if(!check()) throw new GExcptInit("ID Attrs init error!"); @@ -20,6 +24,24 @@ public class C_TeacherSelectStudent extends TempProcess { select.addOptions("student_id",this.getStudentId()); Map options=select.execute(null); } + public List> search(String studentId) throws Exception{ + Search search = new Search() ; + search.setOptions(new HashMap<>()); + search.addOptions("table","student"); + List fields = new ArrayList<>(); + fields.add("*"); + search.addOptions("field",fields); + Map limits = new HashMap<>(); + limits.put("id",studentId); + search.addOptions("limits",limits); + search.addOptions("start",0); + search.addOptions("end",10); + Map options = search.execute(null); + List result = (List) options.get("result"); + List> studentsInfo = new ArrayList<>(); + core.process.Utils.formatResult(result, studentsInfo); + return studentsInfo; + } protected boolean check() { if(this.getStudentId()==null||this.getTeacherId()==null) return false; diff --git a/src/core/process/C_TeacherTeamFillOpeningReportOpinion.java b/src/core/process/C_TeacherTeamFillOpeningReportOpinion.java index cc0bf06..467dc50 100644 --- a/src/core/process/C_TeacherTeamFillOpeningReportOpinion.java +++ b/src/core/process/C_TeacherTeamFillOpeningReportOpinion.java @@ -12,6 +12,9 @@ public class C_TeacherTeamFillOpeningReportOpinion extends TempProcess{ String graduationDesignId; Map vMap; + private static String buttonName ="开题小组意见"; + protected static String iconURL="../cssFile/images/fill.png"; + protected static String targetURL="/home/teacher-team-fill-opening-report-opinion"; static String table="graduation_design_opening_report_opinion_record"; @@ -29,7 +32,7 @@ public class C_TeacherTeamFillOpeningReportOpinion extends TempProcess{ fillInformation.execute(null); } protected boolean check() { - if(this.getGraduationDesignId()==null) + if(this.getGraduationDesignId()==null||this.getVMap()==null) return false; return true; } @@ -47,4 +50,9 @@ public class C_TeacherTeamFillOpeningReportOpinion extends TempProcess{ this.vMap = vMap; } + public Map getVMap() { + return vMap; + } + + } diff --git a/src/core/process/C_TeacherTeamFillScoreOpinion.java b/src/core/process/C_TeacherTeamFillScoreOpinion.java index e87c937..8a223a8 100644 --- a/src/core/process/C_TeacherTeamFillScoreOpinion.java +++ b/src/core/process/C_TeacherTeamFillScoreOpinion.java @@ -10,6 +10,9 @@ import java.util.Map; public class C_TeacherTeamFillScoreOpinion extends TempProcess { + private static String buttonName = "答辩小组评分"; + protected static String iconURL="../cssFile/images/fill.png"; + protected static String targetURL="/home/teacher-team-fill-score-opinion"; String graduationDesignId; Map vMap; @@ -29,7 +32,7 @@ public class C_TeacherTeamFillScoreOpinion extends TempProcess { fillInformation.execute(null); } protected boolean check() { - if(this.getGraduationDesignId()==null) + if(this.getGraduationDesignId()==null||this.getVMap()==null) return false; return true; } @@ -45,5 +48,7 @@ public class C_TeacherTeamFillScoreOpinion extends TempProcess { public void setVMap(Map vMap) { this.vMap = vMap; } - + public Map getVMap() { + return vMap; + } } diff --git a/src/core/process/Condition.java b/src/core/process/Condition.java index 14c5986..9365dbb 100644 --- a/src/core/process/Condition.java +++ b/src/core/process/Condition.java @@ -3,7 +3,7 @@ package core.process; import java.util.ArrayList; import java.util.List; -public class Condition {//条件 +public class Condition { public List getProcesses() { return processes; } diff --git a/src/core/process/Process.java b/src/core/process/Process.java index be06a88..7dc2728 100644 --- a/src/core/process/Process.java +++ b/src/core/process/Process.java @@ -4,7 +4,7 @@ import core.operation.Operation; public abstract class Process{ - private static String buttonName; + protected static String buttonName; protected static String targetURL; protected static String iconURL; diff --git a/src/core/process/ProcessManagement.java b/src/core/process/ProcessManagement.java index ee0fae9..02f456c 100644 --- a/src/core/process/ProcessManagement.java +++ b/src/core/process/ProcessManagement.java @@ -35,8 +35,8 @@ public class ProcessManagement { Map userTables = DBManagement.getUserStatusTables(user.getType()); String graduationDesignId = null; for(Map.Entry entry:userTables.entrySet()){ - String[] ti = entry.getKey().split("."); - String[] ts = entry.getValue().split("."); + String[] ti = entry.getKey().split("\\."); + String[] ts = entry.getValue().split("\\."); List ls = new ArrayList<>(); ls.add("id"); Map limits = new HashMap<>(); @@ -55,6 +55,39 @@ public class ProcessManagement { return status; } public static Process getProcess(String process){ - return null; + switch (process) { + case "teacher_choose_student_status": + return new C_TeacherSelectStudent(); + case "student_choose_teacher_status": + return new C_StudentSelectTeacher(); + case"student_fill_graduation_design_information_status": + return new C_StudentFillGraduationDesignInformation(); + case"opening_report_status": + return new C_StudentUploadOpeningReport(); + case"opening_report_mentor_opinion_status": + return new C_MentorFillOpeningReportOpinion(); + case"opening_report_teacher_team_opinion_status": + return new C_TeacherTeamFillOpeningReportOpinion(); + case"opening_report_college_opinion_status": + return new C_CollegeFillOpeningReportOpinion(); + case"opening_report_secretary_record_status": + return new C_SecretaryFillOpeningReportRecord(); + case"finished_product_status": + return new C_StudentUploadFinishedProduct(); + case"finished_product_mentor_score_status": + return new C_MentorFillReview(); + case"finished_product_reviewer_score_status": + return new C_ReviewerFillReview(); + case"reply_ secretary_record_status": + return new C_SecretaryFillReplyRecord(); + case"reply_ teacher_team_score_status": + return new C_TeacherTeamFillScoreOpinion(); + case"reply_college_score_status": + return new C_CollegeFillScoreOpinion(); + case"reply_school_score_status": + return new C_SchoolFillScoreOpinion(); + default: + return null; + } } } diff --git a/src/core/process/Utils.java b/src/core/process/Utils.java new file mode 100644 index 0000000..9c1fc12 --- /dev/null +++ b/src/core/process/Utils.java @@ -0,0 +1,18 @@ +package core.process; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public interface Utils { + static void formatResult(List result, List> studentsInfo) { + for(String[] s:result){ + Map studentInfo = new HashMap<>(); + studentInfo.put("id",s[0]); + studentInfo.put("name",s[2]); + studentInfo.put("e_mail_location",s[3]); + studentInfo.put("phone_number",s[4]); + studentsInfo.add(studentInfo); + } + } +} diff --git a/src/core/user/User.java b/src/core/user/User.java index 236c2ae..b848a3c 100644 --- a/src/core/user/User.java +++ b/src/core/user/User.java @@ -1,8 +1,10 @@ package core.user; import core.process.Condition; +import core.process.ProcessManagement; import core.user.userFun.AccountManageable; import core.user.userFun.ProcessConfigurable; +import core.user.utils.AccountManagement; import java.util.List; import java.util.Map; @@ -115,4 +117,9 @@ public abstract class User implements AccountManageable, ProcessConfigurable{ this.setE_mail_location(vMap.get("e_mail_location")); this.setPhone_number(vMap.get("phone_number")); } + + + public void initCondition() throws Exception { + this.condition = ProcessManagement.getCondition(this); + } } diff --git a/src/core/user/utils/AccountManagement.java b/src/core/user/utils/AccountManagement.java index f832674..3c03ede 100644 --- a/src/core/user/utils/AccountManagement.java +++ b/src/core/user/utils/AccountManagement.java @@ -1,5 +1,6 @@ package core.user.utils; +import core.user.Student; import core.user.User; import core.utils.GetObjectByName; import dao.DBManagement; @@ -49,7 +50,11 @@ public interface AccountManagement { } static User register(String userType, Map vMap) throws Exception { DBManagement.insert(userType,vMap); - return createUser(userType, vMap); + if(userType.equals("student")){ + initAllStatus(vMap.get("id")); + } + User user = createUser(userType, vMap); + return user; } static void logout(User user){ //todo @@ -60,6 +65,22 @@ public interface AccountManagement { static User createUser(String userType, Map vMap) throws Exception { User user = GetObjectByName.getUserByName(userType); user.setAttr(vMap); + user.initCondition(); return user; } + String defaultStatus = "1"; + static void initAllStatus(String id) throws GExcptSQL { + for(String table:DBManagement.graduationDesignTables){ + Map vMap = new HashMap<>(); + vMap.put("id",id); + DBManagement.insert(table,vMap); + } + for(Map.Entry entry:DBManagement.allStatus.entrySet()){ + Map vMap = new HashMap<>(); + Map limits = new HashMap<>(); + limits.put("id",id); + vMap.put(entry.getValue(),defaultStatus); + DBManagement.update(entry.getKey(),vMap,limits); + } + } } diff --git a/src/dao/DBManagement.java b/src/dao/DBManagement.java index 23c8ec5..f314ac5 100644 --- a/src/dao/DBManagement.java +++ b/src/dao/DBManagement.java @@ -87,6 +87,26 @@ public class DBManagement { put("graduation_design_reply_opinion_record_score.reply_school_teacher_id","graduation_design_reply_opinion_record_score.reply_school_score_status"); } }; + public static Map allStatus = new HashMap<>(){ + { + put("graduation_design","teacher_choose_student_status"); + put("graduation_design","student_choose_teacher_status"); + put("graduation_design_information","student_fill_graduation_design_information_status"); + put("graduation_design_opening_report","opening_report_status"); + put("graduation_design_opening_report_opinion_record","opening_report_mentor_opinion_status"); + put("graduation_design_opening_report_opinion_record","opening_report_teacher_team_opinion_status"); + put("graduation_design_opening_report_opinion_record","opening_report_college_opinion_status"); + put("graduation_design_opening_report_opinion_record","opening_report_secretary_record_status"); + put("graduation_design_finished_product","finished_product_status"); + put("graduation_design_finished_product_mentor_score","finished_product_mentor_score_status"); + put("graduation_design_finished_product_reviewer_score","finished_product_reviewer_score_status"); + put("graduation_design_reply_opinion_record_score","reply_ secretary_record_status"); + put("graduation_design_reply_opinion_record_score","reply_ teacher_team_score_status"); + put("graduation_design_reply_opinion_record_score","reply_college_score_status"); + put("graduation_design_reply_opinion_record_score","reply_school_score_status"); + + } + }; public static String driverClassName="org.mariadb.jdbc.Driver"; diff --git a/src/gdms/Configuration.java b/src/gdms/Configuration.java index 4128db3..3143a95 100644 --- a/src/gdms/Configuration.java +++ b/src/gdms/Configuration.java @@ -2,7 +2,7 @@ package gdms; public interface Configuration { //file - String filePath = "/"; + String filePath = "C:/Users/zhai_/Desktop/"; //database String dbUrl="jdbc:mariadb://localhost:3306/gdms"; String dbUsername="gdms"; diff --git a/src/gdms/GlobalTimePoint.json b/src/gdms/GlobalTimePoint.json index 97d7da8..b5d8112 100644 --- a/src/gdms/GlobalTimePoint.json +++ b/src/gdms/GlobalTimePoint.json @@ -5,5 +5,5 @@ "opening_report_opinion_deadline_date": "", "finished_product_deadline_date": "", "finished_product_review_deadline_date": "", - "reply_option_deadline_date": "" + "reply_opition_deadline_date": "" } \ No newline at end of file diff --git a/src/gdms/test.java b/src/gdms/test.java index 55dbfa0..8aa8764 100644 --- a/src/gdms/test.java +++ b/src/gdms/test.java @@ -11,11 +11,9 @@ import java.util.Map; public class test { public static void main(String[] args){ - int i=0; - do{ - i++; - System.out.println(i); - }while(i<3); + String s = "graduation_design_finished_product_reviewer_score.reviewer_teacher_id"; + String[] ss = s.split("\\."); + System.out.println(ss[0]); } static void changeB(String a){ diff --git a/src/servlet/S_CollegeFillOpeningReportOpinion.java b/src/servlet/S_CollegeFillOpeningReportOpinion.java index c7f7367..ca2d9bb 100644 --- a/src/servlet/S_CollegeFillOpeningReportOpinion.java +++ b/src/servlet/S_CollegeFillOpeningReportOpinion.java @@ -10,7 +10,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Map; -@WebServlet("/college-fill-opening-report-opinion") +@WebServlet("/home/college-fill-opening-report-opinion") public class S_CollegeFillOpeningReportOpinion extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = request.getParameter("id"); diff --git a/src/servlet/S_CollegeFillScoreOpinion.java b/src/servlet/S_CollegeFillScoreOpinion.java index 360e082..44e29e1 100644 --- a/src/servlet/S_CollegeFillScoreOpinion.java +++ b/src/servlet/S_CollegeFillScoreOpinion.java @@ -10,7 +10,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Map; -@WebServlet("/college-fill-score-opinion") +@WebServlet("/home/college-fill-score-opinion") public class S_CollegeFillScoreOpinion extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = request.getParameter("id"); diff --git a/src/servlet/S_MentorFillOpeningReportOpinion.java b/src/servlet/S_MentorFillOpeningReportOpinion.java index d35293a..6617ae6 100644 --- a/src/servlet/S_MentorFillOpeningReportOpinion.java +++ b/src/servlet/S_MentorFillOpeningReportOpinion.java @@ -10,7 +10,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Map; -@WebServlet("/mentor-fill-opening-report-opinion") +@WebServlet("/home/mentor-fill-opening-report-opinion") public class S_MentorFillOpeningReportOpinion extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = request.getParameter("id"); diff --git a/src/servlet/S_MentorFillReview.java b/src/servlet/S_MentorFillReview.java index a10cf5c..44d5f65 100644 --- a/src/servlet/S_MentorFillReview.java +++ b/src/servlet/S_MentorFillReview.java @@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Map; -@WebServlet("/mentor-fill-review") +@WebServlet("/home/mentor-fill-review") public class S_MentorFillReview extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = request.getParameter("id"); diff --git a/src/servlet/S_ReviewerFillReview.java b/src/servlet/S_ReviewerFillReview.java index f3c754d..e22ee73 100644 --- a/src/servlet/S_ReviewerFillReview.java +++ b/src/servlet/S_ReviewerFillReview.java @@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Map; -@WebServlet("/reviewer-fill-review") +@WebServlet("/home/reviewer-fill-review") public class S_ReviewerFillReview extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = request.getParameter("id"); diff --git a/src/servlet/S_SchoolFillScoreOpinion.java b/src/servlet/S_SchoolFillScoreOpinion.java index fa1fa02..67dea85 100644 --- a/src/servlet/S_SchoolFillScoreOpinion.java +++ b/src/servlet/S_SchoolFillScoreOpinion.java @@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Map; -@WebServlet("/school-fill-score-opinion") +@WebServlet("/home/school-fill-score-opinion") public class S_SchoolFillScoreOpinion extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = request.getParameter("id"); diff --git a/src/servlet/S_SecretaryFillOpeningReportRecord.java b/src/servlet/S_SecretaryFillOpeningReportRecord.java index 94f5ee1..7a0ef0e 100644 --- a/src/servlet/S_SecretaryFillOpeningReportRecord.java +++ b/src/servlet/S_SecretaryFillOpeningReportRecord.java @@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Map; -@WebServlet("/secretary-fill-opening-report-record") +@WebServlet("/home/secretary-fill-opening-report-record") public class S_SecretaryFillOpeningReportRecord extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = request.getParameter("id"); diff --git a/src/servlet/S_SecretaryFillReplyRecord.java b/src/servlet/S_SecretaryFillReplyRecord.java index 9efee5e..91b72e0 100644 --- a/src/servlet/S_SecretaryFillReplyRecord.java +++ b/src/servlet/S_SecretaryFillReplyRecord.java @@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Map; -@WebServlet("/secretary-fill-reply-record") +@WebServlet("/home/secretary-fill-reply-record") public class S_SecretaryFillReplyRecord extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = request.getParameter("id"); diff --git a/src/servlet/S_StudentFillGraduationDesignInformation.java b/src/servlet/S_StudentFillGraduationDesignInformation.java index 9838562..5c6d71f 100644 --- a/src/servlet/S_StudentFillGraduationDesignInformation.java +++ b/src/servlet/S_StudentFillGraduationDesignInformation.java @@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Map; -@WebServlet("/student-fill-graduation-design-information") +@WebServlet("/home/student-fill-graduation-design-information") public class S_StudentFillGraduationDesignInformation extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { diff --git a/src/servlet/S_StudentSelectTeacher.java b/src/servlet/S_StudentSelectTeacher.java index 69b8893..a71525a 100644 --- a/src/servlet/S_StudentSelectTeacher.java +++ b/src/servlet/S_StudentSelectTeacher.java @@ -9,7 +9,7 @@ import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; -@WebServlet("/student-select-teacher") +@WebServlet("/home/student-select-teacher") public class S_StudentSelectTeacher extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { super.doPost(request, response); @@ -26,4 +26,5 @@ public class S_StudentSelectTeacher extends HttpServlet { response.sendRedirect("/op_fail.jsp"); } } + } diff --git a/src/servlet/S_StudentUploadFinishedProduct.java b/src/servlet/S_StudentUploadFinishedProduct.java index b7271e4..393a567 100644 --- a/src/servlet/S_StudentUploadFinishedProduct.java +++ b/src/servlet/S_StudentUploadFinishedProduct.java @@ -8,22 +8,19 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; -@WebServlet("/student-upload-finished-product") +@WebServlet("/home/student-upload-finished-product") @MultipartConfig public class S_StudentUploadFinishedProduct extends HttpServlet { static String fileType = "graduation_design_finished_product"; protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { - String id = "000"; - //String files = request.getParameter("file"); - System.out.print("123"); - System.out.print( request.getPart("file")); - System.out.print("123"); + String id = request.getParameter("id"); + String fileURL; try { - String fileURL = servlet.Utils.saveFile(request, fileType); + fileURL = servlet.Utils.saveFile(request, fileType); }catch (Exception e) { System.out.print(e); + response.sendRedirect("/op_fail.jsp"); } - System.out.print("222"); } } diff --git a/src/servlet/S_StudentUploadOpeningReport.java b/src/servlet/S_StudentUploadOpeningReport.java index ffb5f9c..9e04357 100644 --- a/src/servlet/S_StudentUploadOpeningReport.java +++ b/src/servlet/S_StudentUploadOpeningReport.java @@ -12,7 +12,7 @@ import javax.servlet.http.Part; import java.io.IOException; import java.util.UUID; -@WebServlet("/student-upload-opening-report") +@WebServlet("/home/student-upload-opening-report") @MultipartConfig public class S_StudentUploadOpeningReport extends HttpServlet { static String fileType = "graduation_design_opening_report"; diff --git a/src/servlet/S_TeacherSelectStudent.java b/src/servlet/S_TeacherSelectStudent.java index ab880eb..d177fc0 100644 --- a/src/servlet/S_TeacherSelectStudent.java +++ b/src/servlet/S_TeacherSelectStudent.java @@ -9,7 +9,7 @@ import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; -@WebServlet("/teacher-select-student") +@WebServlet("/home/teacher-select-student") public class S_TeacherSelectStudent extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { super.doPost(request, response); diff --git a/src/servlet/S_TeacherTeamFillOpeningReportOpinion.java b/src/servlet/S_TeacherTeamFillOpeningReportOpinion.java index 2e35294..16c5612 100644 --- a/src/servlet/S_TeacherTeamFillOpeningReportOpinion.java +++ b/src/servlet/S_TeacherTeamFillOpeningReportOpinion.java @@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Map; -@WebServlet("/teacher-team-fill-opening-report-opinion") +@WebServlet("/home/teacher-team-fill-opening-report-opinion") public class S_TeacherTeamFillOpeningReportOpinion extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = request.getParameter("id"); diff --git a/src/servlet/S_TeacherTeamFillScoreOpinion.java b/src/servlet/S_TeacherTeamFillScoreOpinion.java index 3a70590..63788d5 100644 --- a/src/servlet/S_TeacherTeamFillScoreOpinion.java +++ b/src/servlet/S_TeacherTeamFillScoreOpinion.java @@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.util.Map; -@WebServlet("/teacher-team-fill-score-opinion") +@WebServlet("/home/teacher-team-fill-score-opinion") public class S_TeacherTeamFillScoreOpinion extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String id = request.getParameter("id"); diff --git a/web/index.jsp b/web/index.jsp new file mode 100644 index 0000000..5c5bf47 --- /dev/null +++ b/web/index.jsp @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: zhai_ + Date: 2019/1/15 + Time: 16:43 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> + + + $Title$ + + + $END$ + + diff --git a/web/jsFile/search.js b/web/jsFile/search.js index 67502ca..25a1a4f 100644 --- a/web/jsFile/search.js +++ b/web/jsFile/search.js @@ -63,5 +63,5 @@ function studentSelect() { } function teacherSelect() { var button=$(this); - select_one("testfrom.jsp",button); + select_one("/home/teacher-select-student",button); } \ No newline at end of file diff --git a/web/jsFile/upload_action.js b/web/jsFile/upload_action.js index 866ac3a..7f0de15 100644 --- a/web/jsFile/upload_action.js +++ b/web/jsFile/upload_action.js @@ -5,7 +5,7 @@ $(document).ready(function () { }) function sendFile() { var fileData =new FormData(); - var Url4='student-upload-finished-product'; + var Url4='/student-upload-finished-product'; var file=$('#select')[0].files[0]; if($('.true-select').val()=='') {