• 大小: 20MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-06
  • 语言: Java
  • 标签: 毕业设计  SSH2  JavaWeb  

资源简介

毕业设计 基于SSH2医疗管理系统,使用Struts2+Hibernate4.2+Spring3等JavaWeb框架完成

资源截图

代码片段和文件信息

package com.mei.ssherp.action;

import java.io.PrintWriter;
import javax.annotation.Resource;
import org.apache.struts2.ServletActionContext;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import com.mei.ssherp.model.User;
import com.mei.ssherp.service.IUserService;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
@Component(“loginAction“)
@Scope(“prototype“)
public class LoginAction extends ActionSupport implements ModelDriven{
 private User user;
 private IUserService userService;
 @Override
 public User getModel(){
 if(user==null){
 return  user=new User();
 }
 return user;
 }
public IUserService getUserService(){
return userService;
}
@Resource(name=“userService“)
public void setUserService(IUserService userService){
this.userService=userService;
}

public String login()throws Exception{
 if(userService.query(user)){
 return SUCCESS;
 }
return ERROR;
}

public String exit(){
ServletActionContext.getRequest().getSession().invalidate();
return “index“;
}
public String manage(){
return “manage“;
}

public String update() throws Exception{
String strUserName=((User)(ServletActionContext.getRequest().getSession().getAttribute(“user“))).getUsername();
boolean bool=userService.update(userstrUserName);
if(bool==true){
return “updateSuccess“;
}else{
return “fail“;
}
}

public void ajaxQuery() throws Exception{
PrintWriter out=ServletActionContext.getResponse().getWriter();
System.out.println(“###############################$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$“);
if(userService.ajaxQuery(user)){
out.print(“true“);
}else{
out.print(“false“);
}
}

public String add() throws Exception{
if( userService.add(user)==true){
return SUCCESS;
}else{
return “fail“;
}
}

public String delete() throws Exception{
if(userService.delete(user)==true){
return SUCCESS;
}else{
return “fail“;
}
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       4125  2014-03-19 21:44  MeiFang_medicalmanagementsystem\.classpath

     文件        279  2011-02-22 15:36  MeiFang_medicalmanagementsystem\.mymetadata

     文件       1774  2014-04-05 01:41  MeiFang_medicalmanagementsystem\.project

     文件        522  2013-10-14 06:02  MeiFang_medicalmanagementsystem\.settings\.jsdtscope

     文件       1009  2014-03-12 08:46  MeiFang_medicalmanagementsystem\.settings\com.genuitec.eclipse.j2eedt.core.prefs

     文件        341  2013-10-14 06:02  MeiFang_medicalmanagementsystem\.settings\com.genuitec.eclipse.migration.prefs

     文件        343  2014-04-05 05:58  MeiFang_medicalmanagementsystem\.settings\org.eclipse.core.resources.prefs

     文件        364  2013-10-14 06:02  MeiFang_medicalmanagementsystem\.settings\org.eclipse.jdt.core.prefs

     文件        649  2014-04-05 01:42  MeiFang_medicalmanagementsystem\.settings\org.eclipse.wst.common.component

     文件        362  2013-10-14 06:02  MeiFang_medicalmanagementsystem\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2013-10-14 06:02  MeiFang_medicalmanagementsystem\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2013-10-14 06:02  MeiFang_medicalmanagementsystem\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       2575  2014-04-05 02:01  MeiFang_medicalmanagementsystem\src\applicationContext.xml

     文件       2098  2014-04-05 01:55  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\action\LoginAction.java

     文件       4416  2014-04-05 04:55  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\action\MedicAction.java

     文件       4806  2014-04-05 05:27  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\action\MedicClassAction.java

     文件       4728  2014-04-05 06:19  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\action\MedicSaleAction.java

     文件       4416  2014-04-05 05:41  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\action\StoreAction.java

     文件        592  2014-04-05 05:26  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\dao\IMedicClassDAO.java

     文件        537  2014-04-05 04:09  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\dao\IMedicDAO.java

     文件        581  2014-04-05 06:19  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\dao\IMedicSaleDAO.java

     文件       3195  2014-04-05 05:27  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\dao\impl\MedicClassDAOImpl.java

     文件       3768  2014-04-05 04:22  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\dao\impl\MedicDAOImpl.java

     文件       3397  2014-04-05 06:23  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\dao\impl\MedicSaleDAOImpl.java

     文件       3036  2014-04-05 05:42  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\dao\impl\StoreDAOImpl.java

     文件       2640  2014-04-05 01:55  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\dao\impl\UserDAOImpl.java

     文件        537  2014-04-05 05:41  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\dao\IStoreDAO.java

     文件        369  2014-04-05 01:55  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\dao\IUserDAO.java

     文件       3092  2014-04-05 02:15  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\model\Medic.java

     文件        974  2014-04-05 02:18  MeiFang_medicalmanagementsystem\src\com\mei\ssherp\model\MedicClass.java

............此处省略131个文件信息

评论

共有 条评论