Merge remote-tracking branch 'origin/master'

wmj
wan 6 years ago
commit 061437836c

@ -10,7 +10,6 @@ import java.util.Map;
public class C_CollegeFillOpeningReportOpinion extends TempProcess{ public class C_CollegeFillOpeningReportOpinion extends TempProcess{
String graduationDesignId; String graduationDesignId;
String opening_report_college_teacher_id;
Map<String,String> vMap; Map<String,String> vMap;
static String table="graduation_design_opening_report_opinion_record"; static String table="graduation_design_opening_report_opinion_record";
@ -29,7 +28,7 @@ public class C_CollegeFillOpeningReportOpinion extends TempProcess{
fillInformation.execute(null); fillInformation.execute(null);
} }
protected boolean check() { protected boolean check() {
if(this.getOpening_report_college_teacher_id()==null||this.getGraduationDesignId()==null) if(this.getGraduationDesignId()==null||this.getVMap()==null)
return false; return false;
return true; return true;
} }
@ -41,16 +40,11 @@ public class C_CollegeFillOpeningReportOpinion extends TempProcess{
this.graduationDesignId = graduationDesignId; this.graduationDesignId = graduationDesignId;
} }
public String getOpening_report_college_teacher_id() { public void setVMap(Map<String, String> vMap) {
return opening_report_college_teacher_id;
}
public void setOpening_report_college_teacher_id(String opening_report_college_teacher_id) {
this.opening_report_college_teacher_id = opening_report_college_teacher_id;
}
public void setvMap(Map<String, String> vMap) {
this.vMap = vMap; this.vMap = vMap;
} }
public Map<String, String> getVMap() {
return vMap;
}
} }

@ -16,7 +16,7 @@ public class C_CollegeFillScoreOpinion extends TempProcess{
static String table="graduation_design_reply_opinion_record_score"; static String table="graduation_design_reply_opinion_record_score";
public void fillInformation() throws Exception{ public void fillInformation() throws Exception{
if(!check()) throw new GExcptInit("FillInformations Attrs Init error!"); if(!check()) throw new GExcptInit("FillInformation Attrs Init error!");
FillInformation fillInformation=new FillInformation(); FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>()); fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table); fillInformation.addOptions("table",table);

@ -50,7 +50,7 @@ public class C_MentorFillOpeningReportOpinion extends TempProcess{
this.mentor_opinion = mentor_opinion; this.mentor_opinion = mentor_opinion;
} }
public void setvMap(Map<String, String> vMap) { public void setVMap(Map<String, String> vMap) {
this.vMap = vMap; this.vMap = vMap;
} }
} }

@ -41,7 +41,7 @@ public class C_SchoolFillScoreOpinion extends TempProcess {
public void setGraduationDesignId(String graduationDesignId) { public void setGraduationDesignId(String graduationDesignId) {
this.graduationDesignId = graduationDesignId; this.graduationDesignId = graduationDesignId;
} }
public void setvMap(Map<String, String> vMap) { public void setVMap(Map<String, String> vMap) {
this.vMap = vMap; this.vMap = vMap;
} }

@ -43,7 +43,7 @@ public class C_SecretaryFillOpeningReportOpinion extends TempProcess{
this.graduationDesignId = graduationDesignId; this.graduationDesignId = graduationDesignId;
} }
public void setvMap(Map<String, String> vMap) { public void setVMap(Map<String, String> vMap) {
this.vMap = vMap; this.vMap = vMap;
} }

@ -16,7 +16,7 @@ public class C_SecretaryFillReplyRecord extends TempProcess{
static String table="graduation_design_reply_opinion_record_score"; static String table="graduation_design_reply_opinion_record_score";
public void fillInformation() throws Exception{ public void fillInformation() throws Exception{
if(!check()) throw new GExcptInit("FillInformations Attrs Init error!"); if(!check()) throw new GExcptInit("FillInformation Attrs Init error!");
FillInformation fillInformation=new FillInformation(); FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>()); fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table); fillInformation.addOptions("table",table);
@ -42,7 +42,7 @@ public class C_SecretaryFillReplyRecord extends TempProcess{
this.graduationDesignId = graduationDesignId; this.graduationDesignId = graduationDesignId;
} }
public void setvMap(Map<String, String> vMap) { public void setVMap(Map<String, String> vMap) {
this.vMap = vMap; this.vMap = vMap;
} }

@ -39,7 +39,7 @@ public class C_StudentFillGraduationDesignInformation extends TempProcess{
this.graduationDesignId = graduationDesignId; this.graduationDesignId = graduationDesignId;
} }
public void setvMap(Map<String, String> vMap) { public void setVMap(Map<String, String> vMap) {
this.vMap = vMap; this.vMap = vMap;
} }

@ -10,7 +10,7 @@ import java.util.Map;
public class C_StudentUploadFinishedProduct { public class C_StudentUploadFinishedProduct {
File finishedProduct; File finishedProduct;
String gaduationDesignId; String graduationDesignId;
static String file_type = "finished_product"; static String file_type = "finished_product";
public void uploadOpeningReport() throws Exception{ public void uploadOpeningReport() throws Exception{
@ -20,13 +20,13 @@ public class C_StudentUploadFinishedProduct {
uploadFile.addOptions("file",this.getFinishedProduct()); uploadFile.addOptions("file",this.getFinishedProduct());
uploadFile.addOptions("file_type",file_type); uploadFile.addOptions("file_type",file_type);
Map<String, String>limits = new HashMap<>(); Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGaduationDesignId()); limits.put("id",this.getGraduationDesignId());
uploadFile.addOptions("limits",limits); uploadFile.addOptions("limits",limits);
uploadFile.execute(null); uploadFile.execute(null);
} }
protected boolean check() { protected boolean check() {
if(this.getFinishedProduct()==null||this.getGaduationDesignId()==null) if(this.getFinishedProduct()==null||this.getGraduationDesignId()==null)
return false; return false;
return true; return true;
} }
@ -37,12 +37,12 @@ public class C_StudentUploadFinishedProduct {
public void setFinishedProduct(File finishedProduct) { public void setFinishedProduct(File finishedProduct) {
this.finishedProduct = finishedProduct; this.finishedProduct = finishedProduct;
} }
public String getGaduationDesignId() { public String getGraduationDesignId() {
return gaduationDesignId; return graduationDesignId;
} }
public void setGaduationDesignId(String gaduationDesignId) { public void setGraduationDesignId(String graduationDesignId) {
this.gaduationDesignId = gaduationDesignId; this.graduationDesignId = graduationDesignId;
} }
} }

@ -9,7 +9,7 @@ import java.util.Map;
public class C_StudentUploadOpeningReport extends TempProcess{ public class C_StudentUploadOpeningReport extends TempProcess{
File openingReport; File openingReport;
String gaduationDesignId; String graduationDesignId;
static String file_type = "opening_report"; static String file_type = "opening_report";
@ -20,13 +20,13 @@ public class C_StudentUploadOpeningReport extends TempProcess{
uploadFileOperation.addOptions("file",this.getOpeningReport()); uploadFileOperation.addOptions("file",this.getOpeningReport());
uploadFileOperation.addOptions("file_type",file_type); uploadFileOperation.addOptions("file_type",file_type);
Map<String, String>limits = new HashMap<>(); Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGaduationDesignId()); limits.put("id",this.getGraduationDesignId());
uploadFileOperation.addOptions("limits",limits); uploadFileOperation.addOptions("limits",limits);
uploadFileOperation.execute(null); uploadFileOperation.execute(null);
} }
protected boolean check() { protected boolean check() {
if(this.getGaduationDesignId()==null||this.getOpeningReport()==null) if(this.getGraduationDesignId()==null||this.getOpeningReport()==null)
return false; return false;
return true; return true;
} }
@ -39,11 +39,11 @@ public class C_StudentUploadOpeningReport extends TempProcess{
this.openingReport = openingReport; this.openingReport = openingReport;
} }
public String getGaduationDesignId() { public String getGraduationDesignId() {
return gaduationDesignId; return graduationDesignId;
} }
public void setGaduationDesignId(String gaduationDesignId) { public void setGraduationDesignId(String graduationDesignId) {
this.gaduationDesignId = gaduationDesignId; this.graduationDesignId = graduationDesignId;
} }
} }

@ -43,7 +43,7 @@ public class C_TeacherTeamFillOpeningReportOpinion extends TempProcess{
this.graduationDesignId = graduationDesignId; this.graduationDesignId = graduationDesignId;
} }
public void setvMap(Map<String, String> vMap) { public void setVMap(Map<String, String> vMap) {
this.vMap = vMap; this.vMap = vMap;
} }

@ -42,7 +42,7 @@ public class C_TeacherTeamFillScoreOpinion extends TempProcess {
public void setGraduationDesignId(String graduationDesignId) { public void setGraduationDesignId(String graduationDesignId) {
this.graduationDesignId = graduationDesignId; this.graduationDesignId = graduationDesignId;
} }
public void setvMap(Map<String, String> vMap) { public void setVMap(Map<String, String> vMap) {
this.vMap = vMap; this.vMap = vMap;
} }

@ -1,5 +1,7 @@
package servlet; package servlet;
import core.process.C_CollegeFillOpeningReportOpinion;
import javax.servlet.ServletException; import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet; import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServlet;
@ -8,14 +10,22 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.util.Map; import java.util.Map;
@WebServlet(name = "S_CollegeFillOpeningReportOpinion") @WebServlet("college-fill-opening-report-opinion")
public class S_CollegeFillOpeningReportOpinion extends HttpServlet { public class S_CollegeFillOpeningReportOpinion extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id"); String id = request.getParameter("id");
Map<String,String> vMap = servlet.Utils.getVMap(vName,request); 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");
}
} }
static String[] vName = { static String[] vName = {
"" "college_opinion"
}; };
} }

@ -1,5 +1,7 @@
package servlet; package servlet;
import core.process.C_CollegeFillScoreOpinion;
import javax.servlet.ServletException; import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet; import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServlet;
@ -8,14 +10,16 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.util.Map; import java.util.Map;
@WebServlet(name = "S_CollegeFillScoreOpinion") @WebServlet("college-fill-score-opinion")
public class S_CollegeFillScoreOpinion extends HttpServlet { public class S_CollegeFillScoreOpinion extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id"); String id = request.getParameter("id");
Map<String,String> vMap = servlet.Utils.getVMap(vName,request); Map<String,String> vMap = servlet.Utils.getVMap(vName,request);
C_CollegeFillScoreOpinion p =new C_CollegeFillScoreOpinion();
} }
static String[] vName = { static String[] vName = {
"" "college_opinion",
"college_score"
}; };
} }

@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.util.Map; import java.util.Map;
@WebServlet(name = "S_MentorFillOpeningReportOpinion") @WebServlet("mentor-fill-opening-report-opinion")
public class S_MentorFillOpeningReportOpinion extends HttpServlet { public class S_MentorFillOpeningReportOpinion extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id"); String id = request.getParameter("id");
@ -16,6 +16,6 @@ public class S_MentorFillOpeningReportOpinion extends HttpServlet {
} }
static String[] vName = { static String[] vName = {
"" "mentor_opinion"
}; };
} }

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

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

@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.util.Map; import java.util.Map;
@WebServlet(name = "S_SchoolFillScoreOpinion") @WebServlet("school-fill-score-opinion")
public class S_SchoolFillScoreOpinion extends HttpServlet { public class S_SchoolFillScoreOpinion extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id"); String id = request.getParameter("id");
@ -16,6 +16,7 @@ public class S_SchoolFillScoreOpinion extends HttpServlet {
} }
static String[] vName = { static String[] vName = {
"" "school_opinion",
"school_score"
}; };
} }

@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.util.Map; import java.util.Map;
@WebServlet(name = "S_SecretaryFillOpeningReportRecord") @WebServlet("secretary-fill-opening-report-record")
public class S_SecretaryFillOpeningReportRecord extends HttpServlet { public class S_SecretaryFillOpeningReportRecord extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id"); String id = request.getParameter("id");
@ -16,6 +16,6 @@ public class S_SecretaryFillOpeningReportRecord extends HttpServlet {
} }
static String[] vName = { static String[] vName = {
"" "secretary_record"
}; };
} }

@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.util.Map; import java.util.Map;
@WebServlet(name = "secretary-fill-reply-record") @WebServlet("secretary-fill-reply-record")
public class S_SecretaryFillReplyRecord extends HttpServlet { public class S_SecretaryFillReplyRecord extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id"); String id = request.getParameter("id");
@ -16,6 +16,6 @@ public class S_SecretaryFillReplyRecord extends HttpServlet {
} }
static String[] vName = { static String[] vName = {
"" "secretary_record"
}; };
} }

@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.util.Map; import java.util.Map;
@WebServlet(name = "teacher-team-fill-opening-report-opinion") @WebServlet("teacher-team-fill-opening-report-opinion")
public class S_TeacherTeamFillOpeningReportOpinion extends HttpServlet { public class S_TeacherTeamFillOpeningReportOpinion extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id"); String id = request.getParameter("id");
@ -16,6 +16,6 @@ public class S_TeacherTeamFillOpeningReportOpinion extends HttpServlet {
} }
static String[] vName = { static String[] vName = {
"" "report_teacher_team_opinion"
}; };
} }

@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
import java.util.Map; import java.util.Map;
@WebServlet(name = "S_TeacherTeamFillScoreOpinion") @WebServlet("teacher-team-fill-score-opinion")
public class S_TeacherTeamFillScoreOpinion extends HttpServlet { public class S_TeacherTeamFillScoreOpinion extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String id = request.getParameter("id"); String id = request.getParameter("id");
@ -16,6 +16,7 @@ public class S_TeacherTeamFillScoreOpinion extends HttpServlet {
} }
static String[] vName = { static String[] vName = {
"" "teacher_team_opinion",
"teacher_team_score"
}; };
} }

Loading…
Cancel
Save