CN113051355A - Receipt generation method and device, computer equipment and storage medium - Google Patents

Receipt generation method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113051355A
CN113051355A CN202110411928.9A CN202110411928A CN113051355A CN 113051355 A CN113051355 A CN 113051355A CN 202110411928 A CN202110411928 A CN 202110411928A CN 113051355 A CN113051355 A CN 113051355A
Authority
CN
China
Prior art keywords
entity
document
bill
back end
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.)
Granted
Application number
CN202110411928.9A
Other languages
Chinese (zh)
Other versions
CN113051355B (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.)
Xiaomang E Commerce Co ltd
Original Assignee
Hunan Happly Sunshine Interactive Entertainment Media 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 Hunan Happly Sunshine Interactive Entertainment Media Co Ltd filed Critical Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority to CN202110411928.9A priority Critical patent/CN113051355B/en
Publication of CN113051355A publication Critical patent/CN113051355A/en
Application granted granted Critical
Publication of CN113051355B publication Critical patent/CN113051355B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/288Entity relationship models
    • 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/21Design, administration or maintenance of databases
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

According to the bill generation method and device, the computer equipment and the storage medium, the bill opening request is sent to the back end, and the bill opening request indicates the bill which is requested to be opened; receiving configuration information of a bill returned by a back end, wherein the configuration information is obtained by analyzing attributes defined on a bill entity of the bill in advance by the back end, and the attributes are defined in an annotation mode; and generating and displaying the document according to the rendering of the configuration information. According to the method and the device, the generation of the document can be realized only by making annotation statement on the defined entity, document codes do not need to be written again, the labor cost is effectively reduced, and the development efficiency is greatly improved.

Description

Receipt generation method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of software development, in particular to a receipt generation method, a receipt generation device, computer equipment and a storage medium.
Background
While the data in an enterprise resource management (ERP) system are uniformly long, the application picture document of the B/S architecture needs to drag a control to form document model release, or research personnel need to write a document interface by using Html + css + js. Therefore, not only can a new person who meets the staff be trained to work on duty, but also the work of drawing the document is repeated and meaningless, and the document development is time-consuming, labor-consuming and low in efficiency.
Disclosure of Invention
In view of the above, to solve the above problems, the present invention provides a document generation method, apparatus, computer device and storage medium, which improve the data development efficiency in the ERP system on the basis of saving labor cost, and the technical scheme is as follows:
a document generation method, comprising:
a bill opening request is sent to a back end, and the bill opening request indicates a bill which is requested to be opened;
receiving configuration information of the bill returned by the back end, wherein the configuration information is obtained by analyzing attributes defined on a bill entity of the bill in advance by the back end, and the attributes are defined in an annotation mode;
and generating and displaying the bill according to the rendering of the configuration information.
Preferably, the attribute defined on the document entity includes an attribute of at least one first entity in the document entities, and the first entity is used for rendering and generating a control in the document;
the at least one first entity includes any one or more of a toolbar entity, a search bar entity, a list entity, and a classification tree entity.
Preferably, the attributes defined on the document entity further include at least one attribute of a second entity, the second entity being a field in the first entity, the field including any one or more of a foreign key field and a non-foreign key field.
Preferably, the method further comprises the following steps:
responding to the operation of the control on the bill, and sending operation information to the back end to trigger the back end to analyze the operation information into an object for processing by utilizing reflection; the operation information indicates an operation on the control.
Preferably, the attribute of the target entity is an attribute of an inherited base class or an attribute of an unsubscribed base class; the target entity is the first entity or the second entity.
A document generation apparatus comprising:
the bill opening request sending unit is used for sending a bill opening request to a back end, and the bill opening request indicates a bill which is requested to be opened;
a configuration information receiving unit, configured to receive configuration information of the document returned by the back end, where the configuration information is obtained by the back end analyzing an attribute defined in advance on a document entity of the document, and the attribute is defined in an annotation manner;
and the bill generating unit is used for rendering, generating and displaying the bill according to the configuration information.
Preferably, the attribute defined on the document entity includes an attribute of at least one first entity in the document entities, and the first entity is used for rendering and generating a control in the document;
the at least one first entity includes any one or more of a toolbar entity, a search bar entity, a list entity, and a classification tree entity.
Preferably, the attributes defined on the document entity further include at least one attribute of a second entity, the second entity being a field in the first entity, the field including any one or more of a foreign key field and a non-foreign key field.
A computer device, comprising: the system comprises a processor and a memory, wherein the processor and the memory are connected through a communication bus; the processor is used for calling and executing the program stored in the memory; the memory is used for storing programs, and the programs are used for realizing the bill generation method.
A computer readable storage medium having stored thereon a computer program which, when loaded and executed by a processor, carries out the steps of the document generation method.
According to the bill generation method and device, the computer equipment and the storage medium, the bill opening request is sent to the back end, and the bill opening request indicates the bill which is requested to be opened; receiving configuration information of a bill returned by a back end, wherein the configuration information is obtained by analyzing attributes defined on a bill entity of the bill in advance by the back end, and the attributes are defined in an annotation mode; and generating and displaying the document according to the rendering of the configuration information. According to the method and the device, the generation of the document can be realized only by making annotation statement on the defined entity, document codes do not need to be written again, the labor cost is effectively reduced, and the development efficiency is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart of a document generation method provided in an embodiment of the present application;
FIG. 2 is a flow chart of another document generation method provided in the embodiments of the present application;
FIG. 3 is a schematic view of a document provided in an embodiment of the present application;
FIG. 4 is a schematic listing diagram provided by an embodiment of the present application;
FIG. 5 is a schematic view of another document provided in an embodiment of the present application;
FIG. 6 is a schematic view of another document provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a document generating apparatus according to an embodiment of the present application;
fig. 8 is a block diagram of a hardware structure of a computer device to which a document generation method according to an embodiment of the present application is applied.
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.
According to the fact that the application picture documents of the B/S framework are uniformly grown in an enterprise resource management (ERP) system, the application picture documents of the B/S framework need to be dragged to form document model release, or need to write an interface by using Html + css + js, time and labor are wasted, a new person who meets the requirements needs to be trained to be on duty, and the repeated and meaningless work of drawing the documents is considered, so that the application inventor can quickly finish the document model release by a simpler and quicker method.
The inventor thinks that a document is bound with a corresponding entity definitely, and works on the entity, so that the document interface can be automatically rendered by analyzing the entity. Therefore, the document generation method used by the application defines some comments as configuration items of the entity/entity fields, such as fields needing to be displayed on a list interface, fields needing to be displayed on an editing interface, whether the fields can be edited or not, used controls and the like on each field, and definition of function buttons and calling methods of the document; and when the document is rendered, the annotation of the reflection analysis entity is utilized, so that a corresponding document interface can be rendered and generated.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Fig. 1 is a flowchart of a document generation method according to an embodiment of the present application.
As shown in fig. 1, the method includes:
s101, a bill opening request is sent to a back end, and the bill opening request indicates a bill which is requested to be opened;
according to the embodiment of the application, when a user uses the ERP system, the ERP system can be requested to display a certain document by sending a document opening request to the ERP system, the ERP front end receives the document opening request sent by the user and sends the document opening request to the ERP rear end, the ERP rear end can determine the document entity of the document requested to be opened by the document opening request, and analyzes the attribute defined in advance on the document entity to obtain the configuration information of the document, and then the configuration information is returned to the ERP front end.
Illustratively, the attribute defined in advance on the document entity is analyzed to obtain configuration information in the JSON format.
S102, receiving configuration information of the bill returned by the back end, wherein the configuration information is obtained by analyzing attributes defined on a bill entity of the bill in advance by the back end, and the attributes are defined in an annotation mode;
according to the embodiment of the application, the front end of the ERP receives the configuration information of the document returned by the rear end of the ERP, and the document is rendered and generated according to the configuration information, so that the document is displayed.
Illustratively, the ERP front-end can realize the rendering generation of the document by showing the control according to the configuration information.
And S103, generating and displaying the document according to the rendering of the configuration information.
Illustratively, when a document is opened, the attribute defined on the document entity is analyzed into JSON by the back end and is transmitted to the foreground, and the front end displays a corresponding control according to the configuration.
According to the bill generation method provided by the embodiment of the application, a bill opening request is sent to a back end, and the bill opening request indicates a bill which is requested to be opened; receiving configuration information of a bill returned by a back end, wherein the configuration information is obtained by analyzing attributes defined on a bill entity of the bill in advance by the back end, and the attributes are defined in an annotation mode; and generating and displaying the document according to the rendering of the configuration information. According to the method and the device, the generation of the document can be realized only by making annotation statement on the defined entity, document codes do not need to be written again, the labor cost is effectively reduced, and the development efficiency is greatly improved.
Fig. 2 is a flowchart of another document generation method according to an embodiment of the present application.
As shown in fig. 2, the method includes:
s201, a bill opening request is sent to a back end, and the bill opening request indicates a bill which is requested to be opened;
s202, receiving configuration information of the bill returned by the back end, wherein the configuration information is obtained by analyzing attributes defined on a bill entity of the bill in advance by the back end, and the attributes are defined in an annotation mode;
s203, generating and displaying a document according to the rendering of the configuration information;
the execution process of steps S201 to S203 provided in this embodiment is the same as the execution process of steps S101 to S103 provided in the above embodiment, and for the execution process of steps S201 to S203, reference is made to the detailed description of steps S101 to S103 in the above embodiment, which is not repeated herein.
S204, responding to the operation of the control on the document, and sending operation information to the back end to trigger the back end to analyze the operation information into an object for processing by utilizing reflection; the operation information indicates an operation on the control.
Referring to fig. 2, the document generation method provided in the embodiment of the present application may further send operation information to the back end in response to an operation on a control on the document, so as to trigger the back end to analyze the operation information into an object by reflection for processing; the operation information indicates an operation on the control.
Illustratively, when a series of actions are performed on a document, JSON is loaded to the back end according to the key-value of the operated control, and the back end is processed by reflecting and resolving the document into an object according to the field.
The document generation method provided by the embodiment of the present application is further described in detail below from the perspective of defining attributes of a document entity.
According to the method and the device for generating the document, the attribute defined on the document entity comprises the attribute of at least one first entity in the document entity, the first entity is used for rendering and generating a control in the document, and the at least one first entity comprises any one or more of a toolbar entity, a search bar entity, a list entity and a classification tree entity.
For example, a toolbar entity, a search bar entity, a list entity, a classification tree entity, etc. may be referred to as a first entity, and some annotations may be defined as configuration items of the first entity, where the annotations may be considered as attributes of the defined first entity.
Further, the attribute defined on the document entity further includes at least one attribute of a second entity, the second entity is a field in the first entity, the second entity can also be used for rendering a control in the generated document, and the field includes any one or more of a foreign-key field and a non-foreign-key field.
For example, a field may exist on a first entity, and some annotations may be defined as configuration items of the field in the first entity, the field on the first entity may be referred to as a second entity, and the annotation defined for the second entity may be considered as a defined attribute of the second entity.
Illustratively, the second entity may be a foreign key field of the first entity or may be a common field of the first entity. The normal field may also be referred to as a non-foreign field.
Further, the attribute of the target entity may be an attribute of an inherited base class, or may be an attribute of an unsuccessfully inherited base class. The target entity may be the first entity or the second entity.
For example, both the first entity and the second entity may be considered as target entities located in the document entity, and the attributes of the target entities may be defined by inheriting the base class, or may not be defined by inheriting the base class.
In the embodiment of the application, the document is regarded as an entity, the entity can be inherited layer by layer, firstly, a simple entity object is determined to have a primary key id, a tree object is determined to have an object type which is an upstream object of the tree object, and the document generally has document number, service date, document state, document making person, document making time and the like. The features are extracted to be used as base classes, so that tree base classes, list base classes, detail base classes, list base classes and the like are provided.
The annotation is taken as a description of the field/entity:
FIG. 3 is a schematic view of a document provided in an embodiment of the present application; FIG. 4 is a schematic listing diagram provided by an embodiment of the present application; FIG. 5 is a schematic view of another document provided in an embodiment of the present application; fig. 6 is a schematic diagram of another document according to an embodiment of the present application. As can be seen from fig. 3-6, a document typically has a toolbar, search bar, list, and some documents also have a classification tree.
It should be noted that fig. 3 to 6 are provided only for illustrating the composition structure of the document, and specific information content in the document is not shown in detail for ensuring the security of the information in the document.
The toolbar is composed of a plurality of buttons, the buttons can be abstracted into an annotation object, the buttons have properties such as names, field names, calling methods and the like, and the properties are defined as fields of the button objects, so that the toolbar is defined as a button set, the properties of each button are declared, and the corresponding buttons can be taken out during rendering.
The search bar is used for filtering the entity field or the fields of the entity field, and when the fields of the field are filtered, the field is declared as A.B. The search field is thus defined as a collection of field text.
The list is consistent with the search bar principle, but the list may be tree-like, as mentioned above with respect to form entity abstraction, so that when a class inherits from a tree-based class, the list may be rendered as a tree-like list according to the upstream object fields.
The classification tree is consistent with the tree list in entity representation and is a ManyToOone foreign key field, so that a classification attribute is defined on the annotation, and the classification tree is rendered as the classification tree when the field is classified, and is rendered as the list field when the field is defined in the list.
A generic field generally requires knowledge of the type of input box, whether it is readable, width/anchor, and is generally wide when the list interface is used.
The foreign key field can be used for selecting values for the field by rendering an interface for the external connection entity, the enumeration field directly shows enumeration, the detail field is certain to be oneToMany, and the external connection field is rendered into an editable multi-row list control.
When the document is opened, the attribute defined on the document entity is analyzed into JSON and transmitted to the foreground, the foreground displays the corresponding control according to the configuration, when the document performs a series of actions, the JSON is assembled into JSON to the background according to the key-value of each control, and the background is analyzed into an object again according to the field by reflection.
Some documents with functions of adding, deleting, modifying, checking and the like can be defined in the base class. The document generation only needs to make annotation statement on the defined entity, document codes do not need to be written again, all entities inheriting the template class after the document is abstracted do not need to rewrite repeated codes, functions of increasing, deleting, modifying, checking and the like are achieved, labor cost is effectively reduced, and development efficiency is greatly improved.
According to the method and the device, a document is bound with a corresponding entity definitely, and a lesson is done on the entity, so that a document interface can be automatically rendered by analyzing the entity; defining some annotations as configuration items of entity/entity fields, such as fields required to be displayed on a list interface, fields required to be displayed on an editing interface, whether the fields can be edited or not and used controls and the like on each field, and defining function buttons of documents, function button calling methods and the like; and when the document is rendered, the annotation of the reflection analysis entity is utilized, so that a corresponding document interface can be rendered and generated.
At present, similar products and services do not exist in the market, and market demands exist. Aiming at the document development, the front-end technology is not needed to be understood, the document development can be independently completed only by JAVA, the generated form is added, deleted, modified and checked, and the development efficiency is greatly improved.
Fig. 7 is a schematic structural diagram of a document generating apparatus according to an embodiment of the present application.
As shown in fig. 7, the apparatus includes:
a document opening request sending unit 701, configured to send a document opening request to a backend, where the document opening request indicates a document requested to be opened;
a configuration information receiving unit 702, configured to receive configuration information of a document returned by a back end, where the configuration information is obtained by analyzing, by the back end, attributes defined in advance on a document entity of the document, and the attributes are defined in an annotation manner;
and the document generating unit 703 is configured to generate and display a document according to the configuration information.
In the embodiment of the application, preferably, the attribute defined on the document entity includes an attribute of at least one first entity in the document entity, and the first entity is used for rendering and generating a control in the document; the at least one first entity includes any one or more of a toolbar entity, a search bar entity, a list entity, and a classification tree entity.
Further, the attribute defined on the document entity also includes at least one attribute of a second entity, the second entity is a field in the first entity, and the field includes any one or more of a foreign key field and a non-foreign key field.
Further, the document generation device provided by the embodiment of the application further includes an operation processing unit, where the operation processing unit is configured to respond to an operation on a control on the document, and send operation information to the back end to trigger the back end to analyze the operation information into an object by reflection for processing; the operation information indicates an operation on the control.
In the embodiment of the present application, preferably, the attribute of the target entity is an attribute of an inherited base class or an attribute of an unsubscribed base class; the target entity is the first entity or the second entity.
As shown in fig. 8, a block diagram of an implementation manner of a computer device provided in an embodiment of the present application is shown, where the computer device includes:
a memory 801 for storing programs;
a processor 802 for executing a program, the program specifically for:
a bill opening request is sent to the back end, and the bill opening request indicates the bill which is requested to be opened;
receiving configuration information of a bill returned by a back end, wherein the configuration information is obtained by analyzing attributes defined on a bill entity of the bill in advance by the back end, and the attributes are defined in an annotation mode;
and generating and displaying the document according to the rendering of the configuration information.
The processor 802 may be a central processing unit CPU or an Application Specific Integrated Circuit (ASIC).
The control device may further comprise a communication interface 803 and a communication bus 804, wherein the memory 801, the processor 802 and the communication interface 803 communicate with each other via the communication bus 804.
In this embodiment of the present application, preferably, the attribute defined on the document entity includes an attribute of at least one first entity in the document entity, and the first entity is configured to render and generate a control in the document; the at least one first entity includes any one or more of a toolbar entity, a search bar entity, a list entity, and a classification tree entity.
In this embodiment of the application, preferably, the attributes defined on the document entity further include at least one attribute of a second entity, where the second entity is a field in the first entity, and the field includes any one or more of a foreign key field and a non-foreign key field.
Further, a document generation method provided by the embodiment of the present application further includes: responding to the operation of the control on the bill, and sending operation information to the back end to trigger the back end to analyze the operation information into an object for processing by utilizing reflection; the operation information indicates an operation on the control.
In the embodiment of the present application, preferably, the attribute of the target entity is an attribute of an inherited base class or an attribute of an unsubscribed base class; the target entity is the first entity or the second entity.
The embodiment of the present application further provides a readable storage medium, where a computer program is stored, and the computer program is loaded and executed by a processor to implement the steps of the document generation method, where a specific implementation process may refer to descriptions of corresponding parts in the foregoing embodiment, and details are not described in this embodiment.
According to the bill generation method and device, the computer equipment and the storage medium, the bill opening request is sent to the back end, and the bill opening request indicates a bill which is requested to be opened; receiving configuration information of a bill returned by a back end, wherein the configuration information is obtained by analyzing attributes defined on a bill entity of the bill in advance by the back end, and the attributes are defined in an annotation mode; and generating and displaying the document according to the rendering of the configuration information. According to the method and the device, the generation of the document can be realized only by making annotation statement on the defined entity, document codes do not need to be written again, the labor cost is effectively reduced, and the development efficiency is greatly improved.
According to the method and the device, a document is bound with a corresponding entity definitely, and a lesson is done on the entity, so that a document interface can be automatically rendered by analyzing the entity; defining some annotations as configuration items of entity/entity fields, such as fields required to be displayed on a list interface, fields required to be displayed on an editing interface, whether the fields can be edited or not and used controls and the like are defined on each field, and defining function buttons of the document, calling methods of the function buttons and the like.
The document generation method, the document generation device, the computer device and the storage medium provided by the invention are described in detail, a specific example is applied in the document to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include or include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A document generation method, comprising:
a bill opening request is sent to a back end, and the bill opening request indicates a bill which is requested to be opened;
receiving configuration information of the bill returned by the back end, wherein the configuration information is obtained by analyzing attributes defined on a bill entity of the bill in advance by the back end, and the attributes are defined in an annotation mode;
and generating and displaying the bill according to the rendering of the configuration information.
2. The method of claim 1, wherein the attributes defined on the document entities include attributes of at least one first entity of the document entities, the first entity being used to render controls in the generated document;
the at least one first entity includes any one or more of a toolbar entity, a search bar entity, a list entity, and a classification tree entity.
3. The method of claim 2 wherein the attributes defined on the document entity further include attributes of at least one second entity, the second entity being a field in the first entity, the field including any one or more of a foreign key field and a non-foreign key field.
4. The method of claim 1, further comprising:
responding to the operation of the control on the bill, and sending operation information to the back end to trigger the back end to analyze the operation information into an object for processing by utilizing reflection; the operation information indicates an operation on the control.
5. The method of claim 4, wherein the property of the target entity is a property of an inherited base class or a property of an unsubscribed base class; the target entity is the first entity or the second entity.
6. A document generation apparatus, comprising:
the bill opening request sending unit is used for sending a bill opening request to a back end, and the bill opening request indicates a bill which is requested to be opened;
a configuration information receiving unit, configured to receive configuration information of the document returned by the back end, where the configuration information is obtained by the back end analyzing an attribute defined in advance on a document entity of the document, and the attribute is defined in an annotation manner;
and the bill generating unit is used for rendering, generating and displaying the bill according to the configuration information.
7. The apparatus of claim 6, wherein the attributes defined on the document entities include attributes of at least one first entity of the document entities, the first entity being used to render controls in the generated document;
the at least one first entity includes any one or more of a toolbar entity, a search bar entity, a list entity, and a classification tree entity.
8. The apparatus according to claim 7 wherein the attributes defined on the document entity further include at least one attribute of a second entity, the second entity being a field in the first entity, the field including any one or more of a foreign key field and a non-foreign key field.
9. A computer device, comprising: the system comprises a processor and a memory, wherein the processor and the memory are connected through a communication bus; the processor is used for calling and executing the program stored in the memory; the memory for storing a program for implementing a document generation method as claimed in any one of claims 1 to 5.
10. A computer-readable storage medium having stored thereon a computer program which, when loaded and executed by a processor, carries out the steps of a document generation method according to any of claims 1 to 5.
CN202110411928.9A 2021-04-16 2021-04-16 Document generation method and device, computer equipment and storage medium Active CN113051355B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110411928.9A CN113051355B (en) 2021-04-16 2021-04-16 Document generation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110411928.9A CN113051355B (en) 2021-04-16 2021-04-16 Document generation method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113051355A true CN113051355A (en) 2021-06-29
CN113051355B CN113051355B (en) 2023-07-18

Family

ID=76519809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110411928.9A Active CN113051355B (en) 2021-04-16 2021-04-16 Document generation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113051355B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102640143A (en) * 2009-03-20 2012-08-15 Ad-优势网络有限责任公司 Methods and systems for searching, selecting, and displaying content
US20150074081A1 (en) * 2013-09-06 2015-03-12 Sap Ag Entity-relationship model extensions using annotations
US20160147725A1 (en) * 2014-11-25 2016-05-26 Microsoft Technology Licensing, Llc Entity based content selection
CN106796598A (en) * 2014-09-03 2017-05-31 起元科技有限公司 The calculating of management level entity
CN109542425A (en) * 2018-11-15 2019-03-29 厦门商集网络科技有限责任公司 A kind of automation application method and system being sold supply chain
CN110989976A (en) * 2019-11-29 2020-04-10 北京美络克思科技有限公司 Web application componentization development method based on J2EE, storage medium and electronic device
CN111027295A (en) * 2019-11-11 2020-04-17 浙江大搜车软件技术有限公司 Data processing method, data processing device, computer equipment and storage medium
CN111767057A (en) * 2020-06-29 2020-10-13 京东城市(北京)数字科技有限公司 Data processing method and device
CN112580065A (en) * 2019-09-29 2021-03-30 北京京东尚科信息技术有限公司 Data query method and device
CN112631564A (en) * 2020-12-18 2021-04-09 微民保险代理有限公司 Content management system-based interface generation method, device, equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102640143A (en) * 2009-03-20 2012-08-15 Ad-优势网络有限责任公司 Methods and systems for searching, selecting, and displaying content
US20150074081A1 (en) * 2013-09-06 2015-03-12 Sap Ag Entity-relationship model extensions using annotations
CN106796598A (en) * 2014-09-03 2017-05-31 起元科技有限公司 The calculating of management level entity
US20160147725A1 (en) * 2014-11-25 2016-05-26 Microsoft Technology Licensing, Llc Entity based content selection
CN109542425A (en) * 2018-11-15 2019-03-29 厦门商集网络科技有限责任公司 A kind of automation application method and system being sold supply chain
CN112580065A (en) * 2019-09-29 2021-03-30 北京京东尚科信息技术有限公司 Data query method and device
CN111027295A (en) * 2019-11-11 2020-04-17 浙江大搜车软件技术有限公司 Data processing method, data processing device, computer equipment and storage medium
CN110989976A (en) * 2019-11-29 2020-04-10 北京美络克思科技有限公司 Web application componentization development method based on J2EE, storage medium and electronic device
CN111767057A (en) * 2020-06-29 2020-10-13 京东城市(北京)数字科技有限公司 Data processing method and device
CN112631564A (en) * 2020-12-18 2021-04-09 微民保险代理有限公司 Content management system-based interface generation method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张继军等: "《Java Web应用开发技术与案例教程》", 30 April 2019 *
张芒,刘洪舟: "《基于同望V3开发平台的信息系统快速开发技术》", 31 January 2017 *

Also Published As

Publication number Publication date
CN113051355B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
WO2020155760A1 (en) Multi-database data processing method, apparatus, computer device, and storage medium
US8392873B2 (en) Methods and apparatus for implementing model-based software solution development and integrated change management
US9075787B2 (en) Defining a reusable spreadsheet-function by extracting the function from a complex calculation in a spreadsheet document
US7913225B2 (en) Error handling using declarative constraints in a graphical modeling tool
US7917815B2 (en) Multi-layer context parsing and incident model construction for software support
US9047346B2 (en) Reporting language filtering and mapping to dimensional concepts
WO2019095424A1 (en) Data acquisition method and device, storage medium and terminal
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
US20110016451A1 (en) Method and system for generating test cases for a software application
US20130054627A1 (en) Systems And Methods For Providing A Data Glossary Management System
TW201405452A (en) Workflow management device and workflow management method
CN104731588B (en) Page layout document generating method and page layout file creating apparatus
Bao et al. Tracking and Analyzing Cross-Cutting Activities in Developers' Daily Work (N)
US9384285B1 (en) Methods for identifying related documents
CN111126008A (en) XSD-based code generation method and device, computer equipment and storage medium
US20170277738A1 (en) Temporal representation of structured information in an object model
CN113051355A (en) Receipt generation method and device, computer equipment and storage medium
CN115510361A (en) Data chart page generation method based on visual configuration and related equipment
CN116225902A (en) Method, device and equipment for generating test cases
CN114880015B (en) Task configuration method, device, equipment and storage medium
CN111124386B (en) Animation event processing method, device, equipment and storage medium based on Unity
CN113655942A (en) Chart data display method and device
CN112417027A (en) Data processing method, system, terminal and medium for visual operation database
Wanderley et al. Transforming creative requirements into conceptual models
CN112328837A (en) Data display method, device, equipment 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
TA01 Transfer of patent application right

Effective date of registration: 20230628

Address after: Room 7, Room 49, No.1 Yazipu Road, Yuehu Street, Kaifu District, Changsha City, 410000, Hunan Province

Applicant after: Xiaomang e-commerce Co.,Ltd.

Address before: 410003 North 4th floor, Hunan International Convention and Exhibition Center, Kaifu District, Changsha City, Hunan Province

Applicant before: HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA Co.,Ltd.

GR01 Patent grant
GR01 Patent grant