基于javaweb+mysql的农产品水果店销售管理系统
运行环境
Java≥8、MySQL≥5.7、Tomcat≥8
开发工具
eclipse/idea/myeclipse/sts等均可配置运行
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
功能说明
农产品店、水果店等管理产品与销售、进货等信息
技术框架
JavaBean MVC JSP SSM(Spring SpringMVC MyBatis) MySQL EasyUI JavaScript
适用
课程设计,大作业,毕业设计,项目练习,学习演示等
stock.setCreateTime(new Date());
stockList.add(stock);
}
sell.setMoney(money);
sell.setProductNum(num);
User admin = (User)request.getSession().getAttribute("admin");
sell.setOperator(admin.getUsername());
sell.setCreateTime(new Date());
if(sellRebackService.add(sell) <= 0){
ret.put("type", "error");
ret.put("msg", "添加失败,请联系管理员!");
return ret;
}
//进行库存调整操作
<thead>
<tr>
<th field="id" width="103px">ID</th>
<th field="productName" width="103px">商品名称</th>
<th field="price" width="103px">商品价格</th>
<th field="productNum" width="103px">商品数量</th>
<th field="money" width="103px">商品金额</th>
</tr>
</thead>
</table>
</div>
<%@include file="../common/footer.jsp"%>
<!-- End of easyui-dialog -->
<script type="text/javascript">
/**
* 添加记录
*/
function add(){
var selectedProducts = $("#selected-product-datagrid").datagrid('getData').rows;
if(selectedProducts.length <= 0){
continue;
}
//追加新的
$("#selected-product-datagrid").datagrid('appendRow',{
id:item[i].id,
name:item[i].name,
price:item[i].price,
productNum:1
})
}
$('#show-product-dialog').dialog('close');
}
}, {
text: '取消',
}
/**
* Name 打开添加窗口
*/
function openAdd(){
//$('#add-form').form('clear');
$('#add-dialog').dialog({
closed: false,
modal:true,
title: "添加商品信息",
buttons: [{
text: '确定',
iconCls: 'icon-ok',
handler