CN102541541B - Interface creating method and device - Google Patents

Interface creating method and device Download PDF

Info

Publication number
CN102541541B
CN102541541B CN201110421494.7A CN201110421494A CN102541541B CN 102541541 B CN102541541 B CN 102541541B CN 201110421494 A CN201110421494 A CN 201110421494A CN 102541541 B CN102541541 B CN 102541541B
Authority
CN
China
Prior art keywords
interface
interface display
data
display attribute
instruction
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.)
Active
Application number
CN201110421494.7A
Other languages
Chinese (zh)
Other versions
CN102541541A (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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

This application provides a kind of interface creating method and device, wherein, interface creating method comprises: obtain tables of data and interface display attribute list, described interface display attribute list comprises the interface display attribute of each field in described tables of data, and described interface display attribute is used to indicate the display mode of field in interface; According to the interface display attribute in the data in described tables of data and described interface display attribute list, call corresponding interface display assembly and generate interface, wherein, a described interface display assembly corresponds to a kind of described interface display attribute, for generating the interface display of field in interface of this kind of interface display attribute instruction.By the application, improve interface development dirigibility and interface development efficiency, reduce interface development cost, saved the interface development time.

Description

Interface creating method and device
Technical field
The application relates to 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 refers to the general name of the equipment net equipment relevant with the network operation, subscriber terminal equipment, network access device and human resources and physical resources.Due to the complicacy of telecom network resource service logic, the configuration of resource product melts and sends out is a difficult point always, causes the dirigibility of resource product, extendability very poor.One of reason of this problem is to lack dirigibility for the interface development of telecom network resource service logic.
At present, for the interface development of telecom network resource service logic, normally used development scheme, be all mostly interface element write as dead code carry out interface layout display.Such as, the technology of the interface development that existing telecommunication resources management system uses has use metadata modeling usually, or definition xml interface element describes, and presents with the FLASH of Script controlling, realizes the configurationization management at interface.Wherein, the mode of metadata modeling, emphasis point is the modeling management of database metadata, the configuration at interface represents unfriendly, realize the complicated business situation of telecommunication resources product, also need Internet resources metadata schema introduce and oneself control, metadata modeling solve only the management of resource metadata model; Definition xml interface element describes, all function interfaces are needed from the beginning to use xml to be described, this scheme is a kind of original technical scheme, not any concrete function for service logic, and the control between all interface elements all needs to develop; The FLASH of Script controlling, direct use is fixed code equally, and quantities is large, poor universality, is not suitable for widely applying.
Obviously, in above-mentioned interface development technology, for the exploitation of function point, developer be all in code solidification interface attribute representing as page layer.If demand relates to the small variations of interface element, also can only by amendment code, packing re-starts to be disposed and could solve, very consuming time, also unfriendly to user.Further, these all can only realize the interface control of simple logic, can not meet the telecommunication service needs of current complexity.
During for this existing exploitation telecom network resource product, developer needs to spend larger energy in the interface function of redundancy, often increase a management function, developer is all needed to go to carry out the exploitation of code, expend time in length, cost is higher, the problem of inefficiency, does not also have effective solution at present.
Summary of the invention
Technical problems to be solved in this application are to provide a kind of interface creating method and device, to solve existing interface development, and the especially problem of high, the inefficiency of the interface development of telecom network resource length consuming time, cost.
In order to solve the problem, this application discloses a kind of interface creating method, comprise: obtain tables of data and interface display attribute list, described interface display attribute list comprises the interface display attribute of each field in described tables of data, and described interface display attribute is used to indicate the display mode of field in interface; According to the interface display attribute in the data in described tables of data and described interface display attribute list, call corresponding interface display assembly and generate interface, wherein, a described interface display assembly corresponds to a kind of described interface display attribute, for generating the interface display of field in interface of this kind of interface display attribute instruction.
Preferably, before the step of described acquisition tables of data and interface display attribute list, also comprise: obtain interface display instruction, described interface display instruction comprises the interface categories at interface to be shown; Described according to the interface display attribute in the data in described tables of data and described interface display attribute list, the step calling corresponding interface display assembly generation interface comprises: according to described interface display instruction, call the interface display template assembly corresponding to the interface categories indicated in described interface display instruction, in conjunction with the interface display attribute in the data in described tables of data and described interface display attribute list, generate the interface of described interface display instruction instruction; Wherein, described interface display template comprises one or more, for according to interface categories, according to the interface display attribute in the data in described tables of data and described interface display attribute list, call corresponding described interface display assembly, generate the interface of described interface categories.
Preferably, interface display template assembly described in each has a template identification, and described template identification is used to indicate the interface categories at the interface that this interface display template assembly generates, described interface categories in described interface display instruction is expressed as described template identification, described according to described interface display instruction, call the interface display template assembly corresponding to the interface categories indicated in described interface display instruction, in conjunction with the interface display attribute in the data in described tables of data and described interface display attribute list, the step generating the interface of described interface display instruction instruction comprises: according to the described template identification in described interface display instruction, call the described interface display template assembly of this template identification instruction, in conjunction with the interface display attribute in the data in described tables of data and described interface display attribute list, generate the interface of described interface display instruction instruction.
Preferably, described according to the interface display attribute in the data in described tables of data and described interface display attribute list, the step calling corresponding interface display assembly generation interface comprises: according to the interface display attribute in described interface display attribute list, calls the interface display of field in interface that corresponding interface display assembly generates the instruction of described interface display attribute; Call the data in described tables of data, according to described interface display attribute list, generate the data in described interface display.
Preferably, described interface display attribute comprise following one of at least: the showing interface title of field, field whether as querying condition, field whether as the control type of edit properties, display field data and the incidence relation configuration of field.
In order to solve the problem, disclosed herein as well is a kind of Interface debond device, comprise: the first acquisition module, for obtaining tables of data and interface display attribute list, described interface display attribute list comprises the interface display attribute of each field in described tables of data, and described interface display attribute is used to indicate the display mode of field in interface; Generation module, for according to the interface display attribute in the data in described tables of data and described interface display attribute list, call corresponding interface display assembly and generate interface, wherein, a described interface display assembly corresponds to a kind of described interface display attribute, for generating the interface display of field in interface of this kind of interface display attribute instruction.
Preferably, this Interface debond device also comprises: the second acquisition module, and before obtaining tables of data and interface display attribute list at described first acquisition module, obtain interface display instruction, described interface display instruction comprises the interface categories at interface to be shown; Described generation module, for according to described interface display instruction, call the interface display template assembly corresponding to the interface categories indicated in described interface display instruction, in conjunction with the interface display attribute in the data in described tables of data and described interface display attribute list, generate the interface of described interface display instruction instruction; Wherein, described interface display template comprises one or more, for according to interface categories, according to the interface display attribute in the data in described tables of data and described interface display attribute list, call corresponding described interface display assembly, generate the interface of described interface categories.
Preferably, interface display template assembly described in each has a template identification, and described template identification is used to indicate the interface categories at the interface that this interface display template assembly generates; Described interface categories in described interface display instruction is expressed as described template identification; Described generation module, for according to the described template identification in described interface display instruction, call the described interface display template assembly of this template identification instruction, in conjunction with the interface display attribute in the data in described tables of data and described interface display attribute list, generate the interface of described interface display instruction instruction.
Preferably, described generation module comprises: display properties generation module, for according to the interface display attribute in described interface display attribute list, calls the interface display of field in interface that corresponding interface display assembly generates the instruction of described interface display attribute; Data generation module, for calling the data in described tables of data, according to described interface display attribute list, generates the data in described interface display.
Preferably, described interface display attribute comprise following one of at least: the showing interface title of field, field whether as querying condition, field whether as the control type of edit properties, display field data and the incidence relation configuration of field.
Compared with prior art, the application has the following advantages:
The application, by being the interface display assembly that each interface display setup of attribute is corresponding, making when carrying out the interface display of data, as long as obtain the interface display attribute of the field of data, can generate corresponding interface.Because the classification of interface display is limited, so the classification of interface display attribute is also limited, like this, no matter which type of data, can be shown by limited interface display assembly, and need not be thought of as different pieces of information and design different interfaces.Such as, the interface display attribute of the A field data of A table is text box, then by calling the assembly of the generation text box set, can generate an Input on interface.Equally, if the interface display attribute of the B field data of B table is also text box, then can calls the assembly of identical generation text box, interface generates the Input of B field.In addition, if the interface display mode of a certain field needs to change, also only need modify to the interface display attribute of this field in database; Or, need to set up a new interface, also only need setting data table and the interface display attribute list corresponding to this tables of data in a database.Thus, make developer when development interface, different designs need not be carried out for each interface, solve that existing interface development length consuming time, cost are high, the problem of inefficiency, improve interface development dirigibility and interface development efficiency, reduce interface development cost, save the interface development time.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of a kind of interface creating method according to the embodiment of the present application one;
Fig. 2 is the flow chart of steps of a kind of interface creating method according to the embodiment of the present application two;
Fig. 3 is the schematic diagram of a kind of interface creating method according to the embodiment of the present application three;
Fig. 4 calls sequential chart in interface creating method shown in Fig. 3;
Fig. 5 is the structured flowchart of a kind of Interface debond device according to the embodiment of the present application four;
Fig. 6 is the structural representation of a kind of Interface debond device according to the embodiment of the present application five;
Fig. 7 uses Interface debond device shown in Fig. 6 to generate the schematic diagram at interface.
Embodiment
For enabling above-mentioned purpose, the feature and advantage of the application more become apparent, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
Embodiment one
With reference to Fig. 1, show the flow chart of steps of a kind of interface creating method according to the embodiment of the present application one.
The interface creating method of the present embodiment comprises the following steps:
Step S102: obtain tables of data and interface display attribute list.
Wherein, a tables of data at least corresponds to an interface display attribute list.The interface display attribute of each field of a tables of data is at least comprised in an interface display attribute list.Interface display attribute is used to indicate the display mode of field in interface, as field A shows in interface with text box form.
Step S104: according to the interface display attribute in the data in tables of data and interface display attribute list, calls corresponding interface display assembly and generates interface.
Wherein, an interface display assembly corresponds to a kind of interface display attribute, for generating the interface display of field in interface of this kind of interface display attribute instruction.Such as, when interface display attribute indication field presses the display of text box form, just have an interface display assembly corresponding to this interface display attribute, this assembly is exclusively used in and generates text box on interface.Equally, other interface display attribute also has corresponding assembly, to generate corresponding interface display.
By the interface display that interface display assembly generates, the data in calling data table are filled accordingly to the interface display generated, the interface required for generation.
The present embodiment, by the interface display assembly for each interface display setup of attribute, making when carrying out the interface display of data, as long as obtain the interface display attribute of the field of data, in conjunction with corresponding data, can generate corresponding interface.Thus, make developer when development interface, different designs need not be carried out for each interface, solve that existing interface development length consuming time, cost are high, the problem of inefficiency, improve interface development dirigibility and interface development efficiency, reduce interface development cost, save the interface development time.
Embodiment two
With reference to Fig. 2, show the flow chart of steps of a kind of interface creating method according to the embodiment of the present application two.
The present embodiment is for the tables of data in a 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 multiple interface display assembly in system, each interface display assembly corresponds to an interface display attribute, is used for realizing the interface display of a field.
The interface creating method of the present embodiment comprises the following steps:
Step S202: be that a tables of data arranges interface display attribute list in a 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 arranges its interface property table B, in table B, the interface display attribute arranging field A1 is Input, and the interface display attribute of A2 and A3 is list box control.
Interface display attribute can be arranged according to actual needs flexibly by those skilled in the art, to meet the needs of interface display.Preferably, 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 control type (Input described above, list box control etc.) of edit properties, display field data and the incidence relation configuration of field.By these interface display attributes, effectively can meet on the one hand the actual demand of interface display, 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 systems in which.
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 the field whether interface display assembly as edit properties, interface display assembly that the incidence relation corresponding to field configures, interface display assembly corresponding to the control type of different display field data, as generated the interface display assembly of Input, generating the interface display assembly etc. of list box control, to carry out corresponding interface display.
Step S206: call different interface display assemblies, generates different interface display template assemblies.
For the interface that routine uses, as query interface, editing interface etc., first can call different interface display assemblies, generate different interface display template assemblies, to realize the generation at the interface of different interface categories.Like this, when needs interface display, the interface categories that only need show as required, the query interface inquired about as carried out, directly calls corresponding interface display template assembly, and need not call interface display assembly one by one, improve Interface debond speed and efficiency.
It should be noted that, this step is preferred steps, in practical operation, can not perform this step, directly uses interface display assembly to generate interface.
In the present embodiment, setting generates query template assembly, editing template assembly, administrative template assembly and property pages assembly.
Step S208: obtain interface display instruction.
Wherein, the interface categories at interface to be shown is included in interface display instruction.Preferably, this interface categories represents with template identification.
When being provided with multiple interface display template assembly in systems in which, by interface categories, interface type to be generated can be specified, thus call corresponding interface display template assembly generation interface.And interface categories represents with template identification, then system can be made to search quickly and easily and determine this interface display template assembly, improving Interface debond speed and efficiency further.
Step S210: according to interface display instruction, obtains tables of data to be shown and its interface display attribute list.
In the present embodiment, setting will be inquired about data Table A, then according to interface display instruction, obtain the tables of data A in database and interface display attribute list B thereof.
Step S212: according to interface display instruction, calls corresponding interface display template assembly, in conjunction with the interface display attribute in the data in tables of data and interface display attribute list, generates interface.
As, in the present embodiment, according to interface display instruction, call query template assembly, in conjunction with the interface display attribute in the data in data Table A and interface display attribute list B, generated query interface.In this query interface, the field A1 of tables of data A is with the display of text box form, and field A2 and A3 is with the display of drop-down list box form, and the concrete data stuffing text box in field A1, the data stuffing in A2 and A3 enters in drop-down list.
It should be noted that, when interface display template assembly is not set in systems in which, then need according to the interface display attribute in interface display attribute list, call the interface display of field in interface that corresponding interface display assembly generates the instruction of interface display attribute; Then the data in calling data table, according to interface display attribute list, generate the data in interface display.By the Interface debond mode that these are different, interface can be made to call and generate more flexible, there is better compatibility.
Pass through the present embodiment, achieve the Interface debond in different interface display template assembly situation, solving that existing interface development length consuming time, cost are high, on the basis of the problem of inefficiency, further increase interface development dirigibility and interface development efficiency, and make interface development be provided with better versatility, compatible better.
Embodiment three
With reference to Fig. 3, show the schematic diagram of a kind of interface creating method according to the embodiment of the present application three.
In the present embodiment, for manufacturer interface, FLEX technology is used to realize manufacturer's Interface debond.FLEX is the presentationserver (representing service) that Macromedia issues, it is an application of JavaWebcontainer or .netserver, mutually deserved .swf file is produced according to .mxml file (pure xml description document and actionscript), be sent to client, explained by flashplayer or shockwaveplayer of client and perform, to user with abundant customer experience, also the mutual FLASH that can programme can be thought.The interface creating method of the present embodiment, have employed FLEX client MVC (Model-View-Control) Design Mode, be separated the good independence achieving service logic and user interactions by model, view with controller, the maintainability of system, recoverability, extensibility, dirigibility and packaging effects are improved greatly.In design realizes, implement the application of MVC pattern, the development mode of FLEX itself and MVC have good corresponding relation, FLEX have employed component-based development pattern, all pieces in program can be defined as assembly, utilize assembly interface cutting to be come, also function is distributed in each assembly simultaneously, achieves the encapsulation of code.In addition, the data binding function of FLEX is that interface is shared data and provided conveniently, also can play a great role, directly using the data source of the data in Model as View layer, more save trouble and save worry.Utilize Remoting technology, operate background program easily, management database, Remoting interface is placed in Controller, integrated data communication function.In program design, MetadataUtil is the kernel object of process data, is shared by interface assembly.In MetadataUtil, the data relevant to all view functions are: metadataValues (being recorded in client-cache), it houses current all Interface Element data messages, and type is Object, is used for storing the various information that represent of view.JavaServiceUtil plays the Controller role in MVC, is responsible for carrying out data communication with server end.
The interface creating method of the present embodiment comprises the following steps:
Step one: by meta-data function administration module, configures the control used by specific webpage and attribute thereof, assembled applicable interface template.
That is, by meta-data function administration module, arrange and correspond to the interface display assembly of interface display attribute, and then call corresponding interface display assembly and generate different interface display template assemblies.
Particularly, comprising:
Steps A: the system table USER_CONS_COLUMNS provided by database, obtains database metadata, generation system metadata object.
Step B: by assembly management function, for database metadata, tectonic system Interface Element data (interface assembly is also interface display assembly).
Wherein, the attribute (being also interface display attribute) of Interface Element data can comprise 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: by interface template management function, encapsulates the interface assembly of structure, the displaying interface form (interface display template assembly) that composition system needs.
Step D: by meta-data function administration module, reading database manufacturer Table, generate interface data metadata according to Database field.
Such as: title name
Des... is described
Step e: the attribute of definition manufacturer Interface Element data, the control type applied (combobox, text box, pop-up box ...), and configure its value mode (dictionary table, database, constant ...)
Such as: TextInputnameTI=new trade name
TextInputnameTI=new manufacturer describes ...
Step 2: for the displaying interface of different resource, calls different resource template (interface display template assembly), to reach the object of different displaying interface by interface engine.
Particularly, comprising:
Step F: interface engine is (for the interface display instruction according to reception, 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 needs parameter sets, the call back function of transmission.
Step G: interface engine obtains the Interface Element data of its association according to the interface template transmitted, and translates into corresponding interface assembly and carries out interface display.
Such as, following codes implement can be passed through:
Above-mentioned code uses the interface assembly associated in template, is created and respective realizes object, add in father's container, thus complete the drafting at interface according to interface layout by EngineFactory.
The sequential of calling of the above-mentioned Interface debond of the present embodiment calls sequential chart describes whole far call process from the sequencing of time as shown in Fig. 4, Fig. 4, comprising: generator data, and example changes into interface assembly; The interface assembly of use-case, forms interface template; Call interface engine, find corresponding interface template, and display interface; In showing interface performance data; Editting function, stores interface data.
By the present embodiment, based on FLEX technology, in conjunction with metadata, encapsulate unified displaying interface engine, realize the configurableization management at interface.Use this engine, interface development personnel no longer need the exploitation manually carrying out interface in code, only need to configure data in a database, directly call this interface engine, just can realize the exploitation at interface, show this interface on a web browser, thus be generated the interface requirements needing to realize by simple method dynamically, reduce the interface development maintenance of developer, improve interface development efficiency.
Embodiment four
With reference to Fig. 5, show the structured flowchart of a kind of Interface debond device according to the embodiment of the present application four.
The Interface debond device of the present embodiment comprises: the first acquisition module 502, for obtaining tables of data and interface display attribute list, interface display attribute list comprises the interface display attribute of each field in tables of data, and interface display attribute is used to indicate the display mode of field in interface; Generation module 504, for according to the interface display attribute in the data in tables of data and interface display attribute list, call corresponding interface display assembly and generate interface, wherein, an interface display assembly corresponds to a kind of interface display attribute, for generating the interface display of field in interface of this kind of interface display attribute instruction.
Preferably, the Interface debond device of the present embodiment also comprises: the second acquisition module 506, before obtaining tables of data and interface display attribute list at the first acquisition module 502, obtain interface display instruction, interface display instruction comprises the interface categories at interface to be shown; Generation module 504, for according to interface display instruction, call the interface display template assembly corresponding to the interface categories indicated in interface display instruction, in conjunction with the interface display attribute in the data in tables of data and interface display attribute list, generate the interface of interface display instruction instruction; Wherein, interface display template comprises one or more, for according to interface categories, according to the interface display attribute in the data in tables of data and interface display attribute list, calls corresponding interface display assembly, generates the interface of interface categories.
Preferably, each interface display template assembly has a template identification, and template identification is used to indicate the interface categories at the interface that this interface display template assembly generates; Interface categories in interface display instruction is expressed as template identification; Generation module 504, for according to the template identification in interface display instruction, call the interface display template assembly of this template identification instruction, in conjunction with the interface display attribute in the data in tables of data and interface display attribute list, generate the interface of interface display instruction instruction.
Preferably, generation module 504 comprises: display properties generation module 5042, for according to the interface display attribute in interface display attribute list, calls the interface display of field in interface that corresponding interface display assembly generates the instruction of interface display attribute; Data generation module 5044, for the data in calling data table, according to interface display attribute list, generates the data in interface display.
Preferably, interface display attribute comprise following one of at least: the showing interface title of field, field whether as querying condition, field whether as the control type of edit properties, display field data and the incidence relation configuration of field.
The Interface debond device of the present embodiment for realizing the interface creating method in aforementioned correlation method embodiment, and has effective effect of aforementioned correlation method embodiment, does not repeat them here.
Embodiment five
With reference to Fig. 6, show the structural representation of a kind of Interface debond device according to the embodiment of the present application five.
The Interface debond device use FLEX technology of the present embodiment achieves the interface configurations engine module towards telecom network resource, and then achieve Interface debond and the exploitation of telecom network resource, the particular requirement of new technology and telecommunication service combines by it, developer only needs the service needed understanding function, without the need to understanding the layout tissue at interface, management function exploitation can be realized.
The Interface debond device of the present embodiment as shown in Figure 6, comprising: Interface Element Data Generator 602, object generator 604, interface template 606 and interface engine 608.
Wherein:
Interface Element Data Generator 602: for the table by data base administration, generates Interface Element data automatically according to database metadata, and is stored in a database by the mode of vertical table.This Interface Element Data Generator 602 is optional, in actual use, also directly can obtain Interface Element data from the tables of data of database purchase.
Object generator 604: for describing the Interface Element data of generation, become corresponding assembly according to interface requirements latent structure, generates interface control (i.e. interface display assembly).Wherein, describe the Interface Element data generated and also can be completed by database, as the attribute of direct configuration data table median surface metadata in a database, generate interface display attribute list etc.
Interface template 606: for according to user's request, use interface control, be assemblied to form interface template (i.e. interface display template assembly).Interface control, as the formation of interface template, carries out instantiation.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: for the template ID by importing into, searches corresponding interface template, and carries out displaying interface according to the arrangement mode of the N*N of template configuration.
Interface engine 608 is called and is mainly divided into lower part:
(1) the representing of function point interface: by the template ID imported into, search corresponding interface template and form, carry out representing of function interface according to configuration.
(2) database data representing at interface: 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 interface control.
(3) interface editing data are in the storage of database: obtain interface data and be stored in object, by the reflex mechanism of hibernate, dynamically generate execution SQL and carry out corresponding database manipulation.
In the present embodiment, realized the function of the first acquisition module 502 in the device of Interface debond shown in Fig. 5 by object generator 604; The function of generation module 504 in the device of Interface debond shown in Fig. 5 is realized by interface template 606 and interface engine 608.Further, interface engine 608 can also realize the function of the second acquisition module 506 in the device of Interface debond shown in Fig. 5.
When using the Interface debond device of the present embodiment to generate interface, first, by Interface Element Data Generator 602 definition interfaces metadata, by object generator 604 generate Database field describe, be used for describe, identify, evaluate, follow the trail of resource change in use (being equivalent to arrange interface display attribute list); Then, object generator 604 is used according to user, Interface Element data to be required that latent structure becomes corresponding assembly, as (being equivalent to arrange interface display assembly corresponding to interface display attribute in systems in which) such as infrastructure component (text box, drop-down list), Service Component; Finally, by interface template 606, these component objects through structure are loaded in corresponding DataBox according to user's request, representing of practical function interface.
A kind of detailed process from Interface Element data to Interface debond as shown in Figure 7, first (comprise Interface Element Data Generator 602 by meta-data function administration module, object generator 604, interface template 606 and interface engine 608 etc.), configure the control used by specific webpage and attribute (interface display attribute list as corresponding in configuration data table in a database) thereof; Then, Java end reads corresponding data (as tables of data and interface display attribute list thereof) from database; The data that java end obtains are consigned to FLEX by recycling third party's plug-in unit (as BlazeDS); FLEX utilizes reflex mechanism dynamic creation FLEX control, thus dynamically generates specific webpage (in generative process, have invoked corresponding interface display assembly can interface display template assembly).
The Interface debond device of the present embodiment achieves specially for the interface configurations management engine assembly of telecommunication resources, has stronger specific aim, professional.Use this engine, the developer of telecommunication resources product does not need to pay close attention to the infrastructure component at interface and display layout's mode at interface, only needs the logical relation considering interface assembly, namely can realize the function of administration interface.Further, in use, can for different user-defined interface templates, meet the individual requirement of user, friendly is better.
By the present embodiment, achieve representing by data configuration practical function interface: use FLEX technology to achieve the configurationization management of telecommunication resources Product Interface; By unified interface engine entrance, achieve the modularization of resource interfaces, modularization management.Thus solve that existing interface development length consuming time, cost are high, the problem of inefficiency, improve interface development dirigibility and interface development efficiency, reduce interface development cost, save 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 is the difference with other embodiments, between each embodiment identical similar part mutually see.For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
A kind of interface creating method provided the application above and device are described in detail, apply specific case herein to set forth the principle of the application and embodiment, the explanation of above embodiment is just for helping method and the core concept thereof of understanding the application; Meanwhile, for one of ordinary skill in the art, according to the thought of the application, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application.

Claims (8)

1. an interface creating method, is characterized in that, comprising:
Obtain tables of data and interface display attribute list, described interface display attribute list comprises the interface display attribute of each field in described tables of data, and described interface display attribute is used to indicate the display mode of field in interface; Described interface display attribute comprise following one of at least: the showing interface title of field, field whether as querying condition, field whether as the control type of edit properties, display field data and the incidence relation configuration of field;
According to the interface display attribute in the data in described tables of data and described interface display attribute list, call corresponding interface display assembly and generate interface, wherein, a described interface display assembly corresponds to a kind of described interface display attribute, for generating the interface display of field in interface of this kind of interface display attribute instruction.
2. method according to claim 1, is characterized in that, before the step of described acquisition tables of data and interface display attribute list, also comprises: obtain interface display instruction, described interface display instruction comprises the interface categories at interface to be shown;
Described according to the interface display attribute in the data in described tables of data and described interface display attribute list, the step calling corresponding interface display assembly generation interface comprises: according to described interface display instruction, call the interface display template assembly corresponding to the interface categories indicated in described interface display instruction, in conjunction with the interface display attribute in the data in described tables of data and described interface display attribute list, generate the interface of described interface display instruction instruction; Wherein, described interface display template comprises one or more, for according to interface categories, according to the interface display attribute in the data in described tables of data and described interface display attribute list, call corresponding described interface display assembly, generate the interface of described interface categories.
3. method according to claim 2, is characterized in that, interface display template assembly described in each has a template identification, and described template identification is used to indicate the interface categories at the interface that this interface display template assembly generates; Described interface categories in described interface display instruction is expressed as described template identification;
Described according to described interface display instruction, call the interface display template assembly corresponding to the interface categories indicated in described interface display instruction, in conjunction with the interface display attribute in the data in described tables of data and described interface display attribute list, the step generating the interface of described interface display instruction instruction comprises: according to the described template identification in described interface display instruction, call the described interface display template assembly of this template identification instruction, in conjunction with the interface display attribute in the data in described tables of data and described interface display attribute list, generate the interface of described interface display instruction instruction.
4. method according to claim 1, is characterized in that, described according to the interface display attribute in the data in described tables of data and described interface display attribute list, and the step calling corresponding interface display assembly generation interface comprises:
According to the interface display attribute in described interface display attribute list, call the interface display of field in interface that corresponding interface display assembly generates the instruction of described interface display attribute;
Call the data in described tables of data, according to described interface display attribute list, generate the data in described interface display.
5. an Interface debond device, is characterized in that, comprising:
First acquisition module, for obtaining tables of data and interface display attribute list, described interface display attribute list comprises the interface display attribute of each field in described tables of data, and described interface display attribute is used to indicate the display mode of field in interface; Described interface display attribute comprise following one of at least: the showing interface title of field, field whether as querying condition, field whether as the control type of edit properties, display field data and the incidence relation configuration of field;
Generation module, for according to the interface display attribute in the data in described tables of data and described interface display attribute list, call corresponding interface display assembly and generate interface, wherein, a described interface display assembly corresponds to a kind of described interface display attribute, for generating the interface display of field in interface of this kind of interface display attribute instruction.
6. device according to claim 5, is characterized in that, also comprises:
Second acquisition module, before obtaining tables of data and interface display attribute list at described first acquisition module, obtain interface display instruction, described interface display instruction comprises the interface categories at interface to be shown;
Described generation module, for according to described interface display instruction, call the interface display template assembly corresponding to the interface categories indicated in described interface display instruction, in conjunction with the interface display attribute in the data in described tables of data and described interface display attribute list, generate the interface of described interface display instruction instruction; Wherein, described interface display template comprises one or more, for according to interface categories, according to the interface display attribute in the data in described tables of data and described interface display attribute list, call corresponding described interface display assembly, generate the interface of described interface categories.
7. device according to claim 6, is characterized in that, interface display template assembly described in each has a template identification, and described template identification is used to indicate the interface categories at the interface that this interface display template assembly generates; Described interface categories in described interface display instruction is expressed as described template identification;
Described generation module, for according to the described template identification in described interface display instruction, call the described interface display template assembly of this template identification instruction, in conjunction with the interface display attribute in the data in described tables of data and described interface display attribute list, generate the interface of described interface display instruction instruction.
8. device according to claim 5, is characterized in that, described generation module comprises:
Display properties generation module, for according to the interface display attribute in described interface display attribute list, calls the interface display of field in interface that corresponding interface display assembly generates the instruction of described interface display attribute;
Data generation module, for calling the data in described tables of data, according to described interface display attribute list, generates the data in described interface display.
CN201110421494.7A 2011-12-15 2011-12-15 Interface creating method and device Active 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 CN102541541A (en) 2012-07-04
CN102541541B true CN102541541B (en) 2015-12-16

Family

ID=46348518

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN102541541B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762780A (en) * 2018-05-09 2018-11-06 四川华创世纪科技有限公司 A method of realizing service software program separation operation

Families Citing this family (27)

* 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
CN104679793A (en) * 2013-12-03 2015-06-03 航天信息股份有限公司 Dynamic invoice template invoice issuing 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
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)
CN106155661B (en) * 2015-04-14 2020-01-21 阿里巴巴集团控股有限公司 Control access method and device
CN106257445A (en) * 2015-06-17 2016-12-28 中兴通讯股份有限公司 The display packing of field and device
CN105302552B (en) * 2015-10-21 2018-09-07 浪潮(北京)电子信息产业有限公司 A kind of user interface view extended method and device
CN105867931B (en) * 2016-04-07 2019-05-07 北京橙鑫数据科技有限公司 The variation and device at information displaying interface
CN106126257A (en) * 2016-06-30 2016-11-16 珠海金山网络游戏科技有限公司 The system and method that a kind of interface generates
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
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
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
CN107944005B (en) * 2017-12-07 2021-05-11 北京能源集团有限责任公司 Data display method and device
CN108062367B (en) * 2017-12-08 2020-07-17 平安科技(深圳)有限公司 Data list uploading method and terminal thereof
CN108762739A (en) * 2018-04-24 2018-11-06 五八同城信息技术有限公司 The development approach and terminal device of application APP
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
CN113407563A (en) * 2021-06-04 2021-09-17 莱斯发展有限公司 Query form generation method, device and equipment
CN114153547B (en) * 2021-12-06 2023-11-17 珠海金山数字网络科技有限公司 Management page display method and device
CN114995920B (en) * 2022-08-03 2022-12-20 平安银行股份有限公司 Credit front-end page configuration method, computer equipment and readable storage medium
CN117215585B (en) * 2023-11-09 2024-03-08 浪潮通用软件有限公司 Visual description and dynamic control method and device for interface component attribute

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 (2)

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

Also Published As

Publication number Publication date
CN102541541A (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN102541541B (en) Interface creating method and device
CN105512139B (en) The implementation method and device of data visualization
CN101122921B (en) Method forming tree-shaped display structure based on ajax and html
CN102012906B (en) Three-dimensional scene management platform based on SaaS architecture and editing and browsing method
CN104484216B (en) Service interface document and on-line testing instrument generation method, device
CN101727324B (en) Code generation method and device
CN104424265B (en) Digital asset management method and system
CN102135972A (en) Service tree data processing method, system, client and server
KR20120045586A (en) Apparatus and method for setting saas(software as a service) applications for multi-tenant
CN100426750C (en) Method for generating two set of network administration systems
CN106293743A (en) A kind of mobile modeling and build Mobile solution the method realizing cross-platform issue
CN107766043A (en) A kind of realization method and system based on large-size screen monitors data visualization
CN108153779B (en) Page data delivery information processing method and device
CN103051652B (en) A kind of mobile terminal cloud computing distribution platform
CN104657384A (en) Dynamic allocation report data processing method based on two-dimension relationship
CN102999608A (en) System and method for tree table demonstration of large data
CN102567334A (en) Office automation system based on heterogeneous data
CN111324390A (en) Device and method for realizing APP content configuration and real-time update
CN115480810A (en) Low-code platform based on cloud protogenesis
Dennert et al. Advanced concepts for flexible data integration in heterogeneous production environments
CN103561113B (en) The generation method and device of Web Service interface
CN102929636A (en) Method and device for creating human-computer interaction interface
CN104750468A (en) Server side topological data conversion method and device
Dai Design and implementation of ESB based on SOA in power system
CN105446819A (en) Service connection system and design method therefor

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