Compare commits
11 Commits
Author | SHA1 | Date |
---|---|---|
zhai_lw | 4144ed000d | 6 years ago |
zhai_lw | 193a8ba91c | 6 years ago |
zhai_lw | dfe470d1a3 | 6 years ago |
zhai_lw | bc99b59f36 | 6 years ago |
zhai_lw | edbfb5aaba | 6 years ago |
zhai_lw | 0d4b7338bb | 6 years ago |
wan | 05f3b310f5 | 6 years ago |
zgl | e3885d95e7 | 6 years ago |
zgl | 5f1f583719 | 6 years ago |
wlf | cfb39b2407 | 6 years ago |
wlf | f47d14f5b8 | 6 years ago |
@ -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
Binary file not shown.
@ -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>
|
|
@ -1,10 +1,23 @@
|
|||||||
package core.process;
|
package core.process;
|
||||||
|
|
||||||
|
import dao.DBManagement;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
public abstract class C_FillInformation extends TempProcess {
|
public abstract class C_FillInformation extends TempProcess {
|
||||||
public String getJspURL(){
|
public String getJspURL(){
|
||||||
return "/home/fill_Information.jsp";
|
return "/home/fill_Information.jsp";
|
||||||
}
|
}
|
||||||
public abstract List<String> getInputName();
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
package core.process;
|
package core.process;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public abstract class C_Select extends TempProcess {
|
public abstract class C_Select extends TempProcess {
|
||||||
public String getJspURL(){
|
public String getJspURL(){
|
||||||
return "/home/select.jsp";
|
return "/home/select.jsp";
|
||||||
}
|
}
|
||||||
|
public abstract List<String[]> search(String id)throws Exception;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
@ -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…
Reference in new issue