資源簡介
ssh-patient.rar
代碼片段和文件信息
package?controller;
import?java.util.List;
import?org.springframework.beans.factory.annotation.Autowired;
import?org.springframework.stereotype.Controller;
import?org.springframework.ui.Model;
import?org.springframework.web.bind.annotation.RequestMapping;
import?pojo.Admin;
import?pojo.Doctor;
import?pojo.Patient;
import?service.AdminService;
import?service.DoctorService;
import?service.PatientSercive;
@Controller
public?class?AdminController?{
@Autowired
private?AdminService?adminService;
@Autowired
PatientSercive?patientSercive;
@RequestMapping(“/admin“)
public?String?aa(){
return?“adminlogin“;
}
@RequestMapping(“/adminlogin.action“)
public?String?check(Admin?adminModel?model){
Admin?admin1?=?adminService.check(admin.getUsername()admin.getPassword());
/**
?*?判斷admin用戶名或者密碼是否正確
?*/
if(admin1?==?null||admin1.equals(““)){
model.addAttribute(“error“?“用戶名或者密碼錯誤“);
return?“doctorlogin“;
}
model.addAttribute(“admin1“?admin1);
List?lPatients=patientSercive.queryall();
?model.addAttribute(“lPatients“?lPatients);
?
return?“adminmain“;
}
@RequestMapping(“/admindoctor.action“)
public?String?aaa(Model?model){
?List?lDoctors=adminService.queryall();
?model.addAttribute(“lDoctors“?lDoctors);
?
return?“admindoctor“;
}
@RequestMapping(“/adminpatient.action“)
public?String?adminpatient(Model?model){
List?lPatients=patientSercive.queryall();
?model.addAttribute(“lPatients“?lPatients);
return?“adminpatient“;
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3876??2018-04-02?11:40??ssh-patient\.classpath
?????文件???????1044??2018-04-02?10:04??ssh-patient\.project
?????文件????????567??2018-04-02?09:04??ssh-patient\.settings\.jsdtscope
?????文件????????364??2018-04-02?09:04??ssh-patient\.settings\org.eclipse.jdt.core.prefs
?????文件????????485??2018-04-02?10:04??ssh-patient\.settings\org.eclipse.wst.common.component
?????文件????????345??2018-04-02?09:04??ssh-patient\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件?????????49??2018-04-02?09:04??ssh-patient\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2018-04-02?09:04??ssh-patient\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件???????2277??2018-04-02?19:22??ssh-patient\build\classes\controller\AdminController.class
?????文件???????1789??2018-04-02?18:47??ssh-patient\build\classes\controller\DoctorController.class
?????文件???????1485??2018-04-02?19:32??ssh-patient\build\classes\controller\LoginController.class
?????文件???????1599??2018-04-02?18:55??ssh-patient\build\classes\dao\AdminDao.class
?????文件???????1252??2018-04-02?17:34??ssh-patient\build\classes\dao\DoctorDao.class
?????文件???????1619??2018-04-02?17:30??ssh-patient\build\classes\dao\PatientDao.class
?????文件???????1164??2018-04-02?13:36??ssh-patient\build\classes\hibernate.cfg.xm
?????文件????????111??2018-04-02?09:42??ssh-patient\build\classes\jdbc.properties
?????文件???????1935??2018-04-02?11:42??ssh-patient\build\classes\pojo\Admin.class
?????文件???????1939??2018-04-02?11:42??ssh-patient\build\classes\pojo\Doctor.class
?????文件???????2808??2018-04-02?11:42??ssh-patient\build\classes\pojo\Patient.class
?????文件????????278??2018-04-02?18:50??ssh-patient\build\classes\service\AdminService.class
?????文件????????185??2018-04-02?17:31??ssh-patient\build\classes\service\DoctorService.class
?????文件????????285??2018-04-02?17:39??ssh-patient\build\classes\service\PatientSercive.class
?????文件????????923??2018-04-02?18:55??ssh-patient\build\classes\serviceImp\AdminServiceImp.class
?????文件????????769??2018-04-02?17:34??ssh-patient\build\classes\serviceImp\DoctorSerciveImp.class
?????文件????????947??2018-04-02?17:39??ssh-patient\build\classes\serviceImp\PatientSerciveImp.class
?????文件???????3308??2018-04-02?16:41??ssh-patient\build\classes\spring-mvc.xm
?????文件???????1617??2018-04-02?19:22??ssh-patient\src\controller\AdminController.java
?????文件???????1146??2018-04-02?18:47??ssh-patient\src\controller\DoctorController.java
?????文件????????898??2018-04-02?19:32??ssh-patient\src\controller\LoginController.java
?????文件???????1074??2018-04-02?18:55??ssh-patient\src\dao\AdminDao.java
............此處省略106個文件信息
評論
共有 條評論