• 大小: 13.98MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-20
  • 语言: 其他
  • 标签: 资产  

资源简介

资产管理系统源码及数据库文件 包含用户管理角色权限管理 还有资产管理

资源截图

代码片段和文件信息

package cn.sunveget.action;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import cn.sunveget.dao.AssetDao;
import cn.sunveget.dao.AssetTypeDao;
import cn.sunveget.dao.ManufacturerDao;
import cn.sunveget.dao.StaffDao;
import cn.sunveget.dao.StorageDao;
import cn.sunveget.pojo.Asset;
import cn.sunveget.pojo.AssetType;
import cn.sunveget.pojo.Manufacturer;
import cn.sunveget.pojo.Staff;
import cn.sunveget.pojo.Storage;
import cn.sunveget.util.Constant;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

/**
 * 管理用户增删改查
 * @author shaocx
 *
 */
@Controller(“AssetAction“)
@Scope(“prototype“)
public class AssetAction extends ActionSupport implements ModelDriven{
private static final long serialVersionUID = 4890254580409908174L;

private Asset asset = new Asset();

@Resource(name=“AssetDaoImpl“)
private AssetDao assetDao;
@Resource(name=“AssetTypeDaoImpl“)
private AssetTypeDao assettypeDao;
@Resource(name=“StorageDaoImpl“)
private StorageDao storageDao;
@Resource(name=“ManufacturerDaoImpl“)
private ManufacturerDao manufacturerDao;
@Resource(name=“StaffDaoImpl“)
private StaffDao staffDao;

@Override
public Asset getModel() {
return asset;
}
public AssetDao getAssetDao() {
return assetDao;
}
public void setAssetDao(AssetDao assetDao) {
this.assetDao = assetDao;
}

public StorageDao getStorageDao() {
return storageDao;
}
public void setStorageDao(StorageDao storageDao) {
this.storageDao = storageDao;
}
public AssetTypeDao getAssettypeDao() {
return assettypeDao;
}
public void setAssettypeDao(AssetTypeDao assettypeDao) {
this.assettypeDao = assettypeDao;
}
public ManufacturerDao getManufacturerDao() {
return manufacturerDao;
}
public void setManufacturerDao(ManufacturerDao manufacturerDao) {
this.manufacturerDao = manufacturerDao;
}
public StaffDao getStaffDao() {
return staffDao;
}
public void setStaffDao(StaffDao staffDao) {
this.staffDao = staffDao;
}
public String add(){
assetDao.add(asset);
return “message“;
}
public String update(){
assetDao.update(asset);
return “message“;
}
public String edit(){
asset = assetDao.query(asset).get(0);
ActionContext.getContext().put(Constant.edit asset);
return “edit“;
}
public String query(){
List assets = assetDao.query(asset);
ActionContext.getContext().put(Constant.query assets);
return “query“;
}
public String delete(){
assetDao.delete(asset);
List assets = assetDao.query(asset);
ActionContext.getContext().getSession().put(Constant.query assets);
return “message2“;
}
public String view(){
Mapject> session = ActionContext.getContext().getSession();
if

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-05-05 22:14  project\
     文件       18770  2013-05-05 22:15  project.sql
     文件        3003  2013-05-05 20:07  project\.classpath
     文件        1256  2013-05-05 19:44  project\.project
     目录           0  2013-05-05 19:41  project\.settings\
     文件         503  2012-06-06 12:12  project\.settings\.jsdtscope
     文件         103  2013-05-05 20:32  project\.settings\org.eclipse.core.resources.prefs
     文件         395  2012-06-06 12:12  project\.settings\org.eclipse.jdt.core.prefs
     文件         451  2012-06-06 12:12  project\.settings\org.eclipse.wst.common.component
     文件         345  2012-06-06 12:12  project\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2012-06-06 12:12  project\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2012-06-06 12:12  project\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2013-05-05 19:41  project\build\
     目录           0  2013-05-05 21:43  project\build\classes\
     目录           0  2013-05-05 20:36  project\build\classes\cn\
     目录           0  2013-05-05 20:36  project\build\classes\cn\sunveget\
     目录           0  2013-05-05 20:36  project\build\classes\cn\sunveget\action\
     文件        5313  2013-05-05 20:36  project\build\classes\cn\sunveget\action\AssetAction.class
     文件        5642  2013-05-05 20:36  project\build\classes\cn\sunveget\action\AssetApplyAction.class
     文件        2688  2013-05-05 20:36  project\build\classes\cn\sunveget\action\AssetTypeAction.class
     文件        2764  2013-05-05 20:36  project\build\classes\cn\sunveget\action\CashAction.class
     文件        4822  2013-05-05 20:36  project\build\classes\cn\sunveget\action\CashDetailAction.class
     文件        5034  2013-05-05 20:36  project\build\classes\cn\sunveget\action\CashReceivableAction.class
     文件        3233  2013-05-05 20:36  project\build\classes\cn\sunveget\action\DeptAction.class
     文件        3524  2013-05-05 20:36  project\build\classes\cn\sunveget\action\GoodsAction.class
     文件        4126  2013-05-05 20:36  project\build\classes\cn\sunveget\action\InventoryAction.class
     文件        3912  2013-05-05 21:29  project\build\classes\cn\sunveget\action\LoginAction.class
     文件        2748  2013-05-05 20:36  project\build\classes\cn\sunveget\action\ManufacturerAction.class
     文件        4053  2013-05-05 20:36  project\build\classes\cn\sunveget\action\PowerAction.class
     文件        5099  2013-05-05 20:36  project\build\classes\cn\sunveget\action\RoleAction.class
     文件        3917  2013-05-05 20:36  project\build\classes\cn\sunveget\action\StaffAction.class
............此处省略636个文件信息

评论

共有 条评论