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 PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 20
- 238000013461 design Methods 0.000 title claims abstract description 16
- 238000005516 engineering process Methods 0.000 claims abstract description 20
- 230000002085 persistent effect Effects 0.000 claims abstract description 13
- 239000011248 coating agent Substances 0.000 claims abstract description 8
- 238000000576 coating method Methods 0.000 claims abstract description 8
- 230000008569 process Effects 0.000 claims abstract description 8
- 230000002452 interceptive effect Effects 0.000 claims abstract description 5
- 230000002688 persistence Effects 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 claims 1
- 238000011161 development Methods 0.000 abstract description 6
- 238000013459 approach Methods 0.000 abstract description 2
- 230000003993 interaction Effects 0.000 abstract description 2
- 238000012795 verification Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 6
- 230000018109 developmental process Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 235000010627 Phaseolus vulgaris Nutrition 0.000 description 1
- 244000046052 Phaseolus vulgaris Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000000875 corresponding effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000033772 system development Effects 0.000 description 1
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
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
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.
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)
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 |
-
2009
- 2009-07-15 CN CNA200910041139XA patent/CN101604240A/en active Pending
Cited By (11)
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 | |
Viennot et al. | Synapse: a microservices architecture for heterogeneous-database web applications | |
CN100594498C (en) | Mass data real time processing structure and real time need-based processing platform used for the structure | |
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 | |
US20150160928A1 (en) | Business object model layer interface | |
US20140019429A1 (en) | Downtime reduction for lifecycle management events | |
WO2019047441A1 (en) | Communication optimization method and system | |
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 | |
CN102034152A (en) | SOA (Service Oriented Architecture) based heterogeneous software system data integration method and system | |
CN105354328A (en) | System and method for solving concurrent access conflict of NoSQL database | |
CN102646232A (en) | High concurrence enterprise integrated application system | |
US20110246250A1 (en) | Simulation of supply chain plans using data model | |
CN102929619A (en) | Process automation software development system across hardware 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 | |
CN103246517A (en) | Method for smart client programs to invoke web services to achieve database transaction persistence | |
US20140180742A1 (en) | Selective locking of business object data structures |
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 |