• 大小: 15.29MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-19
  • 语言: Java
  • 标签:

资源简介

基于JSP的医院网上预约挂号系统的设计与实现,实现了预约挂号相关功能

资源截图

代码片段和文件信息

package com.action;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.struts2.ServletActionContext;

import com.dao.TGonggaoDAO;
import com.model.TAdmin;
import com.model.TGonggao;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class gonggaoAction extends ActionSupport
{
private Integer id;
private String biaoti;
private String neirong;
private String shijian;

private String message;
private String path;

private TGonggaoDAO gonggaoDAO;

public String gonggaoAdd()
{
TGonggao gonggao=new TGonggao();
gonggao.setBiaoti(biaoti);
gonggao.setNeirong(neirong);
gonggao.setShijian(new SimpleDateFormat(“yyyy-MM-dd HH:mm“).format(new Date()));
gonggaoDAO.save(gonggao);
this.setMessage(“公告添加完毕“);
this.setPath(“gonggaoMana.action“);
return “succeed“;
}


public String gonggaoMana()
{
List gonggaoList =gonggaoDAO.findAll();
Map request=(Map)ServletActionContext.getContext().get(“request“);
request.put(“gonggaoList“ gonggaoList);
return ActionSupport.SUCCESS;
}

public String gonggaoDel()
{
TGonggao gonggao=gonggaoDAO.findById(id);
gonggaoDAO.delete(gonggao);
this.setMessage(“公告删除完毕“);
this.setPath(“gonggaoMana.action“);
return “succeed“;
}


public String gonggaoDetailHou()
{
TGonggao gonggao=gonggaoDAO.findById(id);
Map request=(Map)ServletActionContext.getContext().get(“request“);
request.put(“gonggao“ gonggao);
return ActionSupport.SUCCESS;
}


public String gonggaoAll()
{
List gonggaoList =gonggaoDAO.findAll();
Map request=(Map)ServletActionContext.getContext().get(“request“);
request.put(“gonggaoList“ gonggaoList);
return ActionSupport.SUCCESS;
}

public String gonggaoDetailQian()
{
TGonggao gonggao=gonggaoDAO.findById(id);
Map request=(Map)ServletActionContext.getContext().get(“request“);
request.put(“gonggao“ gonggao);

return ActionSupport.SUCCESS;
}





public TGonggaoDAO getGonggaoDAO()
{
return gonggaoDAO;
}


public void setGonggaoDAO(TGonggaoDAO gonggaoDAO)
{
this.gonggaoDAO = gonggaoDAO;
}

public String getPath()
{
return path;
}


public void setPath(String path)
{
this.path = path;
}
public String getMessage()
{
return message;
}


public void setMessage(String message)
{
this.message = message;
}

public String getBiaoti()
{
return biaoti;
}


public void setBiaoti(String biaoti)
{
this.biaoti = biaoti;
}

public Integer getId()
{
return id;
}


public void setId(Integer id)
{
this.id = id;
}





public String getNeirong()
{
return neirong;
}


public void setNeirong(String neirong)
{
this.neirong = neirong;
}





public String getShijian()
{
return shijian;
}


public void setShijian

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         855  2016-04-30 15:52  guahao\.classpath
     目录           0  2016-11-23 14:57  guahao\.externalToolBuilders\
     文件         552  2013-11-26 13:18  guahao\.externalToolBuilders\org.eclipse.wst.common.project.facet.core.builder.launch
     文件         548  2013-11-26 13:18  guahao\.externalToolBuilders\org.eclipse.wst.jsdt.core.javascriptValidator.launch
     文件         614  2013-11-27 18:42  guahao\.myhibernatedata
     文件         291  2016-04-30 14:58  guahao\.mymetadata
     文件        2621  2013-11-27 16:10  guahao\.project
     文件         474  2013-11-27 17:31  guahao\.springBeans
     目录           0  2016-11-23 14:59  guahao\src\
     目录           0  2016-11-23 14:57  guahao\src\com\
     目录           0  2016-11-23 14:59  guahao\src\com\action\
     文件        3071  2016-05-10 09:01  guahao\src\com\action\gonggaoAction.java
     文件        4340  2016-05-15 18:28  guahao\src\com\action\guahaoAction.java
     文件         206  2013-11-27 17:26  guahao\src\com\action\indexAction.java
     文件        2308  2013-11-27 18:53  guahao\src\com\action\keshiAction.java
     文件        4542  2013-11-28 14:28  guahao\src\com\action\UserAction.java
     文件        2747  2016-05-14 11:04  guahao\src\com\action\yiyuanAction.java
     文件        5796  2013-11-28 14:43  guahao\src\com\action\zhuanjiaAction.java
     目录           0  2016-11-23 14:58  guahao\src\com\dao\
     文件        3980  2013-11-27 17:21  guahao\src\com\dao\TAdminDAO.java
     文件        4043  2013-11-27 18:10  guahao\src\com\dao\TGonggaoDAO.java
     文件        3765  2013-11-27 17:21  guahao\src\com\dao\TGuahaoDAO.java
     文件        3733  2013-11-27 17:21  guahao\src\com\dao\TKeshiDAO.java
     文件        3729  2013-11-27 17:28  guahao\src\com\dao\TUserDAO.java
     文件        4535  2013-11-27 18:42  guahao\src\com\dao\TYiyuanDAO.java
     文件        3829  2013-11-27 17:21  guahao\src\com\dao\TZhuanjiaDAO.java
     目录           0  2016-11-23 15:04  guahao\src\com\model\
     文件         782  2013-11-27 17:21  guahao\src\com\model\TAdmin.hbm.xml
     文件         887  2013-11-27 17:21  guahao\src\com\model\TAdmin.java
     文件         909  2013-11-27 18:10  guahao\src\com\model\TGonggao.hbm.xml
     文件         776  2013-11-27 18:10  guahao\src\com\model\TGonggao.java
............此处省略825个文件信息

评论

共有 条评论

相关资源