资源简介

JAVA 开源超市管理系统源码

资源截图

代码片段和文件信息

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;

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;
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-06-20 16:24  SuperMarket\
     文件        3145  2012-06-24 23:37  SuperMarket\.classpath
     目录           0  2012-06-20 13:25  SuperMarket\.myeclipse\
     文件         511  2012-06-28 22:26  SuperMarket\.myhibernatedata
     文件         306  2012-06-20 13:25  SuperMarket\.mymetadata
     文件        1619  2012-06-20 16:24  SuperMarket\.project
     目录           0  2012-06-20 13:25  SuperMarket\.settings\
     文件         500  2012-06-20 13:25  SuperMarket\.settings\.jsdtscope
     文件         330  2012-06-20 13:25  SuperMarket\.settings\org.eclipse.jdt.core.prefs
     文件          49  2012-06-20 13:25  SuperMarket\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2012-06-20 13:25  SuperMarket\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2012-06-23 18:22  SuperMarket\src\
     文件        5277  2012-06-27 00:09  SuperMarket\src\applicationContext.xml
     目录           0  2012-06-20 13:27  SuperMarket\src\com\
     目录           0  2012-06-20 13:28  SuperMarket\src\com\bzu\
     目录           0  2012-06-29 00:24  SuperMarket\src\com\bzu\action\
     文件        1114  2012-06-23 17:46  SuperMarket\src\com\bzu\action\AdminAction.java
     文件        5578  2012-07-01 01:29  SuperMarket\src\com\bzu\action\EmployerAction.java
     文件        6365  2012-06-28 23:55  SuperMarket\src\com\bzu\action\EmployerWageAction.java
     文件        4267  2012-06-25 23:52  SuperMarket\src\com\bzu\action\GoodsAction.java
     文件        1503  2012-06-29 11:07  SuperMarket\src\com\bzu\action\InputerAction.java
     文件        5566  2012-06-26 18:42  SuperMarket\src\com\bzu\action\IntoGoodsAction.java
     目录           0  2012-06-23 14:27  SuperMarket\src\com\bzu\dao\
     目录           0  2012-06-26 00:25  SuperMarket\src\com\bzu\dao\impl\
     文件         844  2012-06-23 17:41  SuperMarket\src\com\bzu\dao\impl\AdminDaoImpl.java
     文件        1525  2012-07-01 01:29  SuperMarket\src\com\bzu\dao\impl\EmployerDaoImpl.java
     文件        1305  2012-06-25 17:38  SuperMarket\src\com\bzu\dao\impl\GoodsDaoImpl.java
     文件         820  2012-06-29 10:42  SuperMarket\src\com\bzu\dao\impl\InputerDaoImpl.java
     文件        1462  2012-06-28 23:47  SuperMarket\src\com\bzu\dao\impl\IntoGoodsDaoImpl.java
     文件        2561  2012-06-27 00:41  SuperMarket\src\com\bzu\dao\impl\SuperDao.java
     文件        3823  2012-06-28 22:38  SuperMarket\src\com\bzu\dao\impl\WorkdayDaoImpl.java
............此处省略228个文件信息

评论

共有 条评论