CN113656126B - Menu display method and menu display device of information system and electronic equipment - Google Patents

Menu display method and menu display device of information system and electronic equipment Download PDF

Info

Publication number
CN113656126B
CN113656126B CN202110874342.6A CN202110874342A CN113656126B CN 113656126 B CN113656126 B CN 113656126B CN 202110874342 A CN202110874342 A CN 202110874342A CN 113656126 B CN113656126 B CN 113656126B
Authority
CN
China
Prior art keywords
menu
configuration
display
data
information system
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
CN202110874342.6A
Other languages
Chinese (zh)
Other versions
CN113656126A (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.)
Caxa Technology Co Ltd
Original Assignee
Caxa Technology 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 Caxa Technology Co Ltd filed Critical Caxa Technology Co Ltd
Priority to CN202110874342.6A priority Critical patent/CN113656126B/en
Publication of CN113656126A publication Critical patent/CN113656126A/en
Application granted granted Critical
Publication of CN113656126B publication Critical patent/CN113656126B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a menu display method and device of an information system and electronic equipment. The menu display method comprises the following steps: reading a menu configuration file of an information system; analyzing the menu configuration file to obtain menu data corresponding to the data object and configuration function data of each menu item; determining menu display parameters according to the selected data object, menu data corresponding to the data object and configuration function data, wherein the menu display parameters at least comprise: the number of menu displays and the style of menu display; based on the menu display parameters, all system menus in the information system are displayed. The application solves the technical problems that individual configuration cannot be carried out on each menu item in the management information system, and the use interest of a user is reduced.

Description

Menu display method and menu display device of information system and electronic equipment
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a menu display method and a menu display device for an information system, and an electronic device.
Background
In the related technology, the menu in the management information software is related to the corresponding data model, and generally, the menu is written into the code in advance in the software design process, different menu items are all required to be defined by separate engineering, and the definition content of the immobilized menu item is also bound in the code, so that the development of the management information software and the personalized customization of clients are not easy.
In the implementation scenario, different data objects in the management information software have different menu items, and menu items in the same data model menu change along with product development or customer demand increase and decrease along with the application scenario. In the practical use scene, the customer can also aim at users with poor eyesight or achromatopsia, and the requirements of adjusting the font size and amplifying certain menu items by colors are met.
The menu dynamic loading method for the management system provided in the prior art cannot process that one data model object displays different menu items in different environments (such as version and application domain) of management software. For example, most menu items of the part menu in the PDM are unified, but the menu items displayed by the management information software of version A and version B are different, and new menu items are different before and after the expansion module is installed. According to the prior art, the installation of the expansion module or the installation of management information software with different versions can only cover the same menu configuration file, and the problems can occur in the menu when the related expansion module or the rollback version is uninstalled, and the rollback configuration file is also needed.
Meanwhile, in the prior art, only a menu can be dynamically loaded, personalized configuration can not be carried out on each menu item of the menu, the use interest of a user is reduced, for example, according to a login role, a loaded module automatically adjusts the font size, the font color, the icons and the like.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a menu display method, a menu display device and electronic equipment of an information system, which at least solve the technical problems that individual configuration cannot be carried out on each menu item in the management information system and the use interest of a user is reduced.
According to an aspect of an embodiment of the present application, there is provided a menu display method of an information system, including: reading a menu configuration file of an information system; analyzing the menu configuration file to obtain menu data corresponding to the data object and configuration function data of each menu item; determining menu display parameters according to the selected data object, menu data corresponding to the data object and the configuration function data, wherein the menu display parameters at least comprise: the number of menu displays and the style of menu display; and displaying all system menus in the information system based on the menu display parameters.
Optionally, the step of reading a menu configuration file of the information system includes: receiving a new task; based on the new task, each menu of the information system is separately configured into a preset format according to the data object; and reading the menu configuration file corresponding to the preset format.
Optionally, the menu configuration file includes at least one of: a menu identification, a menu type, a menu display name, an execution command of the menu, a display style of the menu, and a display condition of the menu.
Optionally, the step of determining the menu display parameter according to the selected data object, the corresponding menu data and the configuration function data includes: determining a plurality of menu items to be displayed based on the selected data object and the corresponding menu data; detecting whether each menu item can be displayed or not based on the configuration function data to obtain a detection result; and determining the menu display quantity and the menu display style of each displayable menu item based on the detection result and the configuration function data, and obtaining the menu display parameters.
Optionally, based on the configuration function data, detecting whether each menu item can be displayed, and obtaining a detection result, including: judging whether menu item filtering configuration exists or not based on the configuration function data; if the menu item filtering configuration exists, packaging filtering information of the menu item filtering configuration into a preset function interface; and detecting whether each menu item can be displayed or not through the preset function interface, and obtaining a detection result.
Optionally, after determining whether the menu filtering configuration exists, the menu display method further includes: reading an application domain loaded by the information system; judging whether each menu item meets attribute condition configuration or not according to the read application domain; if the menu item meets the attribute condition configuration, reading font display configuration and hidden display configuration; determining a menu font of a system menu corresponding to a menu item to be displayed based on the font display configuration to obtain a font configuration result; determining whether the menu item to be displayed needs to be displayed in a hidden mode based on the hidden display configuration, and obtaining a display configuration result; and generating a menu configuration result based on the font configuration result and the display configuration result.
Optionally, the preset function interface includes: standard dll interface, python script, com interface.
According to another aspect of the embodiment of the present application, there is also provided a menu display apparatus of an information system, including: the reading unit is used for reading the menu configuration file of the information system; the analysis unit is used for analyzing the menu configuration file to obtain menu data corresponding to the data object and configuration function data of each menu item; the determining unit is used for determining menu display parameters according to the selected data object, menu data corresponding to the data object and the configuration function data, wherein the menu display parameters at least comprise: the number of menu displays and the style of menu display; and the display unit is used for displaying all system menus in the information system based on the menu display parameters.
Optionally, the reading unit includes: the first receiving module is used for receiving the new task; the first configuration module is used for separately configuring each menu of the information system into a preset format according to the data object based on the new task; the first reading module is used for reading the menu configuration file corresponding to the preset format.
Optionally, the menu configuration file includes at least one of: a menu identification, a menu type, a menu display name, an execution command of the menu, a display style of the menu, and a display condition of the menu.
Optionally, the determining unit includes: the first determining module is used for determining a plurality of menu items to be displayed based on the selected data objects and the corresponding menu data; the first detection module is used for detecting whether each menu item can be displayed or not based on the configuration function data to obtain a detection result; and the second determining module is used for determining the menu display quantity and the menu display style of each displayable menu item based on the detection result and the configuration function data to obtain the menu display parameters.
Optionally, the first detection module includes: the first judging submodule is used for judging whether menu item filtering configuration exists or not based on the configuration function data; the packaging sub-module is used for packaging the filtering information of the menu item filtering configuration to a preset function interface when the menu item filtering configuration exists; and the detection sub-module is used for detecting whether each menu item can be displayed through the preset function interface to obtain a detection result.
Optionally, the menu display device of the information system further includes: the second reading module is used for reading the application domain loaded by the information system after judging whether the menu filtering configuration exists or not; the second judging module is used for judging whether each menu item meets attribute condition configuration according to the read application domain; the third reading module is used for reading the font display configuration and the hidden display configuration when the menu item meets the attribute condition configuration; the third determining module is used for determining the menu fonts of the system menu corresponding to the menu items to be displayed based on the font display configuration to obtain font configuration results; a fourth determining module, configured to determine, based on the hidden display configuration, whether a menu item to be displayed needs to be displayed in a hidden manner, so as to obtain a display configuration result; and the generation module is used for generating a menu configuration result based on the font configuration result and the display configuration result.
Optionally, the preset function interface includes: standard dll interface, python script, com interface.
According to another aspect of the embodiment of the present application, there is also provided an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the menu display method of the information system of any one of the above via execution of the executable instructions.
According to another aspect of the embodiment of the present application, there is further provided a computer readable storage medium, where the computer readable storage medium includes a stored computer program, where when the computer program runs, the device where the computer readable storage medium is controlled to execute the menu display method of the information system described in any one of the foregoing.
In the embodiment of the application, the menu configuration file of the information system is read, the menu configuration file is analyzed to obtain the menu data corresponding to the data object and the configuration function data of each menu item, the menu display parameters are determined according to the selected data object, the menu data corresponding to the data object and the configuration function data, and all system menus in the information system are displayed based on the menu display parameters. In the embodiment, personalized menu configuration options can be provided, and based on the menu configuration file, the relevant configuration of menu display of the information system is adjusted, all menu items are dynamically displayed, so that the use interest of a user is improved, and the technical problem that personalized configuration cannot be carried out on each menu item in the management information system, and the use interest of the user is reduced is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of an alternative menu display method of an information system according to an embodiment of the application;
FIG. 2 is a flow chart of another alternative menu display method of managing an information system according to an embodiment of the application;
FIG. 3 is a flow chart of an alternative menu item display method according to an embodiment of the application;
fig. 4 is a schematic diagram of a menu display apparatus of an alternative information system according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The application can be applied to various information systems, and the types of the information systems can be management information software, management information APP and management information systems. The same menu of the same data model in the information system in the following embodiments of the application can dynamically display different menu items according to the current login role and the application module; meanwhile, the menu item of each dynamic menu in the information system can adjust the style according to the current login role and the application module, and the style is not limited to the font size, the color, the menu item icons and the like. The application is described below in connection with various embodiments.
Example 1
According to an embodiment of the present application, there is provided a menu display method embodiment of an information system, it being noted that the steps shown in the flowcharts of the drawings may be performed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
Fig. 1 is a flowchart of an alternative menu display method of an information system according to an embodiment of the present application, as shown in fig. 1, the method including the steps of:
step S102, reading a menu configuration file of an information system;
step S104, analyzing the menu configuration file to obtain menu data corresponding to the data object and configuration function data of each menu item;
step S106, determining menu display parameters according to the selected data object, menu data corresponding to the data object and configuration function data, wherein the menu display parameters at least comprise: the number of menu displays and the style of menu display;
step S108, based on the menu display parameters, displaying all system menus in the information system.
Through the steps, the menu configuration file of the information system can be read, the menu configuration file is analyzed to obtain the menu data corresponding to the data object and the configuration function data of each menu item, the menu display parameters are determined according to the selected data object, the menu data corresponding to the data object and the configuration function data, and all system menus in the information system are displayed based on the menu display parameters. In the embodiment, personalized menu configuration options can be provided, and based on the menu configuration file, the relevant configuration of menu display of the information system is adjusted, all menu items are dynamically displayed, so that the use interest of a user is improved, and the technical problem that personalized configuration cannot be carried out on each menu item in the management information system, and the use interest of the user is reduced is solved.
Embodiments of the present application will be described in detail below in conjunction with the foregoing steps.
Step S102, a menu configuration file of the information system is read.
Optionally, the step of reading a menu configuration file of the information system includes: receiving a new task; based on the new task, each menu of the information system is separately configured into a preset format according to the data object; and reading a menu configuration file corresponding to the preset format.
The preset format may be selected by itself, for example, each menu of the management information system is separately configured into json files according to each data model/data object; the corresponding json format menu configuration file may then be read.
Alternatively, the menu profile includes at least one of: a menu identification, a menu type, a menu display name, an execution command of the menu, a display style of the menu, and a display condition of the menu.
The menu configuration file contains: ID. Type, caption, command, font, fiter, childItems; wherein, the liquid crystal display device comprises a liquid crystal display device,
1) Unique identification of the menu referred to by ID;
2) Type represents a menu Type;
3) Caption represents a menu display name;
4) Command indicates the execution Command of the menu, and finds the actual function execution body in the other unified Command configuration;
5) The Font represents the display style of the menu, and different styles can be used according to conditions, including but not limited to Font size, color and Font format;
6) Fiter is a display condition of a menu, and comprises an application domain, a login role and simple condition setting, and if the condition is not satisfied, a plug-in function can be supported to realize complex condition judgment;
7) The child items will only have values if the current menu has a secondary menu, within which the secondary menu is configured.
Exemplified by a menu item configuration in partmeun.
Step S104, analyzing the menu configuration file to obtain menu data corresponding to the data object and configuration function data of each menu item.
Menu data of the corresponding data object (which may also be a data model) and custom function data (or configuration function data) of each menu item are generated by parsing the menu configuration file.
When the management information system is started, all menu configuration files are loaded, the configuration files can be stored by taking the internal names of the data objects as indexes, all menu realization configuration files are loaded, and menu item IDs are stored by taking the indexes, so that the menu display and response efficiency is accelerated.
When the information system is used for managing the operation objects, different menus are triggered by the data model, and each menu item executes a configured function when the menu is loaded so as to determine whether the menu item is displayed or not, what the display effect is, and each menu item has a unique menu item ID.
Step S106, determining menu display parameters according to the selected data object, menu data corresponding to the data object and configuration function data, wherein the menu display parameters at least comprise: the number of menu displays and the style of menu display.
The UI interface of the information system displays the corresponding menu according to the selected data object and the menu data loaded in the last step, and can judge which specific items of the menu are not displayed and the display style according to the menu item configuration function.
Optionally, the step of determining the menu display parameter according to the selected data object, the corresponding menu data and the configuration function data includes: determining a plurality of menu items to be displayed based on the selected data objects and the corresponding menu data; detecting whether each menu item can be displayed or not based on the configuration function data to obtain a detection result; and determining the menu display quantity and the menu display style of each displayable menu item based on the detection result and the configuration function data to obtain menu display parameters.
As an optional implementation manner of this embodiment, the step of detecting whether each menu item can be displayed based on the configuration function data, and obtaining a detection result includes: judging whether menu item filtering configuration exists or not based on configuration function data; if the menu item filtering configuration exists, packaging filtering information of the menu item filtering configuration into a preset function interface; and detecting whether each menu item can be displayed or not through a preset function interface, and obtaining a detection result.
After the menu configuration file is read, reading configuration conditions (for example, reading the filter configuration of the menu items), judging whether menu item filtering configuration (mainly determined by the display condition filter of the menu items) exists or not after the menu configuration file is read, if not, directly reading display style configuration to generate corresponding style data, then determining whether the menu item to be displayed can be clicked or whether the menu item to be displayed needs to be displayed in a hidden mode according to gray selection configuration/hidden display configuration, obtaining a display configuration result, and finally displaying the configuration result by the style data to generate the menu configuration result.
Optionally, the preset function interface includes, but is not limited to: standard dll interface, python script, com interface, vb. The filtering information includes, but is not limited to: the attribute filtering logic of menu items combines or attributes filtering rules.
The menu item filtering configuration can be determined according to the character name of the current login personnel, the application domain loaded by the current management information software and the data of the current trigger menu. The menu item filtering configuration condition supports complex mixed logic, or a user can customize rules, then the logic and the rules are packaged into independent function interfaces (not limited to standard dll, python script, com, vb and the like), the logic and the rules can be realized by the user, the rule plug-in is executed before popup menu to generate temporary data, and the menu item can judge whether the data is displayed or not.
Optionally, after determining whether the menu filtering configuration exists, the menu display method further includes: reading an application domain loaded by an information system; judging whether each menu item meets attribute condition configuration or not according to the read application domain; if the menu item meets the attribute condition configuration, reading font display configuration and hidden display configuration; determining a menu font of a system menu corresponding to a menu item to be displayed based on font display configuration, and obtaining a font configuration result; determining whether the menu item to be displayed needs to be displayed in a hidden mode based on the hidden display configuration, and obtaining a display configuration result; and generating a menu configuration result based on the font configuration result and the display configuration result.
In this embodiment, after judging whether a menu filtering configuration exists, if so, whether a role condition is satisfied can be judged according to a current login personnel role in the filter configuration of the menu item, if so, an application domain loaded by a current information system is read, whether the application domain condition is satisfied is judged based on the read application domain, if the application domain condition is satisfied, whether attribute condition configuration (a complex logic generates a custom attribute by a plug-in function) is judged, if so, a display style configuration Font is read, corresponding style data is generated, and then Font display configuration and hidden display configuration can be read; determining a menu font of a system menu corresponding to a menu item to be displayed based on font display configuration, obtaining a font configuration result, determining whether the menu item to be displayed needs to be displayed in a hidden mode based on hidden display configuration, obtaining a display configuration result, and generating a menu configuration result based on the font configuration result and the display configuration result.
Step S108, based on the menu display parameters, displaying all system menus in the information system.
For example, by reading a menu implementation function configuration corresponding to json format and associating with a menu Identification (ID), clicking on the corresponding menu executes the corresponding function interface function.
Through the embodiment, the logic of displaying different menu items by the same menu configuration of the same data model can be realized, namely, different menu items can be dynamically displayed according to the current login role and the application module for the same menu of the same data model in the information system, and the menu items of each dynamic menu in the information system can also be adjusted in style according to the current login role and the application module, including but not limited to font size, color, menu item icons and other display related configurations.
The application is described below in connection with alternative embodiments.
Example two
Fig. 2 is a flowchart of another alternative menu display method of managing an information system according to an embodiment of the present application, as shown in fig. 2, the method including:
step S201, each menu of the management information system is separately configured into json files according to each data model;
step S203, reading a corresponding json format menu configuration file;
step S205, analyzing the menu configuration file to generate menu data corresponding to the data model and a custom menu item configuration function of each menu item;
step S207, the UI displays the corresponding menu according to the selected data model and the menu data, and determines the display item and the display style of the menu according to the menu item configuration function;
step S209, reading the menu implementation function configuration corresponding to the json format and associating with the unique menu identifier, clicking the corresponding menu to execute the corresponding function interface function.
The menu configuration file contains:
1) Unique identification of the menu referred to by ID;
2) Type represents a menu Type;
3) Caption represents a menu display name;
4) Command indicates the execution Command of the menu, and finds the actual function execution body in the other unified Command configuration;
5) The Font represents the display style of the menu, and different styles can be used according to conditions, including but not limited to Font size, color and Font format;
6) Fiter is a display condition of a menu, and comprises an application domain, a login role and simple condition setting, and if the condition is not satisfied, a plug-in function can be supported to realize complex condition judgment;
7) The child items will only have values if the current menu has a secondary menu, within which the secondary menu is configured.
When the management information software is started, all menu configuration files can be directly loaded, the configuration files are stored by taking the internal names of the data model as indexes, all menu implementation configuration files can be loaded, and menu item IDs are stored by taking the indexes, so that the menu display and response efficiency is improved.
When the management information software operates the object, different menus are triggered by the data model, and when the menu is loaded, each menu item executes the configured function to determine whether to display or not, the display effect is what, and each menu item has a unique menu item ID.
FIG. 3 is a flow chart of an alternative menu item display method according to an embodiment of the application, as shown in FIG. 3, comprising:
the right-click data model executes the plug-in function (under complex logic if any) before triggering the menu; then reading the filter configuration of the menu item, judging whether filter configuration exists in the filter configuration, and judging whether the character condition is met according to the current login personnel character if the filter configuration exists; if the role condition is met, reading an application domain loaded by the management software, judging whether the application domain condition is met according to the read application domain, if so, judging whether attribute condition configuration (complex logic generates custom attribute by a first step plug-in function), if so, reading the Font configuration to generate style display data, and then, configuring whether a control menu can be clicked according to gray options; and finally generating a menu display.
The menu item filtering part is determined according to the character name of the current login personnel, the application domain loaded by the current management information software and the data of the current trigger menu. The attribute filtering condition supports complex mixed logic or the user can customize rules, the logic and the rules are packaged into independent function interfaces (not limited to standard dll, python script, com, vb and the like), the attribute filtering condition can be realized by the user, the rule plug-in is executed to generate temporary data before popup a menu, and the menu item can judge whether the data is displayed or not.
Clicking on the corresponding menu item will find the corresponding implementation function through the menu item identification.
Through the embodiment, the logic of displaying different menu items by the same menu configuration of the same data object/data model can be realized, namely, different menu items can be dynamically displayed according to the current login role and the application module for the same menu of the same data model in the information system, and the menu items of each dynamic menu in the information system can also be adjusted in style according to the current login role and the application module, including but not limited to the display related configuration of font size, color, menu item icons and the like.
The application is described in detail below in connection with alternative embodiments.
Example III
The present embodiment provides a menu display apparatus of an information system, which includes a plurality of implementation units corresponding to the respective implementation steps in the above-described embodiment.
Fig. 4 is a schematic view of a menu display apparatus of an alternative information system according to an embodiment of the present application, as shown in fig. 4, the menu display apparatus may include: a reading unit 41, an analyzing unit 43, a determining unit 45, a display unit 47, wherein,
a reading unit 41 for reading a menu configuration file of the information system;
a parsing unit 43 for parsing the menu configuration file to obtain menu data corresponding to the data object and configuration function data of each menu item;
a determining unit 45, configured to determine menu display parameters according to the selected data object, menu data corresponding to the data object, and configuration function data, where the menu display parameters at least include: the number of menu displays and the style of menu display;
a display unit 47 for displaying all system menus in the information system based on the menu display parameters.
In the menu display device of the information system, the reading unit 41 may read the menu configuration file of the information system, the analyzing unit 43 may analyze the menu configuration file to obtain the menu data corresponding to the data object and the configuration function data of each menu item, the determining unit 45 may determine the menu display parameters according to the selected data object, the menu data corresponding to the data object and the configuration function data, and the display unit 47 may display all the system menus in the information system based on the menu display parameters. In the embodiment, personalized menu configuration options can be provided, and based on the menu configuration file, the relevant configuration of menu display of the information system is adjusted, all menu items are dynamically displayed, so that the use interest of a user is improved, and the technical problem that personalized configuration cannot be carried out on each menu item in the management information system, and the use interest of the user is reduced is solved.
Optionally, the reading unit 41 includes: the first receiving module is used for receiving the new task; the first configuration module is used for separately configuring each menu of the information system into a preset format according to the data object based on the new task; the first reading module is used for reading the menu configuration file corresponding to the preset format.
Optionally, the menu profile includes at least one of: a menu identification, a menu type, a menu display name, an execution command of the menu, a display style of the menu, and a display condition of the menu.
Optionally, the determining unit 45 includes: the first determining module is used for determining a plurality of menu items to be displayed based on the selected data objects and the corresponding menu data; the first detection module is used for detecting whether each menu item can be displayed or not based on the configuration function data to obtain a detection result; and the second determining module is used for determining the menu display quantity and the menu display style of each displayable menu item based on the detection result and the configuration function data to obtain menu display parameters.
Optionally, the first detection module includes: the first judging submodule is used for judging whether menu item filtering configuration exists or not based on the configuration function data; the packaging submodule is used for packaging the filtering information of the menu item filtering configuration to a preset function interface when the menu item filtering configuration exists; and the detection sub-module is used for detecting whether each menu item can be displayed through a preset function interface to obtain a detection result.
Optionally, the menu display device of the information system further includes: the second reading module is used for reading the application domain loaded by the information system after judging whether the menu filtering configuration exists or not; the second judging module is used for judging whether each menu item meets attribute condition configuration according to the read application domain; the third reading module is used for reading the font display configuration and the hidden display configuration when the menu item meets the attribute condition configuration; the third determining module is used for determining the menu fonts of the system menu corresponding to the menu items to be displayed based on the font display configuration to obtain a font configuration result; the fourth determining module is used for determining whether the menu item to be displayed needs to be displayed in a hidden mode based on the hidden display configuration to obtain a display configuration result; and the generating module is used for generating a menu configuration result based on the font configuration result and the display configuration result.
Optionally, the preset function interface includes: standard dll interface, python script, com interface.
The menu display device of the information system may further include a processor and a memory, wherein the reading unit 41, the analyzing unit 43, the determining unit 45, the display unit 47, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches a corresponding program unit from the memory. The kernel may set one or more to display all system menus in the information system based on the menu display parameters by adjusting the kernel parameters.
According to another aspect of the embodiment of the present application, there is also provided an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the menu display method of the information system of any one of the above via execution of the executable instructions.
According to another aspect of the embodiments of the present application, there is also provided a computer readable storage medium, including a stored computer program, where the computer program when executed controls a device in which the computer readable storage medium is located to execute the menu display method of the information system of any one of the above.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: reading a menu configuration file of an information system; analyzing the menu configuration file to obtain menu data corresponding to the data object and configuration function data of each menu item; determining menu display parameters according to the selected data object, menu data corresponding to the data object and configuration function data, wherein the menu display parameters at least comprise: the number of menu displays and the style of menu display; based on the menu display parameters, all system menus in the information system are displayed.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (8)

1. A menu display method of an information system, comprising:
reading a menu configuration file of an information system;
analyzing the menu configuration file to obtain menu data corresponding to the data object and configuration function data of each menu item;
determining menu display parameters according to the selected data object, menu data corresponding to the data object and the configuration function data, wherein the menu display parameters comprise: determining a plurality of menu items to be displayed based on the selected data object and the corresponding menu data; detecting whether each menu item can be displayed or not based on the configuration function data to obtain a detection result; and determining the menu display quantity and the menu display style of each displayable menu item based on the detection result and the configuration function data to obtain the menu display parameters, wherein the menu display parameters at least comprise: the number of menu displays and the style of menu display; based on the configuration function data, detecting whether each menu item can be displayed, and obtaining a detection result comprises: judging whether menu item filtering configuration exists or not based on the configuration function data; if the menu item filtering configuration exists, packaging filtering information of the menu item filtering configuration into a preset function interface; detecting whether each menu item can be displayed or not through the preset function interface to obtain a detection result;
and displaying all system menus in the information system based on the menu display parameters.
2. The menu display method according to claim 1, wherein the step of reading a menu configuration file of the information system comprises:
receiving a new task;
based on the new task, each menu of the information system is separately configured into a preset format according to the data object;
and reading the menu configuration file corresponding to the preset format.
3. The menu display method of claim 1, wherein the menu profile comprises at least one of: a menu identification, a menu type, a menu display name, an execution command of the menu, a display style of the menu, and a display condition of the menu.
4. The menu display method according to claim 1, wherein after determining whether or not a menu filter configuration exists, the menu display method further comprises:
reading an application domain loaded by the information system;
judging whether each menu item meets attribute condition configuration or not according to the read application domain;
if the menu item meets the attribute condition configuration, reading font display configuration and hidden display configuration;
determining a menu font of a system menu corresponding to a menu item to be displayed based on the font display configuration to obtain a font configuration result;
determining whether the menu item to be displayed needs to be displayed in a hidden mode based on the hidden display configuration, and obtaining a display configuration result;
and generating a menu configuration result based on the font configuration result and the display configuration result.
5. The menu display method according to claim 1, wherein the preset function interface comprises: standard dll interface, python script, com interface.
6. A menu display apparatus of an information system, comprising:
the reading unit is used for reading the menu configuration file of the information system;
the analysis unit is used for analyzing the menu configuration file to obtain menu data corresponding to the data object and configuration function data of each menu item;
the determining unit is used for determining menu display parameters according to the selected data object, menu data corresponding to the data object and the configuration function data, wherein the menu display parameters at least comprise: the number of menu displays and the style of menu display; the determination unit includes: the first determining module is used for determining a plurality of menu items to be displayed based on the selected data objects and the corresponding menu data; the first detection module is used for detecting whether each menu item can be displayed or not based on the configuration function data to obtain a detection result; the second determining module is used for determining the menu display quantity and the menu display style of each displayable menu item based on the detection result and the configuration function data to obtain the menu display parameters; the first detection module includes: the first judging submodule is used for judging whether menu item filtering configuration exists or not based on the configuration function data; the packaging sub-module is used for packaging the filtering information of the menu item filtering configuration to a preset function interface when the menu item filtering configuration exists; the detection sub-module is used for detecting whether each menu item can be displayed through the preset function interface to obtain a detection result;
and the display unit is used for displaying all system menus in the information system based on the menu display parameters.
7. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the menu display method of the information system of any one of claims 1 to 5 via execution of the executable instructions.
8. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program, when run, controls a device in which the computer readable storage medium is located to perform the menu display method of the information system according to any one of claims 1 to 5.
CN202110874342.6A 2021-07-30 2021-07-30 Menu display method and menu display device of information system and electronic equipment Active CN113656126B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110874342.6A CN113656126B (en) 2021-07-30 2021-07-30 Menu display method and menu display device of information system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110874342.6A CN113656126B (en) 2021-07-30 2021-07-30 Menu display method and menu display device of information system and electronic equipment

Publications (2)

Publication Number Publication Date
CN113656126A CN113656126A (en) 2021-11-16
CN113656126B true CN113656126B (en) 2023-10-27

Family

ID=78478173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110874342.6A Active CN113656126B (en) 2021-07-30 2021-07-30 Menu display method and menu display device of information system and electronic equipment

Country Status (1)

Country Link
CN (1) CN113656126B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114879882B (en) * 2022-05-24 2023-04-07 上海合见工业软件集团有限公司 Software menu system based on JSON configuration

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001134424A (en) * 1999-11-04 2001-05-18 Hitachi Ltd Method and device for preparing system parameter and computer readable storage medium recording system parameter preparation program and computer readable storage medium storing system parameter preparation data
CN101226479A (en) * 2008-02-01 2008-07-23 中兴通讯股份有限公司 Method for implementing dynamic collocation of mobile phone menu
CN101359286A (en) * 2007-07-31 2009-02-04 康佳集团股份有限公司 Implementing method for multilevel menu
CN101902525A (en) * 2010-07-16 2010-12-01 上海华勤通讯技术有限公司 Mobile phone assembling method
CN102118650A (en) * 2011-01-25 2011-07-06 深圳市酷开网络科技有限公司 Method and device for displaying television menu, and television
CN104536812A (en) * 2014-12-30 2015-04-22 北京无线电计量测试研究所 LabVIEW-based dynamic link library calling method
CN107197354A (en) * 2017-05-25 2017-09-22 青岛海信电器股份有限公司 user interface control method, device and intelligent television
CN109859096A (en) * 2018-12-28 2019-06-07 北京达佳互联信息技术有限公司 Image Style Transfer method, apparatus, electronic equipment and storage medium
CN110716905A (en) * 2019-10-16 2020-01-21 同辉佳视(北京)信息技术股份有限公司 Menu generation method and device, storage medium and electronic equipment
CN110806823A (en) * 2019-10-30 2020-02-18 中电科仪器仪表有限公司 Method and system for dynamically configuring menu of test instrument
US10656788B1 (en) * 2014-08-29 2020-05-19 Open Invention Network Llc Dynamic document updating application interface and corresponding control functions
CN111475237A (en) * 2020-03-06 2020-07-31 视联动力信息技术股份有限公司 Menu processing method and device, electronic equipment and storage medium
CN111679818A (en) * 2020-06-17 2020-09-18 深圳市远云科技有限公司 Method and system for editing display software

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001134424A (en) * 1999-11-04 2001-05-18 Hitachi Ltd Method and device for preparing system parameter and computer readable storage medium recording system parameter preparation program and computer readable storage medium storing system parameter preparation data
CN101359286A (en) * 2007-07-31 2009-02-04 康佳集团股份有限公司 Implementing method for multilevel menu
CN101226479A (en) * 2008-02-01 2008-07-23 中兴通讯股份有限公司 Method for implementing dynamic collocation of mobile phone menu
CN101902525A (en) * 2010-07-16 2010-12-01 上海华勤通讯技术有限公司 Mobile phone assembling method
CN102118650A (en) * 2011-01-25 2011-07-06 深圳市酷开网络科技有限公司 Method and device for displaying television menu, and television
US10656788B1 (en) * 2014-08-29 2020-05-19 Open Invention Network Llc Dynamic document updating application interface and corresponding control functions
CN104536812A (en) * 2014-12-30 2015-04-22 北京无线电计量测试研究所 LabVIEW-based dynamic link library calling method
CN107197354A (en) * 2017-05-25 2017-09-22 青岛海信电器股份有限公司 user interface control method, device and intelligent television
CN109859096A (en) * 2018-12-28 2019-06-07 北京达佳互联信息技术有限公司 Image Style Transfer method, apparatus, electronic equipment and storage medium
CN110716905A (en) * 2019-10-16 2020-01-21 同辉佳视(北京)信息技术股份有限公司 Menu generation method and device, storage medium and electronic equipment
CN110806823A (en) * 2019-10-30 2020-02-18 中电科仪器仪表有限公司 Method and system for dynamically configuring menu of test instrument
CN111475237A (en) * 2020-03-06 2020-07-31 视联动力信息技术股份有限公司 Menu processing method and device, electronic equipment and storage medium
CN111679818A (en) * 2020-06-17 2020-09-18 深圳市远云科技有限公司 Method and system for editing display software

Also Published As

Publication number Publication date
CN113656126A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
US10466971B2 (en) Generation of an application from data
US6802058B2 (en) Method and apparatus for synchronized previewing user-interface appearance on multiple platforms
CN105511873B (en) User interface control display method and device
US20020156902A1 (en) Language and culture interface protocol
US10664556B2 (en) Adaptable user interface layout
US20060225094A1 (en) Enabling customization and personalization of views in content aggregation frameworks
US20150074561A1 (en) Customizable themes for browsers and web content
US7793223B2 (en) Methods, systems, and computer program products for managing user focus change between applications
CN108572825B (en) User interface processing method, device and equipment
US7788340B2 (en) System and method for event based interportlet communications
CN104021016B (en) Method and browser for loading browser plug-in icons
EP2839628B1 (en) Providing rule based analysis of content to manage activation of web extension
KR102350540B1 (en) digital component background rendering
CN110020356A (en) A kind of code generating method of page module, apparatus and system
CN113656126B (en) Menu display method and menu display device of information system and electronic equipment
US9904452B2 (en) Building user specific user interface instances
US10348811B2 (en) Service to invoke companion applications
CN114281310A (en) Page frame setting method, device, equipment, storage medium and program product
KR100603580B1 (en) Method for realizing user interface of mobile terminal
US20100100869A1 (en) Method of Creating an Application That Provides for the Specifying of a New Menu Item in a Context Sensitive Menu
US8397160B2 (en) System and program for displaying device information using browser
US10642629B2 (en) Web-application-launch application programming interfaces
KR101673937B1 (en) Apparatus, system and method for creating and using short cut object
CN117873432A (en) Data processing method and device based on intelligent household equipment and electronic equipment
CN117193899A (en) Icon interaction method and device based on android system and storage medium

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
GR01 Patent grant
GR01 Patent grant