91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡(jiǎn)介

基于MVC模式的學(xué)生管理系統(tǒng),壓縮包中含有項(xiàng)目的sql文件,需自己手動(dòng)執(zhí)行!(推薦一款圖形管理工具:Navicat)。注意事項(xiàng):查看你自己的mysql相關(guān)設(shè)置和項(xiàng)目中的util工具類里面鏈接數(shù)據(jù)庫(kù)的用戶名和密碼是否一致!

資源截圖

代碼片段和文件信息

package?cn.niit.dao;

import?java.util.ArrayList;

import?cn.niit.entity.Students;
import?cn.niit.util.DB_Util;
public?class?StudentsDao?{

private?int?mohuCount=0;
public?int?getMohuCount()?{
return?mohuCount;
}

public?void?setMohuCount(int?mohuCount)?{
this.mohuCount?=?mohuCount;
}

//1注冊(cè)[測(cè)試完成]
public?boolean?insert(Students?students)?
{
String?sql=“INSERT?INTO?t_students“
+?“(snamesbirthdayssxesclasssfathersmothersphonesemailstelphonesadress)“?+?
“VALUE(??????????)“;
String?par[]=?{students.getSname()students.getSbirthday()students.getSsxe()
students.getSclass()students.getSfather()students.getSmother()students.getSphone()
students.getSemail()students.getStelphone()students.getSadress()};
for(int?i=0;i if(par[i]!=null&&par[i].equals(““)){
par[i]=“未知“;
}
}
return?DB_Util.update(sql?par);

}

//2根據(jù)id獲取用戶信息[測(cè)試完成]
public?Students?getStudents(int?sid)?
{
String?sql=“select?*?from?t_students?where?sid=?“;
String?par[]=?{sid+““};
ArrayList?list=new?ArrayList();
list=DB_Util.select(sql?par);
ArrayList?list1=new?ArrayList();
list1=(ArrayList)?list.get(0);
Students?students=new?Students(Integer.parseInt((String)?list1.get(0))
list1.get(1).toString()?list1.get(2).toString()?list1.get(3).toString()?
list1.get(4).toString()?list1.get(5).toString()?list1.get(6).toString()
list1.get(7).toString()?list1.get(8).toString()?list1.get(9).toString()?
list1.get(10).toString());
return?students;
}

//3顯示用戶列表[測(cè)試完成]
public?ArrayList?select(int?pageNow)?
{

ArrayList?list2=new?ArrayList<>();
String?sql=“select?*?from?t_students?limit?“+(pageNow-1)*19+“19“;
ArrayList?list=new?ArrayList();
list=DB_Util.select(sql?null);
ArrayList?list1=new?ArrayList();

for(int?i=0;i {
list1=(ArrayList)?list.get(i);
Students?students=new?Students(Integer.parseInt((String)?list1.get(0))?
list1.get(1).toString()?list1.get(2).toString()?list1.get(3).toString()?
list1.get(4).toString()?list1.get(5).toString()?list1.get(6).toString()?
list1.get(7).toString()?list1.get(8).toString()?list1.get(9).toString()?
list1.get(10).toString());
list2.add(students);
}

return?list2;
}

//4返回總記錄數(shù)[測(cè)試完成]
public?int?getCount()
{
String?sql=“select?count(*)?from?t_students“;
ArrayList?list=new?ArrayList();
list=DB_Util.select(sql?null);
ArrayList?list1=new?ArrayList();
list1=(ArrayList)?list.get(0);
return?Integer.parseInt((String)?list1.get(0));
}

//5返回總頁(yè)數(shù)[測(cè)試完成]
public?int?getPagecount()?
{
if(getCount()%19==0)
{
return?getCount()/19;
}else
{
return?getCount()/19+1;
}
}

//6刪除學(xué)生[測(cè)試完成]
public?boolean?delete(int?sid)?
{
String?sql=“delete?from?t_students?where?sid=?“;
String?par[]=?{sid+““};
return?DB_Util.update(sql?

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-08-21?19:01??基于MVC的學(xué)生管理系統(tǒng)\
?????目錄???????????0??2018-07-26?21:01??基于MVC的學(xué)生管理系統(tǒng)\code\
?????目錄???????????0??2018-07-26?21:00??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\
?????文件?????????866??2018-07-22?12:32??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\.classpath
?????文件?????????904??2018-07-20?14:16??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\.project
?????目錄???????????0??2018-07-26?21:00??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\.settings\
?????文件?????????567??2018-07-20?14:16??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\.settings\.jsdtscope
?????文件?????????140??2018-07-22?13:40??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\.settings\org.eclipse.core.resources.prefs
?????文件?????????364??2018-07-20?14:16??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\.settings\org.eclipse.jdt.core.prefs
?????文件?????????464??2018-07-20?14:16??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\.settings\org.eclipse.wst.common.component
?????文件?????????305??2018-07-20?14:16??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\.settings\org.eclipse.wst.common.project.facet.core.xml
?????文件??????????49??2018-07-20?14:16??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2018-07-20?14:16??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????目錄???????????0??2018-07-26?21:00??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\
?????目錄???????????0??2018-07-26?21:00??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\
?????目錄???????????0??2018-07-26?21:00??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\
?????目錄???????????0??2018-07-26?21:00??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\niit\
?????目錄???????????0??2018-07-26?21:00??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\niit\dao\
?????文件????????6364??2018-07-26?15:35??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\niit\dao\StudentsDao.class
?????文件????????7362??2018-07-25?22:43??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\niit\dao\UsersDao.class
?????目錄???????????0??2018-07-26?21:00??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\niit\entity\
?????文件????????2914??2018-07-25?22:43??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\niit\entity\Students.class
?????文件????????2441??2018-07-25?22:43??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\niit\entity\User.class
?????目錄???????????0??2018-07-26?21:00??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\niit\md5\
?????文件????????1734??2018-07-25?22:43??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\niit\md5\Md5.class
?????文件????????2231??2018-07-25?22:43??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\niit\md5\Md52.class
?????目錄???????????0??2018-07-26?21:00??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\niit\Servlet\
?????文件????????5932??2018-07-25?22:43??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\niit\Servlet\StudentsServlet.class
?????文件????????6706??2018-07-25?22:43??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\niit\Servlet\UserServlet.class
?????目錄???????????0??2018-07-26?21:00??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\niit\util\
?????文件????????4774??2018-07-25?22:43??基于MVC的學(xué)生管理系統(tǒng)\code\glxt\build\classes\cn\niit\util\DB_Util.class
............此處省略63個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源