CN106682228B - A kind of method and apparatus that Visual Dynamic draws cabinet arrangement - Google Patents
A kind of method and apparatus that Visual Dynamic draws cabinet arrangement Download PDFInfo
- Publication number
- CN106682228B CN106682228B CN201710011955.0A CN201710011955A CN106682228B CN 106682228 B CN106682228 B CN 106682228B CN 201710011955 A CN201710011955 A CN 201710011955A CN 106682228 B CN106682228 B CN 106682228B
- Authority
- CN
- China
- Prior art keywords
- cabinet
- arrangement
- columns
- dynamic
- sum
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/904—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06313—Resource planning in a project environment
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- Databases & Information Systems (AREA)
- Entrepreneurship & Innovation (AREA)
- General Physics & Mathematics (AREA)
- Game Theory and Decision Science (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Biodiversity & Conservation Biology (AREA)
- General Business, Economics & Management (AREA)
- Development Economics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Educational Administration (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention relates to a kind of methods that Visual Dynamic draws cabinet arrangement, including determine unique location identifier value, input columns, and obtain cabinet sum, are computed and then carry out the arrangement that dynamic renders cabinet element;Corresponding device includes user side module, client modules, server end module.By going dynamic to draw rendering whole cabinet arrangement by computer, the artificial code maintenance of bring due to cabinet position is changed is avoided, to improve rendering speed and save page resource space.
Description
Technical field
The present invention relates to a kind of method and apparatus of drafting cabinet arrangement more particularly to a kind of Visual Dynamic to draw cabinet
The method and apparatus of arrangement.
Background technique
One enterprise might have the behaviors such as undercarriage on more frequently server in physics computer room, and the cabinet rented
It can increase or reduce therewith.Configuration management database (Configuration Management Database, CMDB) at present
It draws and shows that there are the following problems for visualization cabinet in system: how to provide a shirtsleeve operation entrance to be moved
The method for drawing cabinet arrangement of state, the variation without physical location has occurred because of cabinet entity allow the developer of profession to be situated between
Enter the maintenance of code to guarantee the consistency with CMDB effect of visualization;Since in most of computer room, cabinet is generally all
It is fixed, but the cabinet quantity that most enterprises is rented all can change and adjust therewith as business increases or reduces,
So when visual using CMDB system progress cabinet, how need not show all cabinet elements and save page exhibition
The space shown.
Summary of the invention
In view of the above-mentioned problems, the present invention proposes a kind of method that Visual Dynamic draws cabinet arrangement, comprising the following steps:
Step 1: pre-defining each guide rail element for being included in each cabinet element and cabinet as unique positions mark
Knowledge value, and being stored in database together together with server info, the unique location identifier value be with cabinet No. and guide rail number simultaneously
Group becomes unique value in order;
Step 2: customized columns being inputted by user terminal, the numerical value of columns is used to indicate the required rendering in the page
The maximum number of column of cabinet;
Step 3: client receives the numerical value of the columns, initiates to request to server end, the server end receives
After request, Xiang Suoshu data base querying goes out the number of the last one cabinet, it can thus be appreciated that the sum of cabinet, and respond to described
Client;
Step 4: the client obtains the sum for the cabinet that the server end returns;
Step 5: finding out the cabinet number of every row by the sum of known columns and cabinet, and obtained dynamically by following formula
Cabinet arrangement:
Wherein: X is the columns of cabinet maximum arrangement, and Y is cabinet sum,
Y- (Y-Y mod X) is used to calculate last and arranges remaining cabinet number,
For calculating the line number that can satisfy the maximum whole cabinet arrangement for being arranged as X and needing;
Final output is the array for containing every row number;
Step 6: the client obtains the value in the array, the element of each cabinet of every row is rendered to return to
The user terminal realizes dynamic rendering cabinet arrangement of elements.
A kind of Visual Dynamic draws the device of cabinet arrangement, comprising:
User side module inputs for receiving data, and dynamic renders cabinet arrangement of elements;
Client modules initiate to request, and receive server for receiving user side module input to server end module
End module response, numerical value needed for calculating simultaneously return to user side module;
Server end module for storing the database containing unique location identifier value and server info, and responds visitor
The request of family end module.
Technical solution of the present invention realize the utility model has the advantages that
In conjunction with the characteristics of domestic most of building environment, it is only necessary to make user customized in the page or routine interface
The columns of one cabinet arrangement is realized by algorithm and technological means and goes dynamic to draw rendering whole cabinet row by computer
The method of column.The artificial code maintenance of bring due to cabinet position is changed is avoided, and improves rendering speed, save page resource sky
Between.
Detailed description of the invention
Fig. 1 is a kind of step flow chart for the method for drawing cabinet arrangement of the present invention.
Fig. 2 is the example diagram of unique location identifier value described in a kind of method for drawing cabinet arrangement of the present invention.
Fig. 3 is a kind of example for the method for drawing cabinet arrangement of the present invention.
Fig. 4 is a kind of algorithm description figure for the method for drawing cabinet arrangement of the present invention.
Fig. 5 is the schematic diagram for the device that a kind of Visual Dynamic of the present invention draws cabinet arrangement.
Specific embodiment
In the following with reference to the drawings and specific embodiments, the present invention is further explained, and the embodiment of the present invention is only to illustrate this hair
The protection scope that bright technical solution is not intended to limit the present invention.
Embodiments of the present invention disclose a kind of method that Visual Dynamic draws cabinet arrangement, the party as shown in Figure 1
Method the following steps are included:
Before description realizes step in detail, it is assumed that pre-defined in each cabinet element and cabinet and included
Each guide rail element unique location identifier value, and be stored in database together together with server info.
Wherein the group of unique location identifier value mainly with ' cabinet No. ' and ' guide rail number ' and in order becomes unique value, such as
Fig. 2 as an example,
According to the step 01 of Fig. 1, the input frame that user is provided by related pages carries out inputting customized columns, the value
For indicating to need to render the maximum cabinet number how much arranged in the page.
According to the step 02 of Fig. 1, client is received by technologies such as such as JavaScript and is inputted in the page by user
" columns " value, initiate to request to server end, after server end receives request, be stored in front of to database root
Server unique location identifier value inquires the number of the last one cabinet, it can thus be appreciated that cabinet number in total is how many,
And respond to client.
According to the step 03 of Fig. 1, the request that client is initiated before utilizes callback method, obtains server end and returns
The cabinet total number value come.2 known conditions are got now, the maximum arrangement of the respectively customized input of user institute arranges
Several and cabinet total number.Since we need to reach required dynamic arrangement effect, further goes to analyze for convenience, need
Assuming that a specific example, if the sum of cabinet is 13, it is desirable to which the cabinet number of every row arrangement is 6, then can be very by sense organ
Fast obtains the example shown such as Fig. 3.
Thus it can also be observed that the number that every row is arranged is 6,6,1 respectively from top to bottom, respectively these three digital phases
Adding is exactly cabinet number in total, and computer is told for this phenomenon by known " maximum arrangement columns " and " cabinet is total
Number " finds out the cabinet number of every row, so that it may realize that dynamic cabinet is arranged.Wherein: X is the column of cabinet maximum arrangement
Number, Y are cabinet sum, and following formula is the specific complete formula for carrying out dynamic and drawing cabinet permutation algorithm:
The multinomial of specific dismantling analysis above formula:
1)Y-(Y-Y mod X)
Remaining cabinet number is arranged for calculating last
For calculating the line number that can satisfy the maximum whole cabinet arrangement for being arranged as X and needing;
Citing: the sum for setting cabinet is 13, it is desirable to which the cabinet number of every row arrangement is 6
Substitute into formula, it may be assumed that
In conjunction with after the above substitution formula as a result, and by 1), 2) knowing that " remaining cabinet of last row has been obtained
Number " and " how many row is to meet maximum to be arranged as X columns in arrangement ", therefore last row is 1, a total of 2 row is 6 column,
I.e. 6,6,1.Fig. 4 is the N/S description figure of program description algorithm above.Final output is the array for containing every row number.
According to the step 04 of Fig. 1, client obtains the value in array, so that it may pass through the JavaScript technology knots such as traversal
It closes html label to render the element of each cabinet of every row to return to browser, to reach dynamic rendering cabinet element row
The purpose of column.
It is a kind of Visual Dynamic corresponding with the method that one of the above Visual Dynamic draws cabinet arrangement shown in Fig. 5
Draw the device of cabinet arrangement, comprising:
User side module inputs for receiving data, and dynamic renders cabinet arrangement of elements;
Client modules initiate to request, and receive server for receiving user side module input to server end module
End module response, numerical value needed for calculating simultaneously return to user side module;
Server end module for storing the database containing unique location identifier value and server info, and responds visitor
The request of family end module.
Claims (2)
1. a kind of method that Visual Dynamic draws cabinet arrangement, it is characterised in that the following steps are included:
Step 1: pre-define each guide rail element for being included in each cabinet element and cabinet as unique location identifier value,
And be stored in database together together with server info, the unique location identifier value is with cabinet No. and guide rail number and in order
Group becomes unique value;
Step 2: customized columns being inputted by user terminal, the numerical value of columns is used to indicate the cabinet of the required rendering in the page
Maximum number of column;
Step 3: client receives the numerical value of the columns, initiates to request to server end, the server end receives request
Later, Xiang Suoshu data base querying goes out the number of the last one cabinet, it can thus be appreciated that the sum of cabinet, and respond to the client
End;
Step 4: the client obtains the sum for the cabinet that the server end returns;
Step 5: finding out the cabinet number of every row by the sum of known columns and cabinet, and dynamic cabinet is obtained by following formula
Arrangement:
Wherein: X is the columns of cabinet maximum arrangement, and Y is cabinet sum,
Y- (Y-Y mod X) is used to calculate last and arranges remaining cabinet number,
For calculating the line number that can satisfy the maximum whole cabinet arrangement for being arranged as X and needing;
Final output is the array for containing every row number;
Step 6: the client obtains the value in the array, the element of each cabinet of every row is rendered described to return to
User terminal realizes dynamic rendering cabinet arrangement of elements.
2. a kind of device implemented Visual Dynamic and draw the method for cabinet arrangement characterized by comprising user side module,
It inputs for receiving data;
Client modules initiate to request, and receive the clothes for receiving the user side module input to server end module
Device end module of being engaged in response, numerical value needed for calculating and dynamic render cabinet arrangement of elements and return to the user side module;
Server end module for storing the database containing unique location identifier value and server info, and responds the visitor
The request of family end module;
The Visual Dynamic draw the method for cabinet arrangement the following steps are included:
Step 1: pre-define each guide rail element for being included in each cabinet element and cabinet as unique location identifier value,
And be stored in database together together with server info, the unique location identifier value is with cabinet No. and guide rail number and in order
Group becomes unique value;
Step 2: customized columns being inputted by user terminal, the numerical value of columns is used to indicate the cabinet of the required rendering in the page
Maximum number of column;
Step 3: client receives the numerical value of the columns, initiates to request to server end, the server end receives request
Later, Xiang Suoshu data base querying goes out the number of the last one cabinet, it can thus be appreciated that the sum of cabinet, and respond to the client
End;
Step 4: the client obtains the sum for the cabinet that the server end returns;
Step 5: finding out the cabinet number of every row by the sum of known columns and cabinet, and dynamic cabinet is obtained by following formula
Arrangement:
Wherein: X is the columns of cabinet maximum arrangement, and Y is cabinet sum,
Y- (Y-Y mod X) is used to calculate last and arranges remaining cabinet number,
For calculating the line number that can satisfy the maximum whole cabinet arrangement for being arranged as X and needing;
Final output is the array for containing every row number;
Step 6: the client obtains the value in the array, the element of each cabinet of every row is rendered described to return to
User terminal realizes dynamic rendering cabinet arrangement of elements.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710011955.0A CN106682228B (en) | 2017-01-06 | 2017-01-06 | A kind of method and apparatus that Visual Dynamic draws cabinet arrangement |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710011955.0A CN106682228B (en) | 2017-01-06 | 2017-01-06 | A kind of method and apparatus that Visual Dynamic draws cabinet arrangement |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106682228A CN106682228A (en) | 2017-05-17 |
| CN106682228B true CN106682228B (en) | 2019-05-07 |
Family
ID=58850251
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710011955.0A Active CN106682228B (en) | 2017-01-06 | 2017-01-06 | A kind of method and apparatus that Visual Dynamic draws cabinet arrangement |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106682228B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110831387B (en) * | 2019-11-06 | 2021-04-27 | 北京宝兰德软件股份有限公司 | Method and device for visually arranging and positioning machine room cabinet |
| CN114090677B (en) * | 2021-12-02 | 2022-10-25 | 北京志凌海纳科技有限公司 | Management method and system for server rack position relation |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2009058392A2 (en) * | 2007-11-01 | 2009-05-07 | Ebay Inc. | User interface framework for viewing large scale graphs |
| CN105302578A (en) * | 2015-11-27 | 2016-02-03 | 中国电子科技集团公司第二十八研究所 | Comprehensive portal management system of dragging type layout configuration |
| CN105553741A (en) * | 2015-12-28 | 2016-05-04 | 江苏省电力公司信息通信分公司 | Automatic deployment method for application system based on cloud computing |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140214472A1 (en) * | 2013-01-31 | 2014-07-31 | Paragon Partners Ltd. | Systems, methods, and devices for analyzing a route using a geographic information system |
-
2017
- 2017-01-06 CN CN201710011955.0A patent/CN106682228B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2009058392A2 (en) * | 2007-11-01 | 2009-05-07 | Ebay Inc. | User interface framework for viewing large scale graphs |
| CN105302578A (en) * | 2015-11-27 | 2016-02-03 | 中国电子科技集团公司第二十八研究所 | Comprehensive portal management system of dragging type layout configuration |
| CN105553741A (en) * | 2015-12-28 | 2016-05-04 | 江苏省电力公司信息通信分公司 | Automatic deployment method for application system based on cloud computing |
Non-Patent Citations (1)
| Title |
|---|
| 基于WEB的仓储可视化系统的设计与实现;齐欣萌;《中国优秀硕士学位论文全文数据库信息科技辑(月刊 )》;20130515;第2013年卷(第5期);第I138-894页 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106682228A (en) | 2017-05-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107229474B (en) | Method and device for rapidly configuring Java interface and chart service based on visual interface | |
| CN107729475B (en) | Webpage element acquisition method, device, terminal and computer-readable storage medium | |
| CN107766309B (en) | Data table generation method and device, storage medium and electronic device | |
| US20140237341A1 (en) | System and method for creating integrated web form and database applications | |
| CN104715052B (en) | Generate the method and its system of report | |
| US20140245196A1 (en) | User interface generation and preview | |
| WO2017028611A1 (en) | Form implementation method and apparatus | |
| CN103412749A (en) | Relational database based code generation method and code generator | |
| CN106354483B (en) | Data processing method and device and electronic equipment | |
| WO2019100645A1 (en) | Method for realizing multilevel interactive drop-down box, electronic device, and storage medium | |
| CN109359141B (en) | Visual report data display method and device | |
| CN115130448A (en) | Table generation method and device, electronic equipment and computer-readable storage medium | |
| CN106682228B (en) | A kind of method and apparatus that Visual Dynamic draws cabinet arrangement | |
| CN112558969A (en) | Webpage form generation method, device, equipment and medium | |
| CN109284488B (en) | Method, device and medium for modifying front-end table column data based on local storage | |
| US9940343B2 (en) | Data structure supporting contingency table generation | |
| US9904744B2 (en) | Probabilistic simulation scenario design by using multiple conditional and nested probability distribution input functions | |
| CN109408502A (en) | A kind of data standard processing method, device and its storage medium | |
| US20130346845A1 (en) | Interactive multi device in memory form generation | |
| KR20190017395A (en) | Method for providing data management service having automatic cell merging function and providing service server for performing the same | |
| CN107895007A (en) | Configure the method and system of page elements | |
| CN106681972A (en) | Method and device for displaying table | |
| CN112613287A (en) | Data list display method, device, equipment and storage medium | |
| WO2016177047A1 (en) | Log display method and device | |
| US20080180413A1 (en) | Method, system, and program product for controlling grid lines in a user interface |
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 | ||
| CP02 | Change in the address of a patent holder |
Address after: 200438 9 / F, 10 / F, 11 / F, 12 / F, 38 Lane 1688, Guoquan North Road, Yangpu District, Shanghai Patentee after: QIANXUN SPATIAL INTELLIGENCE Inc. Address before: Room j165, 1st floor, building 64, 1436 Jungong Road, Yangpu District, Shanghai, 200433 Patentee before: QIANXUN SPATIAL INTELLIGENCE Inc. |
|
| CP02 | Change in the address of a patent holder |