CN107346242A - A kind of MVC frame systems for being applied to HybridAPP exploitations based on AppCan - Google Patents

A kind of MVC frame systems for being applied to HybridAPP exploitations based on AppCan Download PDF

Info

Publication number
CN107346242A
CN107346242A CN201710333125.XA CN201710333125A CN107346242A CN 107346242 A CN107346242 A CN 107346242A CN 201710333125 A CN201710333125 A CN 201710333125A CN 107346242 A CN107346242 A CN 107346242A
Authority
CN
China
Prior art keywords
page
appcan
hybridapp
logic
framework
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
CN201710333125.XA
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.)
SUZHOU WUYUAN NETWORK TECHNOLOGY Co.,Ltd.
Original Assignee
Nanjing Kai Kai Network Technology Co Ltd
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 Nanjing Kai Kai Network Technology Co Ltd filed Critical Nanjing Kai Kai Network Technology Co Ltd
Priority to CN201710333125.XA priority Critical patent/CN107346242A/en
Publication of CN107346242A publication Critical patent/CN107346242A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/313Logic programming, e.g. PROLOG programming language
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/101Collaborative creation, e.g. joint development of products or services

Abstract

The invention discloses a kind of MVC frame systems for being applied to HybridAPP exploitations based on AppCan, realized suitable for the development environment of AppCan IDE above versions, and using MVC pattern, this framework includes:Controller layer for processing business logic;For the model layer handled with database, for the view layer of display data;Unique file presss from both sides;And this framework start page, the underlying mechanisms and logic of the system framework are realized by BaseController.js modules and BaseView.js modules, and excite loading by start page.The present invention realizes portal page and loads whole framework, the function that all control logics, service logic, page logic are all handled by this framework, and all readjustment paths are encapsulated in bottom, make whole system clear logic, will not be chaotic.The modularization of systemic-function is so also allowed for, is easy to more people to share out the work and help one another.

Description

A kind of MVC frame systems for being applied to HybridAPP exploitations based on AppCan
Technical field
The invention belongs to IT technical fields, more particularly to suitable for based on AppCan framework Hybrid App (including: Android, IOS etc.) development system.
Background technology
Have benefited from HTML5 power and fast development, Hybrid APP gradually intimately get up these years.Emerge in large numbers each Kind Hybrid APP frameworks, AppCan is exactly a relatively successful framework for domestic independent development.
Find that the framework has many defects in practical application.The page system that neither one is fixed first, present, logic Mixed with data, confusion is brought to page development.Secondly, the limitation of Plugin Mechanism causes paging and process to adjust Degree mechanism is chaotic.Finally, can not be by function, page division module, and carry out more people's development managements.Cause the side of the reason for such one Face is relevant with the AppCan intended application being directed to, and its intended application is based on content display type, for the service logic of complexity And it is bad at.On the other hand relevant with its developing stage, AppCan frameworks are also in gradual developing stage at present.
AppCan Hybrid App's relies on the realization of js language.It is many different from the language MVC such as JAVA .NET frameworks More, JS language is very flexible, and framework is few, and the MVC frameworks under especially AppCan almost do not have.
The content of the invention
The problem of existing for prior art, the invention provides a kind of HybridAPP that is applied to based on AppCan to develop MVC frame systems, realize portal page and load whole framework, all control logics, service logic, page logic are all by this The function of framework processing;All readjustment paths are encapsulated in bottom in the present invention simultaneously, allow each action to follow identical readjustment Mechanism, it is whole system clear logic, will not be chaotic.The modularization of systemic-function is so also allowed for, is easy to more people to share out the work and help one another.
In order to solve the above technical problems, present invention employs following technical scheme:It is a kind of to be applied to based on AppCan The MVC frame systems of HybridAPP exploitations, including:Controller layer for processing business logic;For being handed over database Mutual model layer, for display data and and user mutual view layer;Include the independence of js, css, picture file for depositing File;And this framework start page index.html, the underlying mechanisms and logic of the system framework pass through BaseController.js modules and BaseView.js modules are realized, and excite loading by index.html start pages.
Further, the view layer storage includes file corresponding to all page Show Styles and page logic part.
Further, the controller layer preserves everything and action callback method corresponding to the page or systemic-function.
Further, the model layer storage page or the data processing of systemic-function and business model processing.
Further, the BaseController.js modules are used for the dynamic load for realizing every other business module, And factory mode is used, the factory mode is that controller layer only triggers the currently used movement controller of instantiation.
Further, the business hours for the page triggering that the BaseView.js modules are mainly realized calls key-course The processing for the result that flow and key-course return.
Beneficial effect:Relative to prior art, the present invention has advantages below:Solve AppCan control logics and readjustment Logical miss problem;Solves the separation problem of AppCan control logics, mathematical logic, page logic;It is more to solve AppCan The problem of people shares out the work and helps one another;Solve the problems, such as AppCan code reuses and maintenance upgrade.
Brief description of the drawings
Fig. 1 is the frame diagram of the MVC frame systems of the present invention that be applied to HybridAPP exploitations based on AppCan;
Fig. 2 is the workflow diagram of the MVC frame systems of the present invention that be applied to HybridAPP exploitations based on AppCan;
Fig. 3 is login page of the present invention in the system framework run time call schematic flow sheet.
Embodiment
Below in conjunction with the accompanying drawings and with specific embodiment, the present invention is furture elucidated.It should be understood that these embodiments are only used for The bright present invention rather than limitation the scope of the present invention, after the present invention has been read, those skilled in the art are to the present invention's The modification of the various equivalent form of values falls within the application appended claims limited range.
As shown in figure 1, the MVC frame systems for being applied to HybridAPP exploitations based on AppCan of the present invention, are applied to The development environment of the versions of AppCan IDE more than 4.0, and realized using MVC pattern, the bibliographic structure and vital document of this framework Composition include:
(1) controller layer, for processing business logical layer (corresponding controller catalogues);
(2) model layer, for being handled with database (corresponding models catalogues);
(3) view layer, for showing the layer of data (corresponding views catalogues);
File corresponding to all page Show Styles, page logic part is all stored under views catalogues.Each page or Everything corresponding to systemic-function and the callback method of the action, typically realize, and be put into a file Under controller catalogues.The data processing of the single page or function and business logic processing, which are all stored in, does a models text In part, and it is stored under models catalogues, includes the operation of database and file;
(4) file such as js, css of HTML5 page layers, picture is individually stored in alternative document folder;
(5) index.html is the start page of AppCan loading application systems, and the start page of this framework, entirely The underlying mechanisms and logic of framework realize that this two files are also in BaseController.js and BaseView.js respectively By index.html loadings.
All control logics, service logic, page logic are all handled by this framework in the present invention.Necessarily cause substantial amounts of The loading of class or example, consume huge resource and do not say, the callback mechanisms of AppCan in itself also begin to confusion.Asked to solve this Topic, invention defines a base control page, in this page all controller Bean factories used.Batch production is Use which controller just instantiates which controller, so solve plug-in unit itself confusion caused by repeatedly calling, Solve more people's sub-module exploitations again, improve efficiency.
And the dynamic load to every other business module is realized in BaseController modules, using factory Pattern, rather than similar java succession.Mainly realize that the business hours of page triggering calls the stream of key-course in BaseView The processing for the result that journey and key-course return.All Service Processing Module xxModel.js inherit BaseModel.js.Should YDCDB modules are integrated with basic module, YDCDB modules are the encapsulation to database manipulation.
As shown in Fig. 2 the system handling process is as follows:It is inherited from BaseView page invocation BaseView's BaseControllerTrigger methods, the specific method corresponding to triggering in Controller, model side corresponding to calling Method, processing business logic, after the completion of adjust back corresponding Controller result processing method.Corresponding Controller, which has been handled, to be returned After returning result, the controllerReturn methods in BaseController are called, return to BaseView.In BaseView BaseControllerReturn methods are called to return the result of controller layers according to the CB parameters of view layer transmission Back to the corresponding Veiw pages, the returning result of the page processing action of trigger action.The execution of whole framework is described in figure Process, if the action for thering is the page to set out, by the distribution of controller, controller corresponding to calling and business logic processing mould Block, finally result one-level level is returned, the place for the action that is finally returned to set out, complete final process.To be handed over bottom Exemplified by mutual method, the implementation process citing of the method important to some:
As shown in figure 3, call flow when being run again with typical login page in the system framework below is said It is bright:For example, in view layer write request method and callback method, the register of user name and password is realized.
The present invention shows the page, control logic, service logic separate, i.e. view, control by MVC architecture thought Device processed, model.Develop the AppCan applications for meeting this framework, it is necessary to solve problems with:
(1) portal page loads whole framework.Because this framework is on AppCan frameworks, so in AppCan entrance This framework is loaded in the page.Invention defines a basic page index.html, AppCan first loads the page when starting, For initializing and running this framework.
(2) in the present invention, all control logics, service logic, page logic are all handled by this framework.Necessarily cause The loading of substantial amounts of class or example, consumes huge resource and does not say, the callback mechanisms of AppCan in itself also begin to confusion.To solve This problem, invention defines a base control page, in this page all controller Bean factories used.Factory Change and use which controller just instantiates which controller, so solve plug-in unit itself and mixed caused by repeatedly calling Disorderly, more people's sub-module exploitations are solved again, improve efficiency.
(3) after basic page loading, any one action is all by the page or system trigger, for can use for code Property, durability, readability, action somewhere trigger, its result treatment should just return to where, this just height according to Rely complete callback mechanism.All readjustment paths are encapsulated in bottom in the present invention, allows each action to follow identical and returns Tune mechanism, it is whole system clear logic, will not be chaotic.The modularization of systemic-function is so also allowed for, is easy to more people to divide the work Cooperation.

Claims (6)

1. a kind of MVC frame systems for being applied to HybridAPP exploitations based on AppCan, including:For processing business logic Controller layer;For the model layer interacted with database, for display data and and user mutual view layer;For Storage includes the unique file folder of js, css, picture file;And this framework start page index.html, the system framework Underlying mechanisms and logic realized by BaseController.js modules and BaseView.js modules, and by index.html The beginning page excites loading.
2. the MVC frame systems for being applied to HybridAPP exploitations based on AppCan according to claim 1, the view Layer storage includes file corresponding to all page Show Styles and page logic part.
3. the MVC frame systems for being applied to HybridAPP exploitations based on AppCan according to claim 1, the control Device layer preserves everything and action callback method corresponding to the page or systemic-function.
4. the MVC frame systems for being applied to HybridAPP exploitations based on AppCan according to claim 1, the model The layer storage page or the data processing of systemic-function and business model processing.
5. the MVC frame systems for being applied to HybridAPP exploitations based on AppCan according to claim 1, described BaseController.js modules are used for the dynamic load for realizing every other business module, and use factory mode, the work Factory's pattern is that controller layer only triggers the currently used movement controller of instantiation.
6. the MVC frame systems for being applied to HybridAPP exploitations based on AppCan according to claim 1, described The business hours for the page triggering that BaseView.js modules are mainly realized calls the flow of key-course and the result of key-course return Processing.
CN201710333125.XA 2017-05-12 2017-05-12 A kind of MVC frame systems for being applied to HybridAPP exploitations based on AppCan Pending CN107346242A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710333125.XA CN107346242A (en) 2017-05-12 2017-05-12 A kind of MVC frame systems for being applied to HybridAPP exploitations based on AppCan

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710333125.XA CN107346242A (en) 2017-05-12 2017-05-12 A kind of MVC frame systems for being applied to HybridAPP exploitations based on AppCan

Publications (1)

Publication Number Publication Date
CN107346242A true CN107346242A (en) 2017-11-14

Family

ID=60253279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710333125.XA Pending CN107346242A (en) 2017-05-12 2017-05-12 A kind of MVC frame systems for being applied to HybridAPP exploitations based on AppCan

Country Status (1)

Country Link
CN (1) CN107346242A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110543294A (en) * 2019-08-16 2019-12-06 上海易点时空网络有限公司 MVC framework system
CN111273902A (en) * 2018-12-05 2020-06-12 深圳市茁壮网络股份有限公司 Project and directory architecture generation method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100125854A1 (en) * 2008-11-18 2010-05-20 Accenture Global Services Gmbh Event based routing between presentation and business logic components

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100125854A1 (en) * 2008-11-18 2010-05-20 Accenture Global Services Gmbh Event based routing between presentation and business logic components

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111273902A (en) * 2018-12-05 2020-06-12 深圳市茁壮网络股份有限公司 Project and directory architecture generation method and device
CN111273902B (en) * 2018-12-05 2024-04-26 深圳市茁壮网络股份有限公司 Project and directory architecture generation method and device
CN110543294A (en) * 2019-08-16 2019-12-06 上海易点时空网络有限公司 MVC framework system

Similar Documents

Publication Publication Date Title
Anglani et al. Object-oriented modeling and simulation of flexible manufacturing systems: a rule-based procedure
CN110795219A (en) Resource scheduling method and system suitable for multiple computing frameworks
US20060036687A1 (en) Computer implemented method and system for running a plurality of business processes
CN104866327B (en) A kind of PHP development approaches and framework
CN103176774A (en) Compiling method, compiling device and compiling system of application program
CN102087594B (en) Management method and device for extension point and plugins
DE102013218379A1 (en) Detect and process an inadvertent touch on a touchscreen
CN112085217A (en) Method, device, equipment and computer medium for deploying artificial intelligence service
CN105183547A (en) Task scheduling method and device of user interface
CN110347494A (en) Context information management method, apparatus, system and computer readable storage medium
CN107346242A (en) A kind of MVC frame systems for being applied to HybridAPP exploitations based on AppCan
CN100409184C (en) Pattern-oriented engine-drawing IO intermediate device
CN113094039A (en) Automatic code generation system based on database table
CN113360139A (en) Integration method and device of front-end frame, electronic equipment and storage medium
CN101076027A (en) Method and system for transporting data between MIME accessory and corresponding database
Li et al. Smart simulation cloud (simulation cloud 2.0)—the newly development of simulation cloud
CN108073389A (en) A kind of automotive engine system based on script
CN103150162B (en) Improve the method for embedded software code degree of share
CN115437757A (en) Scheduling method, system, server and computer readable storage medium
EP1628256A1 (en) A computer implemented method and system for running a plurality of business processes
CN113296913A (en) Data processing method, device and equipment based on single cluster and storage medium
CN112651698A (en) Legal process automation intelligent system
CN109460217A (en) Ticket reselling website background management system framework
CN110825992B (en) System theme replacement method based on smart city operation platform
CN111090430A (en) Application software development system under embedded system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20220318

Address after: 215000 Leyu Town, Zhangjiagang City, Suzhou City, Jiangsu Province (Zhangjiagang Linjiang Green Technology Innovation Park)

Applicant after: SUZHOU WUYUAN NETWORK TECHNOLOGY Co.,Ltd.

Address before: 211100 floor 4, building 1, Jiangsu Software Park, No. 199, Dongji Avenue, moling street, Jiangning District, Nanjing, Jiangsu Province

Applicant before: NANJING WUKAI NETWORK TECHNOLOGY CO.,LTD.

TA01 Transfer of patent application right