rewrite Process

hechu1
zhai_lw 6 years ago
parent ed7bcee5b9
commit 78666e3a41

@ -14,6 +14,7 @@ public class C_CollegeFillOpeningReportOpinion extends TempProcess{
protected static String buttonName ="学院开题意见"; protected static String buttonName ="学院开题意见";
protected static String iconURL="../cssFile/images/fill.png"; protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/college-fill-opening-report-opinion"; protected static String targetURL="/home/college-fill-opening-report-opinion";
protected static String info = "";
static String table="graduation_design_opening_report_opinion_record"; static String table="graduation_design_opening_report_opinion_record";
@ -50,4 +51,23 @@ public class C_CollegeFillOpeningReportOpinion extends TempProcess{
public Map<String, String> getVMap() { public Map<String, String> getVMap() {
return vMap; 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 iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/college-fill-score-opinion"; protected static String targetURL="/home/college-fill-score-opinion";
static String table="graduation_design_reply_opinion_record_score"; static String table="graduation_design_reply_opinion_record_score";
protected static String info = "";
public void fillInformation() throws Exception{ public void fillInformation() throws Exception{
if(!check()) throw new GExcptInit("FillInformation Attrs Init error!"); 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) { public void setVMap(Map<String, String> vMap) {
this.vMap = 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 buttonName ="导师开题意见";
protected static String iconURL="../cssFile/images/fill.png"; protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/mentor-fill-opening-report-opinion"; protected static String targetURL="/home/mentor-fill-opening-report-opinion";
protected static String info = "";
static String table="graduation_design_opening_report_opinion_record"; static String table="graduation_design_opening_report_opinion_record";
@ -54,4 +55,23 @@ public class C_MentorFillOpeningReportOpinion extends TempProcess{
public Map<String, String> getVMap() { public Map<String, String> getVMap() {
return vMap; 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 buttonName ="指导老师评阅";
protected static String targetURL="/home/mentor-fill-review"; protected static String targetURL="/home/mentor-fill-review";
protected static String iconURL="../cssFile/images/fill.png"; protected static String iconURL="../cssFile/images/fill.png";
protected static String info = "";
static String table="graduation_design_finished_product_mentor_score"; static String table="graduation_design_finished_product_mentor_score";
@ -52,5 +53,25 @@ public class C_MentorFillReview extends TempProcess {
public Map<String, String> getVMap() { public Map<String, String> getVMap() {
return vMap; 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 buttonName ="评阅老师评阅";
protected static String iconURL="../cssFile/images/fill.png"; protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/reviewer-fill-review"; protected static String targetURL="/home/reviewer-fill-review";
protected static String info = "";
static String table="graduation_design_finished_product_reviewer_score"; 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) { public void setVMap(Map<String, String> vMap) {
this.vMap = 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 buttonName ="学院老师评分";
protected static String iconURL="../cssFile/images/fill.png"; protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/school-fill-score-opinion"; protected static String targetURL="/home/school-fill-score-opinion";
protected static String info = "";
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{
@ -52,6 +53,25 @@ public class C_SchoolFillScoreOpinion extends TempProcess {
return vMap; 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 buttonName ="提交开题纪要";
protected static String iconURL="../cssFile/images/fill.png"; protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/secretary-fill-opening-report-record"; protected static String targetURL="/home/secretary-fill-opening-report-record";
protected static String info = "";
static String table="graduation_design_opening_report_opinion_record"; static String table="graduation_design_opening_report_opinion_record";
@ -53,4 +54,23 @@ public class C_SecretaryFillOpeningReportRecord extends TempProcess{
return vMap; 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 buttonName ="提交答辩记录";
protected static String iconURL="../cssFile/images/fill.png"; protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/secretary-fill-reply-record"; protected static String targetURL="/home/secretary-fill-reply-record";
protected static String info = "";
static String table="graduation_design_reply_opinion_record_score"; 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 buttonName ="填写选题信息";
protected static String iconURL="../cssFile/images/filText.png"; protected static String iconURL="../cssFile/images/filText.png";
protected static String targetURL="/home/student-fill-graduation-design-information"; protected static String targetURL="/home/student-fill-graduation-design-information";
protected static String info = "";
static String table="graduation_design_opening_report_opinion_record"; 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{ public class C_StudentSearchTeacher extends TempProcess{
String teacherID; String teacherID;
protected static String buttonName = "";
protected static String iconURL="";
protected static String targetURL="";
protected static String info = "";
static String table = "teacher"; static String table = "teacher";
Map<String,String> TeacherInfo=new HashMap<String, String>(); Map<String,String> TeacherInfo=new HashMap<String, String>();
@ -67,4 +71,23 @@ public class C_StudentSearchTeacher extends TempProcess{
public void setTeacherID(String teacherID){ public void setTeacherID(String teacherID){
this.teacherID=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 static String buttonName ="选择老师"; protected static String buttonName ="选择老师";
protected static String targetURL="/home/student-select-teacher"; protected static String targetURL="/home/student-select-teacher";
protected static String iconURL="../cssFile/images/select.png"; protected static String iconURL="../cssFile/images/select.png";
protected static String info = "";
public void select()throws Exception{ public void select()throws Exception{
if(!check()) throw new GExcptInit("ID Attrs init error!"); 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 buttonName ="提交定稿";
protected static String iconURL="../cssFile/images/upload.png"; protected static String iconURL="../cssFile/images/upload.png";
protected static String targetURL="/home/student-upload-finished-product"; protected static String targetURL="/home/student-upload-finished-product";
protected static String info = "";
static String file_type = "finished_product"; static String file_type = "finished_product";
public void uploadOpeningReport() throws Exception{ public void uploadOpeningReport() throws Exception{
@ -48,4 +49,23 @@ public class C_StudentUploadFinishedProduct extends TempProcess {
this.graduationDesignId = 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;
}
} }

@ -14,6 +14,7 @@ public class C_StudentUploadOpeningReport extends TempProcess{
static String file_type = "opening_report"; static String file_type = "opening_report";
protected static String targetURL="/home/student-upload-opening-report"; protected static String targetURL="/home/student-upload-opening-report";
protected static String iconURL="../cssFile/images/upload.png"; protected static String iconURL="../cssFile/images/upload.png";
protected static String info = "";
public void uploadOpeningReport() throws Exception{ public void uploadOpeningReport() throws Exception{
if(!check()) throw new GExcptInit("Upload OpeningReport Attrs init error!"); 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) { public void setGraduationDesignId(String graduationDesignId) {
this.graduationDesignId = 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 { public class C_TeacherSearchStudent extends TempProcess {
String studentId; String studentId;
protected static String buttonName = "";
protected static String iconURL="";
protected static String targetURL="";
protected static String info = "";
static String table="student"; static String table="student";
public Map<String,String> search() throws Exception{ public Map<String,String> search() throws Exception{
@ -67,4 +71,23 @@ public class C_TeacherSearchStudent extends TempProcess {
this.studentId=studentId; 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 buttonName ="选择学生";
protected static String iconURL=""; protected static String iconURL="";
protected static String targetURL="/home/teacher-select-student"; protected static String targetURL="/home/teacher-select-student";
protected static String info = "";
public void select()throws Exception{ public void select()throws Exception{
if(!check()) throw new GExcptInit("ID Attrs init error!"); if(!check()) throw new GExcptInit("ID Attrs init error!");
@ -63,6 +64,24 @@ public class C_TeacherSelectStudent extends TempProcess {
this.studentId = studentId; 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 buttonName ="开题小组意见";
protected static String iconURL="../cssFile/images/fill.png"; protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/teacher-team-fill-opening-report-opinion"; protected static String targetURL="/home/teacher-team-fill-opening-report-opinion";
protected static String info = "";
static String table="graduation_design_opening_report_opinion_record"; static String table="graduation_design_opening_report_opinion_record";
@ -54,5 +55,24 @@ public class C_TeacherTeamFillOpeningReportOpinion extends TempProcess{
return vMap; 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 buttonName = "答辩小组评分";
protected static String iconURL="../cssFile/images/fill.png"; protected static String iconURL="../cssFile/images/fill.png";
protected static String targetURL="/home/teacher-team-fill-score-opinion"; protected static String targetURL="/home/teacher-team-fill-score-opinion";
protected static String info = "";
String graduationDesignId; String graduationDesignId;
Map<String,String> vMap; Map<String,String> vMap;
@ -36,6 +37,27 @@ public class C_TeacherTeamFillScoreOpinion extends TempProcess {
return false; return false;
return true; 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 @Override
public String getGraduationDesignId() { public String getGraduationDesignId() {
return graduationDesignId; return graduationDesignId;

@ -4,16 +4,10 @@ import core.operation.Operation;
public abstract class Process{ public abstract class Process{
protected static String buttonName;
protected static String targetURL;
protected static String iconURL;
private String status; private String status;
private String permission; private String permission;
private Operation operation; private Operation operation;
private String info;
protected abstract boolean check(); protected abstract boolean check();
@ -33,18 +27,6 @@ public abstract class Process{
this.operation = operation; this.operation = operation;
} }
public String getButtonName() {
return buttonName;
}
public String getInfo() {
return info;
}
public void setInfo(String info) {
this.info = info;
}
public String getStatus() { public String getStatus() {
return status; return status;
} }
@ -53,11 +35,11 @@ public abstract class Process{
this.status = status; this.status = status;
} }
public static String getTargetURL() { public abstract String getInfo();
return targetURL;
}
public static String getIconURL() { public abstract String getTargetURL();
return iconURL;
} 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; package gdms;
import dao.DBManagement;
import error.GExcptInit; import error.GExcptInit;
import java.util.*; import java.util.*;
@ -15,8 +16,54 @@ public class GDMS {
} }
} }
private static TimerTask getTimerTask(String s) throws GExcptInit { private static TimerTask getTimerTask(String s) throws GExcptInit {
if(s==""){ 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() { return new TimerTask() {
@Override @Override
public void run() { public void run() {

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