• 大小: 15.56MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-10
  • 语言: 其他
  • 标签: 超市,SSH  

资源简介

基于SSH的超市管理系统,适合学习SSH框架的学者学习和研究。

资源截图

代码片段和文件信息

package com.bzu.action;

import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.bzu.entity.Admin;
import com.bzu.service.inter.AdminService;
import com.opensymphony.xwork2.ActionSupport;
import java.text.*;
import java.util.Date;
public class AdminAction extends ActionSupport {

private AdminService adminService;


public AdminService getAdminService() {
return adminService;
}

public void setAdminService(AdminService adminService) {
this.adminService = adminService;
}

private Admin admin;

public Admin getAdmin() {
return admin;
}

public void setAdmin(Admin admin) {
this.admin = admin;
}

public String login() {

Admin adm = adminService.login(admin);
HttpSession session=ServletActionContext.getRequest().getSession();

if (adm!= null){
session.setAttribute(“admin_info“ adm);
return “loginsuccess“;
}

return INPUT;
}
public String addAdmin(){

adminService.addAdmin(admin);

return SUCCESS;
}

public String updateAdmin(){

adminService.updateAdmin(admin);

return SUCCESS;
}
}

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

     文件       3312  2016-01-07 11:32  Super\SuperMarket\.classpath

     文件        511  2012-06-28 22:26  Super\SuperMarket\.myhibernatedata

     文件        306  2016-01-08 09:31  Super\SuperMarket\.mymetadata

     文件       1956  2016-01-07 11:32  Super\SuperMarket\.project

     文件        500  2012-06-20 13:25  Super\SuperMarket\.settings\.jsdtscope

     文件         75  2016-01-14 10:31  Super\SuperMarket\.settings\org.eclipse.core.resources.prefs

     文件        364  2016-01-07 11:32  Super\SuperMarket\.settings\org.eclipse.jdt.core.prefs

     文件        471  2016-01-07 11:32  Super\SuperMarket\.settings\org.eclipse.wst.common.component

     文件        252  2016-01-07 11:32  Super\SuperMarket\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2016-01-07 11:32  Super\SuperMarket\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2016-01-07 11:32  Super\SuperMarket\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件       5280  2016-01-16 11:40  Super\SuperMarket\src\applicationContext.xml

     文件       1156  2016-03-23 10:47  Super\SuperMarket\src\com\bzu\action\AdminAction.java

     文件       5578  2012-07-01 01:29  Super\SuperMarket\src\com\bzu\action\EmployerAction.java

     文件       6365  2012-06-28 23:55  Super\SuperMarket\src\com\bzu\action\EmployerWageAction.java

     文件       4128  2016-01-08 09:45  Super\SuperMarket\src\com\bzu\action\GoodsAction.java

     文件       1503  2012-06-29 11:07  Super\SuperMarket\src\com\bzu\action\InputerAction.java

     文件       5566  2012-06-26 18:42  Super\SuperMarket\src\com\bzu\action\IntoGoodsAction.java

     文件        844  2012-06-23 17:41  Super\SuperMarket\src\com\bzu\dao\impl\AdminDaoImpl.java

     文件       1525  2012-07-01 01:29  Super\SuperMarket\src\com\bzu\dao\impl\EmployerDaoImpl.java

     文件       1305  2012-06-25 17:38  Super\SuperMarket\src\com\bzu\dao\impl\GoodsDaoImpl.java

     文件        820  2012-06-29 10:42  Super\SuperMarket\src\com\bzu\dao\impl\InputerDaoImpl.java

     文件       1462  2012-06-28 23:47  Super\SuperMarket\src\com\bzu\dao\impl\IntoGoodsDaoImpl.java

     文件       2567  2016-01-08 18:11  Super\SuperMarket\src\com\bzu\dao\impl\SuperDao.java

     文件       3847  2016-01-08 18:40  Super\SuperMarket\src\com\bzu\dao\impl\WorkdayDaoImpl.java

     文件        242  2012-06-23 17:40  Super\SuperMarket\src\com\bzu\dao\inter\AdminDao.java

     文件        630  2012-06-24 01:01  Super\SuperMarket\src\com\bzu\dao\inter\EmployerDao.java

     文件        526  2012-06-26 00:00  Super\SuperMarket\src\com\bzu\dao\inter\GoodsDao.java

     文件        281  2012-06-29 10:42  Super\SuperMarket\src\com\bzu\dao\inter\InputerDao.java

     文件        671  2012-06-28 23:47  Super\SuperMarket\src\com\bzu\dao\inter\IntoGoodsDao.java

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

评论

共有 条评论

相关资源