CN101604240A - A kind of design method of purchase-sell-stock management system based on MVC - Google Patents

A kind of design method of purchase-sell-stock management system based on MVC Download PDF

Info

Publication number
CN101604240A
CN101604240A CNA200910041139XA CN200910041139A CN101604240A CN 101604240 A CN101604240 A CN 101604240A CN A200910041139X A CNA200910041139X A CN A200910041139XA CN 200910041139 A CN200910041139 A CN 200910041139A CN 101604240 A CN101604240 A CN 101604240A
Authority
CN
China
Prior art keywords
purchase
management system
sales
inventory management
mvc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA200910041139XA
Other languages
Chinese (zh)
Inventor
罗笑南
刘宁
杨彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sun Yat Sen University
National Sun Yat Sen University
Original Assignee
National Sun Yat Sen University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by National Sun Yat Sen University filed Critical National Sun Yat Sen University
Priority to CNA200910041139XA priority Critical patent/CN101604240A/en
Publication of CN101604240A publication Critical patent/CN101604240A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a kind of development approach of the purchase, sales and inventory management system based on MVC, specifically, disclose the combination of the application of a kind of utilization some main flow Java EE now, finished the design to purchase, sales and inventory management system, it belongs to the software system design field.This method key step comprises: 1) enable the framework of Struts MVC2.0 as total system; 2) expansion four coating systems framework theories are incorporated into persistent layer in traditional purchase, sales and inventory management system; 3) the AJAX technology is incorporated in the purchase, sales and inventory management system, AJAX adopts the asynchronous interactive process, thereby eliminated the shortcoming of the processing-wait-processing-wait in the network interaction process, AJAX introduces an intermediary between user and server, further promote the page to present and the separating of data, provide partial page to load to refresh, function such as system verification.

Description

A kind of design method of purchase-sell-stock management system based on MVC
Technical field
The design to purchase, sales and inventory management system is finished in the combination of the application (comprising Struts MVC2.0, Hibernat, AJAX) of utilization of the present invention some main flow Java EE now, and it belongs to the software system design field.Specifically belong to a kind of design method of purchase-sell-stock management system based on MVC.
Background technology
The MVC framework
MVC is a kind of Design Mode, and forcibly the input of application program, processing, output separately, MVC is divided into MVC Model 1 and Model 2 for it.
MVC is divided into three parts:
Model (Model): the storage of the state of abstract system application function, package system, the method that the using system function is provided and path, management data and consistance, notice associated component when data change.When system state changes the notice view, the response view status poll, the manipulating approach to controller is provided;
Controller (Controller): the meaning of one's words of the incident of abstract user and system is shone upon, user's input is mapped to system event, imports the suitable video data of each context situation selection according to the user.Accept user request, call suitable models treated user's request, give suitable view with result and show;
View (View): abstract data represents that expression is at the data consistency of user's data, maintenance and model.The data of display model, accept the Data Update notice of model and upgrade view, the data of accepting user's input send controller to.
The Hibernate technology introduction
Hibernate is the Object Relation Mapping framework, and it has carried out relevant encapsulation to JDBC, makes things convenient for developer's development, and it can come the development data storehouse with OO method.Hibernate plays the effect of exchanges data between application system and database, the effect of performance ORM middleware.Hibernate is encapsulated in hibernate.properties or the hibernate.cfg.xml file with the configuration information that is connected of database, and Object Relation Mapping work relies on the ORM mapped file to realize.
The Ajax technology introduction
AJAX (Asynchronous JavaScript and XML), it promptly is the abbreviation of asynchronous JavaScript and XML, its technology is one of core of Web2.0, be the comprehensive of multiple technologies, it is a kind of utilization JavaScript and extend markup language, make the technology that can transmit or receive data between web browser and the server, thereby realize that the user asks for instructions and server response asynchronization.Because the AJAX technology applies in the browser, make the partial information of asking for meeting become possibility, thereby can realize the requirement of refreshed web page local content to server, do not need to refresh full page.
With regard to small-sized purchase, sales and inventory management system Application and Development, using traditional three coating systems frameworks is not can not, but use for big-and-middle-sized goods entry, stock and sales system development, problem is exactly very serious, such as fetching data in the tables of data that has tens fields, write a plurality of statements of getting, thereby increase workload greatly, and caused loaded down with trivial details code, greatly reduce rate of code reuse.
Adopted JDBC to realize mostly for traditional purchase, sales and inventory management system three coating systems frameworks.Therefore,, very be necessary to introduce the Hibernate technology, realize the operation of persistent layer and persistence for the optimization and the stable operation of better realization purchase, sales and inventory management system.After having introduced persistent layer, by having encapsulated used operation to database, from but one deck of specially database being operated is responsible for the logical layer of persistence work specially.Realized expansion from traditional three-decker (presentation layer, Business Logic, database layer) to four-layer structure (presentation layer, Business Logic, persistent layer, database layer).
Summary of the invention
The present invention has overcome the deficiencies in the prior art, has proposed a kind of design method of purchase-sell-stock management system based on MVC.Make that the total system layer of structure is clearly demarcated, clear logic maintains easily and updating and management simultaneously.
1) expansion four coating systems framework theories
Four layer architectures of introducing persistent layer as shown in Figure 3.
Four coating systems frameworks are specifically divided the work:
Presentation layer: receive client user's form data, and submit to Business Logic and handle, the result after the feedback processing also represents to the user;
Business Logic: receive the subscriber's meter forms data that presentation layer is submitted to, and carry out the corresponding service logical layer and handle, or extract data by persistent layer and process, the result is submitted to persistent layer and feeds back presentation layer;
Operations such as persistent layer: Insert, Delete, Update, Search, Object Relation Mapping, connection pool, transaction management;
Database layer: ORACLE, DB2, SYBASE, SQL SERVER, MYSQL.
2) the AJAX technology is incorporated into purchase, sales and inventory management system
Traditional purchase, sales and inventory management system exists following problem:
A. when load was heavier, the response time was very long, even the response time is long, and server informs that the page is unavailable;
B. the partial data refresh function can't be realized, full page can only be loaded;
C. the user always waiting for server fetch data, user experience is unfriendly;
D. can't further promote the page to present and the separating of data.
With adopting the AJAX technology of asynchronous interactive process to be incorporated in the purchase, sales and inventory management system, eliminated the shortcoming of the processing-wait-processing-wait in the network interaction process.User's browser has loaded the AJAX engine when executing the task.Call the user action that the AJAX engine replaces producing a HTTP by Javascript, realize data edition, data check in the internal memory, these demands that do not need to be written into again full page can be given AJAX and be carried out.AJAX introduces an intermediary between user and server, further promote the page to present and the separating of data, realized partial page load refresh, function such as system verification.
3) enabled the Struts framework
The Struts MVC2.0 framework that is adopted in the present invention provides two unrivaled functions: page navigation and JSP tag library, and because it is the framework of increasing income, so well arranged, clear logic, easy to use and maintenance.
A kind of design method of purchase-sell-stock management system of the present invention based on MVC, concrete steps are as follows:
(1) enables the framework of Struts as total system;
(2) expansion four coating systems framework theories are incorporated into persistent layer in traditional purchase, sales and inventory management system;
(3) the AJAX technology is incorporated in the purchase, sales and inventory management system, the asynchronous interactive process of utilizing AJAX itself from user's input in batches submit to server.
The invention has the beneficial effects as follows: the meaning of this invention draws combination advantage and development mode that is applicable to medium-sized system of various technology by various technological synthesiss are applied in the purchase, sales and inventory management system.Embody some drawbacks and the huge advantage of these new technologies in the project exploitation of traditional development mode with this.
Description of drawings
Fig. 1 is based on the purchase, sales and inventory management system design flow diagram of MVC;
Fig. 2 is a Struts MVC2.0 hierarchy chart;
Fig. 3 is based on the purchase, sales and inventory management system hierarchy chart of MVC.
Embodiment
Further introduce below in conjunction with accompanying drawing.
Thought of the present invention is: at first making up the total system framework with Struts MVC2.0, on the basis of MVC pattern, further expand simultaneously, become four coating systems frameworks, come responsible persistence specially with the ORM layer to database, make service logic and database manipulation well realize separating, make things convenient for the programmer to write code, realize more effective code readability and reusability.In addition, by the use of AJAX technology, solve the problem that partial page refreshes.
As shown in Figure 1, the purchase, sales and inventory management system architecture design key step based on MVC comprises:
1, enables the framework of Struts MVC2.0 as total system
As shown in Figure 2, according to the standard of Struts MVC2.0 with total system be divided into following which floor:
1) purchase, sales and inventory management system presentation layer
The JSP page (as the registration login page of purchase, sales and inventory management system, produce a mouthful browsing pages, background page etc.), relevant HTML, ActionForm Bean (depositing member's list BeanMemberForm of management system as pin);
2) purchase, sales and inventory management system key-course
ActionServlet is used for realizing master control and calling function, and forwarding capability.The Struts-config.xml configuration file, the system configuration of being correlated with;
3) purchase, sales and inventory management system Business Logic
Comprise various Action classes, AjaxBean class, BaseAction class etc., finish the business logical operation of purchase, sales and inventory management system, as: user's registration, products browse, Product Renewal, the business processing of stocking up, order business processing etc.;
4) purchase, sales and inventory management system database layer
What purchase, sales and inventory management system adopted is the MySql database, deposits the form of relevant database;
2, on the basis of Struts MVC2.0, persistent layer is incorporated in the architectural framework of purchase, sales and inventory management system, as shown in Figure 3
This level specifically can be divided into following two subhierarchies again:
The DAO layer: various DAO interfaces, serve the AdminService.java interface as the keeper of purchase, sales and inventory management system, the realization of various DAO interfaces is as the CartServiceImp1 class of purchase, sales and inventory management system;
ORM layer: comprise that relevant hibemate.cfg.xml configuration file, relevant ORM mapped file (as Admin.hbm.xml) are realized and the independently encapsulation operation of database;
3, the AJAX technology is incorporated in the purchase, sales and inventory management system
The AJAX technology is incorporated in the purchase, sales and inventory management system, and AJAX adopts the asynchronous interactive process, and user's browser loads the AJAX engine when executing the task.AJAX engine JavaScript language compilation, call the user action that the AJAX engine replaces producing a HTTP by Javascript, realize data edition, data check in the internal memory, and these demands that do not need to be written into again full page can be given AJAX and carried out.

Claims (4)

1, a kind of design method of purchase-sell-stock management system based on MVC is characterized in that its key step comprises:
1) enables the framework of Struts as total system;
2) expansion four coating systems framework theories are incorporated into persistent layer in traditional purchase, sales and inventory management system;
3) the AJAX technology is incorporated in the purchase, sales and inventory management system, the asynchronous interactive process of utilizing AJAX itself from user's input in batches submit to server.
2, according to the described design method of purchase-sell-stock management system based on MVC of claim 1, the Struts framework that it is characterized in that in the step 1) being enabled is the system framework of MVC2.0.
3, according to the described design method of purchase-sell-stock management system of claim 1, it is characterized in that step 2 based on MVC) described in persistent layer to introduce be to rely on to introduce the Hibernate technology, realize that persistent layer and persistence operate.
4, according to the described design method of purchase-sell-stock management system of claim 1 based on MVC, it is characterized in that to realize in the traditional purchase, sales and inventory management system of step 3) the asynchronous transmission between client and the server, and after being incorporated into the AJAX technology in the purchase, sales and inventory management system, realized this function.
CNA200910041139XA 2009-07-15 2009-07-15 A kind of design method of purchase-sell-stock management system based on MVC Pending CN101604240A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA200910041139XA CN101604240A (en) 2009-07-15 2009-07-15 A kind of design method of purchase-sell-stock management system based on MVC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA200910041139XA CN101604240A (en) 2009-07-15 2009-07-15 A kind of design method of purchase-sell-stock management system based on MVC

Publications (1)

Publication Number Publication Date
CN101604240A true CN101604240A (en) 2009-12-16

Family

ID=41469983

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA200910041139XA Pending CN101604240A (en) 2009-07-15 2009-07-15 A kind of design method of purchase-sell-stock management system based on MVC

Country Status (1)

Country Link
CN (1) CN101604240A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063306A (en) * 2011-01-06 2011-05-18 夏春秋 Technical implementation method for application development through electronic form
CN103488534A (en) * 2013-09-23 2014-01-01 浪潮集团山东通用软件有限公司 Method for enabling business logic layer to feed back control information to presentation layer
CN103885780A (en) * 2014-03-28 2014-06-25 深圳创维-Rgb电子有限公司 Website development method and server
CN104270403A (en) * 2014-09-01 2015-01-07 江苏西贝电子网络有限公司 Cloud platform information web monitoring system based on struts2 framework
CN104685466A (en) * 2012-08-09 2015-06-03 谷歌公司 Browser-level background page for providing multiple views
CN106709616A (en) * 2015-11-16 2017-05-24 上海剑虹信息科技有限公司 Information management method and information management system
CN109088760A (en) * 2018-08-09 2018-12-25 中国建设银行股份有限公司 A kind of distributed information system of building
CN109584106A (en) * 2018-11-29 2019-04-05 成都合盛智联科技有限公司 A kind of wisdom cell serves end system
CN110321355A (en) * 2019-07-12 2019-10-11 杭州美巴科技有限公司 A kind of adaptive partial query field system and execute method

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102063306A (en) * 2011-01-06 2011-05-18 夏春秋 Technical implementation method for application development through electronic form
CN104685466A (en) * 2012-08-09 2015-06-03 谷歌公司 Browser-level background page for providing multiple views
CN104685466B (en) * 2012-08-09 2018-01-23 谷歌公司 For providing the browser level background pages of multiple views
US10303750B2 (en) 2012-08-09 2019-05-28 Google Llc Browser-level background page for providing multiple views
CN103488534A (en) * 2013-09-23 2014-01-01 浪潮集团山东通用软件有限公司 Method for enabling business logic layer to feed back control information to presentation layer
CN103885780A (en) * 2014-03-28 2014-06-25 深圳创维-Rgb电子有限公司 Website development method and server
CN104270403A (en) * 2014-09-01 2015-01-07 江苏西贝电子网络有限公司 Cloud platform information web monitoring system based on struts2 framework
CN106709616A (en) * 2015-11-16 2017-05-24 上海剑虹信息科技有限公司 Information management method and information management system
CN109088760A (en) * 2018-08-09 2018-12-25 中国建设银行股份有限公司 A kind of distributed information system of building
CN109584106A (en) * 2018-11-29 2019-04-05 成都合盛智联科技有限公司 A kind of wisdom cell serves end system
CN110321355A (en) * 2019-07-12 2019-10-11 杭州美巴科技有限公司 A kind of adaptive partial query field system and execute method

Similar Documents

Publication Publication Date Title
CN101604240A (en) A kind of design method of purchase-sell-stock management system based on MVC
US7774463B2 (en) Unified meta-model for a service oriented architecture
CN100594498C (en) Mass data real time processing structure and real time need-based processing platform used for the structure
Viennot et al. Synapse: a microservices architecture for heterogeneous-database web applications
US9870202B2 (en) Business object model layer interface
US20140026114A1 (en) Layering of business object models via extension techniques
US8635253B2 (en) Decorated model architecture for efficient model-driven application development
EP2386965A1 (en) Performing complex operations in a database using a semantic layer
US20140019429A1 (en) Downtime reduction for lifecycle management events
US8881127B2 (en) Systems and methods to automatically generate classes from API source code
US20120102414A1 (en) Distributed controller of a user interface framework for web applications
WO2019047441A1 (en) Communication optimization method and system
CN102034152A (en) SOA (Service Oriented Architecture) based heterogeneous software system data integration method and system
CN102646232A (en) High concurrence enterprise integrated application system
CN105354328A (en) System and method for solving concurrent access conflict of NoSQL database
US20110246250A1 (en) Simulation of supply chain plans using data model
CN102929619A (en) Process automation software development system across hardware platform
CN103488794A (en) Method for Web realization of operation of databases with any properties
Zhang et al. Research on producer service innovation in home-textile industrial cluster based on cloud computing platform
CN202736109U (en) High-concurrency enterprise concentrated application system
US9785894B2 (en) Simulation of supply chain plans using web service
Zhang et al. The application of domain-driven design in NMS
Wang Application of lightweight software framework based on SSH
Gharehchopogh et al. A three-layer architecture based approach for data access layer in the information systems production
CN112966039B (en) Front-end and rear-end separation execution method based on ETL engine

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20091216