CN108776593A - The method and apparatus of template configuration in a kind of BIOS configuration - Google Patents
The method and apparatus of template configuration in a kind of BIOS configuration Download PDFInfo
- Publication number
- CN108776593A CN108776593A CN201810608146.2A CN201810608146A CN108776593A CN 108776593 A CN108776593 A CN 108776593A CN 201810608146 A CN201810608146 A CN 201810608146A CN 108776593 A CN108776593 A CN 108776593A
- Authority
- CN
- China
- Prior art keywords
- configuration
- configuration item
- variate
- value
- bios
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The method and apparatus of template configuration in being configured the invention discloses a kind of BIOS, wherein the method includes:Acquisition includes the json data of server configuration information;The corresponding identifier ID of each configuration item in BIOS configuration templates is set in jsp files or html file, each ID and encapsulation functional dependence connection in jQuery frames are set;By calling the corresponding encapsulation functions of the ID to draw tab Shipping Options Pages, each corresponding variate-value of configuration item in the json data is obtained, the variate-value got is plotted in corresponding tab Shipping Options Pages.The embodiment of the present invention can effectively promote the readability and ease for use of code, also various template configuration items in the BIOS configurations of a variety of different types can be completed, this implementation method can effectively shorten the size of code of jsp files or html file simultaneously, the operating rate for improving program, makes program behave more smooth.
Description
Technical field
The present invention relates to internet arena, espespecially a kind of BIOS (Basic Input Output System, basic input
Output system) configuration in template configuration method and apparatus.
Background technology
In Inspur Server Automation (tide server admin driving), the template configuration in BIOS configurations
In, template configuration item needs that user is showed to carry out option and installment relevant configuration item for user, and these configuration items then need to lead to
It crosses in HTML (HyperText Markup Language, HyperText Markup Language) files and jsp (Java Server
Pages, java the server page) in file, realized by huge size of code.Go out in html file or jsp files
Now upper Kilo Lines of Code, first seems cumbersome wordy, second makes troubles to the people of later maintenance code, this just matches at template
Set the weakness of item.
Invention content
The method and apparatus of template configuration in being configured in order to solve the above technical problem, the present invention provides a kind of BIOS,
To solve the problems, such as to need a large amount of codes in the template configuration in BIOS configurations.
In order to reach the object of the invention, a kind of method of template configuration in being configured an embodiment of the present invention provides BIOS, packet
It includes:
Acquisition includes the json data of server configuration information;
The corresponding identifier ID of each configuration item in BIOS configuration templates is set in jsp files or html file, if
Set each ID and encapsulation functional dependence connection in jQuery frames;
By calling the corresponding encapsulation functions of the ID to draw tab Shipping Options Pages, obtains and each configured in the json data
The corresponding variate-value of item, the variate-value got is plotted in corresponding tab Shipping Options Pages.
Optionally, the acquisition includes the json data of server configuration information, including:
The json data are obtained by calling back end interface function using JavaScript language.
Optionally, described by the way that before calling the corresponding encapsulation functions of the ID to draw tab Shipping Options Pages, the method is also wrapped
It includes:The title and the corresponding variate-value of configuration item of configuration item in the BIOS configuration templates defined in the encapsulation function.
Optionally, the corresponding variate-value of each configuration item in the acquisition json data, including:
The json data are traversed, according to the corresponding variate-value of each configuration item of the name acquiring of configuration item.
Optionally, described by calling the corresponding encapsulation functions of the ID to draw tab Shipping Options Pages, obtain the json data
In each corresponding variate-value of configuration item further include after the variate-value got is plotted in corresponding tab Shipping Options Pages:
The tab Shipping Options Pages are shown according to type.
The equipment that the embodiment of the present invention also provides template configuration in a kind of BIOS configuration, including:
First acquisition module, for obtain include server configuration information json data;
Setup module is corresponded to for each configuration item in BIOS configuration templates to be arranged in jsp files or html file
Identifier ID, encapsulation functional dependence connection in each ID and jQuery frames is set;
Second acquisition module calls the corresponding encapsulation function drafting tab Shipping Options Pages of the ID, described in acquisition for passing through
The corresponding variate-value of each configuration item in json data, the variate-value got is plotted in corresponding tab Shipping Options Pages.
Optionally, first acquisition module, for using JavaScript language, by calling back end interface function,
Obtain the json data.
Optionally, the equipment further includes:
Predefined module, for the title of configuration item in the BIOS configuration templates defined in the encapsulation function, Yi Jipei
Set the corresponding variate-value of item.
Optionally, second acquisition module, it is each according to the name acquiring of configuration item for traversing the json data
The corresponding variate-value of configuration item.
Optionally, the equipment further includes:
Display module, for showing the tab Shipping Options Pages according to type.
The method of template configuration in the BIOS configurations of the embodiment of the present invention, including:Acquisition includes server configuration information
Json data;The corresponding mark ID of each configuration item in BIOS configuration templates is set in jsp files or html file, if
Set each ID and encapsulation functional dependence connection in jQuery frames;By calling the corresponding encapsulation functions of the ID to draw tab labels
Page, obtains each corresponding variate-value of configuration item in the json data, and the variate-value got, which is plotted in corresponding tab, to be marked
It signs in page.The embodiment of the present invention can effectively promote the readability and ease for use of code, can also complete a variety of different types
BIOS configurations in various template configuration items, while this implementation method can effectively shorten jsp files or html file
Size of code, improve the operating rate of program, so that program is behaved more smooth.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages can be by specification, rights
Specifically noted structure is realized and is obtained in claim and attached drawing.
Description of the drawings
Attached drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this
The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow chart of the method for template configuration during the BIOS of the embodiment of the present invention is configured;
Fig. 2 is the schematic diagram of the equipment of template configuration during the BIOS of the embodiment of the present invention is configured.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature mutually can arbitrarily combine.
Step shown in the flowchart of the accompanying drawings can be in the computer system of such as a group of computer-executable instructions
It executes.Also, although logical order is shown in flow charts, and it in some cases, can be with suitable different from herein
Sequence executes shown or described step.
The embodiment of the present invention proposes the method and apparatus of template configuration in a kind of BIOS configuration, by using
JavaScript language completes the displaying and operation of template configuration item, is then encapsulated by technology, improves the compiling ability of software,
Realize the ease for use and readability of code.
In embodiments of the present invention, JavaScript high-level languages can be used to be encoded, Java language is called to generate
Json data, by the binding of ID in jsp files or html file (Identification, identifier), according to unique
ID calls packaged functional based method, draws out the template configuration item that tab Shipping Options Pages form various different options.
As shown in Figure 1, the embodiment of the present invention BIOS configuration in template configuration method, including:
Step 101, acquisition includes json ((JavaScript the Object Notation, JS of server configuration information
Object numbered musical notation) data;
JavaScript language realization may be used in the method for the embodiment of the present invention.
Wherein, in one embodiment, using JavaScript language, by calling back end interface function, described in acquisition
Json data.
For example, by calling doRestCall functions, the json data are obtained.
Step 102, the corresponding ID of each configuration item in BIOS configuration templates is set in jsp files or html file
(each ID and encapsulation functional dependence connection in jQuery frames is arranged in (Identification, identifier);
Wherein, each configuration item corresponds to unique ID.
It, can be according to customized strategy addition not by the way that each ID and encapsulation functional dependence connection in jQuery frames is arranged
Same configuration item.
In one embodiment, the method further includes:It is configured in the BIOS configuration templates defined in the encapsulation function
The corresponding variate-value of title and configuration item of item.
Step 103, it by calling the corresponding encapsulation functions of the ID to draw tab Shipping Options Pages, obtains in the json data
The corresponding variate-value of each configuration item, the variate-value got is plotted in corresponding tab Shipping Options Pages.
Wherein, in one embodiment, each corresponding variate-value of configuration item includes in the acquisition json data:
The json data are traversed, according to the corresponding variate-value of each configuration item of the name acquiring of configuration item.
In one embodiment, after the step 103, may also include:
The tab Shipping Options Pages are shown according to type.
The type refers to the type of server.
The embodiment of the present invention can apply different types to configure, and realize different template configuration effects.The present invention is implemented
Example can effectively promote the readability and ease for use of code, can also complete various moulds in the BIOS configurations of a variety of different types
Plate configuration item, while this implementation method can effectively shorten the size of code of jsp files or html file, improve program
Operating rate makes program behave more smooth.
Illustrate the specific implementation process of the above method with reference to practical application.In the embodiment of the present invention, use
JavaScript high-level languages are encoded, and the json data for calling Java language to generate are encoded in js files, are completed
The calling of tab label functional based methods parses the json data of acquisition, according to the data being parsed, using jQuery frames,
This functional based method is called, using the ID (identifier) in jsp files or html file, calls packaged functional based method,
Tab Shipping Options Pages are drawn out in this function, complete the template configuration item of various different options, and perfect displaying is in a program.
Wherein, the method for template configuration includes mainly following steps when realizing in being configured by BIOS:
(1) interface generated first according to rear end Java language, the json returned with doRestCall methods parsing interface
Data;
(2) by jQuery frames, easy code is write in jsp files or html file, unique ID is set
(identifier);
(3) in packaged functional based method, the configuration item title in definition template configuration, the corresponding value of configuration item, profit
The json data parsed with searching loop;
(4) according to ID (identifier), tab Shipping Options Pages are drawn in js files;
(5) traversed json data are transmitted by the variate-value of the configuration item title in the template configuration that defined;
(6) in configuration template, the variable for getting value is embedded in by drawing in tab Shipping Options Pages;
(7) the tab Shipping Options Pages of the BIOS configuration templates of different type of machines are completed;
(8) program is run, the template configuration item information of different BIOS configurations will be shown according to different types, for user
Different options is set.
In the embodiment of the present invention, the template configuration in the BIOS configurations of different type of machines according to different types, can be designed,
And then the realization of the configuration item of different templates is protected, and different configuration items can be added according to customized strategy.
As shown in Fig. 2, the equipment that the embodiment of the present invention also provides template configuration in a kind of BIOS configuration, including:
First acquisition module 21, for obtain include server configuration information json data;
Setup module 22, for each configuration item pair in BIOS configuration templates to be arranged in jsp files or html file
Each ID and encapsulation functional dependence connection in jQuery frames is arranged in the identifier ID answered;
Second acquisition module 23 calls the corresponding encapsulation function drafting tab Shipping Options Pages of the ID, described in acquisition for passing through
The corresponding variate-value of each configuration item in json data, the variate-value got is plotted in corresponding tab Shipping Options Pages.
In one implements, first acquisition module 21, for using JavaScript language, by calling back end interface
Function obtains the json data.
In one implements, the equipment further includes:
Predefined module, for the title of configuration item in the BIOS configuration templates defined in the encapsulation function, Yi Jipei
Set the corresponding variate-value of item.
In one implements, second acquisition module 23 is obtained for traversing the json data according to the title of configuration item
Take the corresponding variate-value of each configuration item.
In one implements, the equipment further includes:
Display module, for showing the tab Shipping Options Pages according to type.
In conclusion the embodiment of the present invention configured by BIOS in template configuration item method and apparatus, execute its core
Then module calls packaged functional based method, draw the different templates configuration item in the different BIOS configurations of different type of machines, energy
Efficient compiler is enough carried out by jsp files or html file, to improve the compiler rate of program.With before
One configuration item writes one section of code and compares, and the present invention is encoded using jQuery frames, can effectively show difference
The configuration item of the different templates of type reduces the amount of redundancy of code, can be used for various in the BIOS configurations that various needs are installed
In template.
The equipment that the embodiment of the present invention also proposes template configuration in a kind of BIOS configuration, including memory, processor and deposit
The computer program that can be run on a memory and on a processor is stored up, the processor is realized above-mentioned when executing described program
The method of template configuration in BIOS configurations.
The embodiment of the present invention also proposes a kind of computer readable storage medium, is stored with computer executable instructions, described
The method that template configuration in above-mentioned BIOS configurations is realized when computer executable instructions are executed by processor.
It will appreciated by the skilled person that whole or certain steps in method disclosed hereinabove, system, dress
Function module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment,
Division between the function module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one
Physical assemblies can have multiple functions or a function or step that can be executed by several physical assemblies cooperations.Certain groups
Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by
It is embodied as hardware, or is implemented as integrated circuit, such as application-specific integrated circuit.Such software can be distributed in computer-readable
On medium, computer-readable medium may include computer storage media (or non-transitory medium) and communication media (or temporarily
Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as
Computer-readable instruction, data structure, program module or other data) any method or technique in the volatibility implemented and non-
Volatibility, removable and nonremovable medium.Computer storage media include but not limited to RAM, ROM, EEPROM, flash memory or its
His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other
Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This
Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer-readable instruction, data structure, program mould
Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information
Delivery media.
Claims (10)
1. a kind of method of template configuration in BIOS configurations, including:
Acquisition includes the json data of server configuration information;
The corresponding identifier ID of each configuration item in BIOS configuration templates is set in jsp files or html file, and setting is every
A ID and encapsulation functional dependence connection in jQuery frames;
By calling the corresponding encapsulation functions of the ID to draw tab Shipping Options Pages, each configuration item pair in the json data is obtained
The variate-value got is plotted in corresponding tab Shipping Options Pages by the variate-value answered.
2. according to the method described in claim 1, it is characterized in that, the acquisition includes the json numbers of server configuration information
According to, including:
The json data are obtained by calling back end interface function using JavaScript language.
3. according to the method described in claim 1, it is characterized in that, described by calling the corresponding encapsulation functions of the ID to draw
Before tab Shipping Options Pages, the method further includes:The title of configuration item in the BIOS configuration templates defined in the encapsulation function,
And the corresponding variate-value of configuration item.
4. according to the method described in claim 3, it is characterized in that, described obtain each configuration item correspondence in the json data
Variate-value, including:
The json data are traversed, according to the corresponding variate-value of each configuration item of the name acquiring of configuration item.
5. the method according to any one of Claims 1 to 4, which is characterized in that described by calling the ID to correspond to
Encapsulation function draw tab Shipping Options Pages, obtain each corresponding variate-value of configuration item, the change that will be got in the json data
After magnitude is plotted in corresponding tab Shipping Options Pages, further include:
The tab Shipping Options Pages are shown according to type.
6. the equipment of template configuration in a kind of BIOS configurations, which is characterized in that including:
First acquisition module, for obtain include server configuration information json data;
Setup module, for the corresponding mark of each configuration item in BIOS configuration templates to be arranged in jsp files or html file
Know symbol ID, each ID and encapsulation functional dependence connection in jQuery frames are set;
Second acquisition module, for by calling the corresponding encapsulation functions of the ID to draw tab Shipping Options Pages, obtaining the json numbers
The corresponding variate-value of each configuration item in, the variate-value got is plotted in corresponding tab Shipping Options Pages.
7. equipment according to claim 6, which is characterized in that
First acquisition module, by calling back end interface function, obtains the json for using JavaScript language
Data.
8. equipment according to claim 6, which is characterized in that further include:
Predefined module, title and configuration item for configuration item in the BIOS configuration templates defined in the encapsulation function
Corresponding variate-value.
9. equipment according to claim 8, which is characterized in that
Second acquisition module is corresponded to for traversing the json data according to each configuration item of the name acquiring of configuration item
Variate-value.
10. the equipment according to any one of claim 6~9, which is characterized in that further include:
Display module, for showing the tab Shipping Options Pages according to type.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810608146.2A CN108776593B (en) | 2018-06-13 | 2018-06-13 | Method and equipment for template configuration in BIOS configuration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810608146.2A CN108776593B (en) | 2018-06-13 | 2018-06-13 | Method and equipment for template configuration in BIOS configuration |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108776593A true CN108776593A (en) | 2018-11-09 |
CN108776593B CN108776593B (en) | 2021-04-02 |
Family
ID=64025125
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810608146.2A Active CN108776593B (en) | 2018-06-13 | 2018-06-13 | Method and equipment for template configuration in BIOS configuration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108776593B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582392A (en) * | 2018-12-06 | 2019-04-05 | 浪潮电子信息产业股份有限公司 | BIOS configuration option configuration method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104636173A (en) * | 2015-03-11 | 2015-05-20 | 浪潮集团有限公司 | Fast BIOS configuration method |
CN105426172A (en) * | 2015-10-30 | 2016-03-23 | 北京金海明天软件技术有限公司 | XML analysis technique and template language based dynamic WEB page generation method |
CN105426204A (en) * | 2015-11-05 | 2016-03-23 | 浪潮软件集团有限公司 | Web high-speed loading rendering method based on domestic CPU, operating system and browser |
CN105824642A (en) * | 2016-03-23 | 2016-08-03 | 浪潮软件集团有限公司 | JS component for rapidly developing mobile phone tax client declaration form |
CN106354430A (en) * | 2016-08-27 | 2017-01-25 | 浪潮(北京)电子信息产业有限公司 | Method and device for allocating RAID card based on BMC |
CN107273163A (en) * | 2017-06-14 | 2017-10-20 | 郑州云海信息技术有限公司 | A kind of parameter configuration management method and device based on graphic user interface |
-
2018
- 2018-06-13 CN CN201810608146.2A patent/CN108776593B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104636173A (en) * | 2015-03-11 | 2015-05-20 | 浪潮集团有限公司 | Fast BIOS configuration method |
CN105426172A (en) * | 2015-10-30 | 2016-03-23 | 北京金海明天软件技术有限公司 | XML analysis technique and template language based dynamic WEB page generation method |
CN105426204A (en) * | 2015-11-05 | 2016-03-23 | 浪潮软件集团有限公司 | Web high-speed loading rendering method based on domestic CPU, operating system and browser |
CN105824642A (en) * | 2016-03-23 | 2016-08-03 | 浪潮软件集团有限公司 | JS component for rapidly developing mobile phone tax client declaration form |
CN106354430A (en) * | 2016-08-27 | 2017-01-25 | 浪潮(北京)电子信息产业有限公司 | Method and device for allocating RAID card based on BMC |
CN107273163A (en) * | 2017-06-14 | 2017-10-20 | 郑州云海信息技术有限公司 | A kind of parameter configuration management method and device based on graphic user interface |
Non-Patent Citations (1)
Title |
---|
胡崧,吴晓炜,李胜林: "《Dreamweaver CS6中文版从入门到精通》", 31 January 2013, 北京:中国青年出版社 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582392A (en) * | 2018-12-06 | 2019-04-05 | 浪潮电子信息产业股份有限公司 | BIOS configuration option configuration method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108776593B (en) | 2021-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102043626B (en) | Method and device for encapsulating extjs component, and method and system for generating user interface | |
US20160124914A1 (en) | Page Processing for Mobile App | |
US9460062B2 (en) | Local rendering of an object as an image | |
CN106909361B (en) | Web development method and device based on template engine | |
CN110263279B (en) | Page generation method and device, electronic equipment and computer readable storage medium | |
EP3156919A1 (en) | Methods for transforming a server side template into a client side template and devices thereof | |
CN109254771A (en) | A kind of monitoring page generation method and device | |
US20160012145A1 (en) | Client-Side Template Engine and Method for Constructing a Nested DOM Module for a Website | |
CN105677654A (en) | Advertisement filtering method and device | |
AU2006291331B2 (en) | Script markup | |
CN108052548A (en) | Method, system and the terminal device that a kind of webpage creates | |
CN108170430A (en) | A kind of method and system of showing interface | |
CN104572744B (en) | structured document generation method and device | |
CN111260752A (en) | Flow chart drawing method, device and equipment and storage medium | |
CN110245311B (en) | Local page dynamic rendering method and device | |
CN112084446A (en) | Webpage editing method, editor, electronic equipment and readable storage medium | |
CN108776593A (en) | The method and apparatus of template configuration in a kind of BIOS configuration | |
CN110427505A (en) | A kind of method and apparatus that batch data imports image data base | |
CN104793933A (en) | Method and system for displaying terminal data | |
CN105574114A (en) | On-line plotting method based on telecom resource management standard control library | |
CN112711401A (en) | iOS interface top-down layout method and system based on modular engineering | |
CN109271612A (en) | A kind of method and device of Table table verification | |
CN111767498A (en) | Method and device for realizing file information sharing | |
CN109558549B (en) | Method for eliminating CSS style redundancy and related product | |
CN115730564A (en) | Image processing method and device |
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 |