• 大小: 11.8MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-07-16
  • 语言: Java
  • 标签:

资源简介

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

评论

共有 条评论