• 大小: 11.8MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-01
  • 语言: Java
  • 标签: JavaWeb  SSM框架  

资源简介

JavaWeb基于SSM框架的仓库管理系统 (源码)带数据库文件!!!欢迎下载参考

资源截图

代码片段和文件信息

package com.synnex.wms.controller;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.synnex.wms.pojo.Loc;
import com.synnex.wms.service.LocService;

@Controller
@RequestMapping(value = “/loc“)
public class LocController {

@Autowired
private LocService locService;

@RequestMapping(value = “/findAll“)
public void findAll(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
List list = locService.findAll();
request.setAttribute(“list“ list);
request.getRequestDispatcher(“/jsp/loc/loc.jsp“).forward(request
response);

}

@RequestMapping(value = “/delete/{loc}“)
public String delete(@PathVariable Integer loc) {
locService.delete(loc);
return “redirect:/loc/findAll“;
}

@RequestMapping(value = “/insert“)
public String insert(Loc loc) {
locService.insert(loc);
return “redirect:/loc/findAll“;
}

@RequestMapping(“/toUpdateLocPage/{loc}“)
public void toUpdateLocPage(@PathVariable(“loc“) Integer locid
HttpServletResponse response HttpServletRequest request)
throws ServletException IOException {
Loc loc = locService.findLocByLoc(locid);
request.setAttribute(“loc“ loc);
request.getRequestDispatcher(“/jsp/loc/updateLoc.jsp“).forward(request
response);

}

@RequestMapping(value = “/update“)
public String update(Loc loc) {
locService.update(loc);
return “redirect:/loc/findAll“;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-05-25 23:56  wms1\
     文件        5845  2017-05-26 00:43  wms.sql
     文件        3923  2017-05-25 23:56  wms1\.classpath
     目录           0  2017-05-25 23:56  wms1\.myeclipse\
     文件         282  2017-05-25 23:56  wms1\.mymetadata
     文件        1409  2017-05-25 23:56  wms1\.project
     目录           0  2017-05-25 23:56  wms1\.settings\
     文件         500  2017-05-25 23:56  wms1\.settings\.jsdtscope
     文件          49  2017-05-25 23:56  wms1\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2017-05-25 23:56  wms1\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2017-05-25 23:56  wms1\config\
     文件          85  2017-05-25 23:56  wms1\config\dbconfig.properties
     文件         331  2017-05-25 23:56  wms1\config\log4j.properties
     目录           0  2017-05-25 23:56  wms1\config\spring\
     文件        2079  2017-05-25 23:56  wms1\config\spring\applicationContext-dao.xml
     文件        1319  2017-05-25 23:56  wms1\config\spring\applicationContext-service.xml
     文件        1514  2017-05-25 23:56  wms1\config\spring\springmvc.xml
     文件         429  2017-05-25 23:56  wms1\config\sqlMapConfig.xml
     目录           0  2017-05-25 23:56  wms1\src\
     目录           0  2017-05-25 23:56  wms1\src\com\
     目录           0  2017-05-25 23:56  wms1\src\com\synnex\
     目录           0  2017-05-25 23:56  wms1\src\com\synnex\wms\
     目录           0  2017-05-25 23:56  wms1\src\com\synnex\wms\controller\
     文件        1852  2017-05-25 23:56  wms1\src\com\synnex\wms\controller\LocController.java
     文件        1660  2017-05-25 23:56  wms1\src\com\synnex\wms\controller\OrdersController.java
     文件        2256  2017-05-25 23:56  wms1\src\com\synnex\wms\controller\ReceiptController.java
     文件        3428  2017-05-25 23:56  wms1\src\com\synnex\wms\controller\ReceiptdetailController.java
     文件        2341  2017-05-25 23:56  wms1\src\com\synnex\wms\controller\SkuController.java
     文件         908  2017-05-25 23:56  wms1\src\com\synnex\wms\controller\SkuxLocController.java
     文件        1849  2017-05-25 23:56  wms1\src\com\synnex\wms\controller\StorerController.java
     目录           0  2017-05-25 23:56  wms1\src\com\synnex\wms\mapper\
............此处省略196个文件信息

评论

共有 条评论