增加Process

wmj
wan 6 years ago
parent d2b9c841e1
commit ad2cb3d81f

@ -1,4 +1,56 @@
package core.process; package core.process;
public class C_CollegeFillOpeningReportOpinion { 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;
String opening_report_college_teacher_id;
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.getOpening_report_college_teacher_id()==null||this.getGraduationDesignId()==null)
return false;
return true;
}
public String getGraduationDesignId() {
return graduationDesignId;
}
public void setGraduationDesignId(String graduationDesignId) {
this.graduationDesignId = graduationDesignId;
}
public String getOpening_report_college_teacher_id() {
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;
}
} }

@ -0,0 +1,37 @@
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("FillInformations 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;
}
}

@ -3,6 +3,7 @@ package core.process;
import core.operation.FillInformation; import core.operation.FillInformation;
import error.GExcptInit; import error.GExcptInit;
import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@ -11,7 +12,7 @@ public class C_MentorFillOpeningReportOpinion extends TempProcess{
String StudentId; String StudentId;
String mentor_opinion; String mentor_opinion;
Date mentor_opinion_date; Map<String,String> vMap;
static String table="graduation_design_opening_report_opinion_record"; static String table="graduation_design_opening_report_opinion_record";
@ -20,10 +21,9 @@ public class C_MentorFillOpeningReportOpinion extends TempProcess{
FillInformation fillInformation=new FillInformation(); FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>()); fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table); fillInformation.addOptions("table",table);
String date= mentor_opinion_date.toString(); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-ddHH:mm:ss");
Map<String,String> vMap=new HashMap<>(); String date=df.format(new Date());
vMap.put("mentor_opinion_date",date); vMap.put("mentor_opinion_date",date);
vMap.put("mentor_opinion",this.getMentor_opinion());
Map<String, String>limits = new HashMap<>(); Map<String, String>limits = new HashMap<>();
limits.put("id",this.getStudentId()); limits.put("id",this.getStudentId());
fillInformation.addOptions("limits",limits); fillInformation.addOptions("limits",limits);
@ -31,7 +31,7 @@ public class C_MentorFillOpeningReportOpinion extends TempProcess{
} }
protected boolean check() { protected boolean check() {
if(this.getMentor_opinion()==null||this.getMentor_opinion_date()==null||this.getStudentId()==null) if(this.getMentor_opinion()==null||this.getStudentId()==null)
return false; return false;
return true; return true;
} }
@ -50,12 +50,7 @@ public class C_MentorFillOpeningReportOpinion extends TempProcess{
this.mentor_opinion = mentor_opinion; this.mentor_opinion = mentor_opinion;
} }
public Date getMentor_opinion_date() { public void setvMap(Map<String, String> vMap) {
return mentor_opinion_date; this.vMap = vMap;
} }
public void setMentor_opinion_date(Date mentor_opinion_date) {
this.mentor_opinion_date = mentor_opinion_date;
}
} }

@ -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("FillInformations 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 gaduationDesignId;
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.getGaduationDesignId());
uploadFile.addOptions("limits",limits);
uploadFile.execute(null);
}
protected boolean check() {
if(this.getFinishedProduct()==null||this.getGaduationDesignId()==null)
return false;
return true;
}
public File getFinishedProduct() {
return finishedProduct;
}
public void setFinishedProduct(File finishedProduct) {
this.finishedProduct = finishedProduct;
}
public String getGaduationDesignId() {
return gaduationDesignId;
}
public void setGaduationDesignId(String gaduationDesignId) {
this.gaduationDesignId = gaduationDesignId;
}
}

@ -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_TeacherTeamFillOpeningReportOpinion 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("report_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;
}
}

@ -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;
}
}
Loading…
Cancel
Save