commit
1c945a05d7
@ -0,0 +1,10 @@
|
||||
<component name="libraryTable">
|
||||
<library name="tomcat-lib">
|
||||
<CLASSES>
|
||||
<root url="file://C:/Program Files/Apache Software Foundation/Tomcat 8.5/lib" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
<jarDirectory url="file://C:/Program Files/Apache Software Foundation/Tomcat 8.5/lib" recursive="false" />
|
||||
</library>
|
||||
</component>
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="false" project-jdk-name="11" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="false" project-jdk-name="10" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
@ -0,0 +1,61 @@
|
||||
package core.process;
|
||||
|
||||
import core.operation.FillInformation;
|
||||
import error.GExcptInit;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class C_TeacherFillTopicInformation extends TempProcess{
|
||||
|
||||
String StudentId;
|
||||
String mentor_opinion;
|
||||
Date mentor_opinion_date;
|
||||
|
||||
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);
|
||||
String date= mentor_opinion_date.toString();
|
||||
Map<String,String> vMap=new HashMap<>();
|
||||
vMap.put("mentor_opinion_date",date);
|
||||
vMap.put("mentor_opinion",this.getMentor_opinion());
|
||||
Map<String, String>limits = new HashMap<>();
|
||||
limits.put("id",this.getStudentId());
|
||||
fillInformation.addOptions("limits",limits);
|
||||
fillInformation.execute(null);
|
||||
|
||||
}
|
||||
protected boolean check() {
|
||||
if(this.getMentor_opinion()==null||this.getMentor_opinion_date()==null||this.getStudentId()==null)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
public String getStudentId() {
|
||||
return StudentId;
|
||||
}
|
||||
|
||||
public void setStudentId(String studentId) {
|
||||
StudentId = studentId;
|
||||
}
|
||||
public String getMentor_opinion() {
|
||||
return mentor_opinion;
|
||||
}
|
||||
|
||||
public void setMentor_opinion(String mentor_opinion) {
|
||||
this.mentor_opinion = mentor_opinion;
|
||||
}
|
||||
|
||||
public Date getMentor_opinion_date() {
|
||||
return mentor_opinion_date;
|
||||
}
|
||||
|
||||
public void setMentor_opinion_date(Date mentor_opinion_date) {
|
||||
this.mentor_opinion_date = mentor_opinion_date;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package gdms;
|
||||
|
||||
import error.GExcptInit;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class GDMS {
|
||||
static Map<String, Date> schedules;
|
||||
static String schedulePath = "";
|
||||
public static void init() throws GExcptInit {
|
||||
initSchedule();
|
||||
Timer timer = new Timer(true);
|
||||
for(Map.Entry<String, Date> schedule:schedules.entrySet()){
|
||||
timer.schedule(getTimerTask(schedule.getKey()),schedule.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
private static TimerTask getTimerTask(String s) throws GExcptInit {
|
||||
if(s==""){
|
||||
return new TimerTask() {
|
||||
@Override
|
||||
public void run() {
|
||||
;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
throw new GExcptInit("GlobalTimePoint.json error");
|
||||
}
|
||||
|
||||
private static void initSchedule() {
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
{
|
||||
"":""
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
package gdms;
|
||||
|
||||
public class main {
|
||||
public static void check()throws Exception{
|
||||
checkJson();
|
||||
}
|
||||
|
||||
private static void checkJson() throws Exception{
|
||||
//todo
|
||||
}
|
||||
|
||||
public static void init(){
|
||||
}
|
||||
public static void run() throws Exception {
|
||||
check();
|
||||
init();
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package servlet.Submit;
|
||||
package servlet;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServlet;
|
@ -1,15 +0,0 @@
|
||||
package servlet.Submit;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
|
||||
public class S_ScoreSubmit extends HttpServlet {
|
||||
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
||||
super.doPost(request, response);
|
||||
String score = request.getParameter("score");
|
||||
|
||||
}
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
package servlet.Submit;
|
||||
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.annotation.WebServlet;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
@WebServlet("/textsubmit")
|
||||
public class S_TextSubmit extends HttpServlet {
|
||||
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
||||
super.doPost(request, response);
|
||||
String content=new String(request.getParameter("text").getBytes("ISO8859-1"),"UTF-8");
|
||||
String score=request.getParameter("score");
|
||||
try {
|
||||
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue