CN102541541A - Interface generation method and device - Google Patents

Interface generation method and device Download PDF

Info

Publication number
CN102541541A
CN102541541A CN2011104214947A CN201110421494A CN102541541A CN 102541541 A CN102541541 A CN 102541541A CN 2011104214947 A CN2011104214947 A CN 2011104214947A CN 201110421494 A CN201110421494 A CN 201110421494A CN 102541541 A CN102541541 A CN 102541541A
Authority
CN
China
Prior art keywords
interface
interface display
data
display attribute
tables
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011104214947A
Other languages
Chinese (zh)
Other versions
CN102541541B (en
Inventor
王真
邢忠贤
张建边
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Software Technologies Co Ltd
Original Assignee
Datang Software Technologies 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 Datang Software Technologies Co Ltd filed Critical Datang Software Technologies Co Ltd
Priority to CN201110421494.7A priority Critical patent/CN102541541B/en
Publication of CN102541541A publication Critical patent/CN102541541A/en
Application granted granted Critical
Publication of CN102541541B publication Critical patent/CN102541541B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides an interface generation method and device. The interface generation method comprises the following steps of: acquiring a data table and an interface display attribute table, wherein the interface display attribute table comprises interface display attribute of each field in the data table, and the interface display attributes are used for indicating the display modes of the fields in an interface; calling a corresponding interface display component to generate an interface according to the data in the data table and the interface display attributes in the interface display attribute table, wherein one interface display component is corresponding to one interface display attribute and is used for generating the interface in which the field indicated by the interface display attribute is displayed. By virtue of the invention, the interface development flexibility and the interface development efficiency are improved, the interface development cost is lowered, and the interface development time is saved.

Description

Interface creating method and device
Technical field
The application relates to the telecommunication technology field, particularly relates to a kind of interface creating method and device.
Background technology
Along with the development of telecommunication technology and telecommunication service, the service logic of telecom network resource becomes increasingly complex.Telecom network resource is meant the general name of equipment net equipment, subscriber terminal equipment, network access device and human resources and the physical resources relevant with the network operation.Because the complicacy of telecom network resource service logic, the configuration of resource product melt and send out is a difficult point always, cause the dirigibility of resource product, extendability very poor.One of reason of this problem is to lack dirigibility to the interface development of telecom network resource service logic.
At present, to the interface development of telecom network resource service logic, normally used development scheme mostly all is to carry out the layout demonstration at interface to interface element being write as dead code.Such as, the technology of the interface development that existing telecommunication resources management system is used has the use metadata modeling usually, or the description of definition xml interface element, and appears with the FLASH of script control, realizes the configuration management at interface.Wherein, The mode of metadata modeling; Emphasis point is the modeling management of database metadata, and the configuration at interface represents unfriendly, realize the complicated business situation of telecommunication resources product; Also need the Internet resources metadata schema to introduce and oneself control, metadata modeling has only solved the management of resource metadata model; Definition xml interface element is described; Need from the beginning use xml to describe all function interfaces; This scheme is a kind of original technical scheme, does not have any concrete function to service logic, and the control between all interface elements all need be developed; The FLASH of script control, directly use is fixed code equally, and quantities is big, versatility is poor, is not suitable for widely applying.
Obviously, in the above-mentioned interface development technology, for the exploitation of function point, the developer all be in code solidification interface attribute representing as page layer.If demand relates to the small variations of interface element, also can only be through revising code, packing is disposed again and could be solved, and is very consuming time, also unfriendly to the user.And the interface control that these all can only realize simple logic can not satisfy the telecommunication service needs of current complicacy.
During to this existing exploitation telecom network resource product; The developer need spend bigger energy in the interface function of redundancy, and management function of every increase all needs the developer to go to carry out the exploitation of code; Length expends time in; Cost is higher, and the problem of inefficiency does not also have effective solution at present.
Summary of the invention
The application's technical matters to be solved provides a kind of interface creating method and device, with the problem of the interface development that solves existing interface development, especially telecom network resource length consuming time, cost height, inefficiency.
In order to address the above problem; The application discloses a kind of interface creating method; Comprise: obtain tables of data and interface display attribute list; Said interface display attribute list comprises the interface display attribute of each field in the said tables of data, and said interface display attribute is used for the display mode of indication field at the interface; According to the interface display attribute in data in the said tables of data and the said interface display attribute list; Call corresponding interface display assembly and generate the interface; Wherein, A said interface display assembly is used for generating the interface display of the field of this kind interface display attribute indication at the interface corresponding to a kind of said interface display attribute.
Preferably, before the said step of obtaining tables of data and interface display attribute list, also comprise: obtain the interface display instruction, comprise the interface classification at interface to be shown in the said interface display instruction; Said according to the interface display attribute in data in the said tables of data and the said interface display attribute list; The step of calling corresponding interface display assembly generation interface comprises: according to said interface display instruction; Call interface display template assembly corresponding to the interface classification of indication in the said interface display instruction; In conjunction with the interface display attribute in data in the said tables of data and the said interface display attribute list, generate the interface of said interface display instruction indication; Wherein, Said interface display template comprises one or more, is used for according to the interface classification, according to the interface display attribute in data in the said tables of data and the said interface display attribute list; Call corresponding said interface display assembly, generate the interface of said interface classification.
Preferably, each said interface display template assembly has a template identification, and said template identification is used to indicate the interface classification at the interface that this interface display template assembly generates; Said interface classification in the said interface display instruction is expressed as said template identification; Said according to said interface display instruction; Call interface display template assembly corresponding to the interface classification of indication in the said interface display instruction; In conjunction with the interface display attribute in data in the said tables of data and the said interface display attribute list; The step that generates the interface of said interface display instruction indication comprises: according to the said template identification in the said interface display instruction; Call the said interface display template assembly of this template identification indication,, generate the interface of said interface display instruction indication in conjunction with the interface display attribute in data in the said tables of data and the said interface display attribute list.
Preferably; Said according to the interface display attribute in data in the said tables of data and the said interface display attribute list; The step of calling corresponding interface display assembly generation interface comprises: according to the interface display attribute in the said interface display attribute list, call the interface display of field in the interface that corresponding interface display assembly generates said interface display attribute indication; Call the data in the said tables of data,, generate the data in the said interface display according to said interface display attribute list.
Preferably, said interface display attribute comprise following one of at least: the showing interface title of field, field whether as querying condition, field whether as the incidence relation configuration of the control type and the field of edit properties, display field data.
In order to address the above problem; Disclosed herein as well is a kind of interface generating apparatus; Comprise: first acquisition module; Be used to obtain tables of data and interface display attribute list, said interface display attribute list comprises the interface display attribute of each field in the said tables of data, and said interface display attribute is used for the display mode of indication field at the interface; Generation module; Be used for according to the data of said tables of data and the interface display attribute in the said interface display attribute list; Call corresponding interface display assembly and generate the interface; Wherein, a said interface display assembly is used for generating the interface display of the field of this kind interface display attribute indication at the interface corresponding to a kind of said interface display attribute.
Preferably, this interface generating apparatus also comprises: second acquisition module, be used for before said first acquisition module obtains tables of data and interface display attribute list, and obtain the interface display instruction, comprise the interface classification at interface to be shown in the said interface display instruction; Said generation module; Be used for according to said interface display instruction; Call interface display template assembly corresponding to the interface classification of indication in the said interface display instruction; In conjunction with the interface display attribute in data in the said tables of data and the said interface display attribute list, generate the interface of said interface display instruction indication; Wherein, Said interface display template comprises one or more, is used for according to the interface classification, according to the interface display attribute in data in the said tables of data and the said interface display attribute list; Call corresponding said interface display assembly, generate the interface of said interface classification.
Preferably, each said interface display template assembly has a template identification, and said template identification is used to indicate the interface classification at the interface that this interface display template assembly generates; Said interface classification in the said interface display instruction is expressed as said template identification; Said generation module; Be used for said template identification according to said interface display instruction; Call the said interface display template assembly of this template identification indication; In conjunction with the interface display attribute in data in the said tables of data and the said interface display attribute list, generate the interface of said interface display instruction indication.
Preferably, said generation module comprises: the display properties generation module, be used for interface display attribute according to said interface display attribute list, and call the interface display of field in the interface that corresponding interface display assembly generates said interface display attribute indication; Data generation module is used for calling the data of said tables of data, according to said interface display attribute list, generates the data in the said interface display.
Preferably, said interface display attribute comprise following one of at least: the showing interface title of field, field whether as querying condition, field whether as the incidence relation configuration of the control type and the field of edit properties, display field data.
Compared with prior art, the application has the following advantages:
The application makes when carrying out the interface display of data through corresponding interface display assembly is set for each interface display attribute, as long as obtained the interface display attribute of the field of data, can generate corresponding interface.Because the classification of interface display is limited,, like this,, can shows, and needn't be thought of as the different interface of different pieces of information design through limited interface display assembly regardless of which type of data so the classification of interface display attribute also is limited.Such as, the interface display attribute of the A field data of A table is a text box, then through calling the assembly of the generation text box that sets, can on the interface, generate an Input.Equally,, then can call the assembly of identical generation text box, on the interface, generate the Input of B field if the interface display attribute of the B field data of B table also is a text box.In addition, if the interface display mode of a certain field needs to change, also only need make amendment to the interface display attribute of this field in the database gets final product; Perhaps, need set up a new interface, tables of data also only need be set in database and get final product corresponding to the interface display attribute list of this tables of data.Thus; Make the developer when development interface; Needn't carry out different designs to each interface, solve the problem of existing interface development length consuming time, cost height, inefficiency, improve interface development dirigibility and interface development efficient; Reduce the interface development cost, practiced thrift the interface development time.
Description of drawings
Fig. 1 is the flow chart of steps according to a kind of interface creating method of the application embodiment one;
Fig. 2 is the flow chart of steps according to a kind of interface creating method of the application embodiment two;
Fig. 3 is the synoptic diagram according to a kind of interface creating method of the application embodiment three;
Fig. 4 is the sequential chart that calls in the interface creating method shown in Figure 3;
Fig. 5 is the structured flowchart according to a kind of interface generating apparatus of the application embodiment four;
Fig. 6 is the structural representation according to a kind of interface generating apparatus of the application embodiment five;
Fig. 7 is to use interface shown in Figure 6 generating apparatus to generate the synoptic diagram at interface.
Embodiment
For above-mentioned purpose, the feature and advantage that make the application can be more obviously understandable, the application is done further detailed explanation below in conjunction with accompanying drawing and embodiment.
Embodiment one
With reference to Fig. 1, show flow chart of steps according to a kind of interface creating method of the application embodiment one.
The interface creating method of present embodiment may further comprise the steps:
Step S102: obtain tables of data and interface display attribute list.
Wherein, a tables of data is at least corresponding to an interface display attribute list.At least the interface display attribute that comprises each field of a tables of data in interface display attribute list.The interface display attribute is used for the display mode of indication field at the interface, in the interface, shows with the text box form like field A etc.
Step S104:, call corresponding interface display assembly and generate the interface according to the interface display attribute in data in the tables of data and the interface display attribute list.
Wherein, an interface display assembly is used for generating the interface display of the field of this kind interface display attribute indication at the interface corresponding to a kind of interface display attribute.Such as, when interface display attribute indication field is pressed the demonstration of text box form, an interface display assembly just being arranged corresponding to this interface display attribute, this assembly is exclusively used in and on the interface, generates text box.Equally, other interface display attribute also has corresponding assembly, to generate corresponding interface display.
Through the interface display that the interface display assembly generates, the data of calling in the tables of data are filled the interface display that generates accordingly, generate needed interface.
The interface display assembly of present embodiment through being provided with for each interface display attribute makes when carrying out the interface display of data, as long as obtained the interface display attribute of the field of data, in conjunction with corresponding data, can generate corresponding interface.Thus; Make the developer when development interface; Needn't carry out different designs to each interface, solve the problem of existing interface development length consuming time, cost height, inefficiency, improve interface development dirigibility and interface development efficient; Reduce the interface development cost, practiced thrift the interface development time.
Embodiment two
With reference to Fig. 2, show flow chart of steps according to a kind of interface creating method of the application embodiment two.
Present embodiment is an example with the tables of data in the database to be shown, and this tables of data is provided with corresponding interface display attribute list, to indicate the interface display attribute of each field in this tables of data.Be provided with a plurality of interface display assemblies in the system, each interface display assembly is used for realizing the interface display of a field corresponding to an interface display attribute.
The interface creating method of present embodiment may further comprise the steps:
Step S202: be that a tables of data is provided with the interface display attribute list in database.
In the present embodiment, setting tables of data to be shown is A, and it has three field A1, A2 and A3.For tables of data A is provided with its interface property table B, in table B, the interface display attribute that field A1 is set is an Input, and the interface display attribute of A2 and A3 is a list box control.
The interface display attribute can be provided with by those skilled in the art according to actual needs flexibly, to satisfy the needs of interface display.Preferably, the interface display attribute can comprise following one of at least: the showing interface title of field, field whether as querying condition, field whether as the incidence relation configuration of the control type (like above-mentioned Input, list box control etc.) and the field of edit properties, display field data.Through these interface display attributes, can effectively satisfy the actual demand of interface display on the one hand, also can realize the mutual of this interface data and other data or parts on the other hand.
Step S204: the interface display assembly corresponding to all interface display attributes is set in system.
As; Corresponding to the interface display assembly of the showing interface title of field, corresponding to field whether as the interface display assembly of querying condition, corresponding to field whether as the interface display assembly of edit properties, corresponding to the interface display assembly of the incidence relation configuration of field, corresponding to the interface display assembly of the control type of different display field data; As generate the interface display assembly of Input, the interface display assembly of generation list box control etc., to carry out corresponding interface display.
Step S206: call different interface display assemblies, generate different interface display template assemblies.
To the interface that routine is used, like query interface, editing interface etc., can call different interface display assemblies earlier, generate different interface display template assemblies, with the generation at the interface of realizing different interfaces classification.Like this, when the needs interface display, only need interface displayed classification as required, as the query interface of inquiring about, directly call corresponding interface display template assembly and get final product, and need not call the interface display assembly one by one, improved interface formation speed and efficient.
Need to prove that this step is a preferred steps, in practical operation, can not carry out this step, directly use the interface display assembly to generate the interface.
In the present embodiment, set and generated query template assembly, editing template assembly, administrative template assembly and property pages assembly.
Step S208: obtain the interface display instruction.
Wherein, the interface classification that has comprised interface to be shown in the interface display instruction.Preferably, this interface classification is represented with template identification.
In system, be provided with under the situation of a plurality of interface display template assemblies,, get final product clear and definite interface type to be generated, generate the interface thereby call corresponding interface display template assembly through the interface classification.And the interface classification is represented with template identification, and system is searched and definite this interface display template assembly quickly and easily, further improves interface formation speed and efficient.
Step S210:, obtain tables of data to be shown and its interface display attribute list according to the interface display instruction.
In the present embodiment, setting will be inquired about the data Table A, then according to the interface display instruction, obtains tables of data A and interface display attribute list B thereof in the database.
Step S212: according to the interface display instruction, call corresponding interface display template assembly, the interface display attribute in data in the binding data table and the interface display attribute list generates the interface.
As, in the present embodiment,, call the query template assembly, the interface display attribute among data in the binding data Table A and the interface display attribute list B, generated query interface according to the interface display instruction.In this query interface, the field A1 of tables of data A shows that with the text box form field A2 and A3 show that with the drop-down list box form the concrete data among the field A1 are filled text box, and the data among A2 and the A3 are packed in the drop-down list.
Need to prove; In system, be not provided with under the situation of interface display template assembly; Then need call the interface display of field in the interface that corresponding interface display assembly generates the indication of interface display attribute according to the interface display attribute in the interface display attribute list; Call the data in the tables of data then,, generate the data in the interface display according to the interface display attribute list.Through these different interface generating modes, can make the interface call and generate more flexible, have better compatibility.
Pass through present embodiment; Realized that the interface under the different interface display template assembly situation generates; On the basis of the problem that solves existing interface development length consuming time, cost height, inefficiency; Further improved interface development dirigibility and interface development efficient, and made interface development have better generality, compatible better.
Embodiment three
With reference to Fig. 3, show synoptic diagram according to a kind of interface creating method of the application embodiment three.
In the present embodiment, be example, use the FLEX technology to realize that the manufacturer interface generates with the manufacturer interface.FLEX is the presentation server (representing service) of Macromedia issue; It is the application of Java Web container or .net server; Produce mutually deserved .swf file according to .mxml file (pure xml description document and actionscript), be sent to client, carry out by the flash player or the shockwave player explanation of client; Experience for the user with abundant customer's, also can think the mutual FLASH that to programme.The interface creating method of present embodiment; Adopted FLEX client MVC (Model-View-Control) Design Mode; Through the good realization of model, view and separating of controller the independence of service logic and user interactions, maintainability, recoverability, extensibility, dirigibility and the encapsulation property of system are improved greatly.In design realizes; Implemented the application of MVC pattern, the development mode of FLEX itself and MVC have good corresponding relation, and FLEX has adopted the development mode based on assembly; All pieces in the program can be defined as assembly; Utilize assembly that the interface cutting is come, also be distributed to function in each assembly simultaneously, realized the encapsulation of code.In addition, the data binding function of FLEX provides convenience for the interface shared data, also can play a great role, and directly the data source of the data among the Model as the View layer, saves trouble more and saves worry.Utilize the Remoting technology, operate background program easily, management database is placed on the Remoting interface among the Controller, the integrated data communication function.In program design, MetadataUtil is the kernel object of deal with data, is shared by interface assembly.In MetadataUtil, the data relevant with all view functions are: metadataValues (being recorded in the client-cache), and it has deposited all current Interface Element data messages, and type is Object, is used for storing the various information that view represents.JavaServiceUtil has played the part of the Controller role among the MVC, is responsible for carrying out data communication with server end.
The interface creating method of present embodiment may further comprise the steps:
Step 1: through the meta-data function administration module, configuration used control of specific webpage and attribute thereof, the applicable interface template of assembly unit.
That is,, the interface display assembly corresponding to the interface display attribute is set, and then calls the different interface display template assembly of corresponding interface display assembly generation through the meta-data function administration module.
Particularly, comprising:
Steps A: the table USER_CONS_COLUMNS of system through database provides, obtain database metadata, the generation system metadata object.
Step B: through the assembly management function, to database metadata, tectonic system Interface Element data (interface assembly also is the interface display assembly).
Wherein, the attribute of Interface Element data (also being the interface display attribute) can comprise the showing interface title, whether as querying condition, whether as edit properties, component type (text box, combobox, pop-up box ...), incidence relation configuration etc.
Step C:, the interface assembly of constructing is encapsulated the displaying interface form (interface display template assembly) that the composition system needs through the interface template management function.
Step D: through the meta-data function administration module, the Table of reading database manufacturer generates the interface data metadata according to Database field.
For example: title name
Des... is described
Step e: the attribute of definition manufacturer Interface Element data, applied control type (combobox, text box, pop-up box ...), and dispose its value mode (dictionary table, database, constant ...)
For example: TextInput nameTI=new trade name
TextInput nameTI=new manufacturer is described ...
Step 2: the displaying interface to different resource, call different resources template (interface display template assembly) through interface engine, to reach the purpose of different displaying interfaces.
Particularly, comprising:
Step F: interface engine (is used for according to the interface display instruction that receives; Search and call corresponding interface display template assembly and generate corresponding interface; And then carry out corresponding displaying interface) provide interface MetadataUtil.createQueryResultViewByMetadata to call; Parameter is interface template ID and DisplayObjectContainer, and the parameter sets, the call back function that need transmission.
Step G: interface engine is obtained its related Interface Element data according to the interface template that transmits, and translates into corresponding interface assembly and carries out interface display.
For example, can realize through following code:
Figure BDA0000120590540000101
Figure BDA0000120590540000111
Above-mentioned code uses interface assembly related in the template, creates realization object separately through EngineFactory, adds in father's container according to interface layout, thereby accomplishes the drafting at interface.
The above-mentioned interface of present embodiment generates calls sequential such as Fig. 4, and the sequential chart that calls shown in Figure 4 has been described the process of whole far call from the sequencing of time, comprising: the generator data, and instance changes into interface assembly; The interface assembly of use-caseization constitutes interface template; Call interface engine, find corresponding interface template, and display interface; In the showing interface performance data; Editting function is stored interface data.
Through present embodiment, be the basis with the FLEX technology, in conjunction with metadata, encapsulate unified displaying interface engine, realize the configurableization management at interface.Use this engine, the interface development personnel no longer need the artificial exploitation at interface of in code, carrying out, and only need in database, configure data; Directly call this interface engine; Just can realize the exploitation at interface, on browser, show this interface, thereby generate the interface demand that needs realization dynamically through simple method; Reduce developer's interface development maintenance, improved interface development efficient.
Embodiment four
With reference to Fig. 5, show structured flowchart according to a kind of interface generating apparatus of the application embodiment four.
The interface generating apparatus of present embodiment comprises: first acquisition module 502; Be used to obtain tables of data and interface display attribute list; The interface display attribute list comprises the interface display attribute of each field in the tables of data, and the interface display attribute is used for the display mode of indication field at the interface; Generation module 504; Be used for according to the data of tables of data and the interface display attribute in the interface display attribute list; Call corresponding interface display assembly and generate the interface; Wherein, an interface display assembly is used for generating the interface display of the field of this kind interface display attribute indication at the interface corresponding to a kind of interface display attribute.
Preferably; The interface generating apparatus of present embodiment also comprises: second acquisition module 506; Be used for before first acquisition module 502 obtains tables of data and interface display attribute list, obtain the interface display instruction, comprise the interface classification at interface to be shown in the interface display instruction; Generation module 504; Be used for instructing according to interface display; Call the interface display template assembly corresponding to the interface classification of indication in the interface display instruction, the interface display attribute in data in the binding data table and the interface display attribute list generates the interface that the interface display instruction is indicated; Wherein, the interface display template comprises one or more, is used for according to the interface classification, according to the interface display attribute in data in the tables of data and the interface display attribute list, calls corresponding interface display assembly, generates the interface of interface classification.
Preferably, each interface display template assembly has a template identification, and template identification is used to indicate the interface classification at the interface that this interface display template assembly generates; Interface classification in the interface display instruction is expressed as template identification; Generation module 504; Be used for template identification according to the interface display instruction; Call the interface display template assembly of this template identification indication, the interface display attribute in data in the binding data table and the interface display attribute list generates the interface that the interface display instruction is indicated.
Preferably, generation module 504 comprises: display properties generation module 5042, be used for interface display attribute according to the interface display attribute list, and call the interface display of field in the interface that corresponding interface display assembly generates the indication of interface display attribute; Data generation module 5044 is used for calling the data of tables of data, according to the interface display attribute list, generates the data in the interface display.
Preferably, the interface display attribute comprise following one of at least: the showing interface title of field, field whether as querying condition, field whether as the incidence relation configuration of the control type and the field of edit properties, display field data.
The interface generating apparatus of present embodiment is used for realizing the interface creating method of aforementioned correlation method embodiment, and has effective effect of aforementioned correlation method embodiment, repeats no more at this.
Embodiment five
With reference to Fig. 6, show structural representation according to a kind of interface generating apparatus of the application embodiment five.
The interface generating apparatus of present embodiment uses the FLEX technology to realize the interface configurations engine module towards telecom network resource; And then the interface of having realized telecom network resource generates and exploitation; Its particular requirement with new technology and telecommunication service combines; The developer only need understand the service needed of function, need not to understand the layout tissue at interface, can realize the management function exploitation.
The interface generating apparatus of present embodiment is as shown in Figure 6, comprising: Interface Element Data Generator 602, object maker 604, interface template 606 and interface engine 608.
Wherein:
Interface Element Data Generator 602: be used for table, generate the Interface Element data automatically, and in database, store through the mode of vertical table according to database metadata through data base administration.This Interface Element Data Generator 602 is optional, in actual use, also can directly from the tables of data of database storing, obtain the Interface Element data.
Object maker 604: be used to describe the Interface Element data of generation, require latent structure to become corresponding assembly, generate interface control (being the interface display assembly) according to the interface.Wherein, the Interface Element data that describe to generate also can be accomplished through database, like the direct attribute of configuration data table median surface metadata in database, generate interface display attribute list etc.
Interface template 606: be used for according to user's request, use interface control, be assemblied to form interface template (being the interface display template assembly).Interface control carries out instantiation as the formation of interface template.Interface template is configured according to user's request, can be divided into query template, editing template, administrative template, property pages etc.
Interface engine 608: be used for template ID, search corresponding interface template, and carry out displaying interface according to the arrangement mode of the N*N of template configuration through importing into.
Interface engine 608 is called and mainly is divided into lower part:
(1) representing of function point interface: through the template ID that imports into, search corresponding interface template and constitute, carry out representing of function interface according to configuration.
(2) database data representing: the corresponding relation of definition database table and managed object, the corresponding relation of definition database metadata and managed object attribute, the corresponding relation between definition managed object attribute and the interface control at the interface.
(3) the interface editing data are in the storage of database: obtain interface data and store in the object, through the reflex mechanism of hibernate, dynamically generate and carry out SQL and carry out the corresponding database operation.
In the present embodiment, realize the function of first acquisition module 502 in the generating apparatus of interface shown in Figure 5 through object maker 604; Realize the function of generation module 504 in the generating apparatus of interface shown in Figure 5 through interface template 606 and interface engine 608.And interface engine 608 can also realize the function of second acquisition module 506 in the generating apparatus of interface shown in Figure 5.
When using the generating apparatus generation interface, interface of present embodiment; At first; Through Interface Element Data Generator 602 definition interfaces metadata; Generate Database field through object maker 604 and describe, be used for describing, discern, estimate, following the trail of resource variation (being equivalent to be provided with the interface display attribute list) in use; Then, use object maker 604 that the data based customer requirements latent structure of Interface Element is become corresponding assembly, like infrastructure component (text box, drop-down list), Service Component etc. (being equivalent in system, be provided with the corresponding interface display assembly of interface display attribute); At last, these component objects that will pass through structure through interface template 606 are packed into according to user's request among the corresponding DataBox, realize representing of function interface.
A kind of detailed process that generates to the interface from the Interface Element data is as shown in Figure 7; Earlier (comprise Interface Element Data Generator 602 through the meta-data function administration module; Object maker 604; Interface template 606 and interface engine 608 etc.), configuration used control of specific webpage and attribute thereof (the interface display attribute list corresponding) like configuration data table in database; Then, the Java end reads corresponding data (like tables of data and interface display attribute list thereof) from database; The data of utilizing third party's plug-in unit (like BlazeDS) that the java end is obtained again consign to FLEX; FLEX utilizes reflex mechanism dynamic creation FLEX control, thereby dynamically generates specific webpage (in generative process, but having called corresponding interface display assembly interface display template assembly).
The interface generating apparatus of present embodiment has been realized special interface configurations management engine assembly to telecommunication resources, has stronger specific aim, professional.Use this engine, telecommunication resources Products Development personnel need not go to pay close attention to the infrastructure component at interface and display layout's mode at interface, only need to consider the logical relation of interface assembly, promptly can realize the function of administration interface.And, in use, can be directed against different user-defined interface templates, satisfied user's personalized requirement, friendly is better.
Through present embodiment, realized realizing representing of function interface: use the FLEX technology to realize the configuration management of telecommunication resources Product Interface through data configuration; Through unified interface engine inlet, modularization, the modularization management of resource interfaces have been realized.Thereby solved the problem of existing interface development length consuming time, cost height, inefficiency, improved interface development dirigibility and interface development efficient, reduced the interface development cost, practiced thrift the interface development time.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device embodiment, because it is similar basically with method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
More than a kind of interface creating method and device that the application provided have been carried out detailed introduction; Used concrete example among this paper the application's principle and embodiment are set forth, the explanation of above embodiment just is used to help to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to the application's thought, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as the restriction to the application.

Claims (10)

1. an interface creating method is characterized in that, comprising:
Obtain tables of data and interface display attribute list, said interface display attribute list comprises the interface display attribute of each field in the said tables of data, and said interface display attribute is used for the display mode of indication field at the interface;
According to the interface display attribute in data in the said tables of data and the said interface display attribute list; Call corresponding interface display assembly and generate the interface; Wherein, A said interface display assembly is used for generating the interface display of the field of this kind interface display attribute indication at the interface corresponding to a kind of said interface display attribute.
2. method according to claim 1 is characterized in that, before the said step of obtaining tables of data and interface display attribute list, also comprises: obtain the interface display instruction, comprise the interface classification at interface to be shown in the said interface display instruction;
Said according to the interface display attribute in data in the said tables of data and the said interface display attribute list; The step of calling corresponding interface display assembly generation interface comprises: according to said interface display instruction; Call interface display template assembly corresponding to the interface classification of indication in the said interface display instruction; In conjunction with the interface display attribute in data in the said tables of data and the said interface display attribute list, generate the interface of said interface display instruction indication; Wherein, Said interface display template comprises one or more, is used for according to the interface classification, according to the interface display attribute in data in the said tables of data and the said interface display attribute list; Call corresponding said interface display assembly, generate the interface of said interface classification.
3. method according to claim 2 is characterized in that, each said interface display template assembly has a template identification, and said template identification is used to indicate the interface classification at the interface that this interface display template assembly generates; Said interface classification in the said interface display instruction is expressed as said template identification;
Said according to said interface display instruction; Call interface display template assembly corresponding to the interface classification of indication in the said interface display instruction; In conjunction with the interface display attribute in data in the said tables of data and the said interface display attribute list; The step that generates the interface of said interface display instruction indication comprises: according to the said template identification in the said interface display instruction; Call the said interface display template assembly of this template identification indication,, generate the interface of said interface display instruction indication in conjunction with the interface display attribute in data in the said tables of data and the said interface display attribute list.
4. method according to claim 1 is characterized in that, and is said according to the interface display attribute in data in the said tables of data and the said interface display attribute list, and the step of calling corresponding interface display assembly generation interface comprises:
According to the interface display attribute in the said interface display attribute list, call the interface display of field in the interface that corresponding interface display assembly generates said interface display attribute indication;
Call the data in the said tables of data,, generate the data in the said interface display according to said interface display attribute list.
5. method according to claim 1; It is characterized in that, said interface display attribute comprise following one of at least: the showing interface title of field, field whether as querying condition, field whether as the incidence relation configuration of the control type and the field of edit properties, display field data.
6. an interface generating apparatus is characterized in that, comprising:
First acquisition module is used to obtain tables of data and interface display attribute list, and said interface display attribute list comprises the interface display attribute of each field in the said tables of data, and said interface display attribute is used for the display mode of indication field at the interface;
Generation module; Be used for according to the data of said tables of data and the interface display attribute in the said interface display attribute list; Call corresponding interface display assembly and generate the interface; Wherein, a said interface display assembly is used for generating the interface display of the field of this kind interface display attribute indication at the interface corresponding to a kind of said interface display attribute.
7. device according to claim 6 is characterized in that, also comprises:
Second acquisition module was used for before said first acquisition module obtains tables of data and interface display attribute list, obtained the interface display instruction, comprised the interface classification at interface to be shown in the said interface display instruction;
Said generation module; Be used for according to said interface display instruction; Call interface display template assembly corresponding to the interface classification of indication in the said interface display instruction; In conjunction with the interface display attribute in data in the said tables of data and the said interface display attribute list, generate the interface of said interface display instruction indication; Wherein, Said interface display template comprises one or more, is used for according to the interface classification, according to the interface display attribute in data in the said tables of data and the said interface display attribute list; Call corresponding said interface display assembly, generate the interface of said interface classification.
8. device according to claim 7 is characterized in that, each said interface display template assembly has a template identification, and said template identification is used to indicate the interface classification at the interface that this interface display template assembly generates; Said interface classification in the said interface display instruction is expressed as said template identification;
Said generation module; Be used for said template identification according to said interface display instruction; Call the said interface display template assembly of this template identification indication; In conjunction with the interface display attribute in data in the said tables of data and the said interface display attribute list, generate the interface of said interface display instruction indication.
9. device according to claim 6 is characterized in that, said generation module comprises:
The display properties generation module is used for the interface display attribute according to said interface display attribute list, calls the interface display of field in the interface that corresponding interface display assembly generates said interface display attribute indication;
Data generation module is used for calling the data of said tables of data, according to said interface display attribute list, generates the data in the said interface display.
10. device according to claim 6; It is characterized in that, said interface display attribute comprise following one of at least: the showing interface title of field, field whether as querying condition, field whether as the incidence relation configuration of the control type and the field of edit properties, display field data.
CN201110421494.7A 2011-12-15 2011-12-15 Interface creating method and device Expired - Fee Related CN102541541B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110421494.7A CN102541541B (en) 2011-12-15 2011-12-15 Interface creating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110421494.7A CN102541541B (en) 2011-12-15 2011-12-15 Interface creating method and device

Publications (2)

Publication Number Publication Date
CN102541541A true CN102541541A (en) 2012-07-04
CN102541541B CN102541541B (en) 2015-12-16

Family

ID=46348518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110421494.7A Expired - Fee Related CN102541541B (en) 2011-12-15 2011-12-15 Interface creating method and device

Country Status (1)

Country Link
CN (1) CN102541541B (en)

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111828A (en) * 2013-04-22 2014-10-22 易保网络技术(上海)有限公司 Automatic generation method and system of human-computer interaction interface
CN104484169A (en) * 2014-12-09 2015-04-01 成都视达科信息技术有限公司 Android software user interface generating method and system and Android application system
CN104679793A (en) * 2013-12-03 2015-06-03 航天信息股份有限公司 Dynamic invoice template invoice issuing system
CN104731589A (en) * 2015-03-12 2015-06-24 用友网络科技股份有限公司 Automatic generation method and device of user interface (UI)
CN105022615A (en) * 2014-04-21 2015-11-04 大唐软件技术股份有限公司 Interface generating method and system
CN105302552A (en) * 2015-10-21 2016-02-03 浪潮(北京)电子信息产业有限公司 Expansion method and device of user interface view
CN105335431A (en) * 2014-08-11 2016-02-17 青岛海尔智能家电科技有限公司 Interface file processing method and apparatus and control message processing method and apparatus
CN106126257A (en) * 2016-06-30 2016-11-16 珠海金山网络游戏科技有限公司 The system and method that a kind of interface generates
CN106155686A (en) * 2016-06-30 2016-11-23 华为技术有限公司 Interface creating method, device and system
CN106155661A (en) * 2015-04-14 2016-11-23 阿里巴巴集团控股有限公司 A kind of control cut-in method and device
WO2016201814A1 (en) * 2015-06-17 2016-12-22 中兴通讯股份有限公司 Field displaying method and device
CN106844467A (en) * 2016-12-21 2017-06-13 大唐网络有限公司 Method for exhibiting data and device
CN106951273A (en) * 2017-05-02 2017-07-14 山东浪潮通软信息科技有限公司 The method and apparatus that a kind of dynamic configuration generates professional workstation
WO2017173914A1 (en) * 2016-04-07 2017-10-12 北京橙鑫数据科技有限公司 Method and device for changing information display interface
CN107423051A (en) * 2017-05-05 2017-12-01 腾讯科技(深圳)有限公司 The collocation method and device of data
CN107562459A (en) * 2017-08-29 2018-01-09 上海雪鲤鱼计算机科技有限公司 Management system, interface generation/display/operation/display methods, end-of-medium
CN107944005A (en) * 2017-12-07 2018-04-20 北京能源集团有限责任公司 A kind of method for exhibiting data and device
CN108153779A (en) * 2016-12-05 2018-06-12 阿里巴巴集团控股有限公司 Page data impression information processing method and processing device
CN108762739A (en) * 2018-04-24 2018-11-06 五八同城信息技术有限公司 The development approach and terminal device of application APP
CN109739504A (en) * 2018-12-28 2019-05-10 浙江网新恩普软件有限公司 A method of the H5 business handling page is automatically generated according to backstage configuration
CN109783085A (en) * 2019-02-02 2019-05-21 北京顺丰同城科技有限公司 A kind of application program generation method, device and electronic equipment
WO2019109518A1 (en) * 2017-12-08 2019-06-13 平安科技(深圳)有限公司 Data list uploading method and terminal thereof
CN112182349A (en) * 2020-09-14 2021-01-05 支付宝(杭州)信息技术有限公司 Method, device and system for querying compliance file
CN113407563A (en) * 2021-06-04 2021-09-17 莱斯发展有限公司 Query form generation method, device and equipment
CN114153547A (en) * 2021-12-06 2022-03-08 珠海金山数字网络科技有限公司 Management page display method and device
CN114995920A (en) * 2022-08-03 2022-09-02 平安银行股份有限公司 Credit front-end page configuration method, computer equipment and readable storage medium
CN117215585A (en) * 2023-11-09 2023-12-12 浪潮通用软件有限公司 Visual description and dynamic control method and device for interface component attribute

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762780B (en) * 2018-05-09 2021-09-21 四川华创世纪科技有限公司 Method for realizing service software program separation operation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464885A (en) * 2008-12-31 2009-06-24 金蝶软件(中国)有限公司 Method and apparatus for exhibiting product attribute information
CN101901220A (en) * 2009-05-27 2010-12-01 北京启明星辰信息技术股份有限公司 General data display method and equipment
CN102081517A (en) * 2009-11-27 2011-06-01 炬力集成电路设计有限公司 User interface display method and apparatus
CN102096697A (en) * 2009-12-09 2011-06-15 东芝泰格有限公司 Database system, server device, terminal device, and data presentation method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464885A (en) * 2008-12-31 2009-06-24 金蝶软件(中国)有限公司 Method and apparatus for exhibiting product attribute information
CN101901220A (en) * 2009-05-27 2010-12-01 北京启明星辰信息技术股份有限公司 General data display method and equipment
CN102081517A (en) * 2009-11-27 2011-06-01 炬力集成电路设计有限公司 User interface display method and apparatus
CN102096697A (en) * 2009-12-09 2011-06-15 东芝泰格有限公司 Database system, server device, terminal device, and data presentation method

Cited By (42)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104111828B (en) * 2013-04-22 2017-06-13 易保网络技术(上海)有限公司 Human-computer interaction interface automatic generation method and system
CN104111828A (en) * 2013-04-22 2014-10-22 易保网络技术(上海)有限公司 Automatic generation method and system of human-computer interaction interface
CN104679793A (en) * 2013-12-03 2015-06-03 航天信息股份有限公司 Dynamic invoice template invoice issuing system
CN105022615A (en) * 2014-04-21 2015-11-04 大唐软件技术股份有限公司 Interface generating method and system
CN105022615B (en) * 2014-04-21 2018-09-11 大唐软件技术股份有限公司 A kind of generation method and system at interface
CN105335431A (en) * 2014-08-11 2016-02-17 青岛海尔智能家电科技有限公司 Interface file processing method and apparatus and control message processing method and apparatus
CN104484169A (en) * 2014-12-09 2015-04-01 成都视达科信息技术有限公司 Android software user interface generating method and system and Android application system
CN104484169B (en) * 2014-12-09 2017-10-31 成都视达科信息技术有限公司 A kind of Android software user interface creating method, system and application system
CN104731589A (en) * 2015-03-12 2015-06-24 用友网络科技股份有限公司 Automatic generation method and device of user interface (UI)
CN106155661A (en) * 2015-04-14 2016-11-23 阿里巴巴集团控股有限公司 A kind of control cut-in method and device
WO2016201814A1 (en) * 2015-06-17 2016-12-22 中兴通讯股份有限公司 Field displaying method and device
CN105302552B (en) * 2015-10-21 2018-09-07 浪潮(北京)电子信息产业有限公司 A kind of user interface view extended method and device
CN105302552A (en) * 2015-10-21 2016-02-03 浪潮(北京)电子信息产业有限公司 Expansion method and device of user interface view
WO2017173914A1 (en) * 2016-04-07 2017-10-12 北京橙鑫数据科技有限公司 Method and device for changing information display interface
CN106155686A (en) * 2016-06-30 2016-11-23 华为技术有限公司 Interface creating method, device and system
CN106126257A (en) * 2016-06-30 2016-11-16 珠海金山网络游戏科技有限公司 The system and method that a kind of interface generates
US10949223B2 (en) 2016-06-30 2021-03-16 Huawei Technologies Co., Ltd. Interface generation method, apparatus, and system
CN106155686B (en) * 2016-06-30 2020-11-17 华为技术有限公司 Interface generation method, device and system
CN108153779B (en) * 2016-12-05 2022-04-05 阿里巴巴集团控股有限公司 Page data delivery information processing method and device
CN108153779A (en) * 2016-12-05 2018-06-12 阿里巴巴集团控股有限公司 Page data impression information processing method and processing device
CN106844467A (en) * 2016-12-21 2017-06-13 大唐网络有限公司 Method for exhibiting data and device
CN106844467B (en) * 2016-12-21 2021-06-22 大唐网络有限公司 Data display method and device
CN106951273A (en) * 2017-05-02 2017-07-14 山东浪潮通软信息科技有限公司 The method and apparatus that a kind of dynamic configuration generates professional workstation
CN107423051A (en) * 2017-05-05 2017-12-01 腾讯科技(深圳)有限公司 The collocation method and device of data
CN107423051B (en) * 2017-05-05 2023-03-24 腾讯科技(深圳)有限公司 Data configuration method and device
CN107562459B (en) * 2017-08-29 2020-11-10 上海雪鲤鱼计算机科技有限公司 Management system, interface generating/displaying/operating method, medium, and terminal
CN107562459A (en) * 2017-08-29 2018-01-09 上海雪鲤鱼计算机科技有限公司 Management system, interface generation/display/operation/display methods, end-of-medium
CN107944005A (en) * 2017-12-07 2018-04-20 北京能源集团有限责任公司 A kind of method for exhibiting data and device
WO2019109518A1 (en) * 2017-12-08 2019-06-13 平安科技(深圳)有限公司 Data list uploading method and terminal thereof
CN108762739A (en) * 2018-04-24 2018-11-06 五八同城信息技术有限公司 The development approach and terminal device of application APP
CN109739504A (en) * 2018-12-28 2019-05-10 浙江网新恩普软件有限公司 A method of the H5 business handling page is automatically generated according to backstage configuration
CN109739504B (en) * 2018-12-28 2022-04-01 浙江网新恩普软件有限公司 Method for automatically generating H5 service handling page according to background configuration
CN109783085A (en) * 2019-02-02 2019-05-21 北京顺丰同城科技有限公司 A kind of application program generation method, device and electronic equipment
CN112182349A (en) * 2020-09-14 2021-01-05 支付宝(杭州)信息技术有限公司 Method, device and system for querying compliance file
CN112182349B (en) * 2020-09-14 2024-06-11 支付宝(杭州)信息技术有限公司 Query method, device and system for compliance files
CN113407563A (en) * 2021-06-04 2021-09-17 莱斯发展有限公司 Query form generation method, device and equipment
CN114153547A (en) * 2021-12-06 2022-03-08 珠海金山数字网络科技有限公司 Management page display method and device
CN114153547B (en) * 2021-12-06 2023-11-17 珠海金山数字网络科技有限公司 Management page display method and device
CN114995920A (en) * 2022-08-03 2022-09-02 平安银行股份有限公司 Credit front-end page configuration method, computer equipment and readable storage medium
CN114995920B (en) * 2022-08-03 2022-12-20 平安银行股份有限公司 Credit front-end page configuration method, computer equipment and readable storage medium
CN117215585A (en) * 2023-11-09 2023-12-12 浪潮通用软件有限公司 Visual description and dynamic control method and device for interface component attribute
CN117215585B (en) * 2023-11-09 2024-03-08 浪潮通用软件有限公司 Visual description and dynamic control method and device for interface component attribute

Also Published As

Publication number Publication date
CN102541541B (en) 2015-12-16

Similar Documents

Publication Publication Date Title
CN102541541A (en) Interface generation method and device
CN102012906B (en) Three-dimensional scene management platform based on SaaS architecture and editing and browsing method
CN105512139B (en) The implementation method and device of data visualization
CN101122921B (en) Method forming tree-shaped display structure based on ajax and html
CN104424265B (en) Digital asset management method and system
CN109597614A (en) A kind of business page method for customizing and system
CN104463957B (en) A kind of three-dimensional scenic Core Generator integrated approach based on material
CN102135972A (en) Service tree data processing method, system, client and server
CN104714982A (en) Method and system for loading webpage
CN104102545A (en) Three-dimensional resource allocation and loading optimization method for mobile augmented reality browser
CN103051652B (en) A kind of mobile terminal cloud computing distribution platform
CN102968306A (en) Method and system for automatically generating code based on data model drive
CN104657384A (en) Dynamic allocation report data processing method based on two-dimension relationship
CN108153779B (en) Page data delivery information processing method and device
CN102663198A (en) Method and system for designing and manufacturing printed matter on line by combining background and foreground of web
CN102222148A (en) Method and device for automatically generating detailed statement of three-dimensional assembly drawing
CN103631865A (en) Webpage generating method and device
CN104317595A (en) Background-push component-based graphical monitoring device based on SVG (scalable vector graphics) and operating method thereof
CN102646232A (en) High concurrence enterprise integrated application system
CN104572125A (en) Methods and devices for drawing and storing entity relation diagrams
CN105045855A (en) Automatic generation method and system for multi-source distributed multimedia report materials
CN102779045A (en) Interface generating method, interface editor and electronic equipment
CN102929636A (en) Method and device for creating human-computer interaction interface
CN108984156A (en) A kind of software auto generating method and system for exempting from code development based on template
CN104111768B (en) Interactive window and method and system for customizing, quoting and synchronizing interactive window

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151216