CN111966349B - Method, device and computer equipment for developing programs based on BS (browser/server) architecture - Google Patents

Method, device and computer equipment for developing programs based on BS (browser/server) architecture Download PDF

Info

Publication number
CN111966349B
CN111966349B CN202010656540.0A CN202010656540A CN111966349B CN 111966349 B CN111966349 B CN 111966349B CN 202010656540 A CN202010656540 A CN 202010656540A CN 111966349 B CN111966349 B CN 111966349B
Authority
CN
China
Prior art keywords
information
event
interface
query
configuration information
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.)
Active
Application number
CN202010656540.0A
Other languages
Chinese (zh)
Other versions
CN111966349A (en
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.)
Hangzhou Chengyi Digital Technology Co.,Ltd.
Original Assignee
Hangzhou Ruijiang 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 Hangzhou Ruijiang Technology Co ltd filed Critical Hangzhou Ruijiang Technology Co ltd
Priority to CN202010656540.0A priority Critical patent/CN111966349B/en
Publication of CN111966349A publication Critical patent/CN111966349A/en
Application granted granted Critical
Publication of CN111966349B publication Critical patent/CN111966349B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results

Abstract

The application relates to a method, a device, a computer device and a storage medium for developing programs based on a BS architecture, wherein the method comprises the following steps: the method comprises the steps of obtaining interface configuration information, wherein the interface configuration information comprises query information and visual information, executing a preset query model according to the query information, obtaining query data from a server, executing the preset visual model according to the visual information, determining interface layout, and displaying the query data in a browser according to the interface layout.

Description

Method, device and computer equipment for developing programs based on BS (browser/server) architecture
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for developing a BS-based architecture program, a computer device, and a storage medium.
Background
The BS architecture is a Browser/Server architecture, under the architecture, a user working interface is realized by a WWW Browser, a few parts of transaction logic are realized at a front end (Browser), but main transaction logic is realized at a Server end (Server), and the mode unifies clients, concentrates a core part for realizing system functions on the Server, and simplifies the development, maintenance and use of the system. In the process of software development under the BS architecture, there are many configuration programs of basic data, such as adding, deleting, modifying, etc. of data, and some report analysis functions are often functions of data searching, sorting, page view, export, etc. In the related art, a corresponding program is obtained in a hard coding mode, a specific purpose can be achieved, and the pertinence is strong, but the efficiency of program development is low, and the cost of subsequent code maintenance is high.
Aiming at the problem of low software development and code maintenance efficiency under a BS framework in the related art, no effective solution is provided at present.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device and a storage medium for BS-based architecture program development.
In a first aspect, an embodiment of the present application provides a BS architecture based program development method, including the following steps:
acquiring interface configuration information, wherein the interface configuration information comprises query information and visual information;
executing a preset query model according to the query information, acquiring query data from a server, executing the preset visual model according to the visual information, and determining interface layout;
and displaying the query data in a browser according to the interface layout.
In one embodiment, after the interface configuration information is obtained, the method includes:
executing a preset query model according to the query information, acquiring first extended information, and acquiring query data from a server, wherein the query model comprises the first extended information;
and displaying the query data in the browser according to the interface layout and the first extension information.
In one embodiment, in a case that the interface configuration information includes event information, after the query data is presented in a browser according to the interface layout, the method includes:
executing a preset event model according to event information under the condition that an event condition is triggered, acquiring event data, executing a preset event visualization model according to the visualization information, and determining an event interface layout;
and displaying the event data in the browser according to the event interface layout.
In one embodiment, the executing the preset event model according to the event information to obtain the event data includes:
acquiring a prefabricated process number in a preset event model according to event information, and acquiring prefabricated configuration information according to the prefabricated process number;
and executing a prefabrication process according to the prefabrication configuration information to obtain event data.
In one embodiment, the acquiring event data according to event information includes:
acquiring second extended information in the event information and third extended information in the prefabricated configuration information;
and acquiring event data according to the prefabricated configuration information, the second extended information and the third extended information.
In one embodiment, the acquiring interface configuration information includes:
acquiring template information, wherein the template information indicates a program to initialize a display interface, and the interface configuration information is acquired according to the template information;
and constructing the program initialization display interface according to the interface configuration information.
In one embodiment, the acquiring interface configuration information includes:
acquiring form information, wherein the form information indicates a sub-display interface after an event in a display interface is initiated by a program, and the interface configuration information is acquired according to the form information;
and constructing the sub-display interface according to the interface configuration information.
In one embodiment, before the obtaining interface configuration information, the method includes:
acquiring menu configuration information;
and executing a preset menu configuration model according to the menu configuration information, and determining a browser access path.
In a second aspect, an embodiment of the present application further provides an apparatus for developing a BS-based architecture program, where the apparatus includes an obtaining module, a building module, and a presentation module:
the acquisition module is used for acquiring interface configuration information, and the interface configuration information comprises query information and visual information;
the construction module is used for acquiring query data from a server according to the query information and determining interface layout according to the visual information;
and the display module is used for displaying the query data in a browser according to the interface layout.
In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for developing a BS-based architecture program when executing the computer program.
In a fourth aspect, embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for developing the BS-based architecture program.
According to the method, the device, the computer equipment and the storage medium for developing the program based on the BS architecture, the interface configuration information is obtained and comprises the query information and the visual information, the preset query model is executed according to the query information, the query data is obtained from the server, the preset visual model is executed according to the visual information, the interface layout is determined, the query data is displayed in the browser according to the interface layout, the program development based on the BS architecture can be efficiently completed, and the accuracy of the program development is higher.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more concise and understandable description of the application, and features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is an application scenario diagram of a BS-based architecture program development method according to an embodiment of the present invention;
FIG. 2 is a flow diagram of BS architecture based program development according to an embodiment of the present invention;
FIG. 3 is a call flow diagram of extended information in the development of a BS-based architecture program according to an embodiment of the present invention;
FIG. 4 is a call flow of event information in the development of a BS-based architecture program according to an embodiment of the present invention;
FIG. 5 is a call flow of a pre-fabricated process in the development of a program based on a BS architecture according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a menu configuration in the development of a BS-based architecture program according to a preferred embodiment of the present invention;
FIG. 7 is a diagram illustrating a query configuration in the development of a BS-based architecture program according to a preferred embodiment of the present invention;
FIG. 8 is a diagram illustrating the configuration of events in the development of a BS-based architecture program according to a preferred embodiment of the present invention;
FIG. 9 is a diagram illustrating a pre-fabricated process configuration in the development of a BS-based architecture program according to a preferred embodiment of the present invention;
FIG. 10 is a flowchart of a process configuration in the development of a BS-based architecture process in accordance with a preferred embodiment of the present invention;
FIG. 11 is a schematic diagram illustrating the operation of a template in the development of a program based on the BS architecture in accordance with the preferred embodiment of the present invention;
FIG. 12 is a diagram illustrating the operation of a form in the development of a BS-based architecture program according to the preferred embodiment of the present invention;
fig. 13 is a schematic structural diagram of an apparatus for BS-architecture-based program development according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The method provided by the embodiment can be executed in a terminal, a computer or a similar operation device. Taking an example of the application running on a terminal, fig. 1 is an application scenario diagram of the BS-based architecture program development method according to the embodiment of the present invention, as shown in fig. 1, a terminal 102 communicates with a website server 104 through a network, and the website server 104 communicates with a database server 106 through the network. The website server 104 acquires interface configuration information, wherein the interface configuration information comprises query information and visual information; the website server 104 executes a preset query model according to the query information, acquires query data from the database server 106, executes a preset visualization model according to the visualization information, and determines the browser interface layout; and finally, displaying the query data in the browser of the terminal 102 according to the interface layout. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and the like, and the website server 104 and the database server 106 may be implemented by independent servers or a server cluster formed by a plurality of servers. In some embodiments, the website server 104 and the database server 106 may be the same server. It will be understood by those of ordinary skill in the art that the architecture shown in fig. 1 is merely an illustration and is not intended to limit the architecture of the above application scenarios.
In one embodiment, fig. 2 is a flowchart of BS-based architecture program development according to an embodiment of the present invention, and as shown in fig. 2, there is provided a method for BS-based architecture program development, the method including the following steps:
step S210, interface configuration information is obtained, where the interface configuration information includes query information and visualization information. The method comprises the steps that an interface is displayed on a browser interface, and the display mode mainly comprises a display mode, namely visual information, and displayed content, namely query information, wherein the query information refers to interface content acquired from a background database server through query;
step S220, executing a preset query model according to the query information, obtaining query data from the server, executing the preset visualization model according to the visualization information, and determining an interface layout. The query information includes an index number capable of locating a unique query model, and in some embodiments, the query information includes a query number, the query number is a globally unique query index, and the query number can be located in a preset query model according to the query number. According to the query model, corresponding query data can be obtained from the database server. Similarly, a preset visualization model can be determined according to the visualization information, and the browser interface layout corresponding to the visualization model can be realized by executing the visualization model. For the terminal 102, in the process of performing program development based on the BS architecture, it is not necessary to write a computer program, and execute hard coding repeatedly, but by specifying the visual information and the query information, the server side can respectively obtain the visual model and the query model that are coded in advance according to the visual information and the query information, and implement program development in a configuration manner. Optionally, before the interface configuration information is acquired, the server provides the optional configuration information to the terminal 102 in a list form, and the terminal 102 transmits the interface configuration information to the server side through checking;
and step S230, displaying the query data in the browser according to the interface layout. After the interface layout and the query data are determined at the server side, the query data are displayed in the browser of the terminal 102 in the interface layout mode.
In steps S210 to S230, by acquiring interface configuration information, where the interface configuration information includes query information and visual information, executing a preset query model according to the query information, acquiring query data from the server, executing the preset visual model according to the visual information, determining an interface layout, and displaying the query data in the browser according to the interface layout, the interface configuration information does not need to be hard-coded, but only needs to input the query information that can be located to the query model and the visual information that can be located to the visual model through the preset query model and the preset visual model, and the server side can construct a browser interface and acquire interface content, thereby efficiently completing program development based on the BS architecture, and making accuracy of the program development higher.
In an embodiment, fig. 3 is a call flow diagram of extended information in BS-based architecture program development according to an embodiment of the present invention, and as shown in fig. 3, after acquiring interface configuration information, the method further includes the following steps:
step S310, executing a preset query model according to the query information, acquiring first expansion information, and acquiring query data from the server. Wherein the query model includes first extension information. Optionally, the query model includes a reserved extension point, and the development terminal may configure the extension information in a process of presetting the query model according to an actual requirement. Optionally, the extension point may be used to further filter the query data. In some embodiments, extension points may also be set in the visualization model, so as to implement more personalized configuration of the visualization interface.
And step S320, displaying the query data in the browser according to the interface layout and the first expansion information. After the query data are obtained, the server side further processes the query data according to the first expansion information, and then displays the query data according to the interface layout corresponding to the visual model.
In steps S310 to S320, a reserved extension point is added to the preset query model, so that a possibility of configuration extension is provided in the process of performing modular program configuration, and the personalized requirements can be better adapted.
In an embodiment, fig. 4 is a call flow of event information in BS-based architecture program development, where in a case that interface configuration information includes event information, after query data is presented in a browser according to an interface layout, the method includes the following steps:
step S410, under the condition that the event condition is triggered, according to the event information, acquiring event data according to a preset event model, executing the preset event visualization model according to the visualization information, and determining the layout of the event interface. In this step, the interface configuration information includes event information, and optionally, the event may refer to an event that a button in the interface is clicked and a new interface is triggered, in which case, the event condition may be described as that a preset button in the interface is clicked, or may be described more simply by the clicked button. The event information includes an index number capable of positioning the event model, and optionally, the event model includes an event name, an icon, a submission parameter, and the like. In some embodiments, the event information also includes a globally unique query number, since the event will trigger a new interface, and the data displayed in the interface will also relate to a data query in the database. It should be noted that the data query does not only include a data query process in the database, and in some embodiments, the event further includes various interface interaction processes such as addition, modification, deletion, and termination of a flow of data, so the query refers to data interaction processes of various forms of browsers and servers. In addition, the visualization information in the interface configuration information provides a visualization model in which the event interface layout is provided.
Step S420, displaying the event data in the browser according to the event interface layout. And according to the preset event processing logic in the event model, after the event data is acquired, the event data is displayed on the browser in the event interface layout.
In steps S410 to S420, the interface configuration information includes event information in addition to the basic query information, and the preset event model is triggered by the event information, so that not only the configuration of a static page can be realized in a configuration manner, but also the configuration of a dynamic interface can be realized under the condition of interface interaction, thereby further improving the efficiency of BS-based architecture program development, and greatly improving the applicability and flexibility of the scheme.
In an embodiment, fig. 5 is a call flow of a pre-made process in BS-based architecture program development according to an embodiment of the present invention, and as shown in fig. 5, executing a preset event model according to event information, and acquiring event data includes the following steps:
step S510, obtaining a pre-made process number in the preset event model according to the event information, and obtaining pre-made configuration information according to the pre-made process number. In this step, the preset event model includes a preset process number, where the preset process is a configurable data storage logic, and in some embodiments, the preset process model includes preset configuration information such as a preset process number, a name, a main table operation, a sub table, and a sub table operation. And all items in the preset configuration information can be set in the pre-configuration process, so that customized data interaction and storage logic are obtained.
Step S520, executing a prefabrication process according to the prefabrication configuration information, and acquiring event data. And executing the prefabrication process according to the prefabrication configuration information, finishing data interaction and storage logic, and acquiring event data. As mentioned above, the above-mentioned pre-manufacturing process is not limited to the query of the data in the database, but also includes various logic flows such as various interface interaction processes such as addition, modification, deletion, and termination of the flow, so the event data in step S420 and step S520 is not limited to the data obtained by query in the database, and may also be status information such as the result of operation.
In steps S510 to S520, the data execution logic in the event is configured to obtain the above-mentioned pre-process, and the pre-process can be directly selected for configuration under the condition of configuring the event, so that the efficiency of developing the program based on the BS architecture is further improved, and the accuracy of development is also improved.
In one embodiment, obtaining event data from the event information further comprises: acquiring second extended information in the event information and third extended information in the prefabricated configuration information; and acquiring event query data according to the prefabricated configuration information, the second extended information and the third extended information. In this embodiment, the event model and the pre-configuration information both include extension information, and the configuration information may be limited by the extension information when the configuration cannot completely meet the program development requirement. The form of the above extended information is not limited, for example, in the event model, the extended information may be extended in a hard-coded manner; in the pre-configured information, the extension information may perform a special operation on the primary table or the secondary table. These extended information will further improve the applicability and flexibility of the BS-architecture based procedure development method.
In one embodiment, the process of obtaining interface configuration information includes: acquiring template information, wherein the template information indicates a program to initialize a display interface, and the interface configuration information is acquired according to the template information; and constructing the program initialization display interface according to the interface configuration information. In this embodiment, a BS architecture-based configuration program development method with higher integration is provided, that is, an initialization interface of a program is configured in a template form, and in one template model, query information, component information, that is, visualization information, and bound event information may be included, and the query information may include an entry and an exit. Therefore, the configuration of the template information is more standardized, and the development efficiency of the BS-based architecture program is further improved.
In one embodiment, the process of obtaining interface configuration information includes: acquiring form information, wherein the form information indicates a sub-display interface after an event in the initialization display interface is triggered, and interface configuration information is acquired according to the form information; and constructing a sub-display interface according to the interface configuration information. In this embodiment, an embodiment is provided for configuring, in the form of a form, a sub-interface that processes specific data after an event in an initialization interface of a program is triggered. In one form model, prefabricated process information, component information, namely visual information, extended information and the like can be included, and object information, attribute information and the like can be included in query information. Therefore, the configuration of the form information is more standardized, and the developing efficiency of the BS-based architecture program is further improved.
In one embodiment, prior to obtaining the interface configuration information, the method includes the steps of: acquiring menu configuration information; and executing a preset menu configuration model according to the menu configuration information, and determining the access path of the browser. In this embodiment, the configuration process further includes configuring a menu, where the menu is an access path of the browser, and the path corresponds to an interface. The menu related configuration items include, but are not limited to: name, upper level of tree menu structure, icon, type item for distinguishing whether the menu is hard-coded or configured, and query number. The embodiment provides a configuration mode of a browser access path, so that the efficiency of the development of a program based on a BS architecture is higher, and configurable elements are more complete.
The embodiments of the present application are described and illustrated below by means of preferred embodiments.
In the configuration stage in the preferred embodiment, the program configuration tool configures the software logic by editing the EXCEL using the EXCEL, and then imports the EXCEL into the program, and the program analyzes the configuration information in the EXCEL and stores the configuration information in the database in a classified manner. The EXCEL is mainly divided into: the method comprises four configurations of a menu, a query, an event and a storage process.
The menu corresponds to one interface of the browser end. Fig. 6 is a schematic diagram illustrating a menu configuration in BS-based architecture program development according to a preferred embodiment of the present invention, where, as shown in fig. 6, menu configuration items include names, upper names in a tree menu structure, icons, addresses, type items for distinguishing whether a menu is hard-coded or configured, query numbers, and the like.
Each configured interface corresponds to a query, which may be a database table or a view of a corresponding database. Fig. 7 is a schematic diagram of query configuration in BS-based architecture program development according to a preferred embodiment of the present invention, and as shown in fig. 7, query configuration items include a globally unique query number, a table name or a view name, an enhanced class, i.e., a reserved extension point, a name, and the like.
Each browser interface has many events, which may be button click events. The event configuration item mainly configures the processing logic of the events. Fig. 8 is a schematic diagram of event configuration in BS-based architecture program development according to a preferred embodiment of the present invention, and as shown in fig. 8, the event configuration items include a query number, an event name, an icon, a pre-made process number, a custom form, i.e., an extension point, a submission parameter, and the like.
The pre-production process is a non-database storage process and is a section of configurable data storage logic. Fig. 9 is a schematic diagram of a configuration of a pre-manufactured process in BS-based architecture program development according to a preferred embodiment of the present invention, where, as shown in fig. 9, a pre-manufactured process configuration item includes a number, a name, and whether the form is used to identify whether the stored process is applicable to a browser form, and is called when the form is queried or stored; the main table is used for indicating which table of the database needs to be operated in the prefabrication process; main table operations, such as CREATE (CREATE), MODIFY (MODIFY), QUERY (QUERY), DELETE (DELETE), and the like; a main enhancement class, i.e. an extension point, indicating a special operation to be performed when operating a main table; the secondary table can support infinite theoretical secondary tables, and as long as the secondary tables have incidence relation, secondary operation and single/array when being designed with the primary table, the items are used for identifying the relation between the primary table and the secondary table, and one-to-one or one-to-many; the association column is a column in which the primary table and the secondary table are in relation; the secondary enhanced class is a secondary table operation extension point, and is used for identifying special operations and the like which need to be performed during secondary table operation. And selecting the configured EXCEL file at the browser end, and importing the file into the system to complete the program configuration.
The data structure supporting the configuration program mainly includes a menu (sys _ menu), a query (dy _ query), a template (dy _ template), a storage procedure (dy _ procedure), a dynamic class (dy _ class), and a dynamic form (dy _ form). The menu, the template and the dynamic form are abstractions of a user interface of the browser, the menu is an access path of the browser, the template is an interface presented by the browser, event binding is carried out in the template, the dynamic form is a user interface for processing specific data, and the template and the form are different in that the template is an interface without main data association, and the form is an interface with main data ID association. The query corresponds to a table or view. The pre-manufactured process and the dynamic class correspond to the logic of the server side for storing data. Optionally, the menu includes a name, a superior, an icon, a type, a path; the query includes a number, a table name or view name, a name, an enhanced class; the template comprises serial numbers, inquiry and component information; the storage process comprises a number and a name; the dynamic class comprises a table name, a label, a storage process, whether a main class exists or not, whether a single class exists or not, an operation mode, whether the main class exists or not, an association column and an enhancement class; the dynamic form comprises a name, a dependent storage process, component information, personalization and a personalized component.
Fig. 10 is a schematic diagram of a program configuration in BS-based architecture program development according to a preferred embodiment of the present invention, and as shown in fig. 10, from EXCEL uploading, the program configuration processing mainly includes five steps of EXCEL parsing, configuration data verification, form visualization component construction, template visualization component construction, and configuration information storage. The following is set forth with respect to form visualization component construction and template visualization component construction information:
the form visualization configuration comprises basic information and object information, wherein the objects are divided into main objects, sub-objects and attribute information, and the basic information comprises form ID, a display mode, a name and object information; the object information comprises an object key, a front-end component, a name, whether to display or not, whether to array or not and attribute information; the attribute information includes an attribute key, a front-end component, a name, whether to present or not, and whether to edit or not.
The template visualization comprises basic information, participation and events; the basic information comprises a name, whether a tree exists or not and a display mode; the entry comprises attribute KEY, name, component, whether to display, verification mode and custom display; the parameters include attribute KEY, name, component, whether to sort, whether to display, sort support and user-defined display; the event comprises a name, a participation KEY, whether to be personalized, a bound storage process and a bound form.
In the case of program operation, fig. 11 is a schematic diagram of template operation in BS-based architecture program development according to the preferred embodiment of the present invention, and as shown in fig. 11, a browser accesses a template page, triggers a request, accesses a server template interface, and can perform extension processing on query conditions and data results of a template according to configured extension classes when a server renders the template. And after the rendering of the browser template is finished, triggering a default query event, calling a data interface of the server, and performing extended processing on default query conditions and returned results by the server during data processing. The template interface can render a plurality of buttons, each button corresponds to an event operation, some events only call a section of data storage logic at the back end, most events need to render a form based on certain data, and the form can be triggered to run.
Fig. 12 is a schematic diagram of form operation in BS-based architecture program development according to the preferred embodiment of the present invention, and as shown in fig. 12, the form operation mainly includes three stages, namely, template rendering, data rendering, and data storage. In the template rendering stage, the browser accesses the template interface, and when the server returns the template, the form elements can be expanded, such as visible, editable, default values and the like. During the data rendering phase, the server may extend the data, for example: format conversion, data desensitization, data conversion, etc. In the data storage phase, i.e. the aforementioned pre-manufactured process phase, the server may expand the stored data, for example: operator, time, log, special linkage table data processing, etc.
The program development method based on the BS framework can reduce repeated coding work, improve code quality, reserve enough expansion points and better adapt to individual requirements.
It should be understood that, although the respective steps in the flowcharts in fig. 2 to 12 are sequentially shown as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-12 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
In an embodiment, fig. 13 is a schematic structural diagram of an apparatus for developing a BS-based architecture program according to an embodiment of the present invention, and as shown in fig. 13, the apparatus for developing a BS-based architecture program is provided, and the apparatus includes an obtaining module 132, a constructing module 134, and a presenting module 136:
the obtaining module 132 is configured to obtain interface configuration information, where the interface configuration information includes query information and visualization information;
the construction module 134 is configured to obtain query data from a server according to the query information, and determine an interface layout according to the visualization information;
the presentation module 136 is configured to present the query data in the browser according to the interface layout.
For specific limitations of the BS-based architecture program development apparatus, reference may be made to the above limitations of the BS-based architecture program development method, which is not described herein again. The respective modules in the apparatus developed based on the BS architecture program described above may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of BS architecture program development.
In one embodiment, a computer device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above BS architecture program development method when executing the computer program.
According to the computer equipment for developing the program based on the BS architecture, the interface configuration information is obtained and comprises the query information and the visual information, the preset query model is executed according to the query information, the query data is obtained from the server, the preset visual model is executed according to the visual information, the interface layout is determined, the query data is displayed in the browser according to the interface layout, the program development based on the BS architecture can be efficiently completed, and the accuracy of the program development is higher.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the method of BS architecture program development described above.
According to the computer-readable storage medium for BS architecture program development, interface configuration information is acquired, the interface configuration information comprises query information and visual information, a preset query model is executed according to the query information, query data is acquired from a server, the preset visual model is executed according to the visual information, interface layout is determined, the query data is displayed in a browser according to the interface layout, the BS architecture program development can be efficiently completed, and the accuracy of the program development is higher.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A method for BS-based architecture program development, the method comprising:
acquiring interface configuration information, wherein the interface configuration information comprises query information and visual information;
executing a preset query model according to the query information, acquiring query data from a server, executing the preset visual model according to the visual information, and determining interface layout;
displaying the query data in a browser according to the interface layout;
in a case that the interface configuration information includes event information, after the query data is presented in a browser according to the interface layout, the method includes: executing a preset event model according to event information under the condition that an event condition is triggered, acquiring event data, executing a preset event visualization model according to the visualization information, and determining an event interface layout; displaying the event data in the browser according to the event interface layout;
the executing a preset event model according to the event information to obtain the event data includes: acquiring a prefabricated process number in a preset event model according to event information, and acquiring prefabricated configuration information according to the prefabricated process number; and executing a prefabrication process according to the prefabrication configuration information to obtain event data.
2. The method of claim 1, wherein after obtaining the interface configuration information, the method comprises:
executing a preset query model according to the query information, acquiring first extended information, and acquiring query data from a server, wherein the query model comprises the first extended information;
and displaying the query data in the browser according to the interface layout and the first extension information.
3. The method of claim 1, wherein the obtaining event data according to event information comprises:
acquiring second extended information in the event information and third extended information in the prefabricated configuration information;
and acquiring event data according to the prefabricated configuration information, the second extended information and the third extended information.
4. The method of claim 1, wherein the obtaining interface configuration information comprises:
acquiring template information, wherein the template information indicates a program to initialize a display interface, and the interface configuration information is acquired according to the template information;
and constructing the program initialization display interface according to the interface configuration information.
5. The method of claim 1, wherein the obtaining interface configuration information comprises:
acquiring form information, wherein the form information indicates a sub-display interface after an event in a display interface is initiated by a program, and the interface configuration information is acquired according to the form information;
and constructing the sub-display interface according to the interface configuration information.
6. The method of any one of claims 1 to 5, wherein prior to obtaining interface configuration information, the method comprises:
acquiring menu configuration information;
and executing a preset menu configuration model according to the menu configuration information, and determining a browser access path.
7. An apparatus for developing a BS-based architecture program, the apparatus comprising an acquisition module, a construction module, and a presentation module:
the acquisition module is used for acquiring interface configuration information, and the interface configuration information comprises query information and visual information;
the construction module is used for acquiring query data from a server according to the query information and determining interface layout according to the visual information;
the display module is configured to display the query data in the browser according to the interface layout, and when the interface configuration information includes event information, after displaying the query data in the browser according to the interface layout, further configured to: executing a preset event model according to event information under the condition that an event condition is triggered, acquiring event data, executing a preset event visualization model according to the visualization information, and determining an event interface layout; displaying the event data in the browser according to the event interface layout; the executing a preset event model according to the event information to obtain the event data includes: acquiring a prefabricated process number in a preset event model according to event information, and acquiring prefabricated configuration information according to the prefabricated process number; and executing a prefabrication process according to the prefabrication configuration information to obtain event data.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 6 are implemented when the computer program is executed by the processor.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202010656540.0A 2020-07-09 2020-07-09 Method, device and computer equipment for developing programs based on BS (browser/server) architecture Active CN111966349B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010656540.0A CN111966349B (en) 2020-07-09 2020-07-09 Method, device and computer equipment for developing programs based on BS (browser/server) architecture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010656540.0A CN111966349B (en) 2020-07-09 2020-07-09 Method, device and computer equipment for developing programs based on BS (browser/server) architecture

Publications (2)

Publication Number Publication Date
CN111966349A CN111966349A (en) 2020-11-20
CN111966349B true CN111966349B (en) 2022-08-09

Family

ID=73360540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010656540.0A Active CN111966349B (en) 2020-07-09 2020-07-09 Method, device and computer equipment for developing programs based on BS (browser/server) architecture

Country Status (1)

Country Link
CN (1) CN111966349B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732243A (en) * 2021-01-11 2021-04-30 京东数字科技控股股份有限公司 Data processing method and device for generating functional component

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788996A (en) * 2009-11-19 2010-07-28 山东浪潮齐鲁软件产业股份有限公司 User-defined searching method
CN109271581A (en) * 2018-08-02 2019-01-25 北京天元创新科技有限公司 A kind of quick rendering method of big data based on Dashboard
CN109634590A (en) * 2018-12-28 2019-04-16 北京神舟航天软件技术有限公司 A kind of Object Query method based on business model
CN109862064A (en) * 2018-11-22 2019-06-07 中国铁建重工集团有限公司 A kind of configuration method and device for equipment remote monitoring
CN110007917A (en) * 2019-03-08 2019-07-12 国电南瑞科技股份有限公司 A kind of visual page generation and browsing method based on browser
CN110119272A (en) * 2018-02-07 2019-08-13 许昌许继软件技术有限公司 A kind of human-machine interface configuration design method and device
CN111324787A (en) * 2018-12-14 2020-06-23 北京沃东天骏信息技术有限公司 Block chain data display method and device in block chain browser

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10592082B2 (en) * 2015-11-24 2020-03-17 Microsoft Technology Licensing, Llc Parallel front end application and workflow development

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788996A (en) * 2009-11-19 2010-07-28 山东浪潮齐鲁软件产业股份有限公司 User-defined searching method
CN110119272A (en) * 2018-02-07 2019-08-13 许昌许继软件技术有限公司 A kind of human-machine interface configuration design method and device
CN109271581A (en) * 2018-08-02 2019-01-25 北京天元创新科技有限公司 A kind of quick rendering method of big data based on Dashboard
CN109862064A (en) * 2018-11-22 2019-06-07 中国铁建重工集团有限公司 A kind of configuration method and device for equipment remote monitoring
CN111324787A (en) * 2018-12-14 2020-06-23 北京沃东天骏信息技术有限公司 Block chain data display method and device in block chain browser
CN109634590A (en) * 2018-12-28 2019-04-16 北京神舟航天软件技术有限公司 A kind of Object Query method based on business model
CN110007917A (en) * 2019-03-08 2019-07-12 国电南瑞科技股份有限公司 A kind of visual page generation and browsing method based on browser

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于配置实现增删改查WEB应用开发基础框架;jsyhello;《https://blog.csdn.net/jsyhello/article/details/6435570》;20110520;1-2 *

Also Published As

Publication number Publication date
CN111966349A (en) 2020-11-20

Similar Documents

Publication Publication Date Title
CN108304172B (en) Web development method and web development engine
CN103020158A (en) Report form creation method, device and system
CN110007902A (en) The method and device of business processing flow configuration
CN111522552B (en) Sub-application generation method and device, computer equipment and storage medium
CN108197091B (en) Method, system and related equipment for creating data table
CN109766139B (en) Configuration method and device of configuration file
CN109947399A (en) Code structure generation method, device, computer installation and readable storage medium storing program for executing
CN111008522A (en) Automatic article writing method and device, computer equipment and storage medium
CN115438087B (en) Data query method, device, storage medium and equipment based on cache library
CN111309991B (en) Query statement generation method and device and data query method and system
CN111966349B (en) Method, device and computer equipment for developing programs based on BS (browser/server) architecture
CN111667231A (en) Automatic tax declaring method, device, system, computer equipment and storage medium
CN112988123B (en) DDD-oriented software design method and system
CN116339694B (en) Extension method and device of low-code platform assembly, electronic equipment and storage medium
CN110968311B (en) Front-end page construction method and device and electronic equipment
CN106155990A (en) A kind of data process and the method for application continuum
CN114281797A (en) Method for quickly creating basic level data aggregation warehouse based on agile low-code platform
CN109656549B (en) Construction method and device of monitoring system, computer equipment and storage medium
CN109871214B (en) Program code generation method, program code generation device, computer device, and storage medium
CN113377368A (en) Project development method, device, server and storage medium
CN113900725A (en) Interface configuration method and device, computer equipment and storage medium
CN117112654B (en) City data display method, device, computer equipment and storage medium
CN110333922A (en) Query interface setting method, device, computer equipment and storage medium
CN117234512B (en) Method, system, electronic equipment and storage medium for rapidly developing business
CN113157754B (en) Method, device and equipment for displaying flow form data and storage medium

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: 20210315

Address after: Room 406-10, building 2, ChuanHua Kechuang building, ningwei street, Xiaoshan District, Hangzhou City, Zhejiang Province 310000

Applicant after: Hangzhou Ruijiang Technology Co.,Ltd.

Address before: Room 201-56, Xiaoshan science and Technology City, building 1, ChuanHua Kechuang building, Xiaoshan District, Hangzhou, Zhejiang 311200

Applicant before: Hangzhou CHUANHUA Intelligent Manufacturing Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231124

Address after: Room 701-14, Building 1, Chuanhua Science and Technology Innovation Building, Ningwei Street, Xiaoshan District, Hangzhou City, Zhejiang Province, 311231

Patentee after: Hangzhou Chengyi Digital Technology Co.,Ltd.

Address before: Room 406-10, building 2, ChuanHua Kechuang building, ningwei street, Xiaoshan District, Hangzhou City, Zhejiang Province 310000

Patentee before: Hangzhou Ruijiang Technology Co.,Ltd.

TR01 Transfer of patent right