CN105354237B - Business data display method - Google Patents
Business data display method Download PDFInfo
- Publication number
- CN105354237B CN105354237B CN201510650234.5A CN201510650234A CN105354237B CN 105354237 B CN105354237 B CN 105354237B CN 201510650234 A CN201510650234 A CN 201510650234A CN 105354237 B CN105354237 B CN 105354237B
- Authority
- CN
- China
- Prior art keywords
- data
- page
- view
- display
- server
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a business data display method, belonging to the technical field of data display; the method comprises the following steps: acquiring multiple items of view metadata for indicating page layout and data filling requirements of corresponding display pages according to a service data display request of a user side; acquiring corresponding service data from a background database according to the service data display request, and converting the service data into a plurality of items of view data which can be filled into a display page; combining the view metadata to construct a page frame that forms an association with the presentation page; filling the view data into a page frame, and binding corresponding view metadata corresponding to each view data to form an accessible display page; and providing a data access interface to the user terminal. The beneficial effects of the above technical scheme are: the complexity of foreground coding of the user side is reduced, the flexibility of data display page processing logic is improved, and the workload of developers for maintaining foreground codes is reduced.
Description
Technical Field
The invention relates to the technical field of data display, in particular to a business data display method.
Background
In the process of software development and design, detailed data is usually displayed and stored for a certain business object. In the prior art, the processing method for the above process generally encapsulates the service data into service objects, then transmits the service objects to the front-end user, and then fills the service objects into the web tags (usually html web tags) from the front-end user and displays the web tags to the user. However, the above processing method has a large development workload for developing page codes at the front end user side, and the developed codes cannot be reused. The flexibility of the processing mode for data display of the foreground is also poor, and the corresponding html code needs to be changed every time the data is changed. Moreover, if html of the front-end user side is complex, developers need to maintain huge and complex page codes every time code maintenance is performed, and the burden of code maintenance of the developers is increased.
Disclosure of Invention
According to the problems in the prior art, a technical scheme of a business data display method is provided, which aims to reduce the complexity of foreground coding of a user side, improve the flexibility of data display page processing logic and reduce the workload of developers for maintaining foreground codes.
The technical scheme specifically comprises the following steps:
a business data display method comprises a server and a user side remotely connected with the server, and further comprises the following steps:
step S1, according to the service data display request of the user terminal, the server terminal obtains multiple items of view metadata used for indicating the page layout and data filling requirements of the corresponding display page;
step S2, according to the service data display request, the server side obtains corresponding service data from a background database and converts the service data into multiple items of view data which can be filled into the display page;
step S3, the server side combines the view metadata to construct and form a page frame related to the display page;
step S4, the server fills the view data into the page frame, and binds the corresponding view metadata corresponding to each view data to form the accessible presentation page;
in step S5, the server provides a data access interface to the user side, so that the user side can obtain data associated with the display page.
Preferably, the business data presentation method, wherein the view metadata is associated to a data type of a view type;
the step S1 specifically includes:
step S11, the server side loads a preset corresponding page template according to the service data display request;
step S12, the server side initializes the data related to the view type;
step S13, the server parses the loaded page template to obtain the view metadata associated with the view type.
Preferably, in the business data presentation method, in step S2, the view data is associated with a data type of a view class.
Preferably, the service data presentation method, wherein the view metadata includes:
check class metadata for indicating a check mode of the corresponding view data; and/or
Fill class metadata indicating fill limits for the respective said visual data; and/or
Prompt class metadata indicating whether the corresponding said visual data population failed.
Preferably, after the step S5 is executed, the following steps are executed:
step S51, the user terminal checks the page data included in the display page;
step S52, the user sends the verified page data associated with one of the display pages to the server;
step S53, the server encapsulates the received page data associated with one of the display pages into the view data associated with a view type;
step S54, the server side converts the view data to form the service data related to the background database;
and step S55, the server side calls a corresponding data transmission interface and stores the service data in the background database.
Preferably, in the service data presentation method, in step S53, the server side encapsulates the page data into the view data by using a javascript-based service tool.
Preferably, in the service data presentation method, before the step S53 is executed, the server performs a unified check on the received page data, and continues to execute the step S53 after the check is passed.
The beneficial effects of the above technical scheme are: the business data display method can reduce the complexity of foreground codes of a user side, improve the flexibility of data display page processing logic and reduce the workload of developers for maintaining the foreground codes.
Drawings
Fig. 1 is a schematic general flow chart of a business data presentation method according to a preferred embodiment of the present invention.
Fig. 2-3 are schematic diagrams illustrating a business data display method according to a preferred embodiment of the invention, based on fig. 1.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The invention is further described with reference to the following drawings and specific examples, which are not intended to be limiting.
In the preferred embodiment of the present invention, based on the above problems in the prior art, a method for displaying service data is provided. The system comprises a server and a user, wherein the server is remotely connected with the user and carries out remote data communication.
In a preferred embodiment of the present invention, as shown in fig. 1, the service data display method specifically includes:
step S1, according to the business data display request of the user terminal, the server terminal obtains multiple items of view metadata used for indicating the page layout and data filling requirements of the corresponding display page;
step S2, according to the business data display request, the server side obtains the corresponding business data from the background database and converts the business data into a plurality of items of view data which can be filled into the display page;
step S3, the server side combines the view metadata to construct and form a page frame related to the display page;
step S4, the server side fills the view data into the page frame, and binds corresponding view metadata corresponding to each view data to form an accessible display page;
in step S5, the server provides a data access interface to the client, so that the client can obtain data associated with the display page.
In an embodiment, the user side first sends a service data presentation request to the server side to request that the user side presents the corresponding service data to the user in the corresponding presentation page. The business data may be detail data for a certain business logic, for example, transaction detail data that needs to be presented to a user in a page table for a certain transaction.
In this embodiment, after receiving the service data display request sent by the user side, the server side obtains the corresponding service data from the background database. The business data is then converted into a plurality of items of viewable data that can be populated into a presentation page. Specifically, in this embodiment, the View data is associated with a View type (View) data type, that is, the server converts the acquired service data into a View object. The View class refers to a data type that can be displayed on a display page, and after the service data is acquired by the server, the service data is converted into a View object so as to be filled into the display page.
In this embodiment, the server side also obtains a preset corresponding page template (i.e., a page template corresponding to a form that the user side desires to extract) according to the service data display request, and obtains corresponding view metadata according to parsing of the page template. As described above, the View metadata is also associated with the View type, that is, the server obtains the corresponding page template according to the service data display request, and then analyzes the page template to obtain the View metadata associated with the page template. In this embodiment, the so-called view metadata includes: check class metadata for indicating a check mode of the corresponding view data; and/or fill class metadata indicating fill limits for the respective said visual data; and/or prompt class metadata for indicating whether the corresponding said visual data population failed. In other words, the above-mentioned view metadata is used to define at least one of the verification rules for the filled data in the corresponding presentation page, the input limit that the filled data needs to follow, and the error information prompt output after the data is filled with errors. The visual metadata does not contain real data, namely does not contain corresponding business data.
In this embodiment, the server side then composes a page frame associated with the presentation page according to the above-mentioned view metadata. Similarly, the page frame also includes various items of view metadata (e.g., various form fill areas) and their corresponding restriction attributes/check rules/error prompt messages, etc. The page frame is likewise not yet filled with real service data.
In this embodiment, the server side generates real service data (i.e., front-end service objects) required by the front-end user side by using the View data (View objects) formed by converting the service data extracted from the background database. And then filling the generated front-end business object into a page frame of the display page, and binding corresponding view metadata, for example, setting different limiting properties/checking rules/error prompt information and the like corresponding to different form filling areas, and following the limiting properties/checking rules/error prompt information when filling the front-end business object, so as to limit a filling mode of the page frame.
Finally, in this embodiment, the server provides a uniform data access interface to the user side according to the display page that is filled, so that the user side can obtain data associated with the display page.
In the preferred embodiment of the present invention, the detail data is saved after it is presented. Then:
based on the above steps, the step S1 is as shown in fig. 2, and specifically includes:
step S11, the server side loads a preset corresponding page template according to the service data display request;
in a preferred embodiment of the present invention, the server first loads the corresponding page template according to the service data display request, that is, loads the page requested to be displayed by the user. The page loaded at this time may be only one blank template.
Step S12, the server side initializes the data related to the view type;
in a preferred embodiment of the present invention, the server side then initializes the View class, so as to construct the above View metadata (View metadata) and View data (View object) afterwards.
In step S13, the server parses the loaded page template to obtain the view metadata associated with the view type.
In the preferred embodiment of the present invention, as shown in fig. 3, after the step S5 is completed, the following steps are continuously performed:
step S51, the user end checks the page data included in the display page;
in a preferred embodiment of the present invention, the user checks the page data (i.e. the service data filled into the display page) filled in the display page according to the check rule defined in the previous page frame:
if the verification fails, the user end prompts the user according to error prompt information defined in the previous page frame;
and if the verification is successful, entering the next step.
Step S52, the user terminal sends the verified page data associated with one display page to the server terminal;
in a preferred embodiment of the present invention, on the basis of successful verification of the page data, the user side submits the entire display page as a whole to the server side in the background, that is, all verified page data associated with one display page are sent to the server side together.
Step S53, the server encapsulates the received page data associated with a display page into view data associated with a view type;
step S54, the server side converts the view data to form the business data related to the background database;
and step S55, the server side calls a corresponding data transmission interface and stores the service data in a background database.
In the preferred embodiment of the present invention, since the business data is stored in the server, the process thereof needs to be the reverse of the data processing process related to the above steps S1-S4. That is, the user end submits the whole service data in the display page to the server end, and the server end receives the service data and encapsulates the service data into View data (View object) related to the View class. The server side then converts the visualized data to business data suitable for being saved in a background database. And finally, the server side calls a data transmission interface with the background database, integrally stores the service data into the background database, and completes the whole service data storage process.
In a preferred embodiment of the present invention, after receiving the integrally submitted service data, the server firstly needs to perform a data check on the service data by using a unified check rule, and then performs the following steps.
In a preferred embodiment of the present invention, in the step S53, the server may package the page data into the view data by using a javascript-based service tool.
Specifically, in the preferred embodiment of the present invention, in the step S53, the server may automatically encapsulate the service data into the view data by using the servlet specification.
In summary, in the technical solution of the present invention, the server first obtains the corresponding service data from the background database according to the service data display request of the user side and converts the service data into the View object. Correspondingly, the server side analyzes the corresponding page template according to the service data display request to obtain the View metadata. And the server side forms a page frame related to the display page according to the View metadata combination structure, converts the View object into real service data which can be filled into the page frame, fills the service data into the page frame, and provides a uniform data access interface for the user side to access the whole display page. The technical scheme can multiplex foreground codes to the highest degree, achieve unified encapsulation and provide unified calling entries. In the aspect of code maintenance, only the uniform model configuration needs to be modified to adapt to the change of different display pages, and the flexibility is high. And for developers, the complex page codes of different types do not need to be faced, and the burden of the developers is reduced.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.
Claims (6)
1. A business data display method is characterized by comprising a server end and a user end remotely connected with the server end, and further comprising the following steps:
step S1, according to the service data display request of the user terminal, the server terminal obtains multiple items of view metadata used for indicating the page layout and data filling requirements of the corresponding display page;
step S2, according to the service data display request, the server side obtains corresponding service data from a background database and converts the service data into multiple items of view data which can be filled into the display page;
step S3, the server side combines the view metadata to construct and form a page frame related to the display page;
step S4, the server fills the view data into the page frame, and binds the corresponding view metadata corresponding to each view data to form the accessible presentation page;
step S5, the server provides a data access interface to the user side, so that the user side can obtain data associated with the display page;
after the step S5 is executed, the following steps are executed:
step S51, the user terminal checks the page data included in the display page;
step S52, the user sends the verified page data associated with one of the display pages to the server;
step S53, the server encapsulates the received page data associated with one of the display pages into the view data associated with a view type;
step S54, the server side converts the view data to form the service data related to the background database;
and step S55, the server side calls a corresponding data transmission interface and stores the service data in the background database.
2. The business data presentation method of claim 1, wherein the view metadata is associated to a data type of a view type;
the step S1 specifically includes:
step S11, the server side loads a preset corresponding page template according to the service data display request;
step S12, the server side initializes the data related to the view type;
step S13, the server parses the loaded page template to obtain the view metadata associated with the view type.
3. The business data presentation method of claim 1, wherein in said step S2, said view data is associated with a data type of a view class.
4. The business data presentation method of claim 1, wherein the view metadata comprises:
check class metadata for indicating a check mode of the corresponding view data; and/or
Fill class metadata indicating fill limits for the respective said visual data; and/or
Prompt class metadata indicating whether the corresponding said visual data population failed.
5. The service data presentation method according to claim 1, wherein in the step S53, the server side encapsulates the page data into the view data by using a javascript-based service tool.
6. The service data presentation method of claim 1, wherein the server side performs a uniform check on the received page data before performing the step S53, and continues to perform the step S53 after the check is passed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510650234.5A CN105354237B (en) | 2015-10-09 | 2015-10-09 | Business data display method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510650234.5A CN105354237B (en) | 2015-10-09 | 2015-10-09 | Business data display method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105354237A CN105354237A (en) | 2016-02-24 |
CN105354237B true CN105354237B (en) | 2020-06-26 |
Family
ID=55330210
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510650234.5A Active CN105354237B (en) | 2015-10-09 | 2015-10-09 | Business data display method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105354237B (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107479861B (en) * | 2016-06-07 | 2021-04-06 | 阿里巴巴集团控股有限公司 | Page processing method and system |
CN107798005A (en) * | 2016-08-30 | 2018-03-13 | 北京国双科技有限公司 | Data processing method and device during Website development |
CN107977380B (en) * | 2016-10-25 | 2023-04-07 | 北京京东尚科信息技术有限公司 | Method and device for generating page |
CN106843844B (en) * | 2016-12-26 | 2020-06-12 | 南威软件股份有限公司 | Display device of custom view |
CN107016297B (en) * | 2017-01-24 | 2020-07-03 | 阿里巴巴集团控股有限公司 | Data object packaging method and device |
CN108399177B (en) * | 2017-02-07 | 2020-09-11 | 杭州有好数据科技有限公司 | Data processing method and system based on database |
CN107609156B (en) * | 2017-09-26 | 2020-12-25 | 微梦创科网络科技(中国)有限公司 | Page construction method and device |
CN107729010B (en) * | 2017-10-25 | 2021-01-26 | 阿里巴巴(中国)有限公司 | View display method and device, computing equipment and storage medium |
CN108040278A (en) * | 2017-11-30 | 2018-05-15 | 深圳市雷鸟信息科技有限公司 | Active page processing method, server, system and the storage medium of smart television |
CN109086442B (en) * | 2018-08-16 | 2021-07-06 | 口口相传(北京)网络技术有限公司 | Business data display method and device |
CN109117469A (en) * | 2018-09-03 | 2019-01-01 | 平安科技(深圳)有限公司 | Excel report file generation method, device, computer equipment and storage medium |
CN112241417B (en) * | 2019-07-18 | 2023-10-27 | 腾讯科技(深圳)有限公司 | Page data verification method and device, medium and electronic equipment |
CN112306972B (en) * | 2020-11-02 | 2024-06-25 | 招投研究院(广州)有限公司 | File generation method and device based on cloud storage |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102122281A (en) * | 2010-01-11 | 2011-07-13 | 腾讯科技(北京)有限公司 | Method, device and system for generating page form |
CN102799690A (en) * | 2012-08-13 | 2012-11-28 | 南京莱斯信息技术股份有限公司 | Method for verifying page input by using database technology |
CN103984547A (en) * | 2014-05-14 | 2014-08-13 | 上海上讯信息技术股份有限公司 | Form validation method and system |
CN104252463A (en) * | 2013-06-26 | 2014-12-31 | 中国银联股份有限公司 | Db2 database management method based on web system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6963930B2 (en) * | 2001-02-15 | 2005-11-08 | Centric Software, Inc. | Automatic transfer and expansion of application-specific data for display at a website |
CN104572813B (en) * | 2014-11-26 | 2019-02-26 | 国家电网公司 | A kind of report generation method and device |
-
2015
- 2015-10-09 CN CN201510650234.5A patent/CN105354237B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102122281A (en) * | 2010-01-11 | 2011-07-13 | 腾讯科技(北京)有限公司 | Method, device and system for generating page form |
CN102799690A (en) * | 2012-08-13 | 2012-11-28 | 南京莱斯信息技术股份有限公司 | Method for verifying page input by using database technology |
CN104252463A (en) * | 2013-06-26 | 2014-12-31 | 中国银联股份有限公司 | Db2 database management method based on web system |
CN103984547A (en) * | 2014-05-14 | 2014-08-13 | 上海上讯信息技术股份有限公司 | Form validation method and system |
Also Published As
Publication number | Publication date |
---|---|
CN105354237A (en) | 2016-02-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105354237B (en) | Business data display method | |
CN110889270B (en) | Form page document generation method, form page rendering method and device | |
CN106990952B (en) | Form verification method and system based on Vue | |
CN103077185A (en) | Object-based user-defined information-expanding method | |
CA2539474A1 (en) | System and method for dynamic generation and customization of web service client applications for terminals | |
CN110297999A (en) | A kind of web page template generation method and device, webpage loading method and front-end server and Website server | |
CN109978629B (en) | Advertisement putting method and device, electronic equipment and storage medium | |
CN110109979A (en) | A kind of allocation list radio button method and apparatus | |
CN110019835A (en) | Resource method of combination, device and electronic equipment | |
CN105471968B (en) | A kind of method for interchanging data, system and data platform server | |
CN105549972A (en) | Unified authentication protocol-based mvc frame structure and running method thereof | |
CN111125496A (en) | Price query method, device and system | |
CN113672405A (en) | Data interaction system and page display method based on data interaction system | |
CN110647316A (en) | Method and device for generating universal business object, computer equipment and storage medium | |
CN113626512A (en) | Data processing method, device, equipment and readable storage medium | |
CN113867732A (en) | Message information processing method, system and storage medium | |
CN106844471A (en) | A kind of electronic operation and maintenance system form data processing method and server | |
CN113127108A (en) | Service request processing method and device, storage medium and electronic equipment | |
CN114217795A (en) | Page generation method and device, electronic equipment and readable storage medium | |
CN109684104B (en) | Method and equipment for realizing display of call chain between services | |
CN104750468A (en) | Server side topological data conversion method and device | |
CN113076094A (en) | Front end component construction method and device and electronic equipment | |
CN117349188A (en) | Test case generation method and device based on large model | |
CN103885988B (en) | Export method and device, the content output system of content | |
CN113591448B (en) | Report generation method, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A business data display method Effective date of registration: 20210906 Granted publication date: 20200626 Pledgee: Pacific Anxin Agricultural Insurance Co.,Ltd. Shanghai Minhang branch Pledgor: SHANGHAI HANDPAL INFORMATION TECHNOLOGY SERVICE Co.,Ltd. Registration number: Y2021310000061 |