CN103699431A - Bill multiple-view realization method and device - Google Patents

Bill multiple-view realization method and device Download PDF

Info

Publication number
CN103699431A
CN103699431A CN201210367706.2A CN201210367706A CN103699431A CN 103699431 A CN103699431 A CN 103699431A CN 201210367706 A CN201210367706 A CN 201210367706A CN 103699431 A CN103699431 A CN 103699431A
Authority
CN
China
Prior art keywords
view
metadata
document
current document
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210367706.2A
Other languages
Chinese (zh)
Inventor
唐静
于成刚
李涛
李云华
王光杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201210367706.2A priority Critical patent/CN103699431A/en
Publication of CN103699431A publication Critical patent/CN103699431A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a bill multiple-view realization method and a bill multiple-view realization device. The method comprises the following steps that a video building instruction of the current bill is received; when the current bill is judged to be an expansion bill, the differential quantity metadata is loaded; the differential metadata is the differential quantity between the metadata of the current bill and the metadata of the original bill; an expansion object is generated according to the differential quantity metadata; the view configuration instruction is received, and the view of the current bill is configured on the basis of the view of the original bill according to the configuration instruction and the expansion object; the view of the current bill is generated, and in addition, the metadata of the view of the current bill is stored. The metadata differential quantity scheme and the element layout strategy of a meta model are adopted, so the method and the device have the advantages that a plurality of views can be built for one bill, the requirement of showing the bills under different service scenes into different views can be met, the application is flexible, the expansibility is high, the user defined layout or secondary development is supported, and the development and maintenance cost is effectively reduced.

Description

Many view realizations of document method and apparatus
Technical field
The present invention relates to technical field of data processing, specially refer to many view realizations of document method and apparatus.
Background technology
In ERP(Enterprise Resource Planning, Enterprise Resources Plan) in system, document is business datum after abstract and the carrier of service logic, saves as document metadata in ERP system.Conventionally, in order to meet enterprise customer's demand, document can show on EPR system foreground by view form, comprises interface layout and partial logic control.In existing EPR system, a common document is corresponding to a view, and different documents need to be set up different views, and extensibility is not strong, and data structure is complicated, applies dumb.
Summary of the invention
A kind of extensibility is strong, data structure is simple in order to provide for fundamental purpose of the present invention, many view realizations of document method and apparatus of applying flexible.
The present invention proposes a kind of many view realizations of document method, comprises step:
The view that receives current document builds instruction;
When judging that current document is expansion document, load residual quantity metadata; The metadata that described residual quantity metadata is current document and the residual quantity between the metadata of original document;
According to described residual quantity metadata, generate EXPANDING DISPLAY AREA;
Receive view configuration instruction, according to described configuration-direct and EXPANDING DISPLAY AREA, on the view basis of described original document, configure the view of current document;
Generate the view of current document, and preserve the metadata of the view of current document.
Preferably, after the step of the view of the current document of described reception structure instruction, also comprise:
When judging that current document is not expansion document, load the metadata of current document;
Receive view configuration instruction, according to the metadata of described configuration-direct and current document, configure the view of current document, and carry out the view of the current document of described generation, and preserve the step of metadata of the view of current document.
Preferably, described many view realizations of document method, also comprises step:
Receive layout request;
When judging that described layout request comprises view load information, the metadata stack by the view of the metadata of current document and current document, generates view layout's metadata;
Resolve described view layout metadata, and according to the described view layout metadata after resolving, generate the visualization interface of current document.
Preferably, after the step of described reception layout request, also comprise:
While not comprising view load information in judging described layout request, resolve the metadata of current document, and according to the metadata of the current document after resolving, generate the visualization interface of current document.
The present invention also proposes a kind of many view realizations of document device, comprising:
Command reception module, builds instruction for receiving the view of current document; Receive view configuration instruction;
Metadata load-on module, for when judging that current document is expansion document, loads residual quantity metadata; The metadata that described residual quantity metadata is current document and the residual quantity between the metadata of original document;
EXPANDING DISPLAY AREA generation module, for according to described residual quantity metadata, generates EXPANDING DISPLAY AREA;
View configuration module for according to described configuration-direct and EXPANDING DISPLAY AREA, configures the view of current document on the view basis of described original document;
View generation module, for generating the view of current document, and preserves the metadata of the view of current document.
Preferably, described metadata load-on module also for, when judging that current document is not expansion document, load the metadata of current document;
Described view configuration module also for, according to the metadata of described configuration-direct and current document, configure the view of current document.
Preferably, described command reception module also for, receive layout request;
Described many view realizations of document device also comprises:
Laminating module, for when judging that described layout request comprises view load information, the metadata stack by the view of the metadata of current document and current document, generates view layout's metadata;
Parsing module, for resolving described view layout metadata;
Interface generation module, for according to the view layout's metadata after resolving, generates the visualization interface of current document.
Preferably, described parsing module also for, while not comprising view load information in judging described layout request, resolve the metadata of current document;
Described interface generation module also for, according to the metadata of the current document after resolving, generate the visualization interface of current document.
The present invention adopts the element placement strategy of the poor quantization scheme of metadata and meta-model, make a document can create a plurality of views, meet different business scene under document be shown as the demand of different views, applying flexible, extendability is strong, support User Defined layout or secondary development, effectively reduce development and maintenance cost.
Accompanying drawing explanation
Fig. 1 generates the process flow diagram of view in many view realizations of document method of the present invention;
Fig. 2 loads the process flow diagram of view in many view realizations of document method of the present invention;
Fig. 3 is the structural representation of the first embodiment of many view realizations of document device of the present invention;
Fig. 4 is the structural representation of the second embodiment of many view realizations of document device of the present invention.
The realization of the object of the invention, functional characteristics and advantage, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 generates the process flow diagram of view in many view realizations of document method of the present invention.Many view realizations of document method that the present embodiment is mentioned, comprising:
Step S110, the view that receives current document builds instruction; Execution step S120;
Step S120, judges whether current document is expansion document; If so, perform step S130; If not, perform step S160;
From data structure, between expansion document and original document, there is metadata residual quantity; From business, can to original document, carry out secondary development by expansion document.
Step S130, loads residual quantity metadata; Execution step S140;
Residual quantity metadata is the residual quantity between the metadata of current document and the metadata of original document, expands the residual quantity between the metadata of document and the metadata of original document.
Step S140, according to residual quantity metadata, generates EXPANDING DISPLAY AREA; Execution step S150;
Step S150, receives view configuration instruction, according to configuration-direct and EXPANDING DISPLAY AREA, configures the view of current document on the view basis of original document; Execution step S180;
According to configuration-direct and EXPANDING DISPLAY AREA, to each element on the view of original document again topological design, form new view.According to the structure principle of meta-model, the element in meta-model using the view of original document and EXPANDING DISPLAY AREA, relation and the expression way between each element of layout again, to realize the view configuration to current document.
Step S160, loads the metadata of current document; Execution step S170;
Step S170, receives view configuration instruction, according to the metadata of configuration-direct and current document, configures the view of current document; Execution step S180;
If current document is not expansion document, current document is an original document, directly according to the metadata configurations view of this original document, as original document view, realizes basic configuration feature.
Step S180, generates the view of current document, and preserves the metadata of the view of current document.
The present embodiment adopts the element placement strategy of the poor quantization scheme of metadata and meta-model, make a document can create a plurality of views, meet the demand that document under different business scene is shown as different views, applying flexible, extendability is strong, support User Defined layout or secondary development, effectively reduce development and maintenance cost.
As shown in Figure 2, Fig. 2 loads the process flow diagram of view in many view realizations of document method of the present invention.Many view realizations of document method of the present embodiment also comprises:
Step S210, receives layout request; Execution step S220;
Step S220, judges in layout request, whether to comprise view load information; If so, perform step S230; If not, perform step S250;
Step S230, the metadata stack by the view of the metadata of current document and current document, generates view layout's metadata; Execution step S240;
Step S240, resolves view layout's metadata, and according to the view layout's metadata after resolving, generates the visualization interface of current document;
When document need to be shown with view layout, when reading document metadata, also read view metadata, by document metadata and the stack of view metadata, the new metadata that generation comprises view layout, realize the assembling of view metadata and document metadata, meet each business scenario document is shown to requirement.
Step S250, resolves the metadata of current document, and according to the metadata of the current document after resolving, generates the visualization interface of current document.
When document need to not shown with view layout, can directly be connected on application layer interface, improve document and show speed.
The present embodiment superposes by document metadata and view metadata, realize the loading of view, when view metadata comprises residual quantity metadata, the visualization interface building comprises EXPANDING DISPLAY AREA, can realize a document and create a plurality of views, meet the demand that document under different business scene is shown as different views, applying flexible, extendability is strong.
As shown in Figure 3, Fig. 3 is the structural representation of the first embodiment of many view realizations of document device of the present invention.Many view realizations of document device that the present embodiment is mentioned comprises:
Command reception module 10, builds instruction for receiving the view of current document; Receive view configuration instruction;
Metadata load-on module 20, for when judging that current document is expansion document, loads residual quantity metadata; Residual quantity metadata is the residual quantity between the metadata of current document and the metadata of original document;
EXPANDING DISPLAY AREA generation module 30, for according to residual quantity metadata, generates EXPANDING DISPLAY AREA;
View configuration module 40 for according to configuration-direct and EXPANDING DISPLAY AREA, configures the view of current document on the view basis of original document;
View generation module 50, for generating the view of current document, and preserves the metadata of the view of current document.
The expansion document of the present embodiment is from data structure, and between original document, has metadata residual quantity; From business, can to original document, carry out secondary development by expansion document.Residual quantity metadata is the residual quantity between the metadata of current document and the metadata of original document, expands the residual quantity between the metadata of document and the metadata of original document.According to configuration-direct and EXPANDING DISPLAY AREA, to each element on the view of original document again topological design, form new view.According to the structure principle of meta-model, the element in meta-model using the view of original document and EXPANDING DISPLAY AREA, relation and the expression way between each element of layout again, to realize the view configuration to current document.The present embodiment adopts the element placement strategy of the poor quantization scheme of metadata and meta-model, make a document can create a plurality of views, meet the demand that document under different business scene is shown as different views, applying flexible, extendability is strong, support User Defined layout or secondary development, effectively reduce development and maintenance cost.
The metadata load-on module 20 of the embodiment of the present invention also for, when judging that current document is not expansion document, load the metadata of current document;
View configuration module 40 also for, according to the metadata of configuration-direct and current document, configure the view of current document.
The current document of the present embodiment is if not expansion document, and current document is an original document, directly according to the metadata configurations view of this original document, as original document view, realizes basic configuration feature.
As shown in Figure 4, Fig. 4 is the structural representation of the second embodiment of many view realizations of document device of the present invention.Many view realizations of document device of the present embodiment also comprises:
Laminating module 60, for when judging that layout request comprises view load information, the metadata stack by the view of the metadata of current document and current document, generates view layout's metadata;
Parsing module 70, for resolving view layout's metadata;
Interface generation module 80, for according to the view layout's metadata after resolving, generates the visualization interface of current document;
The command reception module 10 of many view realizations of document device also for, receive layout request;
In the present embodiment, when document need to be shown with view layout, when reading document metadata, also read view metadata, by document metadata and the stack of view metadata, the new metadata that generation comprises view layout, realizes the assembling of view metadata and document metadata, meets each business scenario document is shown to requirement.The present embodiment superposes by document metadata and view metadata, realize the loading of view, when view metadata comprises residual quantity metadata, the visualization interface building comprises EXPANDING DISPLAY AREA, can realize a document and create a plurality of views, meet the demand that document under different business scene is shown as different views, applying flexible, extendability is strong.
The parsing module 70 of the embodiment of the present invention also for, while not comprising view load information in judging layout request, resolve the metadata of current document;
Interface generation module 80 also for, according to the metadata of the current document after resolving, generate the visualization interface of current document.
In the present embodiment, when document need to not shown with view layout, can directly be connected on application layer interface, improve document and show speed.
The foregoing is only the preferred embodiments of the present invention; not thereby limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes instructions of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (8)

1. many view realizations of document method, is characterized in that, comprises step:
The view that receives current document builds instruction;
When judging that current document is expansion document, load residual quantity metadata; The metadata that described residual quantity metadata is current document and the residual quantity between the metadata of original document;
According to described residual quantity metadata, generate EXPANDING DISPLAY AREA;
Receive view configuration instruction, according to described configuration-direct and EXPANDING DISPLAY AREA, on the view basis of described original document, configure the view of current document;
Generate the view of current document, and preserve the metadata of the view of current document.
2. many view realizations of document method according to claim 1, is characterized in that, the step that the view of the current document of described reception builds instruction also comprises afterwards:
When judging that current document is not expansion document, load the metadata of current document;
Receive view configuration instruction, according to the metadata of described configuration-direct and current document, configure the view of current document, and carry out the view of the current document of described generation, and preserve the step of metadata of the view of current document.
3. many view realizations of document method according to claim 1 and 2, is characterized in that, also comprises step:
Receive layout request;
When judging that described layout request comprises view load information, the metadata stack by the view of the metadata of current document and current document, generates view layout's metadata;
Resolve described view layout metadata, and according to the described view layout metadata after resolving, generate the visualization interface of current document.
4. many view realizations of document method according to claim 3, is characterized in that, after the step of described reception layout request, also comprises:
While not comprising view load information in judging described layout request, resolve the metadata of current document, and according to the metadata of the current document after resolving, generate the visualization interface of current document.
5. many view realizations of document device, is characterized in that, comprising:
Command reception module, builds instruction for receiving the view of current document; Receive view configuration instruction;
Metadata load-on module, for when judging that current document is expansion document, loads residual quantity metadata; The metadata that described residual quantity metadata is current document and the residual quantity between the metadata of original document;
EXPANDING DISPLAY AREA generation module, for according to described residual quantity metadata, generates EXPANDING DISPLAY AREA;
View configuration module for according to described configuration-direct and EXPANDING DISPLAY AREA, configures the view of current document on the view basis of described original document;
View generation module, for generating the view of current document, and preserves the metadata of the view of current document.
6. many view realizations of document device according to claim 5, is characterized in that, described metadata load-on module also for, when judging that current document is not expansion document, load the metadata of current document;
Described view configuration module also for, according to the metadata of described configuration-direct and current document, configure the view of current document.
7. according to many view realizations of the document device described in claim 5 or 6, it is characterized in that, described command reception module also for, receive layout request;
Described many view realizations of document device also comprises:
Laminating module, for when judging that described layout request comprises view load information, the metadata stack by the view of the metadata of current document and current document, generates view layout's metadata;
Parsing module, for resolving described view layout metadata;
Interface generation module, for according to the view layout's metadata after resolving, generates the visualization interface of current document.
8. many view realizations of document device according to claim 7, is characterized in that, described parsing module also for, while not comprising view load information in judging described layout request, resolve the metadata of current document;
Described interface generation module also for, according to the metadata of the current document after resolving, generate the visualization interface of current document.
CN201210367706.2A 2012-09-28 2012-09-28 Bill multiple-view realization method and device Pending CN103699431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210367706.2A CN103699431A (en) 2012-09-28 2012-09-28 Bill multiple-view realization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210367706.2A CN103699431A (en) 2012-09-28 2012-09-28 Bill multiple-view realization method and device

Publications (1)

Publication Number Publication Date
CN103699431A true CN103699431A (en) 2014-04-02

Family

ID=50360970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210367706.2A Pending CN103699431A (en) 2012-09-28 2012-09-28 Bill multiple-view realization method and device

Country Status (1)

Country Link
CN (1) CN103699431A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391830A (en) * 2014-10-24 2015-03-04 华迪计算机集团有限公司 Method and device for dynamic layout of bill page
CN109445830A (en) * 2018-12-28 2019-03-08 金蝶软件(中国)有限公司 A kind of extended metadata upgrade method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1924857A (en) * 2006-04-27 2007-03-07 南京联创科技股份有限公司 Complex operation driven multiple dynamic page design method
CN102207861A (en) * 2010-06-25 2011-10-05 南京联创科技集团股份有限公司 Method for expressing personalized information in business
CN102609271A (en) * 2012-02-20 2012-07-25 山东大学 Metadata-driven visual SaaS (Software as a Service) application customizing method and metadata-driven visual SaaS application customizing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1924857A (en) * 2006-04-27 2007-03-07 南京联创科技股份有限公司 Complex operation driven multiple dynamic page design method
CN102207861A (en) * 2010-06-25 2011-10-05 南京联创科技集团股份有限公司 Method for expressing personalized information in business
CN102609271A (en) * 2012-02-20 2012-07-25 山东大学 Metadata-driven visual SaaS (Software as a Service) application customizing method and metadata-driven visual SaaS application customizing system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391830A (en) * 2014-10-24 2015-03-04 华迪计算机集团有限公司 Method and device for dynamic layout of bill page
CN109445830A (en) * 2018-12-28 2019-03-08 金蝶软件(中国)有限公司 A kind of extended metadata upgrade method and system
CN109445830B (en) * 2018-12-28 2022-03-25 金蝶软件(中国)有限公司 Method and system for upgrading extended metadata

Similar Documents

Publication Publication Date Title
CN103955364B (en) A kind of front end assemblies method suitable for mobile phone
CN102541831B (en) Method and device for serializing document editing commands
CN102819766A (en) Method, device and enterprise system for checking forms
CN102890632A (en) Screen adaptation method, system and terminal device
CN106484464B (en) Tuner chip driving method and electronic equipment
CN104598107A (en) Generating method and system of interface control
CN102882928A (en) Hierarchical storage management method of cloud storing system
CN103870303A (en) Method and device for reducing size of software installation package
CN105867944B (en) Web front end data operation layer and its implementation
US20130097578A1 (en) Dynamically selecting service provider, computing system, computer, and program
CN107832177A (en) A kind of EDP method of testings, system, equipment and the storage medium of more GPU systems
CN103914287A (en) Plug-in mechanism based software system and implementation method thereof
CN105160018A (en) Method, device and system for image copy/paste
CN103488504A (en) Method and device for loading data
CN109101311B (en) Display view compatibility method and electronic equipment
CN103699431A (en) Bill multiple-view realization method and device
CN111427918A (en) Transaction detail data comparison method and device
CN105450656A (en) APP data configuration method, device, server and system
CN106921688A (en) The service providing method and distributed system of distributed system
CN102469083A (en) User authentication method and apparatus thereof, and enterprise system
CN103399776A (en) Creation method and system for reusable MOCK
CN117234712A (en) Computing power resource deployment method, computing power resource deployment device, computer equipment and storage medium
CN103473106A (en) Method and system for generating page
CN108446141B (en) Web front-end plug-in and method for scheduling and communicating based on same
CN102437945B (en) Method, device and architecture for introducing route and medium engine into Camel

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140402

RJ01 Rejection of invention patent application after publication