CN108196921A - Document development approach, device, computer equipment and storage medium - Google Patents
Document development approach, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN108196921A CN108196921A CN201711433443.XA CN201711433443A CN108196921A CN 108196921 A CN108196921 A CN 108196921A CN 201711433443 A CN201711433443 A CN 201711433443A CN 108196921 A CN108196921 A CN 108196921A
- Authority
- CN
- China
- Prior art keywords
- interface
- document
- template
- content
- metadata
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
- G06F40/18—Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
-
- 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/903—Querying
- G06F16/9038—Presentation of query results
-
- 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/907—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Library & Information Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A kind of document development approach, including:Obtain document interface metadata and metadata of interface;Obtain default document interface template and preset interface template;According to document interface metadata and the default document interface template generation document interface;According to document interface the corresponding interface described in the metadata of interface and the preset interface template generation, document interface the corresponding interface is sent to terminal.It realizes and develops document using metadata, improve the efficiency of exploitation document.A kind of document development device, computer equipment and storage medium are also provided.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of document development approach, device, computer equipment and
Storage medium.
Background technology
Metadata, also known as broker data, relaying data, to describe the data of data, mainly describe the letter of data attribute
Breath, for supporting such as to indicate storage location, historical data, resource lookup, file record function.Traditional document exploitation is per capita
Development time developed a document for 1-2 days, and the development time, quality is unable to control, and caused time-consuming and laborious, and development efficiency is not
It is high.
Invention content
Based on this, it is necessary to which, for above-mentioned technical problem, efficient document development approach, dress can be carried by providing one kind
It puts, computer equipment and storage medium.
A kind of document development approach, including:
Obtain document interface metadata and metadata of interface;
Obtain default document interface template and preset interface template;
According to document interface metadata and default document interface template generation document interface;
According to metadata of interface and preset interface template generation document interface the corresponding interface, document interface the corresponding interface is sent out
Give terminal.
Document interface template is preset in one of the embodiments, includes default interface framework template and default interface element
Template generates document interface according to document interface metadata and default document interface template, including:
According to document interface metadata and default interface element template generation document interface element template;
Respective element in default interface framework template is replaced according to document interface element template, obtains document interface.
It is accordingly connect according to metadata of interface and preset interface template generation document interface in one of the embodiments,
Mouthful, after document interface the corresponding interface is sent to terminal, further include:
Obtain document particular content metadata, preset table query template and default relation template;
First query statement is obtained according to document particular content metadata and preset table query template, the first query statement is used
In the corresponding field in ergodic data source;
Data source incidence relation sentence is obtained according to the metadata of document particular content and default relation template;
Data source name in data source incidence relation sentence is replaced with into the first query statement, obtains the second inquiry language
Sentence;
Inquiry mode is obtained according to the metadata of document particular content, is taken according to inquiry mode and the second query statement composition
Access template is sent to terminal by digital-to-analogue plate.
In one of the embodiments, in the sentence and data source according to inquiry mode, the corresponding field in ergodic data source
Incidence relation sentence composition access template, after access template is sent to terminal, including:
Obtain the target document content that terminal utilizes document interface the corresponding interface to return, target document content be terminal according to
Access template obtains;
Obtain document interface;
By target document content write-in document interface, the document interface with target document content is obtained.
Document interface is being written into target document content in one of the embodiments, is being obtained with target document content
Document interface after, further include:
When target document content is wrong, error prompting information is sent to terminal;
Receive the change information that terminal returns;
Obtain the document interface with target document content;
The change information of return is written to document interface corresponding position, obtains document circle with fresh target document content
Face.
Document interface is being written into target document content in one of the embodiments, is being obtained with target document content
Document interface after, including:
The instruction of target document content modification is received, more fresh target document content is obtained according to modification instruction, it will more fresh target
Document content is sent to terminal using document interface the corresponding interface.
Document interface is being written into target document content in one of the embodiments, is being obtained with target document content
Document interface after, including:
When target document content is wrong, error prompting information is sent to terminal;
Receive the fresh target document content that terminal utilizes document interface the corresponding interface to return;
The wrong document interface of target document content is preserved;
Document interface is obtained, fresh target document content is written in document interface, is obtained with fresh target document content
Document interface.
A kind of document development device, including:
Metadata acquisition module, for obtaining document interface metadata and metadata of interface;
Template acquisition module, for obtaining default document interface template and preset interface template;
Interface generation module, for according to document interface metadata and default document interface template generation document interface;
Interface generation module, for according to metadata of interface and preset interface template generation document interface the corresponding interface, inciting somebody to action
Document interface the corresponding interface is sent to terminal.
A kind of computer equipment can be run on a memory and on a processor including memory, processor and storage
Computer program, processor realize the step in any of the above-described document development approach when performing program.
A kind of computer storage media, is stored thereon with computer program, which realizes above-mentioned when being executed by processor
Step in any one document development approach.
It is above-mentioned to be based on document development approach, device, computer equipment and storage medium, by obtaining document interface metadata
With metadata of interface;Obtain default document interface template and preset interface template;According to document interface metadata and default document
Interface template generation document interface;According to metadata of interface and preset interface template generation document interface the corresponding interface, by document
Interface the corresponding interface is sent to terminal.Document interface and document interface the corresponding interface are generated by metadata, realize document
Interface and the quick exploitation of document interface the corresponding interface can improve the development efficiency of document.
Description of the drawings
Fig. 1 is the application scenario diagram of document development approach in one embodiment;
Fig. 2 is the flow diagram of document development approach in one embodiment;
Fig. 3 is to obtain the flow diagram at document interface in one embodiment;
Fig. 4 is the document interface schematic diagram that Fig. 3 is obtained in one embodiment;
Fig. 5 is the flow diagram of composition access template in one embodiment;
Fig. 6 is to obtain the flow diagram with the document interface of target document content in one embodiment;
Fig. 7 is to obtain the flow diagram with the document interface of fresh target document content in one embodiment;
Fig. 8 is to obtain the flow diagram with the document interface of fresh target document content in another embodiment;
Fig. 9 is the structure diagram of document development device in one embodiment;
Figure 10 is the internal structure chart of one embodiment Computer equipment.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
As shown in Figure 1, in one embodiment, a kind of application scenario diagram of document development approach is provided, including server
102 and terminal 104, server 102 and 104 network connection of terminal.Server 102 obtains document interface metadata and interface member number
According to, then default document interface template and preset interface template are obtained, then according to document interface metadata and default document interface
Template generation document interface.Server 102 further according to metadata of interface and preset interface template generation document interface the corresponding interface,
Document interface the corresponding interface is sent to terminal 104, realizes the exploitation of document.
As shown in Fig. 2, in one embodiment, provide a kind of flow diagram of document development approach.This method application
Server 102 in Fig. 1, includes the following steps:
S202 obtains document interface metadata and metadata of interface.
Wherein, the metadata at document interface is the element and the specific object of element for describing to show on document interface.
Specific object includes position, control type, correspondence markings, title and coding of element etc., the metadata at document interface on interface
It can be used for generating document interface.Metadata of interface is the method for describing interface, and metadata of interface defines the tune of interface
With method and data transmission method, can be used for generating interface and data transmission method.Document interface metadata and interface member number
According to being pre-designed according to the document interface to be generated and interface.Document interface metadata is with metadata of interface according to client
Demand be continually changing.Server will get pre-designed document interface metadata and metadata of interface.Such as:
Metadata of interface can be content as shown in Table 1:
1 metadata of interface table of table
Wherein, metadata of interface includes the corresponding parameter of method name, method, method return value and the method exception of interface
Deng.Different default templates is had according to different grammers, is illustrated by taking the preset interface template of java grammers and table 3 as an example, is generated
Interface can be java.lang.String postData (paramAmount, paramOriAmount)
java.lang.Exception,java.lang.IllegalArgumentException{}.Wherein java.lang.String
It is return value, postData is method name, and (paramAmount, paramOriAmount) is the parameter of method,
Java.lang.Exception, java.lang.IllegalArgumentException are the exceptions of method.
S204 obtains default document interface template and preset interface template.
Wherein, presetting document interface template is pre-set for generating the Code Template at document interface, Ke Yisheng
Into the human-computer interaction interface needed for document.Preset interface template is pre-set for generating the Code Template of interface.Root
According to the demand of user, there are many types for template.Different templates is had according to different grammers.Can more it be accelerated using template
The generation document interface of speed and interface, and can be used for multiple times.Server obtains default document interface template and preset interface
Template.
S206, according to document interface metadata and default document interface template generation document interface.
Specifically, the metadata at document interface is written in default document interface template using Code Generator, it is raw
Into the code needed for description document interface, operation code obtains document interface.The metadata at document interface describes document interface
The element of upper display and the specific object of element, default document interface template describes the pattern at interface to be generated, according to document
Interface metadata and default document interface template can generate document interface.It can be using the document interface as the mould of document
The particular content of document can be written in document interface by plate, just obtain the document interface of specific document content.It can incite somebody to action
The document interface is printed, and has just obtained document.It can also be directly by the document interface saving of specific document content, with after an action of the bowels
Continuous management.
S208, it is according to metadata of interface and preset interface template generation document interface the corresponding interface, document interface is corresponding
Interface is sent to terminal.
Specifically, metadata of interface is written in preset interface template using Code Generator, description document is obtained
Code needed for the corresponding interface of interface obtains the code file of description document interface the corresponding interface, code file is sent to end
End.The code file of the interface can be set in different terminals, can when server obtains the particular content at document interface
The interface to be called to carry out data transmission in terminal, the uniformity of data ensure that.
In above-described embodiment, document interface metadata and metadata of interface are obtained by server;Obtain default document circle
Face die plate and preset interface template.According to document interface metadata and default document interface template generation document interface.According to connecing
Mouth metadata and preset interface template generation document interface the corresponding interface, terminal is sent to by document interface the corresponding interface.Pass through
Metadata generates document interface and document interface the corresponding interface, realizes the quick of document interface and document interface the corresponding interface
Exploitation can improve the development efficiency of document.
As shown in figure 3, it in one embodiment, presets document interface template and includes default interface framework template and default boundary
Surface element template, according to document interface metadata and default document interface template generation document interface, including step:
S302, according to document interface metadata and default interface element template generation document interface element template.
Wherein, document interface element refers to form the field at document interface.Default interface element template describes Interface Element number
According to the Code Template of corresponding interface element.The particular content of document interface metadata is written to default interface element template
In, obtain the document interface element template to be generated.Such as document interface metadata can be as shown in table 2:
2 document interface metadata of table
Coding | Title | Control type | Affiliated entry | Correspondence markings | … |
name | Title | text | entity | billentry | |
phone | Phone | text | Nothing | billhead | |
… |
Wherein, coding is the attribute coding of interface element, and title is the Property Name of interface element, and control type refers to boundary
Type, input frame time of the corresponding control of surface element etc..It is affiliated to record separately as entity (entity) or nothing, without representing the boundary
Surface element is gauge outfit.Correspondence markings refer to interface framework element insertion position.If acquisition control type is text, it is encoded to
Phone, the affiliated interface of document of entitled phone, the document interface element template of generation can be name:<br><input
Type=" text " name=" phone "><br>.
S304 replaces the respective element in default interface framework template according to document interface element template, obtains document circle
Face.
Default interface framework template is used to describe the overall structure and frame at document interface, and interface framework template has element label
Enter label, for representing interface element insertion position.It is replaced in default interface framework template according to document interface element template
Respective element obtains document interface.For example, obtained document interface can be with as shown in figure 4, be that a document interface generated shows
It is intended to.
In above-described embodiment, by according to document interface metadata, default interface framework template and default interface element mould
Plate pre-generatmg document interface, the method for specifically illustrating generation document interface use document Interface Element when generating document interface
Data and template improve the efficiency of exploitation document.
As shown in figure 5, in one embodiment, according to metadata of interface and preset interface template generation document interface phase
Interface is answered, after document interface the corresponding interface is sent to terminal, further includes step:
S502 obtains document particular content metadata, preset table query template and default relation template.
Wherein, document particular content metadata be used for describe document particular content storage data source, data source attribute,
With the mode of access.Preset table query template is used to generate the sentence in ergodic data source.Default relation template is used to generate data
The sentence of incidence relation between source.When according to metadata of interface and preset interface template generation document interface the corresponding interface, general
Document interface the corresponding interface is sent to after terminal, server obtain document particular content metadata, preset table query template and
Default relation template.Such as:Document particular content metadata can be as shown in table 3:
3 document particular content metadata table of table
Wherein, the type of data source is DataBase_Table, and the attribute of data source includes title, value, major key and data
Relationship etc. between source.The contents such as mode, result, result type and the result object name of document particular content.
S504 obtains the first query statement, the first inquiry according to document particular content metadata and preset table query template
Sentence is used for the corresponding field in ergodic data source.
The first query statement is obtained using document particular content metadata and preset table query template, the first query statement is used
In the corresponding field in ergodic data source.For example, by taking table 2 as an example, the first obtained query statement can be mainTable=traversals
All field from T_Tk_ExpenseType of T_Tk_ExpenseType;EntryTable1=traverses T_Tk_
All field from T_Tk_ExpenseTypeEntry1 of ExpenseTypeEntry1;EntryTable2=traversal from T_
All field from T_Tk_ExpenseTypeEntry2 of Tk_ExpenseTypeEntry2.
S506 obtains data source incidence relation sentence according to the metadata of document particular content and default relation template.
Data source incidence relation sentence is obtained according to the metadata of document particular content and default relation template, specifically,
By taking table 2 as an example, relation template is table 1Left join table 2on tables 1_R. major keys=table 2_R. major keys, then the data source obtained is closed
It is mainTable left join entryTable1on mainTable.FID=T_Tk_ to join relational statement
ExpenseTypeEntry1.ENTRYID1left join entryTable2on mainTable.FID=T_Tk_
ExpenseTypeEntry2.ENTRYID2。
Data source name in data source incidence relation sentence is replaced with the first query statement, obtains second and look by S508
Ask sentence.
The dataSource link replaced in data source incidence relation sentence is known as the first query statement, has just obtained the second inquiry
Sentence.Such as:By taking table 2 as an example, the second obtained query statement can be
Traverse all field from T_Tk_ExpenseType of T_Tk_ExpenseType
All field from T_Tk_ of left join traversal T_Tk_ExpenseTypeEntry1
ExpenseTypeEntry1on mainTable.FID=T_Tk_ExpenseTypeEntry1.ENTRYID1
All field from T_Tk_ of left join traversal from T_Tk_ExpenseTypeEntry2
ExpenseTypeEntry2on mainTable.FID=T_Tk_ExpenseTypeEntry2.ENTRYID2.
S510 obtains inquiry mode, according to inquiry mode and the second query statement according to the metadata of document particular content
Access template is sent to terminal by composition access template.
Wherein, access template is can to perform, for obtaining the template of document particular content.First number of document particular content
There is the specific inquiry mode for obtaining data in, by the inquiry mode and the second query statement composition access template to get to taking
Access template is sent to terminal by several executable statements in the form of configuration file, and terminal obtains access template and by access
Template performs, and gets document particular content,
In above-described embodiment, by obtaining document particular content metadata, preset table query template and default relation template;
First query statement is obtained according to document particular content metadata and preset table query template, the first query statement is used to traverse number
According to the corresponding field in source;Data source incidence relation sentence is obtained according to the metadata of document particular content and default relation template;
Data source name in data source incidence relation sentence is replaced with into the first query statement, obtains the second query statement;According to list
Inquiry mode is obtained according to the metadata of particular content, according to inquiry mode and the second query statement composition access template, will be fetched
Template is sent to terminal, and terminal is made to obtain document particular content using template of fetching, efficiency is improved and enhances the system of data
One property.
As shown in fig. 6, in one embodiment, in the sentence according to inquiry mode, the corresponding field in ergodic data source and
Data source incidence relation sentence composition access template, after access template is sent to terminal, including step:
S602, obtains the target document content that terminal utilizes document interface the corresponding interface to return, and target document content is eventually
End is obtained according to access template.
Specifically, terminal, which performs access template, obtains target document content, then target document content is turned into row format
It changes, obtains the data that can be transmitted.Server gets the data transmitted that terminal is returned using document interface the corresponding interface, so
Afterwards by the data conversion that can be transmitted into target document content.
S604 obtains document interface.
S606 by target document content write-in document interface, obtains the document interface with target document content.
Specifically, target document content is written under corresponding receipt field, the document with target document content is obtained
Interface.
In one embodiment, target document content is got, can first be preset target document content write service device
In data source, corresponding target document content in data source is then called when showing document interface, display has target document
The document interface of content.Wherein, data source refers to the database of stored target document content set in the server in advance
Or tables of data.
In the above-described embodiments, the target document content that terminal utilizes document interface the corresponding interface to return is obtained, is obtained single
According to interface, by target document content write-in document interface, the document interface with target document content is obtained.Realize target list
According to the synchronization of content, server is made to obtain target document content in terminal and carries out unified preservation, facilitates management.
As shown in fig. 7, in one embodiment, document interface is being written into target document content, is being obtained with target list
After the document interface of content, step is further included:
When target document content is wrong, error prompting information is sent to terminal by S702.
When the vicious information of the target document content that server obtains, server sends error prompting letter to terminal
Breath.Wherein, error prompting information describes the mistake in target document content.
S704 receives the change information that terminal returns.
When terminal receives error prompting information, according to error prompting information by the vicious place of target document content
It is modified, the content of change is then sent to server, the change information that server receiving terminal returns.
S706 obtains the document interface with target document content.
The document interface with target document content is the document interface containing wrong target document content.It gets
The document interface.
The change information of return is written to document interface corresponding position by S708, obtains having fresh target document content
Document interface.
Specifically, by the position that target document content is wrong in document interface is written to from the change information that terminal obtains,
The document interface of fresh target document content is obtained, i.e. target document content in the document interface was modified.
In above-described embodiment, when target document content is wrong, error prompting information is sent to terminal, terminal is received and returns
Change information, obtain with target document content document interface, it is corresponding that the change information of return is written to document interface
Position obtains the document interface with fresh target document content.It realizes and carries out content wrong in target document content more
Change, ensure that the data accuracy preserved in server.
In one embodiment, document interface is being written into target document content, is obtaining the list with target document content
After interface, including:The instruction of target document content modification is received, more fresh target document content is obtained according to modification instruction, it will
More fresh target document content is sent to terminal using document interface the corresponding interface.
Specifically, when finding that the content in target document content is wrong, server receives target document content modification
Content wrong in target document content according to modification instruction is modified, obtains newer target document content by instruction, will
Newer target document content is sent to terminal using document interface the corresponding interface.Terminal is received in newer target document
Hold, according to the wrong target document content of newer target document content modification, realize the synchronization of data, ensure the system of data
One.
As shown in figure 8, in one embodiment, document interface is being written into target document content, is being obtained with target list
After the document interface of content, including step:
When target document content is wrong, error prompting information is sent to terminal by S802.
S804 receives the fresh target document content that terminal utilizes document interface the corresponding interface to return.
When terminal receives error prompting information, terminal obtains corresponding correct mesh according to error prompting information at this time
Mark all the elements in document content.Terminal will again be sent correct target document content using document interface the corresponding interface
To server.Server receives fresh target document content.
S806 preserves the wrong document interface of target document content.
Server will preserve the wrong document interface of target document content, gives over to and deposits bottom.
S808 obtains document interface, fresh target document content is written in document interface, is obtained with fresh target document
The document interface of content.
Specifically, obtaining the document interface of generation, fresh target document content is written to the corresponding position in document interface
Place, obtains the document interface of fresh target document content, that is, obtain the document interface with correct target document content.
In above-described embodiment, when target document content is wrong, error prompting information is sent to terminal, terminal is received and utilizes
The fresh target document content that document interface the corresponding interface returns, the wrong document interface of target document content is preserved, is obtained
Document interface is taken, fresh target document content is written in document interface, obtains the document interface with fresh target document content,
The document interface with fresh target document content is retrieved, the data that can make preservation are accurate.
As shown in figure 9, a kind of document development device 900 is provided, including metadata acquisition module 902, template acquisition module
904th, interface generation module 906 and interface generation module 908.Wherein:
Metadata acquisition module 902, for obtaining document interface metadata and metadata of interface.
Template acquisition module 904, for obtaining default document interface template and preset interface template.
Interface generation module 906, for according to document interface metadata and default document interface template generation document interface.
Interface generation module 908, for according to metadata of interface and preset interface template generation document interface the corresponding interface,
Document interface the corresponding interface is sent to terminal.
In above-described embodiment, document interface metadata and metadata of interface are obtained by metadata acquisition module 902, in mould
Plate acquisition module 904 obtains default document interface template and preset interface template, according to document circle in interface generation module 906
Face element data and default document interface template generation document interface, finally according to document Interface Element in interface generation module 908
Data and default document interface template generation document interface.The exploitation of document is carried out using data, improves efficiency.
In one embodiment, interface generation module 906, including:
Element template generation module, for according to document interface metadata and default interface element template generation document interface
Element template.
Replacement module for replacing the respective element in default interface framework template according to document interface element template, obtains
To document interface.
In one embodiment, a kind of document development device 900, further includes:
Acquisition module, for obtaining document particular content metadata, preset table query template and default relation template.
First query statement obtains module, for obtaining according to document particular content metadata and preset table query template
One query statement, the first query statement are used for the corresponding field in ergodic data source.
Relational statement obtains module, and data source is obtained for the metadata according to document particular content and default relation template
Incidence relation sentence.
Second query statement obtains module, for the data source name in data source incidence relation sentence to be replaced with first
Query statement obtains the second query statement.
Access template comprising modules, for obtaining inquiry mode according to the metadata of document particular content, according to issuer
Formula and the second query statement composition access template, terminal is sent to by access template.
In one embodiment, a kind of document development device 900, further includes:
Content obtaining module, for obtaining the target document content that terminal utilizes document interface the corresponding interface to return, target
Document content is that terminal is obtained according to access template.
Document obtains module, for obtaining document interface;Target document content write-in document interface is obtained with target
The document interface of document content.
In one embodiment, a kind of document development device 900, further includes:
Mistake sending module, for when target document content is wrong, error prompting information to be sent to terminal.
Information receiving module is changed, for receiving the change information of terminal return.
Information writing module is changed, for obtaining the document interface with target document content.By the change information of return
Document interface corresponding position is written to, obtains the document interface with fresh target document content.
In one embodiment, a kind of document development device 900, further includes:
Sending module is updated, for receiving the instruction of target document content modification, more fresh target list is obtained according to modification instruction
According to content, more fresh target document content is sent to terminal using document interface the corresponding interface.
In one embodiment, a kind of document development device 900, further includes:
Mistake sending module, for when target document content is wrong, error prompting information to be sent to terminal.
New content receiving module, for receiving the fresh target document content that terminal utilizes document interface the corresponding interface to return.
Preserving module, for the wrong document interface of target document content to be preserved.
For obtaining document interface, fresh target document content is written in document interface for writing module, obtains having new
The document interface of target document content.
As shown in Figure 10, in one embodiment, a kind of computer equipment is provided, including what is connected by system bus
Processor, memory, storage medium, network interface.Memory includes built-in storage and non-volatile memory medium, the computer
Operating system and a kind of computer program of document development device are stored in the non-volatile memory medium of equipment, which opens
The computer program of transmitting apparatus is used to implement a kind of document development approach.The processor of the computer equipment for provide calculate and
Control ability is configured as performing a kind of document development approach.Built-in storage in the computer equipment is non-volatile memories
The operation of computer program in medium provides environment.Network interface in the computer equipment is used to receiving or sending document
Particular content.Input unit in the computer equipment is for obtaining document interface metadata and metadata of interface etc., the meter
The display device in machine equipment is calculated for showing the document interface of generation or there is the document interface of document content.The computer
Equipment can be desktop computer or such as smart mobile phone, tablet computer or the mobile terminal of personal digital assistant.
It will be understood by those skilled in the art that the structure shown in Figure 10, only with the frame of the relevant part-structure of the present invention program
Figure, does not form the restriction for the computer equipment being applied thereon to the present invention program, specific computer equipment can wrap
It includes and either combines certain components than components more or fewer shown in figure or arranged with different components.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage on a memory
And the computer program that can be run on a processor, processor realize the step in document development approach when performing program:It obtains
Document interface metadata and metadata of interface;Obtain default document interface template and preset interface template;According to document Interface Element
Data and default document interface template generation document interface;According to metadata of interface and preset interface template generation document interface phase
Interface is answered, document interface the corresponding interface is sent to terminal.
In one embodiment, it presets document interface template and includes default interface framework template and default interface element mould
Plate generates document interface according to document interface metadata and default document interface template, including:According to document interface metadata and
Default interface element template generation document interface element template;Default interface framework template is replaced according to document interface element template
In respective element, obtain document interface.
In one embodiment, it according to metadata of interface and preset interface template generation document interface the corresponding interface, incites somebody to action
Document interface the corresponding interface is sent to after terminal, is further included:Obtain document particular content metadata, preset table query template and
Default relation template;First query statement, the first inquiry are obtained according to document particular content metadata and preset table query template
Sentence is used for the corresponding field in ergodic data source;Data source is obtained according to the metadata of document particular content and default relation template
Incidence relation sentence;Data source name in data source incidence relation sentence is replaced with into the first query statement, second is obtained and looks into
Ask sentence;Inquiry mode is obtained according to the metadata of document particular content, is taken according to inquiry mode and the second query statement composition
Access template is sent to terminal by digital-to-analogue plate.
In one embodiment, it is associated with according to the sentence of inquiry mode, the corresponding field in ergodic data source with data source
Relational statement composition access template, after access template is sent to terminal, including:Terminal is obtained accordingly to connect using document interface
The target document content that mouth returns, target document content are that terminal is obtained according to access template;Obtain document interface;By target
Document content write-in document interface, obtains the document interface with target document content.
In one embodiment, document interface is being written into target document content, is obtaining the list with target document content
After interface, further include:When target document content is wrong, error prompting information is sent to terminal;Receive what terminal returned
Change information;Obtain the document interface with target document content;The change information of return is written to document interface corresponding positions
It puts, obtains the document interface with fresh target document content.
In one embodiment, document interface is being written into target document content, is obtaining the list with target document content
After interface, including:The instruction of target document content modification is received, more fresh target document content is obtained according to modification instruction, it will
More fresh target document content is sent to terminal using document interface the corresponding interface.
In one embodiment, document interface is being written into target document content, is obtaining the list with target document content
After interface, including:When target document content is wrong, error prompting information is sent to terminal;It receives terminal and utilizes document
The fresh target document content that interface the corresponding interface returns;The wrong document interface of target document content is preserved;It obtains single
According to interface, fresh target document content is written in document interface, obtains the document interface with fresh target document content.
A kind of computer readable storage medium, is stored thereon with computer program, which realizes when being executed by processor
The step of document development approach:Obtain document interface metadata and metadata of interface;It obtains default document interface template and presets
Interface model;According to document interface metadata and default document interface template generation document interface;According to metadata of interface and in advance
If interface model generation document interface the corresponding interface, terminal is sent to by document interface the corresponding interface.
In one embodiment, it presets document interface template and includes default interface framework template and default interface element mould
Plate generates document interface according to document interface metadata and default document interface template, including:According to document interface metadata and
Default interface element template generation document interface element template;Default interface framework template is replaced according to document interface element template
In respective element, obtain document interface.
In one embodiment, it according to metadata of interface and preset interface template generation document interface the corresponding interface, incites somebody to action
Document interface the corresponding interface is sent to after terminal, is further included:Obtain document particular content metadata, preset table query template and
Default relation template;First query statement, the first inquiry are obtained according to document particular content metadata and preset table query template
Sentence is used for the corresponding field in ergodic data source;Data source is obtained according to the metadata of document particular content and default relation template
Incidence relation sentence;Data source name in data source incidence relation sentence is replaced with into the first query statement, second is obtained and looks into
Ask sentence;Inquiry mode is obtained according to the metadata of document particular content, is taken according to inquiry mode and the second query statement composition
Access template is sent to terminal by digital-to-analogue plate.
In one embodiment, it is associated with according to the sentence of inquiry mode, the corresponding field in ergodic data source with data source
Relational statement composition access template, after access template is sent to terminal, including:Terminal is obtained accordingly to connect using document interface
The target document content that mouth returns, target document content are that terminal is obtained according to access template;Obtain document interface;By target
Document content write-in document interface, obtains the document interface with target document content.
In one embodiment, document interface is being written into target document content, is obtaining the list with target document content
After interface, further include:When target document content is wrong, error prompting information is sent to terminal;Receive what terminal returned
Change information;Obtain the document interface with target document content;The change information of return is written to document interface corresponding positions
It puts, obtains the document interface with fresh target document content.
In one embodiment, document interface is being written into target document content, is obtaining the list with target document content
After interface, including:The instruction of target document content modification is received, more fresh target document content is obtained according to modification instruction, it will
More fresh target document content is sent to terminal using document interface the corresponding interface.
In one embodiment, document interface is being written into target document content, is obtaining the list with target document content
After interface, including:When target document content is wrong, error prompting information is sent to terminal;It receives terminal and utilizes document
The fresh target document content that interface the corresponding interface returns;The wrong document interface of target document content is preserved;It obtains single
According to interface, fresh target document content is written in document interface, obtains the document interface with fresh target document content.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, it is non-volatile computer-readable that the program can be stored in one
It takes in storage medium, in the embodiment of the present invention, which can be stored in the non-volatile memory medium of computer system, and
It is performed by least one of computer system processor, to realize the flow for including the embodiment such as above-mentioned each method.Its
In, the storage medium can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) or random storage
Memory body (Random Access Memory, RAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, it is all considered to be the range of this specification record.
Embodiment described above only expresses the several embodiments of the present invention, and description is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that those of ordinary skill in the art are come
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of document development approach, the method includes:
Obtain document interface metadata and metadata of interface;
Obtain default document interface template and preset interface template;
According to document interface metadata and the default document interface template generation document interface;
According to document interface the corresponding interface described in the metadata of interface and the preset interface template generation, by document circle
Face the corresponding interface is sent to terminal.
2. according to the method described in claim 1, it is characterized in that, the default document interface template includes default interface framework
Template and default interface element template, it is described to be generated singly with the default document interface template according to document interface metadata
According to interface, including:
According to document interface metadata and default interface element template generation document interface element template;
Respective element in default interface framework template is replaced according to document interface element template, obtains the document interface.
3. according to the method described in claim 1, it is characterized in that, according to the metadata of interface and the preset interface mould
Plate generates document interface the corresponding interface, after document interface the corresponding interface is sent to terminal, further includes:
Obtain document particular content metadata, preset table query template and default relation template;
First query statement, the first inquiry language are obtained according to the document particular content metadata and preset table query template
Sentence is used for the corresponding field in ergodic data source;
Data source incidence relation sentence is obtained according to the metadata of the document particular content and default relation template;
Data source name in data source incidence relation sentence is replaced with into the first query statement, obtains the second query statement;
Inquiry mode is obtained according to the metadata of the document particular content, according to the inquiry mode and the second inquiry language
Sentence composition access template, terminal is sent to by access template.
4. according to the method described in claim 3, it is characterized in that, according to the inquiry mode, the ergodic data source pair
Sentence and data source incidence relation sentence the composition access template for the field answered, after access template is sent to terminal, including:
The target document content that terminal utilizes document interface the corresponding interface to return is obtained, the target document content is terminal
It is obtained according to access template;
Obtain the document interface;
The document interface is written into the target document content, obtains the document interface with target document content.
5. according to the method described in claim 4, it is characterized in that, the target document content is written document circle
Face after obtaining the document interface with target document content, further includes:
When target document content is wrong, error prompting information is sent to terminal;
Receive the change information that the terminal returns;
Obtain the document interface with target document content;
The change information of the return is written to document interface corresponding position, obtains document circle with fresh target document content
Face.
6. according to the method described in claim 4, it is characterized in that, the target document content is written document circle
Face, after obtaining the document interface with target document content, including:
The instruction of target document content modification is received, more fresh target document content is obtained according to the modification instruction, it will more fresh target
Document content is sent to terminal using document interface the corresponding interface.
7. according to the method described in claim 4, it is characterized in that, the target document content is written document circle
Face, after obtaining the document interface with target document content, including:
When target document content is wrong, error prompting information is sent to terminal;
Receive the fresh target document content that the terminal utilizes document interface the corresponding interface to return;
The wrong document interface of target document content is preserved;
The document interface is obtained, fresh target document content is written in document interface, is obtained with fresh target document content
Document interface.
8. a kind of document development device, which is characterized in that including:
Metadata acquisition module, for obtaining document interface metadata and metadata of interface;
Template acquisition module, for obtaining default document interface template and preset interface template;
Interface generation module, for generating document circle according to document interface metadata and the default document interface template
Face;
Interface generation module, it is corresponding for the document interface according to the metadata of interface and the preset interface template generation
Document interface the corresponding interface is sent to terminal by interface.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that the processor realizes any one of claim 1-7 document exploitations when performing described program
Step in method.
10. a kind of computer storage media, is stored thereon with computer program, which is characterized in that the program is executed by processor
Step in any one of the Shi Shixian claims 1-7 document development approaches.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711433443.XA CN108196921B (en) | 2017-12-26 | 2017-12-26 | Document development method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711433443.XA CN108196921B (en) | 2017-12-26 | 2017-12-26 | Document development method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108196921A true CN108196921A (en) | 2018-06-22 |
CN108196921B CN108196921B (en) | 2021-03-16 |
Family
ID=62584187
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711433443.XA Active CN108196921B (en) | 2017-12-26 | 2017-12-26 | Document development method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108196921B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109473178A (en) * | 2018-11-12 | 2019-03-15 | 北京懿医云科技有限公司 | Method, system, equipment and the storage medium of medical data integration |
CN111625219A (en) * | 2020-05-22 | 2020-09-04 | 杭州指令集智能科技有限公司 | BO component processing method, device and equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101661508A (en) * | 2009-09-29 | 2010-03-03 | 金蝶软件(中国)有限公司 | Method for generating memu for multi-technology platform and device thereof |
CN102360290A (en) * | 2011-09-29 | 2012-02-22 | 用友软件股份有限公司 | Form building device and form building method |
CN103064659A (en) * | 2011-10-21 | 2013-04-24 | 镇江金软计算机科技有限责任公司 | Software as a service (SAAS) model based on metadata extraction user-defined worksheet system |
CN103246733A (en) * | 2013-05-13 | 2013-08-14 | 浪潮集团山东通用软件有限公司 | Dynamic form system based on metadata and generation method thereof |
CN105320690A (en) * | 2014-07-30 | 2016-02-10 | 北京中海纪元数字技术发展股份有限公司 | Metadata based rapid statistic form generation method and system |
CN106951430A (en) * | 2016-12-28 | 2017-07-14 | 金蝶软件(中国)有限公司 | Account table querying method and device |
-
2017
- 2017-12-26 CN CN201711433443.XA patent/CN108196921B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101661508A (en) * | 2009-09-29 | 2010-03-03 | 金蝶软件(中国)有限公司 | Method for generating memu for multi-technology platform and device thereof |
CN102360290A (en) * | 2011-09-29 | 2012-02-22 | 用友软件股份有限公司 | Form building device and form building method |
CN103064659A (en) * | 2011-10-21 | 2013-04-24 | 镇江金软计算机科技有限责任公司 | Software as a service (SAAS) model based on metadata extraction user-defined worksheet system |
CN103246733A (en) * | 2013-05-13 | 2013-08-14 | 浪潮集团山东通用软件有限公司 | Dynamic form system based on metadata and generation method thereof |
CN105320690A (en) * | 2014-07-30 | 2016-02-10 | 北京中海纪元数字技术发展股份有限公司 | Metadata based rapid statistic form generation method and system |
CN106951430A (en) * | 2016-12-28 | 2017-07-14 | 金蝶软件(中国)有限公司 | Account table querying method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109473178A (en) * | 2018-11-12 | 2019-03-15 | 北京懿医云科技有限公司 | Method, system, equipment and the storage medium of medical data integration |
CN111625219A (en) * | 2020-05-22 | 2020-09-04 | 杭州指令集智能科技有限公司 | BO component processing method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108196921B (en) | 2021-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106980605B (en) | contract generation method and device | |
CN109948134B (en) | Report automatic generation method, system, electronic equipment and storage medium | |
CN101122899B (en) | Report generation method and device | |
US20180107725A1 (en) | Data Storage Method and Apparatus, and Data Read Method and Apparatus | |
CN109815471A (en) | Contract text generation method, device, computer equipment and storage medium | |
CN109343851A (en) | Page generation method, device, computer equipment and storage medium | |
CN110413690A (en) | Method of data synchronization, server, electronic equipment, the storage medium of database | |
CN106708480A (en) | Management platform realization method and apparatus | |
CN108509400A (en) | Document template generation method, device, computer equipment and storage medium | |
CN109447820B (en) | Data processing method, device, computer equipment and storage medium | |
US10078663B2 (en) | Dual overlay query processing | |
CN110245469A (en) | Watermark generation method, watermark analytic method, device and the storage medium of webpage | |
CN108196921A (en) | Document development approach, device, computer equipment and storage medium | |
CN104375814A (en) | Generation method and device of an interface document | |
CN109783184A (en) | User's customizing form generation method | |
CN109241371A (en) | Map data storage method, loading method, device and computer equipment | |
CN112988142A (en) | Attribute table generation method and device | |
CN117332766A (en) | Flow chart generation method, device, computer equipment and storage medium | |
CN101971171A (en) | Method and apparatus for the page-by-page provision of an electronic document as a computer graphic | |
CN106776510A (en) | Word embeds form generation method and device | |
CN108427691A (en) | Network data transmission method, device and computer equipment | |
CN110046336A (en) | Position encoded sheet disposal method and system | |
CN115935938B (en) | Automatic generation method and device for case report | |
CN113095051B (en) | Method, device, computer equipment and storage medium for generating response mark enterprise report | |
CN114004211B (en) | Document template generation method, processing method, device, computer equipment and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |