CN117234487A - Method and device for generating software interface, electronic equipment and storage medium - Google Patents

Method and device for generating software interface, electronic equipment and storage medium Download PDF

Info

Publication number
CN117234487A
CN117234487A CN202311210799.2A CN202311210799A CN117234487A CN 117234487 A CN117234487 A CN 117234487A CN 202311210799 A CN202311210799 A CN 202311210799A CN 117234487 A CN117234487 A CN 117234487A
Authority
CN
China
Prior art keywords
software interface
target software
interface
control
xml
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311210799.2A
Other languages
Chinese (zh)
Inventor
牙祖将
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202311210799.2A priority Critical patent/CN117234487A/en
Publication of CN117234487A publication Critical patent/CN117234487A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a method and a device for generating a software interface, electronic equipment and a storage medium, which can be applied to the financial field or other fields, wherein the method comprises the following steps: acquiring an XML configuration file of a target software interface; the XML configuration file of the target software interface is generated based on the target software interface designed by a user; analyzing the XML configuration file of the target software interface to obtain configuration information of the control in the target software interface; reading interface element data corresponding to the target software interface; and generating and displaying each interface element corresponding to the target software interface based on the configuration information of the control in the target software interface and the interface element data corresponding to the target software interface to obtain the target software interface.

Description

Method and device for generating software interface, electronic equipment and storage medium
Technical Field
The present application relates to the field of software development technologies, and in particular, to a method and apparatus for generating a software interface, an electronic device, and a storage medium.
Background
The compact and good user interface is an important functional component of the embedded system, and with the continuous improvement of the complexity of the embedded system, the system man-machine interaction interface is provided with higher and higher requirements, so that the development and design requirements on the man-machine interaction interface are also higher and higher.
At present, the development design of a software interface is realized mainly by compiling corresponding program codes according to the interface requirement by a certain development platform and utilizing a specific programming language. The designed software interface may then be presented by executing the program code corresponding to the compiled software node.
However, the existing method and program involve voice and have close coupling, so when the software interface needs to be changed, the corresponding program code needs to be modified, and even if the interface is changed slightly, more program codes need to be modified, so the whole process is very tedious and is not beneficial to subsequent maintenance.
Disclosure of Invention
Based on the defects of the prior art, the application provides a method and a device for generating a software interface, electronic equipment and a storage medium, and aims to solve the problem that when the requirements change in the prior art, a large number of codes need to be modified, so that the process of realizing the change is excessively complicated.
In order to achieve the above object, the present application provides the following technical solutions:
the first aspect of the present application provides a software interface generating method, including:
acquiring an XML configuration file of a target software interface; the XML configuration file of the target software interface is generated based on the target software interface designed by a user;
analyzing the XML configuration file of the target software interface to obtain configuration information of the control in the target software interface;
reading interface element data corresponding to the target software interface;
and generating and displaying each interface element corresponding to the target software interface based on the configuration information of the control in the target software interface and the interface element data corresponding to the target software interface to obtain the target software interface.
Optionally, in the method for generating a software interface, before the obtaining the XML configuration file of the target software interface, the method further includes:
responding to the new operation of the user, and emptying all the controls in the designed interface working area;
creating an XML blank file containing only declarative statements of an XML document;
and responding to the design operation of the user, generating the target software interface, and storing configuration information of each control in the target software interface into the XML blank file to obtain an XML configuration file of the target software interface.
Optionally, in the method for generating a software interface, before analyzing the XML configuration file of the target software interface to obtain configuration information of a control in the target software interface, the method further includes:
verifying whether the content in the XML configuration file of the target software interface is legal or not; and if the content in the XML configuration file of the target software interface is legal, executing the analysis on the XML configuration file of the target software interface to obtain the attribute information of the control in the target software interface.
Optionally, in the method for generating a software interface, generating and displaying each interface element corresponding to the target software interface based on configuration information of a control in the target software interface and interface element data corresponding to the target software interface, to obtain the target software interface includes:
generating a current interface element based on configuration information of a control in the target software interface and interface element data corresponding to the target software interface;
if all the interface elements corresponding to the target software interface are not generated currently, judging whether a control node exists in the control under the current interface element;
if the control node exists in the control under the current interface element, acquiring a main key value of the control corresponding to each control node, and reading configuration information of the control corresponding to each control node;
judging whether corresponding event nodes exist under each control node according to configuration information of the control corresponding to each control node;
if judging that the corresponding event node exists under each control node, loading the corresponding event node;
generating the target software interface based on the current interface element, and displaying all controls under the current interface element;
and when the configuration information of all the controls in the target software interface is read, ending the generation of the target software interface to obtain the complete target software interface.
The second aspect of the present application provides a software interface generating apparatus, including:
the file acquisition unit is used for acquiring an XML configuration file of the target software interface; the XML configuration file of the target software interface is generated based on the target software interface designed by a user;
the analysis unit is used for analyzing the XML configuration file of the target software interface to obtain the configuration information of the control in the target software interface;
the data reading unit is used for reading interface element data corresponding to the target software interface;
and the interface generating unit is used for generating and displaying each interface element corresponding to the target software interface based on the configuration information of the control in the target software interface and the interface element data corresponding to the target software interface to obtain the target software interface.
Optionally, in the software interface generating device, the method further includes:
the cleaning unit is used for responding to the new operation of the user and cleaning all the controls in the designed interface working area;
a creation unit for creating an XML blank file containing only declaration statements of an XML document;
and the design unit is used for responding to the design operation of the user, generating the target software interface, and storing the configuration information of each control in the target software interface into the XML blank file to obtain the XML configuration file of the target software interface.
Optionally, in the software interface generating device, the method further includes:
the verification unit is used for verifying whether the content in the XML configuration file of the target software interface is legal or not; and if the content in the XML configuration file of the target software interface is legal, the analysis unit executes the analysis on the XML configuration file of the target software interface to obtain the attribute information of the control in the target software interface.
Optionally, in the software interface generating device, the interface generating unit includes:
the element generation unit is used for generating a current interface element based on configuration information of a control in the target software interface and interface element data corresponding to the target software interface;
the first judging unit is used for judging whether a control node exists in the control under the current interface element when all the interface elements corresponding to the target software interface are not generated currently;
the control information acquisition unit is used for acquiring the main key value of the control corresponding to each control node and reading the configuration information of the control corresponding to each control node when judging that the control under the current interface element has the control node;
the second judging unit is used for judging whether corresponding event nodes exist under each control node according to the configuration information of the control corresponding to each control node;
the loading unit is used for loading the corresponding event nodes when judging that the corresponding event nodes exist under each control node;
the display unit is used for generating the target software interface based on the current interface element and displaying all controls under the current interface element;
and the ending unit is used for ending the generation of the target software interface when the configuration information of all the controls in the target software interface is read, so as to obtain the complete target software interface.
A third aspect of the present application provides an electronic device, comprising:
a memory and a processor;
wherein the memory is used for storing programs;
the processor is configured to execute the program, where the program is executed, and specifically configured to implement a software interface generating method according to any one of the foregoing methods.
A fourth aspect of the present application provides a computer storage medium storing a computer program for implementing a software interface generation method according to any one of the preceding claims when executed.
The application provides a software interface generation method, which is used for generating an XML configuration file of a target software interface based on the target software interface designed by a user in advance. When the XML configuration file of the target software interface needs to be generated, the XML configuration file of the target software interface is obtained, and the XML configuration file of the target software interface is analyzed to obtain the configuration information of the control in the target software interface. Meanwhile, interface element data corresponding to the target software interface which is relied when the target software interface is generated is automatically read. And finally, generating and displaying each interface element corresponding to the target software interface based on the configuration information of the control in the target software interface and the interface element data corresponding to the target software interface to obtain the target software interface, so that the XML configuration file and the interface element data are processed through the fixed logic program to obtain the software interface which accords with the configuration in the XML configuration file, and corresponding logic codes are not required to be set for different interfaces respectively.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a software interface automatic generation model according to an embodiment of the present application;
FIG. 2 is a flowchart of a software interface generating method according to an embodiment of the present application;
FIG. 3 is a flowchart of a design method of a target software interface according to an embodiment of the present application;
FIG. 4 is a flowchart of a method for generating a target software interface according to an embodiment of the present application;
fig. 5 is a schematic architecture diagram of a software interface generating device according to an embodiment of the present application;
fig. 6 is a schematic diagram of an architecture of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In the present application, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the application provides a method for generating a software interface, which aims to solve the problems that the prior art is too complicated in changing and inconvenient in subsequent maintenance.
Optionally, in order to implement the method for generating the software interface provided by the embodiment of the present application, the embodiment of the present application provides an automatic software interface generation model. As shown in fig. 1, the software interface automatic generation model provided by the embodiment of the present application mainly includes: interface presentation layer, logic processing layer and data storage layer.
The interface representation layer is positioned at the uppermost layer of the software interface automatic generation model, mainly responds to the design operation of a user, designs the software interface, and stores configuration information of a control object contained in the software interface designed by the user, namely attribute information of the control object, into an extensible markup language (Extensible Markup Language, XML) file, so that an XML configuration file of the interface is obtained. And when the interface needs to be generated, the information in the XML configuration file of the software interface can be analyzed through the XML API.
The data storage layer is positioned at the lowest layer of the software interface automatic generation model and is mainly used for storing interface element data information, namely basic information of interface elements, such as related information of interface controls, field types, constraint conditions and the like.
The logic processing layer is positioned in the middle of the software interface automatic generation model and is mainly used for interaction with the interface representation layer and the data storage layer so as to acquire specific description information of the interface control object and interface element data information which is relied on when the interface is automatically generated from the interface representation layer and the data storage layer. And then, processing the data acquired by the interface representation layer and the data storage layer to generate corresponding interface data, such as building components, setting event monitoring types and the like, and finally generating an interface by utilizing the generated interface data.
Optionally, in the embodiment of the application, the software interface automatic generation model can verify the quality of the generated interface in actual use, and allow a user to adjust the information of the XML configuration file of the interface and the interface element data.
Based on the above provided software interface automatic generation model, another embodiment of the present application provides a software interface generation method, as shown in fig. 2, including the following steps:
s201, acquiring an XML configuration file of the target software interface.
The target software interface refers to a software interface which has a corresponding XML configuration file and needs to be generated currently. XML configuration files of the target software interface are generated based on the target software interface designed by the user. The target software interface needs to be designed before step S201.
Specifically, when the user designs the target software interface, the target software interface is formed by a plurality of control components, and attribute information and the like of the control are set, so that after the user designs the target software interface, a corresponding XML configuration file can be generated based on the description information of the control object in the target software interface.
Optionally, another embodiment of the present application provides a method for designing a target software interface, as shown in fig. 3, including the following steps:
s301, responding to new operation of a user, and emptying all the controls in the designed interface working area.
Specifically, when a user needs to design a software interface, the user can click on the new creation to create the new creation. It is considered that there may be traces of previous designs on the design interface workspace at this point, so that each control in the design interface workspace needs to be emptied.
Of course, the user can open the existing local instance in addition to the new instance, and continue the design. Specifically, when the local instance is read, a path where the file is opened by calling a file dialog box, the file is selected, and then the selected file is deserialized, so that an interface corresponding to the local instance to be opened is displayed in a design interface work area.
S302, creating an XML blank file only containing declaration sentences of the XML document.
The declaration statement may include a specific version number, a character set used, and the like.
S303, responding to design operation of a user, generating a target software interface, and storing configuration information of each control in the target software interface into an XML blank file to obtain an XML configuration file of the target software interface.
In the embodiment of the application, the copy, cut, paste, full selection, cancel, restore and delete functions are supported for the operation object in design, namely the control object. And, the design interface contains instance windows, toolboxes, design libraries, property windows, etc.
Wherein when the user opens the tool box, the application software will appear similar to the window of the tool box in Visual. When the control has a drag function and clicks a design menu item in a view menu, the application program automatically analyzes a manufactured interface (namely an XML configuration file) into a tree-shaped structure. A user can perform various operations on the structural tree of the interface, such as folding or unfolding, dragging and dropping tree nodes into a design interface working area, and the like, and the attribute view function mainly sets attributes for control objects in the design interface working area.
Optionally, in order to ensure that the XML configuration file is satisfactory, to avoid that the generated target software interface has a problem or that the target software interface cannot be generated, in another embodiment of the present application, after executing step S201, before executing step S202, further execution is performed:
and checking whether the content in the XML configuration file of the target software interface is legal or not.
If the content in the XML configuration file of the target software interface is legal, step S202 is then executed.
It should be noted that, in order to ensure the integrity of the document result, the XML configuration file may not define the tag at will, and it needs to be written according to a preset grammar rule, so that the XML processor or browser can be ensured to correctly read and parse the content of the document.
Alternatively, the preset grammar rule may include: the document must be declared in XML, all tags must be paired, any end tags cannot be omitted, and the XML document must be contained in a single element; XML elements are labels appearing in XML documents, a plurality of sub-labels can be nested in one label, but all labels must be reasonably nested, and cross nesting is not allowed; the attributes of the XML document must have values, and the values must be bracketed with quotation marks, and the attributes in the elements are not allowed to be repeated; there is only one root element in the XML document, and other elements are child elements or grand courtyard of the root element, the XML element is sensitive to the case; for all spaces and lines appearing in an XML element, the XML parser processes the element content, and so on.
S202, analyzing the XML configuration file of the target software interface to obtain the configuration information of the control in the target software interface.
Specifically, the XML configuration file of the target software interface can be analyzed through the XML API, so that configuration information of the controls in the target software interface is obtained, namely information configured by a user when each control in the target software interface is involved, namely description information of the controls is obtained, and the analyzed data can be translated into formatted text, so that updating operation of the interface configuration file is completed.
S203, reading interface element data corresponding to the target software interface.
It should be noted that, when the target software interface is generated, some basic information of the interface elements, such as related information of the interface control, field types, constraint conditions, and the like, are needed to be relied on, so that element data of the interface elements included in the target software interface also needs to be read from the database.
S204, generating and displaying each interface element corresponding to the target software interface based on configuration information of the control in the target software interface and interface element data corresponding to the target software interface, and obtaining the target software interface.
Specifically, when the configuration information of the control in the target software interface and the interface element data corresponding to the target software interface are obtained, corresponding interface elements can be generated according to the configuration information of the control in the target software interface and the interface element data corresponding to the target software interface, attribute values in the configuration information are substituted into the corresponding control, and finally, all the interface elements corresponding to the target software interface are displayed, so that the complete target software interface can be obtained.
Optionally, in another embodiment of the present application, a specific implementation of step S204, as shown in fig. 4, includes the following steps:
s401, generating a current interface element based on configuration information of a control in the target software interface and interface element data corresponding to the target software interface.
In the embodiment of the application, the configuration information of the control in the target software interface and the interface element data corresponding to the target software interface are continuously loaded, and the interface is continuously generated according to the loaded data.
S402, judging whether all interface elements of the target software interface are generated currently.
If it is determined that all the interface elements of the target software interface have been generated, step S407 is performed. If all the interface elements corresponding to the target software interface are not currently generated, step S402 is executed.
S403, judging whether a control node exists in the control under the current interface element.
If it is determined that the control node does not exist in the control under the current interface element, step S407 may be directly executed. If it is determined that the control node exists in the control under the current interface element, the control needs to be processed corresponding to the space node, so that step S404 is executed at this time.
S404, acquiring a main key value of a control corresponding to each control node, and reading configuration information of the control corresponding to each control node.
Specifically, the main key value of the control corresponding to each control node is obtained, so that the configuration information of the corresponding space is obtained conveniently.
S405, judging whether corresponding event nodes exist under each control node according to configuration information of the control corresponding to each control node.
If it is determined that the corresponding event node exists under each control node, step S406 is executed. If it is determined that the corresponding event node does not exist under each control node, step S407 may be directly performed.
S406, loading corresponding event nodes.
Specifically, the type of the existing event node is determined, and the event node is loaded according to the type of the event node, so that corresponding event operation is conveniently executed on the control.
S407, generating a target software interface based on the current interface element, and displaying all controls under the current interface element.
S408, judging whether the configuration information of the controls in all the target software interfaces is read.
If it is determined that the configuration information of all the controls in the target software interface has been read, step S408 is performed. If it is determined that the configuration information of all the controls in the target software interface has not been read, the process returns to step S401.
S409, finishing the generation of the target software interface to obtain a complete target software interface.
The embodiment of the application provides a software interface generation method, which is used for generating an XML configuration file of a target software interface based on the target software interface designed by a user in advance. When the XML configuration file of the target software interface needs to be generated, the XML configuration file of the target software interface is obtained, and the XML configuration file of the target software interface is analyzed to obtain the configuration information of the control in the target software interface. Meanwhile, interface element data corresponding to the target software interface which is relied when the target software interface is generated is automatically read. And finally, generating and displaying each interface element corresponding to the target software interface based on the configuration information of the control in the target software interface and the interface element data corresponding to the target software interface to obtain the target software interface, so that the XML configuration file and the interface element data are processed through the fixed logic program to obtain the software interface which accords with the configuration in the XML configuration file, and corresponding logic codes are not required to be set for different interfaces respectively.
Another embodiment of the present application provides a software interface generating apparatus, as shown in fig. 5, including the following units:
the file obtaining unit 501 is configured to obtain an XML configuration file of the target software interface.
The XML configuration file of the target software interface is generated based on the target software interface designed by the user.
And the parsing unit 502 is configured to parse the XML configuration file of the target software interface to obtain configuration information of the control in the target software interface.
And the data reading unit 503 is configured to read interface element data corresponding to the target software interface.
The interface generating unit 504 is configured to generate and display each interface element corresponding to the target software interface based on the configuration information of the control in the target software interface and the interface element data corresponding to the target software interface, so as to obtain the target software interface.
Optionally, in the software interface generating apparatus provided in another embodiment of the present application, the method may further include:
and the cleaning unit is used for responding to the new operation of the user and cleaning all the controls in the designed interface working area.
And the creating unit is used for creating an XML blank file only containing declaration sentences of the XML document.
The design unit is used for responding to the design operation of a user, generating a target software interface, and storing configuration information of each control in the target software interface into an XML blank file to obtain an XML configuration file of the target software interface.
Optionally, in the software interface generating apparatus provided in another embodiment of the present application, the method may further include:
and the verification unit is used for verifying whether the content in the XML configuration file of the target software interface is legal or not.
And if the content in the XML configuration file of the target software interface is legal, the analysis unit analyzes the XML configuration file of the target software interface to obtain the attribute information of the control in the target software interface.
Optionally, in the software interface generating device provided in another embodiment of the present application, the interface generating unit includes:
the element generation unit is used for generating a current interface element based on configuration information of a control in the target software interface and interface element data corresponding to the target software interface.
The first judging unit is used for judging whether the control under the current interface element has a control node or not when all the interface elements corresponding to the target software interface are not generated currently.
The control information acquisition unit is used for acquiring the main key value of the control corresponding to each control node and reading the configuration information of the control corresponding to each control node when judging that the control under the current interface element has the control node.
And the second judging unit is used for judging whether corresponding event nodes exist under each control node according to the configuration information of the control corresponding to each control node.
And the loading unit is used for loading the corresponding event nodes when judging that the corresponding event nodes exist under each control node.
And the display unit is used for generating a target software interface based on the current interface element and displaying all controls under the current interface element.
And the ending unit is used for ending the generation of the target software interface when the configuration information of the controls in all the target software interfaces is read, so as to obtain the complete target software interface.
It should be noted that, for the specific working process of each unit provided in the above embodiment of the present application, reference may be made to corresponding steps in the above method embodiment accordingly, which is not described herein again.
Another embodiment of the present application provides an electronic device, as shown in fig. 6, including:
a memory 601 and a processor 602.
Wherein the memory 601 is used for storing programs.
The processor 602 is configured to execute a program stored in the memory 601, and when the program is executed, the program is specifically configured to implement the software interface generation method provided in any one of the embodiments described above.
Another embodiment of the present application provides a computer storage medium storing a computer program for implementing the software interface generation method provided in any one of the above embodiments when the computer program is executed.
Computer storage media, including both non-transitory and non-transitory, removable and non-removable media, may be implemented in any method or technology for storage of information. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, read only compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by the computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
The method and the device for generating the software interface, the electronic equipment and the storage medium can be used in the financial field or other fields, for example, can be used in an interface development application scene in the financial field. Other fields are any field other than the financial field, for example, the software development field. The foregoing is merely an example, and the application fields of the method and apparatus for generating a software interface, the electronic device, and the storage medium provided by the present application are not limited.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for generating a software interface, comprising:
acquiring an XML configuration file of a target software interface;
analyzing the XML configuration file of the target software interface to obtain configuration information of the control in the target software interface;
reading interface element data corresponding to the target software interface;
and generating and displaying each interface element corresponding to the target software interface based on the configuration information of the control in the target software interface and the interface element data corresponding to the target software interface to obtain the target software interface.
2. The method of claim 1, further comprising, prior to the obtaining the XML configuration file of the target software interface:
responding to the new operation of the user, and emptying all the controls in the designed interface working area;
creating an XML blank file containing only declarative statements of an XML document;
and responding to the design operation of the user, generating the target software interface, and storing configuration information of each control in the target software interface into the XML blank file to obtain an XML configuration file of the target software interface.
3. The method of claim 1, wherein before parsing the XML configuration file of the target software interface to obtain configuration information of a control in the target software interface, further comprises:
verifying whether the content in the XML configuration file of the target software interface is legal or not; and if the content in the XML configuration file of the target software interface is verified to be legal, executing the analysis on the XML configuration file of the target software interface to obtain the attribute information of the control in the target software interface.
4. A method according to any one of claims 1 to 3, wherein the generating and displaying each interface element corresponding to the target software interface based on configuration information of a control in the target software interface and interface element data corresponding to the target software interface to obtain the target software interface includes:
generating a current interface element based on configuration information of a control in the target software interface and interface element data corresponding to the target software interface;
if all interface elements corresponding to the target software interface are not generated currently, judging whether a control node exists in the control under the current interface element;
if the control node exists in the control under the current interface element, acquiring a main key value of the control corresponding to each control node, and reading configuration information of the control corresponding to each control node;
judging whether corresponding event nodes exist under each control node according to configuration information of the control corresponding to each control node;
if judging that the corresponding event node exists under each control node, loading the corresponding event node;
generating the target software interface based on the current interface element, and displaying all controls under the current interface element;
and when the configuration information of all the controls in the target software interface is read, ending the generation of the target software interface to obtain the complete target software interface.
5. A software interface generation apparatus, comprising:
the file acquisition unit is used for acquiring an XML configuration file of the target software interface;
the analysis unit is used for analyzing the XML configuration file of the target software interface to obtain the configuration information of the control in the target software interface;
the data reading unit is used for reading interface element data corresponding to the target software interface;
and the interface generating unit is used for generating and displaying each interface element corresponding to the target software interface based on the configuration information of the control in the target software interface and the interface element data corresponding to the target software interface to obtain the target software interface.
6. The apparatus as recited in claim 5, further comprising:
the cleaning unit is used for responding to the new operation of the user and cleaning all the controls in the designed interface working area;
a creation unit for creating an XML blank file containing only declaration statements of an XML document;
and the design unit is used for responding to the design operation of the user, generating the target software interface, and storing the configuration information of each control in the target software interface into the XML blank file to obtain the XML configuration file of the target software interface.
7. The apparatus as recited in claim 5, further comprising:
the verification unit is used for verifying whether the content in the XML configuration file of the target software interface is legal or not; and if the content in the XML configuration file of the target software interface is legal, the analysis unit executes the analysis on the XML configuration file of the target software interface to obtain the attribute information of the control in the target software interface.
8. The apparatus according to any one of claims 5 to 7, wherein the interface generating unit includes:
the element generation unit is used for generating a current interface element based on configuration information of a control in the target software interface and interface element data corresponding to the target software interface;
the first judging unit is used for judging whether a control node exists in the control under the current interface element when all the interface elements corresponding to the target software interface are not generated currently;
the control information acquisition unit is used for acquiring the main key value of the control corresponding to each control node and reading the configuration information of the control corresponding to each control node when judging that the control under the current interface element has the control node;
the second judging unit is used for judging whether corresponding event nodes exist under each control node according to the configuration information of the control corresponding to each control node;
the loading unit is used for loading the corresponding event nodes when judging that the corresponding event nodes exist under each control node;
the display unit is used for generating the target software interface based on the current interface element and displaying all controls under the current interface element;
and the ending unit is used for ending the generation of the target software interface when the configuration information of all the controls in the target software interface is read, so as to obtain the complete target software interface.
9. An electronic device, comprising:
a memory and a processor;
wherein the memory is used for storing programs;
the processor is configured to execute the program, and the program is specifically configured to implement the software interface generation method according to any one of claims 1 to 4 when executed.
10. A computer storage medium storing a computer program which, when executed, is adapted to carry out the software interface generation method of any one of claims 1 to 4.
CN202311210799.2A 2023-09-20 2023-09-20 Method and device for generating software interface, electronic equipment and storage medium Pending CN117234487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311210799.2A CN117234487A (en) 2023-09-20 2023-09-20 Method and device for generating software interface, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311210799.2A CN117234487A (en) 2023-09-20 2023-09-20 Method and device for generating software interface, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117234487A true CN117234487A (en) 2023-12-15

Family

ID=89090694

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311210799.2A Pending CN117234487A (en) 2023-09-20 2023-09-20 Method and device for generating software interface, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117234487A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117519703A (en) * 2024-01-03 2024-02-06 山东街景智能制造科技股份有限公司 Customization management method for operation interface

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117519703A (en) * 2024-01-03 2024-02-06 山东街景智能制造科技股份有限公司 Customization management method for operation interface
CN117519703B (en) * 2024-01-03 2024-04-05 山东街景智能制造科技股份有限公司 Customization management method for operation interface

Similar Documents

Publication Publication Date Title
US10983660B2 (en) Software robots for programmatically controlling computer programs to perform tasks
KR101312867B1 (en) Markup based extensibility for user interfaces
US9779133B2 (en) Contextual debugging of SQL queries in database-accessing applications
US8392873B2 (en) Methods and apparatus for implementing model-based software solution development and integrated change management
US7685140B2 (en) Dynamic information systems
US20130239098A1 (en) Source code conversion method and source code conversion program
US10114619B2 (en) Integrated development environment with multiple editors
US20070033212A1 (en) Semantic model development and deployment
US8407235B2 (en) Exposing and using metadata and meta-metadata
CN117234487A (en) Method and device for generating software interface, electronic equipment and storage medium
US7958073B2 (en) Software and methods for task method knowledge hierarchies
US9715372B2 (en) Executable guidance experiences based on implicitly generated guidance models
CN117215556A (en) Modularized page rapid construction method, system, equipment and medium
US11977473B2 (en) Providing a pseudo language for manipulating complex variables of an orchestration flow
US20140282376A1 (en) Tailored language sets for business level scripting
Hamdani et al. A Novel Framework to Automatically Generate IFML Models From Plain Text Requirements
KR20220003106A (en) Systems and methods of computer-assisted computer programming
EP4336348A1 (en) Iterative and interactive method for code conversion
CN117610540A (en) Model verification method, system, storage medium and electronic equipment
CN115268907A (en) Method for generating software system control interaction logic by using json data
Todorović et al. Supporting Integrative Code Generation with Traceability Links and Code Fragment Integrity Checks
CN115328789A (en) Test case editing method, device, equipment and medium
US20190050207A1 (en) Framework for modeling with domain model capabilities

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination