You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gdms/src/core/process/C_SecretaryFillReplyRecord....

85 lines
2.3 KiB

6 years ago
package core.process;
import core.operation.FillInformation;
import error.GExcptInit;
import error.GExcptSQL;
6 years ago
import gdms.Configuration;
6 years ago
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
6 years ago
public class C_SecretaryFillReplyRecord extends C_FillInformation{
6 years ago
String graduationDesignId;
Map<String,String> vMap;
6 years ago
private static String buttonName ="提交答辩记录";
private static String iconURL="../cssFile/images/fill.png";
private static String targetURL="/home/secretary-fill-reply-record";
private static String info = "";
6 years ago
private static String table="graduation_design_reply_opinion_record_score";
private static String field ="reply_secretary_record_status";
6 years ago
public void fillInformation() throws Exception{
6 years ago
if(!check()) throw new GExcptInit("FillInformation Attrs Init error!");
6 years ago
FillInformation fillInformation=new FillInformation();
fillInformation.setOptions(new HashMap<>());
fillInformation.addOptions("table",table);
6 years ago
String date= Configuration.dateFormat.format(new Date());
6 years ago
vMap.put("secretary_record_date",date);
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.execute(null);
6 years ago
updateStatus();
6 years ago
}
protected boolean check() {
6 years ago
if(this.getGraduationDesignId()==null||this.getVMap()==null)
6 years ago
return false;
return true;
}
public String getGraduationDesignId() {
return graduationDesignId;
}
@Override
public void setGraduationDesignId(String graduationDesignId) {
this.graduationDesignId = graduationDesignId;
}
@Override
public void updateStatus() throws GExcptSQL {
core.process.Utils.updateStatus(graduationDesignId,table, field);
}
6 years ago
public void setVMap(Map<String, String> vMap) {
6 years ago
this.vMap = vMap;
}
6 years ago
public Map<String, String> getVMap() {
return vMap;
}
6 years ago
6 years ago
@Override
public String getInfo() {
return info;
}
@Override
public String getTargetURL() {
return targetURL;
}
@Override
public String getIconURL() {
return iconURL;
}
@Override
public String getButtonName() {
return buttonName;
}
6 years ago
}