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

hechu1
何楚 6 years ago
commit 2522730dad

@ -14,6 +14,7 @@ public class C_CollegeFillOpeningReportOpinion extends TempProcess{
protected static String buttonName ="学院开题意见";
protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/college-fill-opening-report-opinion";
protected static String info = "";
static String table="graduation_design_opening_report_opinion_record";
@ -50,4 +51,23 @@ public class C_CollegeFillOpeningReportOpinion extends TempProcess{
public Map<String, String> getVMap() {
return vMap;
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -16,6 +16,7 @@ public class C_CollegeFillScoreOpinion extends TempProcess{
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";
protected static String info = "";
public void fillInformation() throws Exception{
if(!check()) throw new GExcptInit("FillInformation Attrs Init error!");
@ -44,4 +45,23 @@ public class C_CollegeFillScoreOpinion extends TempProcess{
public void setVMap(Map<String, String> vMap) {
this.vMap = vMap;
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -15,6 +15,7 @@ public class C_MentorFillOpeningReportOpinion extends TempProcess{
protected static String buttonName ="导师开题意见";
protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/mentor-fill-opening-report-opinion";
protected static String info = "";
static String table="graduation_design_opening_report_opinion_record";
@ -54,4 +55,23 @@ public class C_MentorFillOpeningReportOpinion extends TempProcess{
public Map<String, String> getVMap() {
return vMap;
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -15,6 +15,7 @@ public class C_MentorFillReview extends TempProcess {
protected static String buttonName ="指导老师评阅";
protected static String targetURL="/home/mentor-fill-review";
protected static String iconURL="../cssFile/images/fill.png";
protected static String info = "";
static String table="graduation_design_finished_product_mentor_score";
@ -52,5 +53,25 @@ public class C_MentorFillReview extends TempProcess {
public Map<String, String> getVMap() {
return vMap;
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -14,6 +14,7 @@ public class C_ReviewerFillReview extends TempProcess {
protected static String buttonName ="评阅老师评阅";
protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/reviewer-fill-review";
protected static String info = "";
static String table="graduation_design_finished_product_reviewer_score";
@ -50,6 +51,25 @@ public class C_ReviewerFillReview extends TempProcess {
public void setVMap(Map<String, String> vMap) {
this.vMap = vMap;
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -15,6 +15,7 @@ public class C_SchoolFillScoreOpinion extends TempProcess {
protected static String buttonName ="学院老师评分";
protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/school-fill-score-opinion";
protected static String info = "";
static String table="graduation_design_reply_opinion_record_score";
public void fillInformation() throws Exception{
@ -52,6 +53,25 @@ public class C_SchoolFillScoreOpinion extends TempProcess {
return vMap;
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -15,6 +15,7 @@ public class C_SecretaryFillOpeningReportRecord extends TempProcess{
protected static String buttonName ="提交开题纪要";
protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/secretary-fill-opening-report-record";
protected static String info = "";
static String table="graduation_design_opening_report_opinion_record";
@ -53,4 +54,23 @@ public class C_SecretaryFillOpeningReportRecord extends TempProcess{
return vMap;
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -15,6 +15,7 @@ public class C_SecretaryFillReplyRecord extends TempProcess{
protected static String buttonName ="提交答辩记录";
protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/secretary-fill-reply-record";
protected static String info = "";
static String table="graduation_design_reply_opinion_record_score";
@ -54,4 +55,23 @@ public class C_SecretaryFillReplyRecord extends TempProcess{
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -14,6 +14,7 @@ public class C_StudentFillGraduationDesignInformation extends TempProcess{
protected static String buttonName ="填写选题信息";
protected static String iconURL="../cssFile/images/filText.png";
protected static String targetURL="/home/student-fill-graduation-design-information";
protected static String info = "";
static String table="graduation_design_opening_report_opinion_record";
@ -51,4 +52,23 @@ public class C_StudentFillGraduationDesignInformation extends TempProcess{
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -11,6 +11,10 @@ import java.util.Map;
public class C_StudentSearchTeacher extends TempProcess{
String teacherID;
protected static String buttonName = "";
protected static String iconURL="";
protected static String targetURL="";
protected static String info = "";
static String table = "teacher";
Map<String,String> TeacherInfo=new HashMap<String, String>();
@ -67,4 +71,23 @@ public class C_StudentSearchTeacher extends TempProcess{
public void setTeacherID(String teacherID){
this.teacherID=teacherID;
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -15,6 +15,7 @@ public class C_StudentSelectTeacher extends TempProcess {
protected String buttonName ="选择老师";
protected static String targetURL="/home/student-select-teacher";
protected static String iconURL="../cssFile/images/select.png";
protected static String info = "";
public void select()throws Exception{
if(!check()) throw new GExcptInit("ID Attrs init error!");
@ -64,5 +65,24 @@ public class C_StudentSelectTeacher extends TempProcess {
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -14,6 +14,7 @@ public class C_StudentUploadFinishedProduct extends TempProcess {
protected static String buttonName ="提交定稿";
protected static String iconURL="../cssFile/images/upload.png";
protected static String targetURL="/home/student-upload-finished-product";
protected static String info = "";
static String file_type = "finished_product";
public void uploadOpeningReport() throws Exception{
@ -48,4 +49,23 @@ public class C_StudentUploadFinishedProduct extends TempProcess {
this.graduationDesignId = graduationDesignId;
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -14,6 +14,7 @@ public class C_StudentUploadOpeningReport extends TempProcess{
static String file_type = "opening_report";
protected static String targetURL="/home/student-upload-opening-report";
protected static String iconURL="../cssFile/images/upload.png";
protected static String info = "";
public void uploadOpeningReport() throws Exception{
if(!check()) throw new GExcptInit("Upload OpeningReport Attrs init error!");
@ -48,4 +49,24 @@ public class C_StudentUploadOpeningReport extends TempProcess{
public void setGraduationDesignId(String graduationDesignId) {
this.graduationDesignId = graduationDesignId;
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -11,6 +11,10 @@ import java.util.Map;
public class C_TeacherSearchStudent extends TempProcess {
String studentId;
protected static String buttonName = "";
protected static String iconURL="";
protected static String targetURL="";
protected static String info = "";
static String table="student";
public Map<String,String> search() throws Exception{
@ -67,4 +71,23 @@ public class C_TeacherSearchStudent extends TempProcess {
this.studentId=studentId;
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -15,6 +15,7 @@ public class C_TeacherSelectStudent extends TempProcess {
protected static String buttonName ="选择学生";
protected static String iconURL="";
protected static String targetURL="/home/teacher-select-student";
protected static String info = "";
public void select()throws Exception{
if(!check()) throw new GExcptInit("ID Attrs init error!");
@ -63,6 +64,24 @@ public class C_TeacherSelectStudent extends TempProcess {
this.studentId = studentId;
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -15,6 +15,7 @@ public class C_TeacherTeamFillOpeningReportOpinion extends TempProcess{
protected static String buttonName ="开题小组意见";
protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/teacher-team-fill-opening-report-opinion";
protected static String info = "";
static String table="graduation_design_opening_report_opinion_record";
@ -54,5 +55,24 @@ public class C_TeacherTeamFillOpeningReportOpinion extends TempProcess{
return vMap;
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
}

@ -13,6 +13,7 @@ public class C_TeacherTeamFillScoreOpinion extends TempProcess {
protected static String buttonName = "答辩小组评分";
protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/teacher-team-fill-score-opinion";
protected static String info = "";
String graduationDesignId;
Map<String,String> vMap;
@ -36,6 +37,27 @@ public class C_TeacherTeamFillScoreOpinion extends TempProcess {
return false;
return true;
}
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
@Override
public String getGraduationDesignId() {
return graduationDesignId;

@ -4,16 +4,10 @@ import core.operation.Operation;
public abstract class Process{
protected static String buttonName;
protected static String targetURL;
protected static String iconURL;
private String status;
private String permission;
private Operation operation;
private String info;
protected abstract boolean check();
@ -33,18 +27,6 @@ public abstract class Process{
this.operation = operation;
}
public String getButtonName() {
return buttonName;
}
public String getInfo() {
return info;
}
public void setInfo(String info) {
this.info = info;
}
public String getStatus() {
return status;
}
@ -53,11 +35,11 @@ public abstract class Process{
this.status = status;
}
public static String getTargetURL() {
return targetURL;
}
public abstract String getInfo();
public static String getIconURL() {
return iconURL;
}
public abstract String getTargetURL();
public abstract String getIconURL();
public abstract String getButtonName();
}

@ -221,4 +221,8 @@ public class DBManagement {
}
}
}
public static void updateAll(String table, List<String> fields, String increment) {
}
}

@ -1,5 +1,6 @@
package gdms;
import dao.DBManagement;
import error.GExcptInit;
import java.util.*;
@ -15,14 +16,60 @@ public class GDMS {
}
}
private static TimerTask getTimerTask(String s) throws GExcptInit {
if(s==""){
return new TimerTask() {
@Override
public void run() {
;
}
};
switch (s){
case "teacher_choose_student_start_date":
return new TimerTask() {
@Override
public void run() {
List<String> fields = new ArrayList<>();
fields.add("teacher_choose_student_status");
DBManagement.updateAll("graduation_design",fields,"1");
}
};
case "student_choose_teacher_start_date":
return new TimerTask() {
@Override
public void run() {
;
}
};
case "choose_end_date":
return new TimerTask() {
@Override
public void run() {
;
}
};
case "opening_report_opinion_deadline_date":
return new TimerTask() {
@Override
public void run() {
;
}
};
case "finished_product_deadline_date":
return new TimerTask() {
@Override
public void run() {
;
}
};
case "finished_product_review_deadline_date":
return new TimerTask() {
@Override
public void run() {
;
}
};
case "reply_opinion_deadline_date":
return new TimerTask() {
@Override
public void run() {
;
}
};
}
throw new GExcptInit("GlobalTimePoint.json error");

@ -5,5 +5,5 @@
"opening_report_opinion_deadline_date": "",
"finished_product_deadline_date": "",
"finished_product_review_deadline_date": "",
"reply_opition_deadline_date": ""
"reply_opinion_deadline_date": ""
}
Loading…
Cancel
Save