CN108279925A - A kind of menu dynamic generation method for safeguarding dual power supply conversion program - Google Patents
A kind of menu dynamic generation method for safeguarding dual power supply conversion program Download PDFInfo
- Publication number
- CN108279925A CN108279925A CN201711326063.6A CN201711326063A CN108279925A CN 108279925 A CN108279925 A CN 108279925A CN 201711326063 A CN201711326063 A CN 201711326063A CN 108279925 A CN108279925 A CN 108279925A
- Authority
- CN
- China
- Prior art keywords
- menu
- safeguarding
- power supply
- dual power
- control
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Abstract
The invention discloses a kind of menu control dynamic creation methods for safeguarding dual power supply conversion program, include the following steps:Establish main menu and sub- menu control;Several function menus are established under main menu;The configuration file of submenu control and function dish is set;It is selected to judge whether there is function menu;Read the configuration file of selected function menu;Judge whether successfully to read profile data information;And display queue is added in relevant submenu control according to result is read;The submenu control of selection is displayed on the screen;This improves the efficiency of code maintenance for safeguarding the problem of menu dynamic generation method of dual power supply conversion program can be effectively prevented from the missing inspection occurred during code maintenance, flase drop.
Description
Technical field
The present invention relates to software debugging technical field, more particularly to a kind of menu for safeguarding dual power supply conversion program is dynamic
State generation method.
Background technology
With the expansion of application, same product has derived many versions, and each version needs different menus to be set
It sets;Since the menu of each version is required for a set of code to realize, any point function modification in face of being likely to occur is required for
The code of each version is respectively modified, code maintenance can be caused difficult, the problems such as leakage is corrected mistakes occur.
Invention content
The object of the present invention is to provide a kind of menu dynamic generation methods for safeguarding dual power supply conversion program.
For this purpose, technical solution of the present invention is as follows:
A kind of menu control dynamic creation method for safeguarding dual power supply conversion program includes the following steps:
1) main menu control and several submenu controls are established;
2) several function menus are established under main menu;
3) configuration file of submenu control and function menu is set;
4) it is selected to judge whether there is function menu, if judging result is "Yes", enters step 5);If judging result is
"No" then continues to judge;
5) configuration file of selected function menu is read;
6) judge whether successfully to read profile data information, if judging result is "Yes", enter in next step;If sentencing
Disconnected result is "No", then alarm and simultaneously return to step 5) continue to read data;
7) display queue and according to result is read is added in relevant submenu control;
8) the submenu control chosen in step 7) is displayed on the screen.
Further, the configuration file in the step 3) is stored using the file of xml formats.
Further, the configuration file describes Menu Type, number of pages, list and font information using tree structure.
Further, corresponding program in machine code is shown after the submenu control is selected.
Further, the type of alarm in the step 6) is to pop up alarm on the screen.
Compared with prior art, this is used to safeguard that the menu dynamic generation method of dual power supply conversion program can effectively to be kept away
The problem of exempting from the missing inspection occurred during code maintenance, flase drop;Contribute to the burden of mitigation code maintenance personnel, improves code
The efficiency of maintenance.
Description of the drawings
Fig. 1 is provided by the present invention for the flow chart for the menu dynamic generation method for safeguarding dual power supply conversion program.
Specific implementation mode
Below in conjunction with the accompanying drawings and specific embodiment the present invention is described further, but following embodiments are absolutely not to this hair
It is bright to have any restrictions.
Embodiment 1:
A kind of menu control dynamic creation method for safeguarding dual power supply conversion program includes the following steps:
1) main menu control and several submenu controls are established;
2) several function menus are established under main menu;
3) configuration file of submenu control and function menu is set;
4) it is selected to judge whether there is function menu, if judging result is "Yes", enters step 5);If judging result is
"No" then continues to judge;
5) configuration file of selected function menu is read;
6) judge whether successfully to read profile data information, if judging result is "Yes", enter in next step;If sentencing
Disconnected result is "No", then alarm and simultaneously return to step 5) continue to read data;
7) display queue and according to result is read is added in relevant submenu control;
8) the submenu control chosen in step 7) is displayed on the screen.
Wherein, corresponding program in machine code is shown after the submenu control is selected;The type of alarm is to shield
Alarm is popped up on curtain.
Embodiment 2:
Difference from example 1 is that the configuration file of the submenu control and function menu control uses
The file of xml formats stores;Wherein, the configuration file describes Menu Type, number of pages, list and font using tree structure
Equal data informations;When staff needs to safeguard a certain appointment codes, directly pass through the function menu under main menu
Corresponding submenu control is shown, then by selecting the submenu control on screen, corresponding program code is shown
Show and is safeguarded on the screen for programmer.This is for safeguarding that the menu dynamic generation method of dual power supply conversion program can effectively be kept away
The problem of exempting from the missing inspection occurred during code maintenance, flase drop;Contribute to the burden of mitigation code maintenance personnel, improves code
The efficiency of maintenance.
Claims (5)
1. a kind of menu control dynamic creation method for safeguarding dual power supply conversion program, which is characterized in that including walking as follows
Suddenly:
1) main menu control and several submenu controls are established;
2) several function menus are established under main menu;
3) configuration file of submenu control and function dish is set;
4) it is selected to judge whether there is function menu, if judging result is "Yes", enters step 5);If judging result is
"No" then continues to judge;
5) configuration file of selected function menu is read;
6) judge whether successfully to read profile data information, if judging result is "Yes", enter in next step;If judging knot
Fruit is "No", then alarm and simultaneously return to step 5) continue to read data;
7) display queue and according to result is read is added in relevant submenu control;
8) the submenu control chosen in step 7) is displayed on the screen.
2. the menu control dynamic creation method according to claim 1 for safeguarding dual power supply conversion program, feature
It is, the configuration file in the step 3) is stored using the file of xml formats.
3. the menu control dynamic creation method according to claim 2 for safeguarding dual power supply conversion program, feature
It is, the configuration file describes Menu Type, number of pages, list and font information using tree structure.
4. the menu control dynamic creation method according to claim 3 for safeguarding dual power supply conversion program, feature
It is, corresponding program in machine code is shown after the submenu control is selected.
5. the menu control dynamic for safeguarding dual power supply conversion program according to any one of claim 1~6 is raw
At method, which is characterized in that the type of alarm in the step 6) is to pop up alarm on the screen.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711326063.6A CN108279925A (en) | 2017-12-13 | 2017-12-13 | A kind of menu dynamic generation method for safeguarding dual power supply conversion program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711326063.6A CN108279925A (en) | 2017-12-13 | 2017-12-13 | A kind of menu dynamic generation method for safeguarding dual power supply conversion program |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108279925A true CN108279925A (en) | 2018-07-13 |
Family
ID=62801568
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711326063.6A Pending CN108279925A (en) | 2017-12-13 | 2017-12-13 | A kind of menu dynamic generation method for safeguarding dual power supply conversion program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108279925A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222710A (en) * | 2008-01-31 | 2008-07-16 | 中兴通讯股份有限公司 | System and method for implementing menu dynamic configuration on mobile terminal |
CN101226479A (en) * | 2008-02-01 | 2008-07-23 | 中兴通讯股份有限公司 | Method for implementing dynamic collocation of mobile phone menu |
CN102855135A (en) * | 2012-04-23 | 2013-01-02 | 苏州大学 | Graphical component-based sensing network development platform and method |
US20170102830A1 (en) * | 2015-10-08 | 2017-04-13 | Adobe Systems Incorporated | Inter-Context Coordination to Facilitate Synchronized Presentation of Image Content |
-
2017
- 2017-12-13 CN CN201711326063.6A patent/CN108279925A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222710A (en) * | 2008-01-31 | 2008-07-16 | 中兴通讯股份有限公司 | System and method for implementing menu dynamic configuration on mobile terminal |
CN101226479A (en) * | 2008-02-01 | 2008-07-23 | 中兴通讯股份有限公司 | Method for implementing dynamic collocation of mobile phone menu |
CN102855135A (en) * | 2012-04-23 | 2013-01-02 | 苏州大学 | Graphical component-based sensing network development platform and method |
US20170102830A1 (en) * | 2015-10-08 | 2017-04-13 | Adobe Systems Incorporated | Inter-Context Coordination to Facilitate Synchronized Presentation of Image Content |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109313739B (en) | System and method for providing visualization of workflow | |
US8103367B2 (en) | Methods and apparatus to draw attention to information presented via electronic displays to process plant operators | |
US8479097B2 (en) | Method and system for generating a control system user interface | |
US8015550B2 (en) | Systems and methods for hazards analysis | |
US20140095972A1 (en) | Compressing tree diagrams | |
CN103345387B (en) | The method realizing component reusing technology based on component package | |
US8943406B2 (en) | Generating user help information for customized user interface | |
US20040001109A1 (en) | Drop down checklist control | |
CN107506457B (en) | Data processing method and device | |
US20110138236A1 (en) | Apparatus and method for providing visual interface for information of error generated in multithread testing | |
CN104613607A (en) | Data interaction method and device and air-conditioner control system | |
CN103034491A (en) | Implementation system and method for power system interface integration | |
JP2010113551A (en) | Test plan table creation device and program therefor | |
US20160253828A1 (en) | Display control system, and graph display method | |
CN108279925A (en) | A kind of menu dynamic generation method for safeguarding dual power supply conversion program | |
Boring et al. | Level-of-automation considerations for advanced reactor control rooms | |
CN104063212A (en) | Method For Creating A User Interface | |
US20150113420A1 (en) | Overloaded schedule detection and notification | |
WO2006114880A1 (en) | Information linkage window system | |
CN105241011B (en) | Air-conditioning group control system development device and method | |
CN104572233B (en) | A kind of continuous function figure programmed method | |
CN103294480B (en) | Mesh row data transformations is the method for data list | |
US11907053B2 (en) | Failure handling apparatus and system, rule list generation method, and non-transitory computer-readable medium | |
US8347219B1 (en) | Object-level display building | |
CN108983714B (en) | Method and device for monitoring state of unit of million-kilowatt nuclear power station and terminal equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180713 |
|
RJ01 | Rejection of invention patent application after publication |