资源简介
基于ssh框架的药品管理系统,适合新手 。
代码片段和文件信息
package com.action;
import java.util.List;
import java.util.Map;
import org.apache.struts2.ServletActionContext;
import com.dao.TAdminDAO;
import com.model.TAdmin;
import com.opensymphony.xwork2.ActionSupport;
public class adminAction extends ActionSupport
{
private int userId;
private String userName;
private String userPw;
private String message;
private String path;
private int index=1;
private TAdminDAO adminDAO;
public String adminAdd()
{
TAdmin admin=new TAdmin();
admin.setUserName(userName);
admin.setUserPw(userPw);
adminDAO.save(admin);
this.setMessage(“操作成功“);
this.setPath(“adminManage.action“);
return “succeed“;
}
public String adminManage()
{
List adminList=adminDAO.findAll();
Map request=(Map)ServletActionContext.getContext().get(“request“);
request.put(“adminList“ adminList);
return ActionSupport.SUCCESS;
}
public String adminDel()
{
adminDAO.delete(adminDAO.findById(userId));
this.setMessage(“删除成功“);
this.setPath(“adminManage.action“);
return “succeed“;
}
public TAdminDAO getAdminDAO()
{
return adminDAO;
}
public void setAdminDAO(TAdminDAO adminDAO)
{
this.adminDAO = adminDAO;
}
public String getMessage()
{
return message;
}
public int getIndex()
{
return index;
}
public void setIndex(int index)
{
this.index = index;
}
public void setMessage(String message)
{
this.message = message;
}
public String getPath()
{
return path;
}
public void setPath(String path)
{
this.path = path;
}
public int getUserId()
{
return userId;
}
public void setUserId(int userId)
{
this.userId = userId;
}
public String getUserName()
{
return userName;
}
public void setUserName(String userName)
{
this.userName = userName;
}
public String getUserPw()
{
return userPw;
}
public void setUserPw(String userPw)
{
this.userPw = userPw;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-03-12 12:07 298JSP鑽搧绠$悊绯荤粺\
文件 1048576 2014-04-18 20:32 298JSP鑽搧绠$悊绯荤粺\db_yyjx_Data.MDF
目录 0 2018-03-14 22:07 __MACOSX\
目录 0 2018-03-14 22:07 __MACOSX\298JSP鑽搧绠$悊绯荤粺\
文件 175 2014-04-18 20:32 __MACOSX\298JSP鑽搧绠$悊绯荤粺\._db_yyjx_Data.MDF
文件 1048576 2014-04-18 20:32 298JSP鑽搧绠$悊绯荤粺\db_yyjx_Log.LDF
文件 175 2014-04-18 20:32 __MACOSX\298JSP鑽搧绠$悊绯荤粺\._db_yyjx_Log.LDF
文件 6148 2018-03-14 20:36 298JSP鑽搧绠$悊绯荤粺\.DS_Store
文件 120 2018-03-14 20:36 __MACOSX\298JSP鑽搧绠$悊绯荤粺\._.DS_Store
文件 1656074 2012-06-12 14:55 298JSP鑽搧绠$悊绯荤粺\JSP鑽搧绠$悊绯荤粺褰曞儚.exe
文件 175 2012-06-12 14:55 __MACOSX\298JSP鑽搧绠$悊绯荤粺\._JSP鑽搧绠$悊绯荤粺褰曞儚.exe
目录 0 2014-04-18 20:25 298JSP鑽搧绠$悊绯荤粺\yyjx\
文件 527 2012-04-01 23:24 298JSP鑽搧绠$悊绯荤粺\yyjx\.myhibernatedata
目录 0 2018-03-14 22:07 __MACOSX\298JSP鑽搧绠$悊绯荤粺\yyjx\
文件 175 2012-04-01 23:24 __MACOSX\298JSP鑽搧绠$悊绯荤粺\yyjx\._.myhibernatedata
文件 273 2012-04-01 23:24 298JSP鑽搧绠$悊绯荤粺\yyjx\.springBeans
文件 175 2012-04-01 23:24 __MACOSX\298JSP鑽搧绠$悊绯荤粺\yyjx\._.springBeans
目录 0 2014-04-18 20:52 298JSP鑽搧绠$悊绯荤粺\yyjx\WebRoot\
目录 0 2014-04-18 20:25 298JSP鑽搧绠$悊绯荤粺\yyjx\WebRoot\fckeditor\
文件 1262 2012-04-01 23:24 298JSP鑽搧绠$悊绯荤粺\yyjx\WebRoot\fckeditor\_documentation.html
目录 0 2018-03-14 22:07 __MACOSX\298JSP鑽搧绠$悊绯荤粺\yyjx\WebRoot\
目录 0 2018-03-14 22:07 __MACOSX\298JSP鑽搧绠$悊绯荤粺\yyjx\WebRoot\fckeditor\
文件 175 2012-04-01 23:24 __MACOSX\298JSP鑽搧绠$悊绯荤粺\yyjx\WebRoot\fckeditor\.__documentation.html
文件 9764 2012-04-01 23:24 298JSP鑽搧绠$悊绯荤粺\yyjx\WebRoot\fckeditor\_whatsnew.html
文件 175 2012-04-01 23:24 __MACOSX\298JSP鑽搧绠$悊绯荤粺\yyjx\WebRoot\fckeditor\.__whatsnew.html
文件 6508 2012-04-01 23:24 298JSP鑽搧绠$悊绯荤粺\yyjx\WebRoot\fckeditor\fckeditor.asp
文件 175 2012-04-01 23:24 __MACOSX\298JSP鑽搧绠$悊绯荤粺\yyjx\WebRoot\fckeditor\._fckeditor.asp
文件 4371 2012-04-01 23:24 298JSP鑽搧绠$悊绯荤粺\yyjx\WebRoot\fckeditor\fckeditor.py
文件 175 2012-04-01 23:24 __MACOSX\298JSP鑽搧绠$悊绯荤粺\yyjx\WebRoot\fckeditor\._fckeditor.py
文件 3506 2012-04-01 23:24 298JSP鑽搧绠$悊绯荤粺\yyjx\WebRoot\fckeditor\fckeditor.pl
文件 175 2012-04-01 23:24 __MACOSX\298JSP鑽搧绠$悊绯荤粺\yyjx\WebRoot\fckeditor\._fckeditor.pl
............此处省略1889个文件信息
- 上一篇:DS2431_STM32F103源码
- 下一篇:基于深度学习的目标检测程序
评论
共有 条评论