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....

55 lines
1.6 KiB

6 years ago
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;
6 years ago
private static String buttonName ="提交答辩记录";
6 years ago
static String table="graduation_design_reply_opinion_record_score";
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);
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() {
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;
}
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
}