Compare commits

...

11 Commits

Author SHA1 Message Date
zhai_lw 4144ed000d Merge remote-tracking branch 'remotes/origin/wlf'
6 years ago
zhai_lw 193a8ba91c Merge remote-tracking branch 'remotes/origin/wlf'
6 years ago
zhai_lw dfe470d1a3 Merge remote-tracking branch 'remotes/origin/wlf'
6 years ago
zhai_lw bc99b59f36 Merge remote-tracking branch 'remotes/origin/zgl'
6 years ago
zhai_lw edbfb5aaba Merge remote-tracking branch 'remotes/origin/wmj'
6 years ago
zhai_lw 0d4b7338bb Merge remote-tracking branch 'remotes/origin/wmj'
6 years ago
wan 05f3b310f5 process
6 years ago
zgl e3885d95e7 Merge remote-tracking branch 'remotes/origin/master' into zgl
6 years ago
zgl 5f1f583719 Merge remote-tracking branch 'remotes/origin/wmj' into zgl
6 years ago
wlf cfb39b2407 Merge remote-tracking branch 'remotes/origin/master' into wlf
6 years ago
wlf f47d14f5b8 Merge remote-tracking branch 'remotes/origin/master' into wlf
6 years ago

@ -9,6 +9,7 @@
</element>
<element id="directory" name="lib">
<element id="file-copy" path="C:/Program Files/Apache Software Foundation/Tomcat 9.0/lib/tomcat-jdbc.jar" />
<element id="library" level="project" name="lib" />
</element>
</element>
</root>

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="gdms@localhost" uuid="6d4033d6-2147-4c12-a111-2ab915e871da">
<driver-ref>mariadb</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>org.mariadb.jdbc.Driver</jdbc-driver>
<jdbc-url>jdbc:mariadb://localhost:3306/gdms</jdbc-url>
<driver-properties>
<property name="autoReconnect" value="true" />
<property name="zeroDateTimeBehavior" value="convertToNull" />
<property name="tinyInt1isBit" value="false" />
<property name="characterEncoding" value="utf8" />
<property name="characterSetResults" value="utf8" />
<property name="yearIsDateType" value="false" />
</driver-properties>
</data-source>
</component>
</project>

File diff suppressed because it is too large Load Diff

@ -1,7 +0,0 @@
<component name="ProjectDictionaryState">
<dictionary name="zhai_">
<words>
<w>gdms</w>
</words>
</dictionary>
</component>

@ -1,15 +0,0 @@
<component name="libraryTable">
<library name="com.hynnet:json-lib:2.4" type="repository">
<properties maven-id="com.hynnet:json-lib:2.4" />
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/com/hynnet/json-lib/2.4/json-lib-2.4.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/commons-lang/commons-lang/2.5/commons-lang-2.5.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar!/" />
<root url="jar://$MAVEN_REPOSITORY$/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

@ -0,0 +1,10 @@
<component name="libraryTable">
<library name="lib">
<CLASSES>
<root url="file://$PROJECT_DIR$/lib" />
</CLASSES>
<JAVADOC />
<SOURCES />
<jarDirectory url="file://$PROJECT_DIR$/lib" recursive="false" />
</library>
</component>

@ -1,9 +0,0 @@
<component name="libraryTable">
<library name="mariadb-java-client-2.3.0">
<CLASSES>
<root url="jar://$PROJECT_DIR$/deployment/mariadb-java-client-2.3.0.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

@ -1,124 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>

@ -20,6 +20,7 @@
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" scope="PROVIDED" name="Tomcat 9.0.14" level="application_server_libraries" />
<orderEntry type="library" name="lib" level="project" />
<orderEntry type="module-library">
<library>
<CLASSES>
@ -29,6 +30,5 @@
<SOURCES />
</library>
</orderEntry>
<orderEntry type="library" scope="PROVIDED" name="com.hynnet:json-lib:2.4" level="project" />
</component>
</module>

@ -24,6 +24,7 @@ public class UploadFile extends Operation {
ls.add(field);
List<String[]> resultLs = DBManagement.select(ls,table,limits,0,1);
String lastFilePath = resultLs.get(0)[0];
if(lastFilePath!=null)
new File(lastFilePath).delete();
DBManagement.update(table,vMap,limits);
return this.getOptions();

@ -14,7 +14,7 @@ public interface Utils {
{
put("announcement","annex_url");
put("graduation_design_finished_product","graduation_design_url");
put("graduation_design_opening_report","report_url");
put("graduation_design_opening_report","url");
}};
static String stringOptionsFormat(String options){
return options.replaceAll(" {2,}", " ") ;

@ -31,6 +31,7 @@ public class C_CollegeFillOpeningReportOpinion extends C_FillInformation{
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.addOptions("vMap",vMap);
fillInformation.execute(null);
updateStatus();
}

@ -31,6 +31,7 @@ public class C_CollegeFillScoreOpinion extends C_FillInformation{
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.addOptions("vMap",vMap);
fillInformation.execute(null);
updateStatus();

@ -1,10 +1,23 @@
package core.process;
import dao.DBManagement;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public abstract class C_FillInformation extends TempProcess {
public String getJspURL(){
return "/home/fill_Information.jsp";
}
public abstract List<String> getInputName();
public List<String[]> search() throws Exception {
List<String> columns = new ArrayList<>();
columns.add("*");
Map<String,String> limits = new HashMap<>();
limits.put("id",getGraduationDesignId());
List<String[]> ls = DBManagement.select(columns,"graduation_design_information",limits,0,10);
return ls;
}
}

@ -33,6 +33,7 @@ public class C_MentorFillOpeningReportOpinion extends C_FillInformation{
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.addOptions("vMap",vMap);
fillInformation.execute(null);
updateStatus();

@ -33,6 +33,7 @@ public class C_MentorFillReview extends C_FillInformation {
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.addOptions("vMap",vMap);
fillInformation.execute(null);
updateStatus();
}

@ -28,6 +28,7 @@ public class C_ReviewerFillReview extends C_FillInformation {
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.addOptions("vMap",vMap);
fillInformation.execute(null);
updateStatus();
}

@ -29,6 +29,7 @@ public class C_SchoolFillScoreOpinion extends C_FillInformation {
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.addOptions("vMap",vMap);
fillInformation.execute(null);
updateStatus();
}

@ -29,6 +29,7 @@ public class C_SecretaryFillOpeningReportRecord extends C_FillInformation{
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.addOptions("vMap",vMap);
fillInformation.execute(null);
updateStatus();
}

@ -29,6 +29,7 @@ public class C_SecretaryFillReplyRecord extends C_FillInformation{
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.addOptions("vMap",vMap);
fillInformation.execute(null);
updateStatus();

@ -1,7 +1,10 @@
package core.process;
import java.util.List;
public abstract class C_Select extends TempProcess {
public String getJspURL(){
return "/home/select.jsp";
}
public abstract List<String[]> search(String id)throws Exception;
}

@ -26,6 +26,7 @@ public class C_StudentFillGraduationDesignInformation extends C_FillSbjMsg {
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.addOptions("vMap",vMap);
fillInformation.execute(null);
updateStatus();
}

@ -1,93 +0,0 @@
package core.process;
import core.operation.Search;
import error.GExcptInit;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class C_StudentSearchTeacher{
String teacherID;
protected static String buttonName = "";
protected static String iconURL="";
protected static String targetURL="";
protected static String info = "";
static String table = "teacher";
Map<String,String> TeacherInfo=new HashMap<String, String>();
public Map<String,String> search() throws Exception {
if(!check()) throw new GExcptInit("teacherID Attrs init error!");
Search search = new Search() ;
search.setOptions(new HashMap<>());
search.addOptions("table",table);
List<String> fields = new ArrayList<>();
fields.add("*");
search.addOptions("field",fields);
Map<String,String> limits = new HashMap<>();
limits.put("id",this.getTeacherID());
search.addOptions("limits",limits);
search.addOptions("start",0);
search.addOptions("end",1);
Map<String, Object> options = search.execute(null);
List<String[]> result = (List<String[]>) options.get("result");
String[] s = result.get(0);
TeacherInfo.put("id",s[0]);
TeacherInfo.put("name",s[2]);
TeacherInfo.put("e_mail_location",s[3]);
TeacherInfo.put("phone_number",s[4]);
return TeacherInfo;
}
public List<Map<String,String>> _search() throws Exception{
if(!check()) throw new GExcptInit("teacherId Attrs init error!");
Search search = new Search() ;
search.setOptions(new HashMap<>());
search.addOptions("table",table);
List<String> fields = new ArrayList<>();
fields.add("*");
search.addOptions("field",fields);
Map<String,String> limits = new HashMap<>();
limits.put("id",this.getTeacherID());
search.addOptions("limits",limits);
search.addOptions("start",0);
search.addOptions("end",10);
Map<String, Object> options = search.execute(null);
List<String[]> result = (List<String[]>) options.get("result");
List<Map<String,String>> teachersInfo = new ArrayList<>();
core.process.Utils.formatResult(result, teachersInfo);
return teachersInfo;
}
protected boolean check() {
if(this.getTeacherID()==null)
return false;
return true;
}
public String getTeacherID(){
return teacherID;
}
public void setTeacherID(String teacherID){
this.teacherID=teacherID;
}
public String getInfo() {
return info;
}
public String getTargetURL() {
return targetURL;
}
public String getIconURL() {
return iconURL;
}
public String getButtonName() {
return buttonName;
}
}

@ -2,6 +2,7 @@ package core.process;
import core.operation.Search;
import core.operation.Select;
import dao.DBManagement;
import error.GExcptInit;
import error.GExcptSQL;
@ -31,13 +32,21 @@ public class C_StudentSelectTeacher extends C_Select {
Map<String,Object> options=select.execute(null);
updateStatus();
}
public List<Map<String,String>> search(String teacherId) throws Exception{
public List<String[]> search(String teacherId) throws Exception{
if(teacherId==null){
System.out.println("ttt");
}
if(teacherId.equals("*")){
List<String[]> result = DBManagement.selectAll("teacher",0,10);
core.process.Utils.formatResult(result);
return result;
}
Search search = new Search() ;
search.setOptions(new HashMap<>());
search.addOptions("table","teacher");
List<String> fields = new ArrayList<>();
fields.add("*");
search.addOptions("field",fields);
search.addOptions("fields",fields);
Map<String,String> limits = new HashMap<>();
limits.put("id",teacherId);
search.addOptions("limits",limits);
@ -45,9 +54,8 @@ public class C_StudentSelectTeacher extends C_Select {
search.addOptions("end",10);
Map<String, Object> options = search.execute(null);
List<String[]> result = (List<String[]>) options.get("result");
List<Map<String,String>> teachersInfo = new ArrayList<>();
core.process.Utils.formatResult(result, teachersInfo);
return teachersInfo;
core.process.Utils.formatResult(result);
return result;
}
protected boolean check() {
if(this.getStudentId()==null||this.getTeacherId()==null)

@ -19,7 +19,7 @@ public class C_StudentUploadFinishedProduct extends C_UploadFile {
private static String table="graduation_design_finished_product";
private static String field ="finished_product_status";
static String file_type = "finished_product";
static String file_type = "graduation_design_finished_product";
public void uploadFinishedProduct() throws Exception{
if(!check()) throw new GExcptInit("Upload FinishedProduct Attrs init error!");
UploadFile uploadFile=new UploadFile();

@ -12,7 +12,7 @@ public class C_StudentUploadOpeningReport extends C_UploadFile{
String openingReportURL;
String graduationDesignId;
private static String buttonName ="提交开题报告";
private static String file_type = "opening_report";
private static String file_type = "graduation_design_opening_report";
private static String targetURL="/home/student-upload-opening-report";
private static String iconURL="../cssFile/images/upload.png";
private static String info = "";

@ -1,92 +0,0 @@
package core.process;
import core.operation.Search;
import error.GExcptInit;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class C_TeacherSearchStudent {
String studentId;
protected static String buttonName = "";
protected static String iconURL="";
protected static String targetURL="";
protected static String info = "";
static String table="student";
public Map<String,String> search() throws Exception{
if(!check()) throw new GExcptInit("studentId Attrs init error!");
Map<String,String> studentInfo =new HashMap<>();
Search search = new Search() ;
search.setOptions(new HashMap<>());
search.addOptions("table",table);
List<String> fields = new ArrayList<>();
fields.add("*");
search.addOptions("field",fields);
Map<String,String> limits = new HashMap<>();
limits.put("id",this.getStudentId());
search.addOptions("limits",limits);
search.addOptions("start",0);
search.addOptions("end",1);
Map<String, Object> options = search.execute(null);
List<String[]> result = (List<String[]>) options.get("result");
String[] s = result.get(0);
studentInfo.put("id",s[0]);
studentInfo.put("name",s[2]);
studentInfo.put("e_mail_location",s[3]);
studentInfo.put("phone_number",s[4]);
return studentInfo;
}
public List<Map<String,String>> _search() throws Exception{
if(!check()) throw new GExcptInit("studentId Attrs init error!");
Search search = new Search() ;
search.setOptions(new HashMap<>());
search.addOptions("table",table);
List<String> fields = new ArrayList<>();
fields.add("*");
search.addOptions("field",fields);
Map<String,String> limits = new HashMap<>();
limits.put("id",this.getStudentId());
search.addOptions("limits",limits);
search.addOptions("start",0);
search.addOptions("end",10);
Map<String, Object> options = search.execute(null);
List<String[]> result = (List<String[]>) options.get("result");
List<Map<String,String>> studentsInfo = new ArrayList<>();
core.process.Utils.formatResult(result, studentsInfo);
return studentsInfo;
}
protected boolean check() {
if(this.getStudentId()==null)
return false;
return true;
}
public String getStudentId(){
return studentId;
}
public void setStudentId(String studentId){
this.studentId=studentId;
}
public String getInfo() {
return info;
}
public String getTargetURL() {
return targetURL;
}
public String getIconURL() {
return iconURL;
}
public String getButtonName() {
return buttonName;
}
}

@ -2,6 +2,7 @@ package core.process;
import core.operation.Search;
import core.operation.Select;
import dao.DBManagement;
import error.GExcptInit;
import error.GExcptSQL;
@ -30,7 +31,12 @@ public class C_TeacherSelectStudent extends C_Select {
Map<String,Object> options=select.execute(null);
updateStatus();
}
public List<Map<String,String>> search(String studentId) throws Exception{
public List<String[]> search(String studentId) throws Exception{
if(studentId.equals("*")){
List<String[]> result = DBManagement.selectAll("student",0,10);
core.process.Utils.formatResult(result);
return result;
}
Search search = new Search() ;
search.setOptions(new HashMap<>());
search.addOptions("table","student");
@ -44,9 +50,8 @@ public class C_TeacherSelectStudent extends C_Select {
search.addOptions("end",10);
Map<String, Object> options = search.execute(null);
List<String[]> result = (List<String[]>) options.get("result");
List<Map<String,String>> studentsInfo = new ArrayList<>();
core.process.Utils.formatResult(result, studentsInfo);
return studentsInfo;
core.process.Utils.formatResult(result);
return result;
}
protected boolean check() {
if(this.getStudentId()==null||this.getTeacherId()==null)

@ -29,6 +29,7 @@ public class C_TeacherTeamFillOpeningReportOpinion extends C_FillInformation{
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.addOptions("vMap",vMap);
fillInformation.execute(null);
updateStatus();
}

@ -31,6 +31,7 @@ public class C_TeacherTeamFillScoreOpinion extends C_FillInformation {
Map<String, String>limits = new HashMap<>();
limits.put("id",this.getGraduationDesignId());
fillInformation.addOptions("limits",limits);
fillInformation.addOptions("vMap",vMap);
fillInformation.execute(null);
updateStatus();
}

@ -8,14 +8,9 @@ import java.util.List;
import java.util.Map;
public interface Utils {
static void formatResult(List<String[]> result, List<Map<String, String>> studentsInfo) {
static void formatResult(List<String[]> result) {
for(String[] s:result){
Map<String,String> studentInfo = new HashMap<>();
studentInfo.put("id",s[0]);
studentInfo.put("name",s[2]);
studentInfo.put("e_mail_location",s[3]);
studentInfo.put("phone_number",s[4]);
studentsInfo.add(studentInfo);
s[1] = null;
}
}

@ -166,6 +166,11 @@ public class DBManagement {
String sql = select.getSQL();
return query(sql);
}
public static List<String[]> selectAll(String table, int startRow, int endRow) throws Exception {
SelectAll selectAll = new SelectAll(table,startRow,endRow);
String sql = selectAll.getSQL();
return query(sql);
}
public static void update(String table, Map<String,String> vMap, Map<String,String> limits) throws GExcptSQL {
Update update = new Update(table,vMap,limits);
String sql = update.getSQL();

@ -0,0 +1,45 @@
package dao;
public class SelectAll extends SQLStmt {
static String fs = "SELECT";
private int startRow;
private int endRow;
SelectAll(String table,int startRow, int endRow) {
super(table);
this.setStartRow(startRow);
this.setEndRow(endRow);
}
@Override
public String getSQL() {
return getFs()+getTs()+getLs();
}
@Override
public String getFs() {
return fs+" * ";
}
private String getTs(){
return "FROM "+this.getTable()+" ";
}
private String getLs(){
String sql="LIMIT "+this.getStartRow()+", "+this.getEndRow();
return sql;
}
public int getStartRow() {
return startRow;
}
public void setStartRow(int startRow) {
this.startRow = startRow;
}
public int getEndRow() {
return endRow;
}
public void setEndRow(int endRow) {
this.endRow = endRow;
}
}

@ -25,6 +25,7 @@ public class S_CollegeFillOpeningReportOpinion extends HttpServlet {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
response.getWriter().write("提交成功");
}
static String[] vName = {
"college_opinion"

@ -24,6 +24,7 @@ public class S_CollegeFillScoreOpinion extends HttpServlet {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
response.getWriter().write("提交成功");
}
static String[] vName = {
"college_opinion",

@ -24,6 +24,7 @@ public class S_MentorFillOpeningReportOpinion extends HttpServlet {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
response.getWriter().write("提交成功");
}
static String[] vName = {
"mentor_opinion"

@ -25,7 +25,7 @@ public class S_MentorFillReview extends HttpServlet {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
response.getWriter().write("提交成功");
}
static String[] vName = {
"total_grade",

@ -25,7 +25,7 @@ public class S_ReviewerFillReview extends HttpServlet {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
response.getWriter().write("提交成功");
}
static String[] vName = {
"score",

@ -25,7 +25,7 @@ public class S_SchoolFillScoreOpinion extends HttpServlet {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
response.getWriter().write("提交成功");
}
static String[] vName = {
"school_opinion",

@ -25,7 +25,7 @@ public class S_SecretaryFillOpeningReportRecord extends HttpServlet {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
response.getWriter().write("提交成功");
}
static String[] vName = {
"secretary_record"

@ -25,6 +25,7 @@ public class S_SecretaryFillReplyRecord extends HttpServlet {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
response.getWriter().write("提交成功");
}
static String[] vName = {
"secretary_record"

@ -26,7 +26,7 @@ public class S_StudentFillGraduationDesignInformation extends HttpServlet {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
response.getWriter().write("提交成功");
}
static String[] vName = {
"chinese_name",

@ -11,7 +11,6 @@ import java.io.IOException;
@WebServlet("/home/student-select-teacher")
public class S_StudentSelectTeacher extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
super.doPost(request, response);
String teacherId=request.getParameter("id");
User user=(User)request.getSession().getAttribute("user");
String studentId=user.getId();
@ -24,6 +23,7 @@ public class S_StudentSelectTeacher extends HttpServlet {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
response.getWriter().write("选择成功");
}
}

@ -33,5 +33,6 @@ public class S_StudentUploadFinishedProduct extends HttpServlet {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
response.getWriter().write("提交成功");
}
}

@ -33,5 +33,6 @@ public class S_StudentUploadOpeningReport extends HttpServlet {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
response.getWriter().write("提交成功");
}
}

@ -12,7 +12,6 @@ import java.io.IOException;
@WebServlet("/home/teacher-select-student")
public class S_TeacherSelectStudent extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
super.doPost(request, response);
String studentId=request.getParameter("id");
User user=(User)request.getSession().getAttribute("user");
String teacherId=user.getId();
@ -25,5 +24,6 @@ public class S_TeacherSelectStudent extends HttpServlet {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
response.getWriter().write("选择成功");
}
}

@ -25,6 +25,7 @@ public class S_TeacherTeamFillOpeningReportOpinion extends HttpServlet {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
response.getWriter().write("提交成功");
}
static String[] vName = {
"report_teacher_team_opinion"

@ -25,6 +25,7 @@ public class S_TeacherTeamFillScoreOpinion extends HttpServlet {
e.printStackTrace();
response.sendRedirect("/op_fail.jsp");
}
response.getWriter().write("提交成功");
}
static String[] vName = {
"teacher_team_opinion",

@ -1,5 +1,8 @@
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %><%--
<%@ page import="java.util.ArrayList" %>
<%@ page import="core.user.User" %>
<%@ page import="core.process.Process" %>
<%@ page import="core.process.TempProcess" %><%--
Created by IntelliJ IDEA.
User: lenovo
Date: 2019/1/14
@ -16,26 +19,31 @@
</head>
<body>
<div class="updated">
<%
int processIndex=Integer.parseInt(request.getParameter("processIndex"));
User user=(User)session.getAttribute("user");
TempProcess process= (TempProcess) user.getCondition().get(processIndex);
%>
<div class="blank-frame-sub">
<div class="fill-top-blank"><div class="model-info">填写选题信息</div></div>
<div class="sub-msg">
<form>
<form class="subform">
<div class="sub-fill-frame sub-name">
<div class="sub-tips">论文题目:</div>
<input class="sub-input" name="chinese_name" value="" type="text"
<input class="sub-input chinese_name" name="chinese_name" value="" type="text"
placeholder="中文名">
<input class="sub-input" name="english_name" type="text" value=""
<input class="sub-input english_name" name="english_name" type="text" value=""
placeholder="英文名">
</div>
<div class="sub-fill-frame sub-class">
<div class="sub-tips">题目类别:</div>
<input class="sub-input" name="type_of_topic" value=""
<input class="sub-input type_of_topic" name="type_of_topic" value=""
placeholder="请输入类别">
</div>
<div class="sub-fill-frame sub-src">
<div class="sub-tips">题目来源:</div>
<select class="sub-select" name="source_of_design">
<select class="sub-select source_of_design" name="source_of_design">
<option value="">请选择来源</option>
<option value="教师科研课题">教师科研课题</option>
<option value="企事业单位委托课题">企事业单位委托课题</option>
@ -44,7 +52,7 @@
</div>
<div class="sub-fill-frame sub-ct">
<div class="sub-tips">题目性质:</div>
<select class="sub-select" name="nature_of_design">
<select class="sub-select nature_of_design" name="nature_of_design">
<option value="">请选择题目性质</option>
<option value="教学研究">教学研究</option>
<option value="应用研究">应用研究</option>
@ -54,9 +62,12 @@
</div>
<div class="sub-fill-frame sub-scb">
<div class="sub-tips">题目描述:</div>
<textarea class="sub-scb-text" placeholder="请填写题目描述" name="description_of_topic"></textarea>
<textarea class="sub-scb-text description_of_topic" placeholder="请填写题目描述" name="description_of_topic"></textarea>
</div>
<input style="visibility: hidden;" class="sub-input" name="id" type="text" value="<%=process.getGraduationDesignId()%>"
placeholder="id">
<input class="sub-input-button" type="button" value="提交">
</form>
</div>
</div>

@ -2,7 +2,9 @@
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %><%--
<%@ page import="java.util.ArrayList" %>
<%@ page import="core.process.TempProcess" %>
<%@ page import="core.process.C_FillInformation" %><%--
Created by IntelliJ IDEA.
User: lenovo
Date: 2019/1/12
@ -20,42 +22,44 @@
</head>
<body>
<%
Map<String,String> map2=new HashMap<String,String>();
Map<String,String> map3=new HashMap<String,String>();
map2.put("姓名","李先生");
map2.put("学号","201630126050");
map2.put("电话","18711191679");
map3.put("姓名","王先生");
map3.put("学号","201630126051");
map3.put("电话","18711191679");
List<Map<String,String>> list=new ArrayList<Map<String,String>>();
pageContext.setAttribute("map",map2);
User user=(User)session.getAttribute("user");
C_FillInformation p = (C_FillInformation)(user.getCondition().get(Integer.parseInt(request.getParameter("processIndex"))));
List<String[]> ls = p.search();
pageContext.setAttribute("ls",ls);
String type=user.getType();
pageContext.setAttribute("type",type);
%>
<div class="updated">
<div class="fill-top-blank"><div class="model-info">填写意见</div></div>
<div class="fill-frame bar-change">
<c:forEach items="${ls}" var="s">
<div class="fill-child">
<div class="fill-name">${map.姓名}</div>
<div class="fill-name">${s[1]}</div>
<c:if test="${type=='teacher'}">
<div class="upload-status"></div>
<div class="download-file"></div>
</c:if>
<div class="other-tips-msgs">
<c:forEach items="${map}" var="z" begin="1">
<div class="tips-msg">${z.key}:${z.value}</div>
</c:forEach>
<div class="tips-msg">${'论文题目'}:${s[1]}</div>
<div class="tips-msg">${'英文题目'}:${s[2]}</div>
<div class="tips-msg">${'论文类型'}:${s[3]}</div>
<div class="tips-msg">${'选题来源'}:${s[4]}</div>
<div class="tips-msg">${'选题性质'}:${s[5]}</div>
</div>
<form class="fill-form" action="##" method="post">
<textarea placeholder="请输入信息" class="fill-ipt-text bar-change" name="text"></textarea>
<c:if test="${type=='teacher'}">
<input class="score-area" name="score" placeholder="请输入分数">
</c:if>
<form class="fill-form" action="<%=p.getTargetURL()%>" method="post">
<textarea placeholder="请输入信息" class="fill-ipt-text bar-change" name="<%=p.getInputName().get(0)%>"></textarea>
<%
if(p.getInputName().get(1)!=null)
{
out.print("<input class=\"score-area\" name=\""+p.getInputName().get(1)+"\" placeholder=\"请输入分数\">");
}
%>
<input type="button" class="submit-text" value="提交">
</form>
</div>
</c:forEach>
</div>
</div>
</body>

@ -15,6 +15,7 @@
<html>
<head>
<title>毕业设计管理系统</title>
<script>var seachProcessIndex</script>
<link type="text/css" rel="stylesheet" href="../cssFile/upload_style.css">
<link type="text/css" rel="stylesheet" href="../cssFile/home.css">
<link type="text/css" rel="stylesheet" href="../cssFile/personal.css">
@ -30,6 +31,7 @@
<script charset="" type="text/javascript" src="../jsFile/fill-action.js"></script>
<script charset="" type="text/javascript" src="../jsFile/upload_action.js"></script>
<script charset="" type="text/javascript" src="../jsFile/sub-msg-input.js"></script>
</head>
<body>
<%
@ -75,25 +77,9 @@
<div class="nav-info">个人信息</div>
</a>
</div>
<div class="a-process aux-fun">
<a href="download.jsp?002" class="link-point aux-fun-page">
<div class="a-process-decoration download">
<img src="../cssFile/images/download.png">
</div>
<div class="nav-info">资料下载</div>
</a>
</div>
<div class="a-process aux-fun">
<a href="fill_Information.jsp?002" class="link-point aux-fun-page">
<div class="a-process-decoration download">
<img src="../cssFile/images/fill.png">
</div>
<div class="nav-info">资料下载</div>
</a>
</div>
<c:forEach items="${list}">
<div class="a-process">
<a href="<%=condition.get(num).getJspURL()%>?<%=index++%>" class="link-point">
<a href="<%=(condition.get(num)).getJspURL()%>?<%=index++%>" class="link-point">
<div class="a-process-decoration">
<img src=<%=condition.get(num).getIconURL()%>>
</div>

@ -1,4 +1,6 @@
<%--
<%@ page import="java.util.List" %>
<%@ page import="core.process.C_Select" %>
<%@ page import="core.user.User" %><%--
Created by IntelliJ IDEA.
User: lenovo
Date: 2019/1/11
@ -6,20 +8,25 @@
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String id=request.getParameter("id");
String searchType=request.getParameter("searchType");
int processIndex = (int) session.getAttribute("searchProcessIndex");
User user=(User)session.getAttribute("user");
C_Select process= (C_Select) user.getCondition().get(processIndex);
List<String[]> lm = process.search(id);
pageContext.setAttribute("list",lm);
String type=user.getType();
%>
<%%>
<c:forEach items="${list}" var="z">
<div class="list-child">
<div class="name"><span class="the-name"><%=searchType%></span></div>
<div class="name"><span class="the-name">${z[2]}</span></div>
<div class="other-msgs">
<%for(int k=0;k<2;k++)
for (int n=0;n<2;n++)
out.print(" <div class=\"one-msg\">电话号码:"+k+n+"</div>");
%>
<div class="one-msg">电话号码18711191679</div>
<div class="one-msg">${'账号'}${z[0]}</div>
<div class="one-msg">${'电话号码'}${z[4]}</div>
<div class="one-msg">${'邮箱地址'}${z[3]}</div>
</div>
<button class="select-it <%=searchType%>" value="<%=123%>">选择</button>
<button class="select-it <%=type%>" value="${z[0]}">
选择</button>
</div>
</c:forEach>

@ -11,6 +11,8 @@
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="core.process.TempProcess" %>
<%@ page import="core.process.C_Select" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<html>
@ -22,24 +24,17 @@
</head>
<body>
<%
Map<String,String> map1=new HashMap<String,String>();
Map<String,String> map2=new HashMap<>();
map1.put("姓名","hehcu");
map1.put("学号","201630126050");
map1.put("电话","18711191679");
map1.put("状态","选择");
map2.put("姓名","laoshi");
map2.put("学号","54646546");
map2.put("电话","18711191679");
map2.put("状态","已选");
List<Map<String,String>> list=new ArrayList<>();
list.add(map1);
list.add(map2);
pageContext.setAttribute("list",list);
String s = request.getParameter("processIndex");
int processIndex=Integer.parseInt(s);
User user=(User)session.getAttribute("user");
session.setAttribute("searchProcessIndex",processIndex);
C_Select process= (C_Select) user.getCondition().get(processIndex);
List<String[]> lm = process.search("*");
pageContext.setAttribute("list",lm);
String type=user.getType();
pageContext.setAttribute("type",type);
%>
<script>seachProcessIndex=<%=processIndex%></script>
<div class="updated">
<div class="select-frame">
<div class="fill-top-blank">
@ -52,7 +47,7 @@
</c:if>
</div>
<div class="search-frame">
<input class="search-input" type="text" name="id" value="" placeholder="输入号查找">
<input class="search-input" type="text" name="id" value="" placeholder="输入号查找">
<div class="search-button ${type}"></div>
</div>
</div>
@ -64,14 +59,14 @@
<div class="list-frame bar-change">
<c:forEach items="${list}" var="z">
<div class="list-child">
<div class="name"><span class="the-name">${z.姓名}</span></div>
<div class="name"><span class="the-name">${z[2]}</span></div>
<div class="other-msgs">
<c:forEach items="${z}" var="msg" begin="1" end="${fn:length(z)-2}">
<div class="one-msg">${msg.key}${msg.value}</div>
</c:forEach>
<div class="one-msg">${'账号'}${z[0]}</div>
<div class="one-msg">${'电话号码'}${z[4]}</div>
<div class="one-msg">${'邮箱地址'}${z[3]}</div>
</div>
<button class="select-it ${type} <c:if test="${z.状态=='已选'}">on</c:if>" value="${z.学号}">
${z.状态}</button>
<button class="select-it <%=type%>" value="${z[0]}">
选择</button>
</div>
</c:forEach>
</div>

@ -1,4 +1,5 @@
<%--
<%@ page import="core.user.User" %>
<%@ page import="core.process.TempProcess" %><%--
Created by IntelliJ IDEA.
User: lenovo
Date: 2019/1/13
@ -15,6 +16,13 @@
</head>
<body>
<div class="updated">
<%
String s = request.getParameter("processIndex");
int processIndex=Integer.parseInt(s);
User user=(User)session.getAttribute("user");
String url = user.getCondition().get(processIndex).getTargetURL();
String id = ((TempProcess)(user.getCondition().get(processIndex))).getGraduationDesignId();
%>
<div class="fill-top-blank"><div class="model-info">上传定稿</div></div>
<div class="upload-frame">
<div class="upload-tips">上传定稿</div>
@ -25,6 +33,8 @@
</div>
<div class="file-input-frame">
<input class="true-select" id="select" type="file" accept="application/pdf" multiple="multiple">
<input class="upload-url" value="<%=url%>" style="visibility: hidden;width: 0">
<input class="upload-id" value="<%=id%>" style="visibility: hidden;width: 0">
<div class="upload-button select-file">选择文件</div>
<div class="upload-button upload-it">上传文件</div>
</div>

@ -2,9 +2,9 @@
$(document).off('click',submit_text).on('click','.submit-text',submit_text);
})
function submit_text() {
var Url3=$(this).parent().attr("action");
var Url3=$('.fill-form').attr("action");
alert(Url3);
var fillDate=$(this).parent().serialize();
var fillDate=$('.fill-form').serialize();
var upddateit=$('.updated');
alert(fillDate);
$.post(Url3,fillDate,function(data,status) {

@ -5,8 +5,8 @@ function upadateFrame(e) {
e.preventDefault();
var updateUrl=$(this).attr('href');
var arr=updateUrl.split('?');
var proccessIndex=arr[1];
var indexData={"index":proccessIndex};
var processIndex=arr[1];
var indexData={"processIndex":processIndex};
$('.update-frame').load(updateUrl+' .updated',indexData,function (data) {
});
history.pushState(null,null,updateUrl);

@ -10,12 +10,11 @@ function searchStuMsg(e) {
if($('.search-input').val()=='')
{
e.preventDefault();
alert('请输入学号');
alert('请输入学生账号');
}
else {
var id=$('.search-input').val();
var searchType='teacher';
var rqDate={"id":id,"searchType":searchType};
var rqDate={"id":id};
var Url1='result_list.jsp';
$('.list-frame').load(Url1,rqDate);
}
@ -24,12 +23,11 @@ function searchTeaMsg(e) {
if($('.search-input').val()=='')
{
e.preventDefault();
alert('请输入号');
alert('请输入老师账号');
}
else {
var id=$('.search-input').val();
var searchType='student';
var rqDate={"id":id,"searchType":searchType};
var rqDate={"id":id};
var Url1='result_list.jsp';
$('.list-frame').load(Url1,rqDate);
}
@ -37,20 +35,21 @@ function searchTeaMsg(e) {
function KDsearchSmsg(e) {
if(e.keyCode==13)
{
searchStuMsg(e);
$('.search-button').click();
}
}
function KDsearchTmsg(e) {
if(e.keyCode==13)
{
searchTeaMsg(e);
$('.search-button').click();
}
}
function select_one(Url2,button) {
var id=button.val();
var selectDate={"id":id};
if(button.html()!="已选")
{$.post(Url2,selectDate,function (data,status) {
{
$.post(Url2,selectDate,function (data,status) {
if(status=='success')
{
button.addClass('on').html("已选");
@ -59,7 +58,7 @@ function select_one(Url2,button) {
}
function studentSelect() {
var button=$(this);
select_one("testfrom.jsp",button);
select_one("/home/student-select-teacher",button);
}
function teacherSelect() {
var button=$(this);

@ -4,7 +4,7 @@
}
)
function sendSub() {
var Url3='testfrom.jsp';
var Url3='/home/student-fill-graduation-design-information';
if( $('.sub-input').eq(0).val()==''|| $('.sub-input').eq(1).val()==''
|| $('.sub-input').eq(2).val()=='')
{
@ -22,12 +22,9 @@ function sendSub() {
alert("请将信息填写完整");
return;
}
var fillDate=$(this).parent().serialize();
$.post(Url3,fillDate,function(data,status) {
if(status=='success')
{
alert("提交成功");
}
var fillData=$('.subform').serialize();
$.post(Url3,fillData,function(data,status) {
alert(status);
}
);
}

@ -1,6 +1,7 @@
$(document).ready(
$(document).ready(
function () {
alert("你好");
sessionStorage.setItem("hello","hha");
alert(sessionStorage.getItem("hello"));
})
function alet() {
alert("成功");

@ -5,14 +5,16 @@
})
function sendFile() {
var fileData =new FormData();
var Url4='/student-upload-finished-product';
var Url4=$('.upload-url').val();
var id=$('.upload-id').val();
var file=$('#select')[0].files[0];
if($('.true-select').val()=='')
{
alert("请选择文件");
return;
}
alert(file);
fileData.append("id",id);
fileData.append("file",file);
$.ajax({
type:"post",

@ -13,7 +13,12 @@
<script charset="GBK" type="text/javascript" src="jsFile/test.js" language="JavaScript"></script>
</head>
<body>
<%
String a=request.getParameter("chinese_name");
response.getWriter().write(a);
System.out.println(a);
%>
<button class="but">nihao</button>
<div>hhhhhhhhhhhhhh</div>
<div></div>
</body>
</html>

@ -1,10 +1,4 @@
<%@ page import="java.util.List" %>
<%@page import="org.apache.commons.fileupload.FileItem" %>
<%@page import="org.apache.commons.fileupload.FileUploadBase"%>
<%@page import="org.apache.commons.fileupload.FileUploadException"%>
<%@page import="org.apache.commons.fileupload.ProgressListener"%>
<%@page import="org.apache.commons.fileupload.disk.DiskFileItemFactory"%>
<%@page import="org.apache.commons.fileupload.servlet.ServletFileUpload"%>
<%@page import="java.io.File"%>
<%@ page import="java.io.PrintWriter" %>
<%--
@ -16,5 +10,7 @@
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
String name=request.getParameter("chinese_name");
response.getWriter().write(name);
%>
<div>hello</div>
<div></div>

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
version="4.0">
</web-app>
Loading…
Cancel
Save