Merge remote-tracking branch 'remotes/origin/master' into wlf

# Conflicts:
#	src/core/process/C_TeacherTeamFillOpeningReportOpinion.java
wlf
wlf 6 years ago
commit 1ca68a9b9b

@ -8,8 +8,8 @@
<element id="module-output" name="GDMS" />
</element>
<element id="directory" name="lib">
<element id="file-copy" path="C:/Program Files/apache-tomcat-9.0.13/lib/tomcat-jdbc.jar" />
<element id="library" level="project" name="lib" />
<element id="library" level="project" name="tomcat-lib" />
</element>
</element>
</root>

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<dataSource name="@localhost:gdms">
<database-model serializer="dbm" dbms="MARIADB" family-id="MARIADB" format-version="4.14">
<database-model serializer="dbm" rdbms="MYSQL" format-version="4.11">
<root id="1">
<ServerVersion>10.3.10</ServerVersion>
<Dbms>MARIADB</Dbms>
<RdbmsFlavour>MariaDB</RdbmsFlavour>
<DefaultEngine>InnoDB</DefaultEngine>
<DefaultCasing>lower/lower</DefaultCasing>
</root>
@ -1626,516 +1626,536 @@
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="398" parent="335" name="score">
<column id="398" parent="335" name="reviewer_teacher_id">
<Position>2</Position>
<DataType>float|0s</DataType>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="399" parent="335" name="opinion">
<column id="399" parent="335" name="score">
<Position>3</Position>
<DataType>text|0s</DataType>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="400" parent="335" name="reviewer_score_date">
<column id="400" parent="335" name="opinion">
<Position>4</Position>
<DataType>date|0s</DataType>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="401" parent="335" name="finished_product_reviewer_score_status">
<column id="401" parent="335" name="reviewer_score_date">
<Position>5</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="402" parent="335" name="finished_product_reviewer_score_status">
<Position>6</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="402" parent="335" name="PRIMARY">
<key id="403" parent="335" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="403" parent="336" name="id">
<column id="404" parent="336" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="404" parent="336" name="chinese_name">
<column id="405" parent="336" name="chinese_name">
<Position>2</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="405" parent="336" name="english_name">
<column id="406" parent="336" name="english_name">
<Position>3</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="406" parent="336" name="type_of_topic">
<column id="407" parent="336" name="type_of_topic">
<Position>4</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="407" parent="336" name="source_of_design">
<column id="408" parent="336" name="source_of_design">
<Position>5</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="408" parent="336" name="nature_of_design">
<column id="409" parent="336" name="nature_of_design">
<Position>6</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="409" parent="336" name="description_of_topic">
<column id="410" parent="336" name="description_of_topic">
<Position>7</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="410" parent="336" name="student_fill_graduation_design_information_status">
<column id="411" parent="336" name="student_fill_graduation_design_information_status">
<Position>8</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="411" parent="336" name="PRIMARY">
<key id="412" parent="336" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="412" parent="337" name="id">
<column id="413" parent="337" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="413" parent="337" name="report_date">
<column id="414" parent="337" name="report_date">
<Position>2</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="414" parent="337" name="report_location">
<column id="415" parent="337" name="report_location">
<Position>3</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="415" parent="337" name="report_url">
<column id="416" parent="337" name="report_url">
<Position>4</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="416" parent="337" name="report_teacher_leader_team_id">
<column id="417" parent="337" name="report_teacher_leader_team_id">
<Position>5</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="417" parent="337" name="report_secretary_leader_team_id">
<column id="418" parent="337" name="report_secretary_leader_team_id">
<Position>6</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="418" parent="337" name="estimated_word_count">
<column id="419" parent="337" name="estimated_word_count">
<Position>7</Position>
<DataType>int(11)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="419" parent="337" name="opening_report_status">
<column id="420" parent="337" name="opening_report_status">
<Position>8</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="420" parent="337" name="opening_report_mentor_opinion_status">
<Position>9</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="421" parent="337" name="opening_report_teacher_team_opinion_status">
<Position>10</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="422" parent="337" name="opening_report_college_opinion_status">
<Position>11</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="423" parent="337" name="opening_report_secretary_record_status">
<Position>12</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="424" parent="337" name="PRIMARY">
<key id="421" parent="337" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="425" parent="338" name="id">
<column id="422" parent="338" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="426" parent="338" name="mentor_opinion">
<column id="423" parent="338" name="opening_report_college_teacher_id">
<Position>2</Position>
<DataType>text|0s</DataType>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="427" parent="338" name="mentor_opinion_date">
<column id="424" parent="338" name="mentor_opinion">
<Position>3</Position>
<DataType>date|0s</DataType>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="428" parent="338" name="secretary_record">
<column id="425" parent="338" name="mentor_opinion_date">
<Position>4</Position>
<DataType>text|0s</DataType>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="429" parent="338" name="secretary_record_date">
<column id="426" parent="338" name="secretary_record">
<Position>5</Position>
<DataType>date|0s</DataType>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="430" parent="338" name="report_teacher_team_opinion">
<column id="427" parent="338" name="secretary_record_date">
<Position>6</Position>
<DataType>text|0s</DataType>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="431" parent="338" name="report_teacher_team_opinion_date">
<column id="428" parent="338" name="report_teacher_team_opinion">
<Position>7</Position>
<DataType>date|0s</DataType>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="432" parent="338" name="college_opinion">
<column id="429" parent="338" name="report_teacher_team_opinion_date">
<Position>8</Position>
<DataType>text|0s</DataType>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="433" parent="338" name="college_opinion_date">
<column id="430" parent="338" name="college_opinion">
<Position>9</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="431" parent="338" name="college_opinion_date">
<Position>10</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="434" parent="338" name="PRIMARY">
<column id="432" parent="338" name="opening_report_mentor_opinion_status">
<Position>11</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="433" parent="338" name="opening_report_teacher_team_opinion_status">
<Position>12</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="434" parent="338" name="opening_report_college_opinion_status">
<Position>13</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="435" parent="338" name="opening_report_secretary_record_status">
<Position>14</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="436" parent="338" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="435" parent="339" name="id">
<column id="437" parent="339" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="436" parent="339" name="date">
<column id="438" parent="339" name="date">
<Position>2</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="437" parent="339" name="location">
<column id="439" parent="339" name="location">
<Position>3</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="438" parent="339" name="teacher_team_leader_id">
<column id="440" parent="339" name="teacher_team_leader_id">
<Position>4</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="439" parent="339" name="secretary_team_leader_id">
<column id="441" parent="339" name="secretary_team_leader_id">
<Position>5</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="440" parent="339" name="PRIMARY">
<key id="442" parent="339" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="441" parent="340" name="id">
<column id="443" parent="340" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="442" parent="340" name="mentor_opinion text">
<column id="444" parent="340" name="reply_college_teacher_id">
<Position>2</Position>
<DataType>text|0s</DataType>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="443" parent="340" name="mentor_opinion_date date">
<column id="445" parent="340" name="reply_school_teacher_id">
<Position>3</Position>
<DataType>date|0s</DataType>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="444" parent="340" name="secretary_record">
<column id="446" parent="340" name="mentor_opinion text">
<Position>4</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="445" parent="340" name="secretary_record_date date">
<column id="447" parent="340" name="mentor_opinion_date date">
<Position>5</Position>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="446" parent="340" name="teacher_team_opinion">
<column id="448" parent="340" name="secretary_record">
<Position>6</Position>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="447" parent="340" name="teacher_team_score">
<column id="449" parent="340" name="secretary_record_date date">
<Position>7</Position>
<DataType>float|0s</DataType>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="448" parent="340" name="teacher_team_opinion_date">
<column id="450" parent="340" name="teacher_team_opinion">
<Position>8</Position>
<DataType>date|0s</DataType>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="449" parent="340" name="college_opinion">
<column id="451" parent="340" name="teacher_team_score">
<Position>9</Position>
<DataType>text|0s</DataType>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="450" parent="340" name="college_score">
<column id="452" parent="340" name="teacher_team_opinion_date">
<Position>10</Position>
<DataType>float|0s</DataType>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="451" parent="340" name="college_opinion_date">
<column id="453" parent="340" name="college_opinion">
<Position>11</Position>
<DataType>date|0s</DataType>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="452" parent="340" name="school_opinion">
<column id="454" parent="340" name="college_score">
<Position>12</Position>
<DataType>text|0s</DataType>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="453" parent="340" name="school_score">
<column id="455" parent="340" name="college_opinion_date">
<Position>13</Position>
<DataType>float|0s</DataType>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="454" parent="340" name="school_opinion_date">
<column id="456" parent="340" name="school_opinion">
<Position>14</Position>
<DataType>date|0s</DataType>
<DataType>text|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="455" parent="340" name="reply_ secretary_record_status">
<column id="457" parent="340" name="school_score">
<Position>15</Position>
<DataType>char(1)|0s</DataType>
<DataType>float|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="456" parent="340" name="reply_ teacher_team_score_status">
<column id="458" parent="340" name="school_opinion_date">
<Position>16</Position>
<DataType>char(1)|0s</DataType>
<DataType>date|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="457" parent="340" name="reply_ college_score_status">
<column id="459" parent="340" name="reply_ secretary_record_status">
<Position>17</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="458" parent="340" name="reply_school_score_status">
<column id="460" parent="340" name="reply_ teacher_team_score_status">
<Position>18</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="459" parent="340" name="PRIMARY">
<column id="461" parent="340" name="reply_ college_score_status">
<Position>19</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="462" parent="340" name="reply_school_score_status">
<Position>20</Position>
<DataType>char(1)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="463" parent="340" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="460" parent="341" name="leader_student_id">
<column id="464" parent="341" name="leader_student_id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="461" parent="341" name="student1_id">
<column id="465" parent="341" name="student1_id">
<Position>2</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="462" parent="341" name="student2_id">
<column id="466" parent="341" name="student2_id">
<Position>3</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="463" parent="341" name="PRIMARY">
<key id="467" parent="341" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>leader_student_id</ColNames>
<Primary>1</Primary>
</key>
<column id="464" parent="342" name="leader_teacher_id">
<column id="468" parent="342" name="leader_teacher_id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="465" parent="342" name="teacher1_id">
<column id="469" parent="342" name="teacher1_id">
<Position>2</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="466" parent="342" name="teacher2_id">
<column id="470" parent="342" name="teacher2_id">
<Position>3</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="467" parent="342" name="PRIMARY">
<key id="471" parent="342" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>leader_teacher_id</ColNames>
<Primary>1</Primary>
</key>
<column id="468" parent="343" name="profession_code">
<column id="472" parent="343" name="profession_code">
<Position>1</Position>
<DataType>char(8)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="469" parent="343" name="college">
<column id="473" parent="343" name="college">
<Position>2</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="470" parent="343" name="department">
<column id="474" parent="343" name="department">
<Position>3</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="471" parent="343" name="profession">
<column id="475" parent="343" name="profession">
<Position>4</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="472" parent="343" name="PRIMARY">
<key id="476" parent="343" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>profession_code</ColNames>
<Primary>1</Primary>
</key>
<column id="473" parent="344" name="leader_student_id">
<column id="477" parent="344" name="leader_student_id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="474" parent="344" name="student1_id">
<column id="478" parent="344" name="student1_id">
<Position>2</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="475" parent="344" name="student2_id">
<column id="479" parent="344" name="student2_id">
<Position>3</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="476" parent="344" name="PRIMARY">
<key id="480" parent="344" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>leader_student_id</ColNames>
<Primary>1</Primary>
</key>
<column id="477" parent="345" name="leader_teacher_id">
<column id="481" parent="345" name="leader_teacher_id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="478" parent="345" name="teacher1_id">
<column id="482" parent="345" name="teacher1_id">
<Position>2</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="479" parent="345" name="teacher2_id">
<column id="483" parent="345" name="teacher2_id">
<Position>3</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="480" parent="345" name="PRIMARY">
<key id="484" parent="345" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>leader_teacher_id</ColNames>
<Primary>1</Primary>
</key>
<column id="481" parent="346" name="id">
<column id="485" parent="346" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="482" parent="346" name="password">
<column id="486" parent="346" name="password">
<Position>2</Position>
<DataType>char(255)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="483" parent="346" name="name">
<column id="487" parent="346" name="name">
<Position>3</Position>
<DataType>char(30)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="484" parent="346" name="e_mail_location">
<column id="488" parent="346" name="e_mail_location">
<Position>4</Position>
<DataType>char(40)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="485" parent="346" name="phone_number">
<column id="489" parent="346" name="phone_number">
<Position>5</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="486" parent="346" name="grade">
<column id="490" parent="346" name="grade">
<Position>6</Position>
<DataType>char(4)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="487" parent="346" name="profession_code">
<column id="491" parent="346" name="profession_code">
<Position>7</Position>
<DataType>char(8)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="488" parent="346" name="PRIMARY">
<key id="492" parent="346" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>
</key>
<column id="489" parent="347" name="id">
<column id="493" parent="347" name="id">
<Position>1</Position>
<DataType>char(20)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="490" parent="347" name="password">
<column id="494" parent="347" name="password">
<Position>2</Position>
<DataType>char(255)|0s</DataType>
<NotNull>1</NotNull>
<ColumnKind>normal</ColumnKind>
</column>
<column id="491" parent="347" name="name">
<column id="495" parent="347" name="name">
<Position>3</Position>
<DataType>char(30)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="492" parent="347" name="e_mail_location">
<column id="496" parent="347" name="e_mail_location">
<Position>4</Position>
<DataType>char(40)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="493" parent="347" name="phone_number">
<column id="497" parent="347" name="phone_number">
<Position>5</Position>
<DataType>char(20)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="494" parent="347" name="job_title">
<column id="498" parent="347" name="job_title">
<Position>6</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="495" parent="347" name="education">
<column id="499" parent="347" name="education">
<Position>7</Position>
<DataType>varchar(255)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<column id="496" parent="347" name="profession_code">
<column id="500" parent="347" name="profession_code">
<Position>8</Position>
<DataType>char(8)|0s</DataType>
<ColumnKind>normal</ColumnKind>
</column>
<key id="497" parent="347" name="PRIMARY">
<key id="501" parent="347" name="PRIMARY">
<NameSurrogate>1</NameSurrogate>
<ColNames>id</ColNames>
<Primary>1</Primary>

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="false" project-jdk-name="11" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="false" project-jdk-name="10" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

@ -19,8 +19,8 @@
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="lib" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Tomcat 8.5.37" level="application_server_libraries" />
<orderEntry type="library" name="tomcat-lib" level="project" />
<orderEntry type="library" exported="" scope="PROVIDED" name="lib" level="project" />
<orderEntry type="library" exported="" scope="PROVIDED" name="Tomcat 8.5.37" level="application_server_libraries" />
<orderEntry type="library" scope="PROVIDED" name="tomcat-lib" level="project" />
</component>
</module>

@ -14,18 +14,12 @@ import java.util.Map;
public class UploadFile extends Operation {
@Override
public Map<String, Object> execute(User subject) throws Exception {
File file = (File) this.getOptions().get("file");
String table = (String) this.getOptions().get("file_type");
Map<String,String> limits = (Map<String, String>) this.getOptions().get("limits");
String field = core.operation.utils.Utils.getFileField(table);
String filePath = core.operation.utils.Utils.getFilePathName(table,file.getName());
String filePath = (String) this.getOptions().get("file_url");
Map<String,String> vMap = new HashMap<>();
vMap.put(field,filePath);
file.renameTo(new File(filePath));
//todo
List<String> ls = new ArrayList<>();
ls.add(field);
List<String[]> resultLs = DBManagement.select(ls,table,limits,0,1);

@ -1,6 +1,6 @@
{
"options":{
"file": "File",
"file_url": "String",
"file_type": "String",
"limits":"Map<String,String>"
},

@ -35,19 +35,4 @@ public interface Utils {
static String getFileField(String table){
return fileTableField.get(table);
}
static String getFilePath(String table){
return Configuration.filePath+table+"/";
}
static String getFileName(String fileName){
SimpleDateFormat simpleDateFormat;
simpleDateFormat = new SimpleDateFormat("yyMMddHHmmssSSS");
Date date = new Date();
String str = simpleDateFormat.format(date);
str+=(int)(Math.random()*100000);
str+= utils.Utils.getFileType(fileName);
return str;
}
static String getFilePathName(String table, String fileName){
return getFilePath(table)+getFileName(fileName);
}
}

@ -0,0 +1,50 @@
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_CollegeFillOpeningReportOpinion extends TempProcess{
String graduationDesignId;
Map<String,String> vMap;
static String table="graduation_design_opening_report_opinion_record";
public void fillInformation() throws Exception {
if(!check()) throw new GExcptInit("FillInformation 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("college_opinion_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.execute(null);
}
protected boolean check() {
if(this.getGraduationDesignId()==null||this.getVMap()==null)
return false;
return true;
}
public String getGraduationDesignId() {
return graduationDesignId;
}
public void setGraduationDesignId(String graduationDesignId) {
this.graduationDesignId = graduationDesignId;
}
public void setVMap(Map<String, String> vMap) {
this.vMap = vMap;
}
public Map<String, String> getVMap() {
return vMap;
}
}

@ -0,0 +1,45 @@
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_CollegeFillScoreOpinion extends TempProcess{
String graduationDesignId;
Map<String,String> vMap;
static String table="graduation_design_reply_opinion_record_score";
public void fillInformation() throws Exception{
if(!check()) throw new GExcptInit("FillInformation 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("college_opinion_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.execute(null);
}
protected boolean check() {
if(this.getGraduationDesignId()==null)
return false;
return true;
}
public Map<String, String> getVMap() {
return vMap;
}
public void setVMap(Map<String, String> vMap) {
this.vMap = vMap;
}
}

@ -0,0 +1,43 @@
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_MentorFillOpeningReportOpinion extends TempProcess{
Map<String,String> vMap;
static String table="graduation_design_opening_report_opinion_record";
public void fillInformation() throws Exception{
if(!check()) throw new GExcptInit("FillInformation 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("mentor_opinion_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.execute(null);
}
protected boolean check() {
if(this.getVMap()==null||this.getGraduationDesignId()==null)
return false;
return true;
}
public void setVMap(Map<String, String> vMap) {
this.vMap = vMap;
}
public Map<String, String> getVMap() {
return vMap;
}
}

@ -0,0 +1,53 @@
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_SchoolFillScoreOpinion extends TempProcess {
String graduationDesignId;
Map<String,String> vMap;
static String table="graduation_design_reply_opinion_record_score";
public void fillInformation() throws Exception{
if(!check()) throw new GExcptInit("FillInformation 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("school_opinion_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.execute(null);
}
protected boolean check() {
if(this.getGraduationDesignId()==null)
return false;
return true;
}
@Override
public String getGraduationDesignId() {
return graduationDesignId;
}
@Override
public void setGraduationDesignId(String graduationDesignId) {
this.graduationDesignId = graduationDesignId;
}
public void setVMap(Map<String, String> vMap) {
this.vMap = vMap;
}
}

@ -0,0 +1,50 @@
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_SecretaryFillOpeningReportOpinion extends TempProcess{
String graduationDesignId;
Map<String,String> vMap;
static String table="graduation_design_opening_report_opinion_record";
public void fillInformation() throws Exception{
if(!check()) throw new GExcptInit("FillInformation 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("secretary_record_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.execute(null);
}
protected boolean check() {
if(this.getGraduationDesignId()==null)
return false;
return true;
}
@Override
public String getGraduationDesignId() {
return graduationDesignId;
}
@Override
public void setGraduationDesignId(String graduationDesignId) {
this.graduationDesignId = graduationDesignId;
}
public void setVMap(Map<String, String> vMap) {
this.vMap = vMap;
}
}

@ -0,0 +1,51 @@
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_SecretaryFillReplyRecord extends TempProcess{
String graduationDesignId;
Map<String,String> vMap;
static String table="graduation_design_reply_opinion_record_score";
public void fillInformation() throws Exception{
if(!check()) throw new GExcptInit("FillInformation 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("secretary_record_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.execute(null);
}
protected boolean check() {
if(this.getGraduationDesignId()==null)
return false;
return true;
}
public String getGraduationDesignId() {
return graduationDesignId;
}
@Override
public void setGraduationDesignId(String graduationDesignId) {
this.graduationDesignId = graduationDesignId;
}
public void setVMap(Map<String, String> vMap) {
this.vMap = vMap;
}
}

@ -0,0 +1,47 @@
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_StudentFillGraduationDesignInformation extends TempProcess{
String graduationDesignId;
Map<String,String> vMap;
static String table="graduation_design_opening_report_opinion_record";
public void fillInformation() throws Exception{
if(!check()) throw new GExcptInit("FillInformation Attrs init error!");
FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.execute(null);
}
protected boolean check() {
if(this.getGraduationDesignId()==null)
return false;
return true;
}
@Override
public String getGraduationDesignId() {
return graduationDesignId;
}
@Override
public void setGraduationDesignId(String graduationDesignId) {
this.graduationDesignId = graduationDesignId;
}
public void setVMap(Map<String, String> vMap) {
this.vMap = vMap;
}
}

@ -0,0 +1,48 @@
package core.process;
import core.operation.UploadFile;
import error.GExcptInit;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
public class C_StudentUploadFinishedProduct {
File finishedProduct;
String graduationDesignId;
static String file_type = "finished_product";
public void uploadOpeningReport() throws Exception{
if(!check()) throw new GExcptInit("Upload FinishedProduct Attrs init error!");
UploadFile uploadFile=new UploadFile();
uploadFile.setOptions(new HashMap<>());
uploadFile.addOptions("file",this.getFinishedProduct());
uploadFile.addOptions("file_type",file_type);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
uploadFile.addOptions("limits",limits);
uploadFile.execute(null);
}
protected boolean check() {
if(this.getFinishedProduct()==null||this.getGraduationDesignId()==null)
return false;
return true;
}
public File getFinishedProduct() {
return finishedProduct;
}
public void setFinishedProduct(File finishedProduct) {
this.finishedProduct = finishedProduct;
}
public String getGraduationDesignId() {
return graduationDesignId;
}
public void setGraduationDesignId(String graduationDesignId) {
this.graduationDesignId = graduationDesignId;
}
}

@ -1,6 +1,6 @@
package core.process;
import core.operation.UploadFileOperation;
import core.operation.UploadFile;
import error.GExcptInit;
import java.io.File;
@ -9,24 +9,24 @@ import java.util.Map;
public class C_StudentUploadOpeningReport extends TempProcess{
File openingReport;
String gaduationDesignId;
String graduationDesignId;
static String file_type = "opening_report";
public void uploadOpeningReport() throws Exception{
if(!check()) throw new GExcptInit("Upload OpeningReport Attrs init error!");
UploadFileOperation uploadFileOperation=new UploadFileOperation();
UploadFile uploadFileOperation=new UploadFile();
uploadFileOperation.setOptions(new HashMap<>());
uploadFileOperation.addOptions("file",this.getOpeningReport());
uploadFileOperation.addOptions("file_type",file_type);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGaduationDesignId());
limits.put("id",this.getGraduationDesignId());
uploadFileOperation.addOptions("limits",limits);
uploadFileOperation.execute(null);
}
protected boolean check() {
if(this.getGaduationDesignId()==null||this.getOpeningReport()==null)
if(this.getGraduationDesignId()==null||this.getOpeningReport()==null)
return false;
return true;
}
@ -39,11 +39,11 @@ public class C_StudentUploadOpeningReport extends TempProcess{
this.openingReport = openingReport;
}
public String getGaduationDesignId() {
return gaduationDesignId;
public String getGraduationDesignId() {
return graduationDesignId;
}
public void setGaduationDesignId(String gaduationDesignId) {
this.gaduationDesignId = gaduationDesignId;
public void setGraduationDesignId(String graduationDesignId) {
this.graduationDesignId = graduationDesignId;
}
}

@ -1,61 +0,0 @@
package core.process;
import core.operation.FillInformation;
import error.GExcptInit;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
public class C_TeacherFillTopicInformation extends TempProcess{
String StudentId;
String mentor_opinion;
Date mentor_opinion_date;
static String table="graduation_design_opening_report_opinion_record";
public void fillInformation() throws Exception{
if(!check()) throw new GExcptInit("FillInformation Attrs init error!");
FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table);
String date= mentor_opinion_date.toString();
Map<String,String> vMap=new HashMap<>();
vMap.put("mentor_opinion_date",date);
vMap.put("mentor_opinion",this.getMentor_opinion());
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getStudentId());
fillInformation.addOptions("limits",limits);
fillInformation.execute(null);
}
protected boolean check() {
if(this.getMentor_opinion()==null||this.getMentor_opinion_date()==null||this.getStudentId()==null)
return false;
return true;
}
public String getStudentId() {
return StudentId;
}
public void setStudentId(String studentId) {
StudentId = studentId;
}
public String getMentor_opinion() {
return mentor_opinion;
}
public void setMentor_opinion(String mentor_opinion) {
this.mentor_opinion = mentor_opinion;
}
public Date getMentor_opinion_date() {
return mentor_opinion_date;
}
public void setMentor_opinion_date(Date mentor_opinion_date) {
this.mentor_opinion_date = mentor_opinion_date;
}
}

@ -9,13 +9,14 @@ import java.util.HashMap;
import java.util.Map;
public class C_TeacherTeamFillOpeningReportOpinion extends TempProcess{
public String teacherID;
public String teacher_opinion;
public Map<String,String> vMap;
String graduationDesignId;
Map<String,String> vMap;
static String table="graduation_design_opening_report_opinion_record";
public void TeacherTeamFillOpeningReportOpinion() throws Exception{
if(!check()) throw new GExcptInit("TeacherTeamFillOpeningReportOpinion Attrs init error!");
public void fillInformation() throws Exception{
if(!check()) throw new GExcptInit("FillInformation Attrs init error!");
FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table);
@ -23,36 +24,27 @@ public class C_TeacherTeamFillOpeningReportOpinion extends TempProcess {
String date=df.format(new Date());
vMap.put("report_teacher_team_opinion_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getTeacherID());
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.execute(null);
}
public Map<String, String> getvMap() {
return vMap;
}
public void setvMap(Map<String, String> vMap) {
this.vMap = vMap;
}
public String getTeacherID() {
return teacherID;
protected boolean check() {
if(this.getGraduationDesignId()==null)
return false;
return true;
}
public void setTeacherID(String teacherID) {
this.teacherID = teacherID;
@Override
public String getGraduationDesignId() {
return graduationDesignId;
}
public String getTeacher_opinion() {
return teacher_opinion;
}
public void setTeacher_opinion(String teacher_opinion) {
this.teacher_opinion = teacher_opinion;
}
@Override
protected boolean check() {
if(this.getTeacherID().equals(null)||this.getTeacher_opinion().equals(null)||this.getvMap().equals(null))
return false;
else
return true;
public void setGraduationDesignId(String graduationDesignId) {
this.graduationDesignId = graduationDesignId;
}
public void setVMap(Map<String, String> vMap) {
this.vMap = vMap;
}
}

@ -0,0 +1,49 @@
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_TeacherTeamFillScoreOpinion extends TempProcess {
String graduationDesignId;
Map<String,String> vMap;
static String table="graduation_design_reply_opinion_record_score";
public void fillInformation() throws Exception{
if(!check()) throw new GExcptInit("FillInformation 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("teacher_team_opinion_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.execute(null);
}
protected boolean check() {
if(this.getGraduationDesignId()==null)
return false;
return true;
}
@Override
public String getGraduationDesignId() {
return graduationDesignId;
}
@Override
public void setGraduationDesignId(String graduationDesignId) {
this.graduationDesignId = graduationDesignId;
}
public void setVMap(Map<String, String> vMap) {
this.vMap = vMap;
}
}

@ -1,19 +1,31 @@
package servlet;
import core.process.C_CollegeFillOpeningReportOpinion;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet(name = "S_CollegeFillOpeningReportOpinion")
@WebServlet("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");
Map<String,String> vMap = servlet.Utils.getVMap(vName,request);
C_CollegeFillOpeningReportOpinion p =new C_CollegeFillOpeningReportOpinion();
p.setGraduationDesignId(id);
p.setVMap(vMap);
try {
p.fillInformation();
} catch (Exception e) {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
static String[] vName = {
"college_opinion"
};
}

@ -1,19 +1,32 @@
package servlet;
import core.process.C_CollegeFillScoreOpinion;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet(name = "S_CollegeFillScoreOpinion")
@WebServlet("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");
Map<String,String> vMap = servlet.Utils.getVMap(vName,request);
C_CollegeFillScoreOpinion p =new C_CollegeFillScoreOpinion();
p.setGraduationDesignId(id);
p.setVMap(vMap);
try {
p.fillInformation();
} catch (Exception e) {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
static String[] vName = {
"college_opinion",
"college_score"
};
}

@ -1,19 +1,31 @@
package servlet;
import core.process.C_MentorFillOpeningReportOpinion;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet(name = "S_MentorFillOpeningReportOpinion")
@WebServlet("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");
Map<String,String> vMap = servlet.Utils.getVMap(vName,request);
C_MentorFillOpeningReportOpinion p = new C_MentorFillOpeningReportOpinion();
p.setGraduationDesignId(id);
p.setVMap(vMap);
try {
p.fillInformation();
} catch (Exception e) {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
static String[] vName = {
"mentor_opinion"
};
}

@ -6,14 +6,17 @@ import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet(name = "S_MentorFillReview")
@WebServlet("mentor-fill-review")
public class S_MentorFillReview extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");
Map<String,String> vMap = servlet.Utils.getVMap(vName,request);
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
static String[] vName = {
"total_grade",
"review_opinion"
};
}

@ -6,14 +6,17 @@ import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet(name = "S_ReviewerFillReview")
@WebServlet("reviewer-fill-review")
public class S_ReviewerFillReview extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");
Map<String,String> vMap = servlet.Utils.getVMap(vName,request);
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
static String[] vName = {
"score",
"opinion"
};
}

@ -6,14 +6,17 @@ import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet(name = "S_SchoolFillScoreOpinion")
@WebServlet("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");
Map<String,String> vMap = servlet.Utils.getVMap(vName,request);
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
static String[] vName = {
"school_opinion",
"school_score"
};
}

@ -6,14 +6,16 @@ import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet(name = "S_SecretaryFillOpeningReportRecord")
@WebServlet("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");
Map<String,String> vMap = servlet.Utils.getVMap(vName,request);
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
static String[] vName = {
"secretary_record"
};
}

@ -6,14 +6,16 @@ import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet(name = "S_SecretaryFillReplyRecord")
@WebServlet("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");
Map<String,String> vMap = servlet.Utils.getVMap(vName,request);
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
static String[] vName = {
"secretary_record"
};
}

@ -6,18 +6,22 @@ import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet("/student-fill-graduation-design-information")
public class S_StudentFillGraduationDesignInformation extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
super.doPost(request, response);
String content1=new String(request.getParameter("text").getBytes("ISO8859-1"),"UTF-8");
String content2=request.getParameter("score");
try {
String id = request.getParameter("id");
Map<String,String> vMap = servlet.Utils.getVMap(vName,request);
} catch (Exception e) {
e.printStackTrace();
}
}
static String[] vName = {
"chinese_name",
"english_name",
"type_of_topic",
"source_of_design",
"nature_of_design",
"description_of_topic"
};
}

@ -13,13 +13,13 @@ import java.io.IOException;
public class S_StudentSelectTeacher extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
super.doPost(request, response);
String teacher_id=request.getParameter("id");
String teacherId=request.getParameter("id");
User user=(User)request.getSession().getAttribute("user");
String student_id=user.getId();
String studentId=user.getId();
try {
C_StudentSelectTeacher SST=new C_StudentSelectTeacher();
SST.setTeacherId(teacher_id);
SST.setStudentId(student_id);
SST.setTeacherId(teacherId);
SST.setStudentId(studentId);
SST.select();
} catch (Exception e) {
e.printStackTrace();

@ -1,19 +1,19 @@
package servlet;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
@WebServlet(name = "S_StudentUploadFinishedProduct")
@WebServlet("/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 {
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id");
String fileURL = servlet.Utils.saveFile(request, fileType);
}
}

@ -1,6 +1,5 @@
package servlet;
import core.process.C_StudentUploadOpeningReport;
import core.user.User;
import javax.servlet.ServletException;
@ -10,17 +9,15 @@ import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.Part;
import java.io.File;
import java.io.IOException;
import java.util.UUID;
@WebServlet("/student-upload-opening-report")
@MultipartConfig
//学生id+文件
public class S_StudentUploadOpeningReport extends HttpServlet {
private static final long serialVersionUID = 1L;
static String fileType = "graduation_design_opening_report";
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
super.doPost(request, response);
String id = request.getParameter("id");
String fileURL = servlet.Utils.saveFile(request, fileType);
}
}

@ -13,13 +13,13 @@ import java.io.IOException;
public class S_TeacherSelectStudent extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
super.doPost(request, response);
String student_id=request.getParameter("id");
String studentId=request.getParameter("id");
User user=(User)request.getSession().getAttribute("user");
String teacher_id=user.getId();
String teacherId=user.getId();
try {
C_TeacherSelectStudent TSS=new C_TeacherSelectStudent();
TSS.setTeacherId(teacher_id);
TSS.setStudentId(student_id);
TSS.setTeacherId(teacherId);
TSS.setStudentId(studentId);
TSS.select();
} catch (Exception e) {
e.printStackTrace();

@ -6,14 +6,16 @@ import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet(name = "S_TeacherTeamFillOpeningReportOpinion")
@WebServlet("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");
Map<String,String> vMap = servlet.Utils.getVMap(vName,request);
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
static String[] vName = {
"report_teacher_team_opinion"
};
}

@ -6,14 +6,17 @@ import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;
@WebServlet(name = "S_TeacherFillTeamFillScoreOpinion")
public class S_TeacherFillTeamFillScoreOpinion extends HttpServlet {
@WebServlet("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");
Map<String,String> vMap = servlet.Utils.getVMap(vName,request);
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
}
static String[] vName = {
"teacher_team_opinion",
"teacher_team_score"
};
}

@ -0,0 +1,60 @@
package servlet;
import gdms.Configuration;
import org.apache.coyote.Request;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Part;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public interface Utils {
static Map<String,String> getVMap(String[] vName, HttpServletRequest request){
Map<String,String> vMap = new HashMap<>();
for(int i=0;i<vName.length;i++){
vMap.put(vName[i],request.getParameter(vName[i]));
}
return vMap;
}
static String getFilePath(String table){
return Configuration.filePath+table+"/";
}
static String getFileName(String fileName){
SimpleDateFormat simpleDateFormat;
simpleDateFormat = new SimpleDateFormat("yyMMddHHmmssSSS");
Date date = new Date();
String str = simpleDateFormat.format(date);
str+=(int)(Math.random()*100000);
str+= utils.Utils.getFileType(fileName);
return str;
}
static String getFilePathName(String table, String fileName){
return getFilePath(table)+getFileName(fileName);
}
static String saveFile(HttpServletRequest request, String table) throws IOException, ServletException {
Part part = request.getPart("graduation_design");
String header = part.getHeader("content-disposition");
String path = header.substring(header.indexOf("filename=") + 10, header.length() - 1);
String filePathName = servlet.Utils.getFilePathName(table,path);
File file = new File(filePathName);
InputStream inputStream = part.getInputStream();
FileOutputStream outputStream = new FileOutputStream(file);
int len;
byte[] bytes = new byte[1024];
while ((len = inputStream.read(bytes)) != -1) {
outputStream.write(bytes, 0, len);
}
outputStream.close();
inputStream.close();
part.delete();
return filePathName;
}
}
Loading…
Cancel
Save