700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > 基于javaweb+jsp的服装店门店信息管理系统(JavaWeb JSP MySQL Servlet SSM SpringBoot Bootstrap Ajax)

基于javaweb+jsp的服装店门店信息管理系统(JavaWeb JSP MySQL Servlet SSM SpringBoot Bootstrap Ajax)

时间:2020-03-29 09:35:38

相关推荐

基于javaweb+jsp的服装店门店信息管理系统(JavaWeb JSP MySQL Servlet SSM SpringBoot Bootstrap Ajax)

基于javaweb+jsp的服装店门店信息管理系统(JavaWeb JSP MySQL Servlet SSM SpringBoot Bootstrap Ajax)

JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript Bootstrap Ajax

基础JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架或SpringBoot…均可

开发工具:eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

// 返回一个随机颜色(Color对象)private Color getRandomColor(int minColor, int maxColor) {Random random = new Random();// 保存minColor最大不会超过255if (minColor > 255)minColor = 255;// 保存minColor最大不会超过255if (maxColor > 255)maxColor = 255;// 获得红色的随机颜色值int red = minColor + random.nextInt(maxColor - minColor);// 获得绿色的随机颜色值int green = minColor + random.nextInt(maxColor - minColor);// 获得蓝色的随机颜色值int blue = minColor + random.nextInt(maxColor - minColor);return new Color(red, green, blue);}}package com.demo.controller;

*/@RequestMapping({"jinghuoGet", "jinghuoEditPre"})public void get(HttpServletResponse response, HttpServletRequest request) throws IOException {Serializable id = Util.decode(request, "id");//取出主键idJinghuo vo = jinghuoService.get(id);response.getWriter().println(com.alibaba.fastjson.JSONObject.toJSONString(vo));}/*** 根据条件查询进货的列表并跳转回页面** @param response* @param request* @throws IOException*/@RequestMapping("jinghuoList")public void list(HttpServletResponse response, HttpServletRequest request) throws IOException {

*/@RequestMapping({"jinghuoGet", "jinghuoEditPre"})public void get(HttpServletResponse response, HttpServletRequest request) throws IOException {Serializable id = Util.decode(request, "id");//取出主键idJinghuo vo = jinghuoService.get(id);response.getWriter().println(com.alibaba.fastjson.JSONObject.toJSONString(vo));}/*** 根据条件查询进货的列表并跳转回页面** @param response* @param request* @throws IOException*/

return true;}//编辑表单提交之前进行检查,如果return false,则不允许提交function editCheck() {//根据ID获取值if (document.getElementById("edit-jinghuoName").value.trim().length == 0) {alert("商品名称不能为空");return false;}if (document.getElementById("edit-jinghuoPrice").value.trim().length == 0) {alert("金额不能为空");return false;}

<%@ taglib uri="/jsp/jstl/core" prefix="c" %><%@ taglib prefix="fn" uri="/jsp/jstl/functions" %><%@ taglib prefix="fmt" uri="/jsp/jstl/fmt" %><!DOCTYPE html><html><head><meta charset="UTF-8"><title>销售管理</title><link rel="stylesheet" href="css/bootstrap.css"><link rel="stylesheet" href="css/main.css"><script src="js/jquery-3.5.1.js"></script><script src="js/bootstrap.js"></script></head><body><nav class="navbar navbar-inverse navbar-fixed-top"><div class="container-fluid"><div class="navbar-header"><button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"><span class="sr-only">服装店门店信息管理系统</span> <span class="icon-bar"></span><span class="icon-bar"></span> <span class="icon-bar"></span></button><a class="navbar-brand" href="#">服装店门店信息管理系统</a></div><div id="navbar" class="navbar-collapse collapse">

<div class="modal-content"><form><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button><h4 class="modal-title">库存</h4></div><div class="modal-body"><table class="table table-striped table-hover" style="font-size: 15px;"><tr><td style="width: 15%;">商品名称:</td><td><b id="info-kuchunName"></b></td></tr><tr><td style="width: 15%;">供应商:</td><td><b id="info-kuchunGong"></b></td></tr><tr><td style="width: 15%;">库存量:</td><td><b id="info-kuchunKucunliang"></b></td></tr><tr><td style="width: 15%;">销量:</td><td><b id="info-kuchunXiaoliang"></b></td></tr>

if (document.getElementById("add-jinghuoShijian").value.trim().length == 0) {alert("进货时间不能为空");return false;}return true;}//编辑表单提交之前进行检查,如果return false,则不允许提交function editCheck() {//根据ID获取值if (document.getElementById("edit-jinghuoName").value.trim().length == 0) {alert("商品名称不能为空");return false;}if (document.getElementById("edit-jinghuoPrice").value.trim().length == 0) {alert("金额不能为空");return false;}if (document.getElementById("edit-jinghuoSulinag").value.trim().length == 0) {alert("数量不能为空");return false;}if (document.getElementById("edit-jinghuoShijian").value.trim().length == 0) {alert("进货时间不能为空");return false;}return true;

<div class="modal-body"><div class="form-group hidden"><label class="control-label">(hidden)</label><input type="text" class="form-control" name="action" value="add"></div><div class="form-group"><label for="add-xiaoshouName" class="control-label">商品:</label><input type="text" class="form-control" name="xiaoshouName" id="add-xiaoshouName"></div><div class="form-group"><label class="control-label">支付方式:</label><input name="xiaoshouZhifufanshi" id="add-xiaoshouZhifufanshi_现金" type="radio" value="现金" checked="checked"/>现金<input name="xiaoshouZhifufanshi" id="add-xiaoshouZhifufanshi_转帐" type="radio" value="转帐"/>转帐</div><div class="form-group"><label class="control-label">支付状态:</label><input name="xiaoshouZhuangtai" id="add-xiaoshouZhuangtai_已支付" type="radio" value="已支付" checked="checked"/>已支付<input name="xiaoshouZhuangtai" id="add-xiaoshouZhuangtai_未支付" type="radio" value="未支付"/>未支付</div><div class="form-group"><label for="add-xiaoshouCount" class="control-label">数量:</label><input type="text" class="form-control" name="xiaoshouCount" id="add-xiaoshouCount">

}/*** 根据条件查询供应商的列表并跳转回页面** @param response* @param request* @throws IOException*/@RequestMapping("supplierList")public void list(HttpServletResponse response, HttpServletRequest request) throws IOException {this.redirectList(request, response);}/*** 跳转到列表页面** @param request* @param response*/private void redirectList(HttpServletRequest request, HttpServletResponse response) throws IOException {//查询列和关键字

</trim><trim prefix="values (" suffix=")" suffixOverrides=","><if test ='id != null'>#{id},</if><if test ='supplierName != null'>#{supplierName},</if><if test ='supplierMan != null'>#{supplierMan},</if><if test ='supplierTel != null'>#{supplierTel},</if><if test ='supplierAddress != null'>#{supplierAddress}</if></trim></insert><!--批量删除--><delete id="doRemoveBatch" parameterType="java.util.Collection">DELETE FROM `t_supplier` WHERE `id` IN<foreach collection="list" item="id" separator="," open="(" close=")">#{id}</foreach></delete><!--修改--><update id="doUpdate" parameterType="com.demo.vo.Supplier">

运行环境

Java≥6、Tomcat≥7.0、MySQL≥5.5

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

技术框架

JavaWeb JavaBean JSP MVC MySQL Tomcat JavaScript Bootstrap Ajax

基础JSP+Servlet或JSP+SSM(Spring、SpringMVC、MyBatis)框架或JSP+SSM+Maven(pom.xml)框架或SpringBoot…均可

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

登录、注册、退出、用户模块、公告模块、供应商模块、商品模块、进货模块、库存盘点、销售模块的增删改查管理

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。