进销存管理系统的开发(进销存管理系统的开发环境)

进销存管理系统的功能需求:

1,实现采购订单的持久化,对采购商品入库处理,还有就是采购的退货处理;

2,实现商品的入库、出库操作,查询商品的库存信息,修改商品的仓库号

3,实现销售订单的添加,销售发货处理,并且销售的退货处理

4,实现新建员工培训信息和查询员工培训记录功能

5,实现对商品、供应商、客户资料的管理,对员工用户的管理,最重要的是对系统数据的备份和恢复

代码的截图如下所示:

进销存管理系统的开发(进销存管理系统的开发环境)

系统的截图如下所示:

进销存管理系统的开发(进销存管理系统的开发环境)

进销存管理系统的开发(进销存管理系统的开发环境)

进销存管理系统的开发(进销存管理系统的开发环境)

进销存管理系统的开发(进销存管理系统的开发环境)

进销存管理系统的开发(进销存管理系统的开发环境)

bean层manage的代码如下所示:

package com.xu.bean;

import javax.persistence.Column;

import javax.persistence.Entity;

import javax.persistence.GeneratedValue;

import javax.persistence.GenerationType;

import javax.persistence.Id;

import javax.persistence.Table;

import org.springframework.stereotype.Component;

/**

*

* @author 公众号:springmeng

*管理员

*id:管理员编号

*name:管理员名字

*password:登录密码

*gender:性别

*age:年龄

*phone number:手机号码

*deptId:部门id

*/

@Entity

@Table(name = "managers")

@Component

public class Managers {

@Id

@GeneratedValue(strategy=GenerationType.AUTO)

@Column(name="managers_id")

private Long id;

@Column(name="managers_name")

private String name;

@Column(name="managers_password")

private String password;

@Column(name="managers_gender")

private String gender;

@Column(name="managers_age")

private Long age;

@Column(name="managers_phonenumber")

private String phonenumber;

/*@ManyToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY,optional=false,targetEntity=Dept.class)

@JoinColumn(name="dept_name")

private String deptName;*/

public Long getId() {

return id;

}

public void setId(Long id) {

this.id = id;

}

public String getName() {

return name;

}

public void setName(String name) {

this.name = name;

}

public String getPassword() {

return password;

}

public void setPassword(String password) {

this.password = password;

}

public String getGender() {

return gender;

}

public void setGender(String gender) {

this.gender = gender;

}

public String getPhonenumber() {

return phonenumber;

}

public void setPhonenumber(String phonenumber) {

this.phonenumber = phonenumber;

}

public Long getAge() {

return age;

}

public void setAge(Long age) {

this.age = age;

}

/*public String getDeptName() {

return deptName;

}

public void setDeptName(String deptName) {

this.deptName = deptName;

}*/

}

Mananger的代码如下所示:

package com.xu.service;

import java.util.List;

import com.xu.bean.Employee;

import com.xu.bean.Managers;

import com.xu.bean.Message;

import com.xu.bean.PurchaseItem;

import com.xu.bean.PurchaseOrder;

import com.xu.exception.ServiceException;

public interface ManagerService {

public int register(Managers manager)throws ServiceException;

public Managers login(String name,String password)throws ServiceException;

public int addPurchaseOrder(PurchaseOrder purchase,List<PurchaseItem> purchaseItem)throws ServiceException;

public List<PurchaseOrder> findAllPurchaseOrder()throws ServiceException;

public List<PurchaseOrder> findPurchaseOrderByPage(int currentPage)throws ServiceException;

public Long findPurchaseOrderCount()throws ServiceException;

public Long getTotalPage()throws ServiceException;

public PurchaseOrder delOrderByPurchaseId(Long orderId)throws ServiceException;

public List<PurchaseItem> delPurchaseItemByPurchaseId(Long orderId)throws ServiceException;

public List<PurchaseItem> findPurchaseItemByPurchaseOrderId(Long orderId)throws ServiceException;

public String findFlagByOrderId(Long orderId)throws ServiceException;

public int updateFlagByOrderId(String string, Long orderId)throws ServiceException;

public Employee employeelogin(String name, String password)throws ServiceException;

public int employeeregister(Employee employee)throws ServiceException;

public int updateStockByReturnPurchaseItem(List<PurchaseItem> purchaseItem)throws ServiceException;

public Employee updateEmplyeeByName(Employee employee)throws ServiceException;

public Managers updateManagersByName(Managers managers)throws ServiceException;

public Long findMessageCount()throws ServiceException;

public List<Message> findAllMessage()throws ServiceException;

public Message findMessageById(Long id)throws ServiceException;

public int updateEmployeeById(Long id)throws ServiceException;

public List<Message> findMessageByPage(int i)throws ServiceException;

public Long getMessageTotalPage()throws ServiceException;

public Long findMessageCounts()throws ServiceException;

欢迎转发,点击了解更多可获取项目相关文件。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

(0)
上一篇 2024年4月29日 上午11:39
下一篇 2024年4月29日 上午11:50

相关推荐