CN102819558A - Data display device and data display method - Google Patents

Data display device and data display method Download PDF

Info

Publication number
CN102819558A
CN102819558A CN2012102244980A CN201210224498A CN102819558A CN 102819558 A CN102819558 A CN 102819558A CN 2012102244980 A CN2012102244980 A CN 2012102244980A CN 201210224498 A CN201210224498 A CN 201210224498A CN 102819558 A CN102819558 A CN 102819558A
Authority
CN
China
Prior art keywords
data
data set
hierarchical relationship
data object
field
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
CN2012102244980A
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.)
Yonyou Software Co Ltd
Original Assignee
Yonyou Software 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 Yonyou Software Co Ltd filed Critical Yonyou Software Co Ltd
Priority to CN2012102244980A priority Critical patent/CN102819558A/en
Publication of CN102819558A publication Critical patent/CN102819558A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a data display device, comprising a field selection module, a data inquiry module and a data display module, wherein the field selection module is used for selecting a special field of a first data object and the special field is a field of a second data object; the data inquiry module is used for inquiring a second data set of the second data object according to the value of the special field in a first data set of the first data object; and the data display module is used for displaying the first data set according to a hierarchy relationship of the second data set. Correspondingly, the invention further provides a data display method. With the adoption of the technical scheme of the invention, non-hierarchy relationship data of a user can be configured into hierarchy relationship data to be displayed on a list interface as a tree structure, so that the user can more clearly understand a relationship between the data.

Description

Data display device and method for exhibiting data
Technical field
The present invention relates to the data display technical field, in particular to a kind of data display device and a kind of method for exhibiting data.
Background technology
When tabulating the type showing interface, many data generally are to be illustrated on the user interface with a kind of parallel organization relation as the table body, are difficult to embody its inherent hierarchical relationship.Under forefathers' effort, successfully realized hierarchical structure data is presented in the function on the list interface with tree-like form.But; In real world applications; Some object data itself is not the tree structure data that has set membership, and its data acquisition can not form tree data structure, and just the interior corresponding object data of certain attribute field of object data is the tree structure data that has set membership.At this moment, just needing a kind of new technical scheme, can be the hierarchical relationship data with user's non-hierarchical relationship data configuration, shows in list interface with tree structure, concerns so that the user more clearly understands between data.
Summary of the invention
Technical matters to be solved by this invention is, a kind of new technical scheme is provided, and can be the hierarchical relationship data with user's non-hierarchical relationship data configuration, shows in list interface with tree structure, concerns so that the user more clearly understands between data.
In view of this, the invention provides a kind of data display device, comprising: field is selected module, selects the specific fields of first data object, and said specific fields also is the field of second data object; The data query module according to the value of the said specific fields of first data centralization of said first data object, inquires second data set of said second data object; The data display module according to the hierarchical relationship of said second data set, is showed said first data set.In the present technique scheme; Said first data object is the data object of non-hierarchical relationship for its data set that need carry out the level arrangement; Said second data object is for its data set possesses hierarchical relationship and possesses the data object with same certain special field of said first data object.Select module that the field of said first data object is selected through said field; Select said specific fields; This field also is present among the field of said second data object simultaneously; And the data set of this said second data object possesses hierarchical relationship, like this, just a kind ofly can represent the hierarchical relationship that concerns between its data for said first data set that does not originally possess hierarchical relationship has found.
In technique scheme, preferably, also comprise: the data sorting module, before showing said first data set, sort to said first data set by predetermined way.In the present technique scheme, said predetermined way can be that said first data set is carried out the level ordering according to its hierarchical relationship through second data set on the said specific fields correspondence.
In technique scheme, preferably, said data display module is showed said first data set with tree structure according to said hierarchical relationship in tabulation.In the present technique scheme, show the hierarchical relationship between this number of data sets certificate that shows that said first data set can be clear and definite according to said tree structure.
In technique scheme, preferably, said data display module is carried out indentation to the sub level data of said data centralization and is handled.In the present technique scheme, the sub level data of said data centralization are carried out seeming more succinct when said indentation processing can make data on user interface, show the hierarchical relationship between the outstanding more simultaneously data.
In technique scheme, preferably, said specific fields is the major key of said second data object.In the present technique scheme; Because the major key of data object is most important or describe the clearest and the most definite field for data characteristics in data object often; Successively said specific fields is elected as the major key of said second data object; More help finding required hierarchical relationship, and then be convenient to realize that first data set to said first data object sorts and shows.
The present invention also provides a kind of method for exhibiting data, comprising: step 202, select the specific fields of first data object, and said specific fields also is the field of second data object; Step 204 according to the value of the said specific fields of first data centralization of said first data object, inquires second data set of said second data object; Step 206 according to the hierarchical relationship of said second data set, is showed said first data set.In the present technique scheme; Said first data object is the data object of non-hierarchical relationship for its data set that need carry out the level arrangement; Said second data object is for its data set possesses hierarchical relationship and possesses the data object with same certain special field of said first data object.Through the field of said first data object is selected; Select said specific fields; This field also is present among the field of said second data object simultaneously; And the data set of this said second data object possesses hierarchical relationship, like this, just a kind ofly can represent the hierarchical relationship that concerns between its data for said first data set that does not originally possess hierarchical relationship has found.
In technique scheme, preferably, said step 206 also comprises: before showing said first data set, by predetermined way said first data set is sorted.In the present technique scheme, said predetermined way can be that said first data set is carried out the level ordering according to its hierarchical relationship through second data set on the said specific fields correspondence.
In technique scheme, preferably, said step 206 also comprises: according to said hierarchical relationship, in tabulation, show said first data set with tree structure.In the present technique scheme, show the hierarchical relationship between this number of data sets certificate that shows that said first data set can be clear and definite according to said tree structure.
In technique scheme, preferably, said step 206 also comprises: the sub level data of said data centralization are carried out indentation handle.In the present technique scheme, the sub level data of said data centralization are carried out seeming more succinct when said indentation processing can make data on user interface, show the hierarchical relationship between the outstanding more simultaneously data.
In technique scheme, preferably, said specific fields is the major key of said second data object.In the present technique scheme; Because the major key of data object is most important or describe the clearest and the most definite field for data characteristics in data object often; Successively said specific fields is elected as the major key of said second data object; More help finding required hierarchical relationship, and then be convenient to realize that first data set to said first data object sorts and shows.
Through above technical scheme, can be the hierarchical relationship data with user's non-hierarchical relationship data configuration, show in list interface with tree structure, so that more clearly understanding between data, the user concerns.
Description of drawings
Fig. 1 shows the block diagram of data display device according to an embodiment of the invention;
Fig. 2 shows the process flow diagram of method for exhibiting data according to an embodiment of the invention;
Fig. 3 shows the concrete realization flow figure of method for exhibiting data according to an embodiment of the invention;
Fig. 4 shows the figure of depth-first arthmetic statement according to an embodiment of the invention;
Fig. 5 shows user interface design sketch according to an embodiment of the invention.
Embodiment
In order more to be expressly understood above-mentioned purpose of the present invention, feature and advantage, the present invention is further described in detail below in conjunction with accompanying drawing and embodiment.
Set forth a lot of details in the following description so that make much of the present invention, still, the present invention can also adopt other to be different from other modes described here and implement, and therefore, the present invention is not limited to the restriction of following disclosed specific embodiment.
Fig. 1 shows the block diagram of data display device according to an embodiment of the invention.
As shown in Figure 1, the data display device 100 according to an embodiment of the invention, comprising: field is selected module 102, selects the specific fields of first data object, and said specific fields also is the field of second data object; Data query module 104 according to the value of the said specific fields of first data centralization of said first data object, inquires second data set of said second data object; Data display module 106 according to the hierarchical relationship of said second data set, is showed said first data set.In the present technique scheme; Said first data object is the data object of non-hierarchical relationship for its data set that need carry out the level arrangement; Said second data object is for its data set possesses hierarchical relationship and possesses the data object with same certain special field of said first data object.Select the field of 102 pairs of said first data objects of module to select through said field; Select said specific fields; This field also is present among the field of said second data object simultaneously; And the data set of this said second data object possesses hierarchical relationship, like this, just a kind ofly can represent the hierarchical relationship that concerns between its data for said first data set that does not originally possess hierarchical relationship has found.
In technique scheme, preferably, also comprise: data sorting module 108, before showing said first data set, sort to said first data set by predetermined way.In the present technique scheme, said predetermined way can be that said first data set is carried out the level ordering according to its hierarchical relationship through second data set on the said specific fields correspondence.
In technique scheme, preferably, said data display module 106 is showed said first data set with tree structure according to said hierarchical relationship in tabulation.In the present technique scheme, show the hierarchical relationship between this number of data sets certificate that shows that said first data set can be clear and definite according to said tree structure.
In technique scheme, preferably, the sub level data of 106 pairs of said data centralizations of said data display module are carried out indentation and are handled.In the present technique scheme, the sub level data of said data centralization are carried out seeming more succinct when said indentation processing can make data on user interface, show the hierarchical relationship between the outstanding more simultaneously data.
In technique scheme, preferably, said specific fields is the major key of said second data object.In the present technique scheme; Because the major key of data object is most important or describe the clearest and the most definite field for data characteristics in data object often; Successively said specific fields is elected as the major key of said second data object; More help finding required hierarchical relationship, and then be convenient to realize that first data set to said first data object sorts and shows.
Fig. 2 shows the process flow diagram of method for exhibiting data according to an embodiment of the invention.
As shown in Figure 2, method for exhibiting data according to an embodiment of the invention comprises: step 202, select the specific fields of first data object, and said specific fields also is the field of second data object; Step 204 according to the value of the said specific fields of first data centralization of said first data object, inquires second data set of said second data object; Step 206 according to the hierarchical relationship of said second data set, is showed said first data set.In the present technique scheme; Said first data object is the data object of non-hierarchical relationship for its data set that need carry out the level arrangement; Said second data object is for its data set possesses hierarchical relationship and possesses the data object with same certain special field of said first data object.Through the field of said first data object is selected; Select said specific fields; This field also is present among the field of said second data object simultaneously; And the data set of this said second data object possesses hierarchical relationship, like this, just a kind ofly can represent the hierarchical relationship that concerns between its data for said first data set that does not originally possess hierarchical relationship has found.
In technique scheme, preferably, said step 206 also comprises: before showing said first data set, by predetermined way said first data set is sorted.In the present technique scheme, said predetermined way can be that said first data set is carried out the level ordering according to its hierarchical relationship through second data set on the said specific fields correspondence.
In technique scheme, preferably, said step 206 also comprises: according to said hierarchical relationship, in tabulation, show said first data set with tree structure.In the present technique scheme, show the hierarchical relationship between this number of data sets certificate that shows that said first data set can be clear and definite according to said tree structure.
In technique scheme, preferably, said step 206 also comprises: the sub level data of said data centralization are carried out indentation handle.In the present technique scheme, the sub level data of said data centralization are carried out seeming more succinct when said indentation processing can make data on user interface, show the hierarchical relationship between the outstanding more simultaneously data.
In technique scheme, preferably, said specific fields is the major key of said second data object.In the present technique scheme; Because the major key of data object is most important or describe the clearest and the most definite field for data characteristics in data object often; Successively said specific fields is elected as the major key of said second data object; More help finding required hierarchical relationship, and then be convenient to realize that first data set to said first data object sorts and shows.
Fig. 3 shows the concrete realization flow figure of method for exhibiting data according to an embodiment of the invention.
As shown in Figure 3, the concrete realization flow of method for exhibiting data is following according to an embodiment of the invention:
Step 302, the definite data object and data set thereof that need carry out the non-hierarchical structure of hierarchical structure displaying.In the application of reality; For non-hierarchical structure data object; Usually have only the id field as its major key (unique identification of data object), and for the hierarchical structure data object, except needs are represented its major key through the id field; Also need the pid field to represent the id of his father's object, in order to make up hierarchical relationship.For non-hierarchical structure data object is showed with the level tree structure; Need at first make up non-hierarchical structure data collection is the hierarchical structure data collection, wants virtual construct to go out the pid field of non-hierarchical structure data in fact exactly, and this field only is used to show tree structure; There is not the practical business meaning; Preserve database after needn't persistence, and certain field that this field must rely on non-hierarchical structure data calculates, can not break away from original non-hierarchical structure data.Usually the pid field value by former data the id value of the pairing former data type of parent object of support object.
Step 304, disposal data is configured to the data set of said non-hierarchical structure the data set of hierarchical structure.With the organized data is example; Service fields such as the organized data object comprises major key, works out object, accounts for the volume number, planning, ultra (lacking) volume number; Do not have relation of inclusion between its data, belong to non-hierarchical structure data object, but the establishment object field is pointed to the division data object; Have relation of inclusion between the department, the division data object is a hierarchical relationship.For the better practical significance that embodies organized data, expectation is showed organized data by the hierarchical relationship of department, and the mode that promptly can adopt indentation is presented at the organized data of subdivision after the organized data of father department.Analyze the demand; Can know very clearly that the tree-like hierarchical relationship that constructs is is support with department's hierarchical relationship; Therefore should be closely related for the computational logic of organized data virtual field pid with the department hierarchical relationship, that is: the pid value of certain organized data is the id value of the pairing organized data of parent object of this organized data department objects.So far, the organized data object just becomes the hierarchical structure data that has hierarchical relationship.
Step 306 by depth-first ordering, can be used the depth-first algorithm with the former said non-hierarchical structure data that is configured to the hierarchical structure relation, and its arthmetic statement is as shown in Figure 4.
Step 308 will represent on user interface according to the former said non-hierarchical structure data that said hierarchical relationship ordering is accomplished.Exist said data on user interface, to show,, can carry out indentation to said data and show in order to embody said hierarchical relationship better with tree structure; Its bandwagon effect is as shown in Figure 5; Wherein organized data requires to formulate object---the set membership of department that organized data was directed against according to it for there not being the data object of set membership, is shown as tree structure data; Promptly, show organized data with the set membership of department.
Fig. 4 shows the figure of depth-first arthmetic statement according to an embodiment of the invention.
As shown in Figure 4, the depth-first algorithm can be described below according to an embodiment of the invention:
Step 402 is taken out article one data from the data centralization of desire ordering, as the present node data.
Step 404 is searched present node in said data centralization and whether is had father node, and this node data exists: if then get into step 406; If not, then get into step 408.
Step 406 as present node, and is carried out recurrence with the father node that finds, and promptly returns step 404.
Step 408 is searched present node in said data centralization and whether is had child node: if then get into step 410; If not, then get into step 412.
Step 410 removes present node from said data centralization, and the child node that finds as present node, and is carried out recurrence, promptly returns step 404.
Step 412 removes present node from said data centralization, and with next bar data as present node, and carry out recurrence, promptly return step 404.
All data up to data centralization are traveled through end, and recurrence finishes, the data set after obtaining sorting.
More than be described with reference to the accompanying drawings technical scheme of the present invention.Through the application of present technique scheme, can be the hierarchical relationship data with user's non-hierarchical relationship data configuration, show in list interface with tree structure, so that more clearly understanding between data, the user concerns.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a data display device is characterized in that, comprising:
Field is selected module, selects the specific fields of first data object, and said specific fields also is the field of second data object;
The data query module according to the value of the said specific fields of first data centralization of said first data object, inquires second data set of said second data object;
The data display module according to the hierarchical relationship of said second data set, is showed said first data set.
2. data display device according to claim 1 is characterized in that, also comprises:
The data sorting module before showing said first data set, sorts to said first data set by predetermined way.
3. data display device according to claim 1 is characterized in that, said data display module is showed said first data set with tree structure according to said hierarchical relationship in tabulation.
4. data display device according to claim 1 is characterized in that, said data display module is carried out indentation to the sub level data of said data centralization and handled.
5. according to each described data display device in the claim 1 to 4, it is characterized in that said specific fields is the major key of said second data object.
6. a method for exhibiting data is characterized in that, comprising:
Step 202 is selected the specific fields of first data object, and said specific fields also is the field of second data object;
Step 204 according to the value of the said specific fields of first data centralization of said first data object, inquires second data set of said second data object;
Step 206 according to the hierarchical relationship of said second data set, is showed said first data set.
7. method for exhibiting data according to claim 6 is characterized in that, said step 206 also comprises:
Before showing said first data set, said first data set is sorted by predetermined way.
8. method for exhibiting data according to claim 6 is characterized in that, said step 206 comprises:
According to said hierarchical relationship, in tabulation, show said first data set with tree structure.
9. method for exhibiting data according to claim 6 is characterized in that, said step 206 comprises:
The sub level data of said data centralization are carried out indentation to be handled.
10. according to each described method for exhibiting data in the claim 6 to 9, it is characterized in that said specific fields is the major key of said second data object.
CN2012102244980A 2012-06-28 2012-06-28 Data display device and data display method Pending CN102819558A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012102244980A CN102819558A (en) 2012-06-28 2012-06-28 Data display device and data display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012102244980A CN102819558A (en) 2012-06-28 2012-06-28 Data display device and data display method

Publications (1)

Publication Number Publication Date
CN102819558A true CN102819558A (en) 2012-12-12

Family

ID=47303669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012102244980A Pending CN102819558A (en) 2012-06-28 2012-06-28 Data display device and data display method

Country Status (1)

Country Link
CN (1) CN102819558A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874447A (en) * 2017-02-10 2017-06-20 东软集团股份有限公司 A kind of method for exhibiting data and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005024663A1 (en) * 2003-09-09 2005-03-17 Koninklijke Philips Electronics N.V. Method of providing tree-structured views of data
CN101339568A (en) * 2008-08-21 2009-01-07 金蝶软件(中国)有限公司 Method and device for constructing data tree
CN102096711A (en) * 2011-01-24 2011-06-15 四川长虹电器股份有限公司 Method for constructing tree structural directory in database

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005024663A1 (en) * 2003-09-09 2005-03-17 Koninklijke Philips Electronics N.V. Method of providing tree-structured views of data
CN101339568A (en) * 2008-08-21 2009-01-07 金蝶软件(中国)有限公司 Method and device for constructing data tree
CN102096711A (en) * 2011-01-24 2011-06-15 四川长虹电器股份有限公司 Method for constructing tree structural directory in database

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874447A (en) * 2017-02-10 2017-06-20 东软集团股份有限公司 A kind of method for exhibiting data and device
CN106874447B (en) * 2017-02-10 2019-08-27 东软集团股份有限公司 A kind of method for exhibiting data and device

Similar Documents

Publication Publication Date Title
CN104794242B (en) Searching method
CN106250568B (en) Service range determines method, logistics service provider recommended method and related device
CN106933833B (en) Method for quickly querying position information based on spatial index technology
CN106126630A (en) The collection of a kind of business object, searching method and device
CN105022840A (en) News information processing method, news recommendation method and related devices
CN105488048A (en) Data query method and device
US20110153582A1 (en) Handling of classification data by a search engine
CN104268295A (en) Data query method and device
CN104636468A (en) Data query analysis method and system
CN104021125A (en) Search engine sorting method and system and search engine
CN105718951A (en) User similarity estimation method and system
CN103440249A (en) System and method for rapidly searching unstructured data
CN104794130B (en) Relation query method and device between a kind of table
CN103426089B (en) Commodity purchase guiding system and method
Kalampokis et al. ICT tools for creating, expanding and exploiting statistical linked Open Data
CN105745642A (en) Device and method for inquiring data
GB2566931A (en) System for detecting data relationships based on sample data
Yang et al. D $^ 2 $2 HistoSketch: Discriminative and dynamic similarity-preserving sketching of streaming histograms
Bordogna et al. A flexible framework to cross-analyze heterogeneous multi-source geo-referenced information: The J-CO-QL proposal and its implementation
CN103377216A (en) Product information base establishing method and system
CN102819558A (en) Data display device and data display method
Kalampokis et al. Challenges on developing tools for exploiting linked open data cubes
CN105069003A (en) User focus object recommendation calculation method based on forward chain similarity
CN110309578B (en) Economic data fitting system and method based on computer data processing
EP2187320A2 (en) Apparatus and method for utilizing context to resolve ambiguous queries

Legal Events

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

Application publication date: 20121212