JAVA appliance sales management system under the framework of SSM

Recently we learned about project management system appliance sales, appliance sales recorded at the project management system on this platform, when using or learning again to facilitate future can timely read. In the completion of this project, considering a lot of the framework. The final decision to use SSM (MYECLIPSE), the frame is extremely portable, multi-platform, ease of operability and so on. This framework can write and run in perfect MYECLIPSE development tools, home appliances sales management system project as a background. Description of the project is this: With the popularity of computer technology and the rapid development of computer technology, more and more computer applications in product management. Merchandise sales management is an important commodity management, sales management approach not only traditional burdensome complex and inefficient. Appliance sales management to promote automation appliance companies and major home appliance stores, sales management, paperless mode of operation. The rapid development of Internet technology has also led to the development of related applications, especially wide range of computer applications. People work, live, play and learn are inseparable from the computer. The combination of computer and Internet technology is changing the way people live, sales management system is born in this environment, people changed the traditional sales management through the computer and the Internet, electrical sales management system is an innovative computer applications, to merchandise inventory management by computer, become a common way of carrying out the process of commodity trading. Traditional commodity management model is through artificial commodity management, but now our manufacturers are to carry out intelligent management of goods through the computer, the use of electrical sales management system to more effectively manage commodity sales, improve work efficiency, reduce management costs. Appliance sales management system is a typical application of management information system, its design and development mainly consists of two aspects: first, the establishment and maintenance of background database, which is mainly to establish a safe, reliable, complete database data; secondly is the development of front-end applications, the need to build a fully functional front-end application program easy to use, low operating costs.
When home appliances sales management system project needs analysis, obtained the system login roles include the user. Corresponding to the user can be carried out into the system by logging into your account. Systems have different privileges for different roles.
There is any relationship between the product system, we will save their relationship in the Orders table. Their relationship is leixing field corresponds to this type of product orders, order price and product jiage corresponding field.

The summary results for all data systems: the administrator (admin), user (yonghu), product (chanpin), orders (dingdan), inventory (kucun)

Administrators table

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | administrator the above mentioned id 
username |  VARCHAR ( 255 ) |  | account 
password |  VARCHAR ( 255 ) |  | password 
quanxian |  VARCHAR ( 255 ) |  | rights

 

user table

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | administrator the above mentioned id 
username |  VARCHAR ( 255 ) |  | account 
password |  VARCHAR ( 255 ) |  | password 
quanxian |  VARCHAR ( 255 ) |  | rights

 

Product Table

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | administrator the above mentioned id 
username |  VARCHAR ( 255 ) |  | account 
password |  VARCHAR ( 255 ) |  | password 
quanxian |  VARCHAR ( 255 ) |  | rights

 

Orders table

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | administrator the above mentioned id 
username |  VARCHAR ( 255 ) |  | account 
password |  VARCHAR ( 255 ) |  | password 
quanxian |  VARCHAR ( 255 ) |  | rights

 

Inventory Table

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | administrator the above mentioned id 
username |  VARCHAR ( 255 ) |  | account 
password |  VARCHAR ( 255 ) |  | password 
quanxian |  VARCHAR ( 255 ) |  | rights

 

 

Field Name | Type | property | describe 
the above mentioned id |  INT ( 11 ) |  PRIMARY  KEY  | administrator the above mentioned id 
username |  VARCHAR ( 255 ) |  | account 
password |  VARCHAR ( 255 ) |  | password 
quanxian |  VARCHAR ( 255 ) |  | rights

 

 

Modify Inventory module:

Click the Edit button, you can jump to the page modify inventory. In stock modify the page, the inventory will initialize all of the information, and information correspond to the corresponding edit field is filled. After editing inventory information, page by encapsulating the data post method is a physical inventory, passed into the kucunController. In xiugaikucun the reception, after reception is completed, the call updateByPrimaryKeySelective method kucunMapper modified. The part of the code as follows:

Corresponding modified stock kucundao.updateByPrimaryKeySelective (kucun) by modifying the method according to the id of kucundao;

The successful modify inventory information is saved to the message request, the user is given prompt request.setAttribute in the page ( "message", "modify inventory information successfully");

Return inventory management interface

return "forward:/kucunguanli.action";

Delete Inventory module:

By a label, shanchukucun the page? Id = id will be passed to the background, receive inventory id by shanchukucun. Use of deleteByid

Remove the inventory, complete the deletion. Delete the definition of a successful message, delete inventory success, and saved to the request, the part of the code is as follows:

Kucundao.deleteByPrimaryKey deletes the corresponding stock (id) id by removing method according to the kucundao;

Success will delete inventory information, save it to request the message, the user is given prompt request.setAttribute in the page ( "message", "delete inventory success");

Return inventory management interface

return "forward:/kucunguanli.action";

Guess you like

Origin www.cnblogs.com/rt14/p/11579447.html