CN102236680B - Gantt chart generation method and Gantt chart generation device based on browser - Google Patents

Gantt chart generation method and Gantt chart generation device based on browser Download PDF

Info

Publication number
CN102236680B
CN102236680B CN 201010167287 CN201010167287A CN102236680B CN 102236680 B CN102236680 B CN 102236680B CN 201010167287 CN201010167287 CN 201010167287 CN 201010167287 A CN201010167287 A CN 201010167287A CN 102236680 B CN102236680 B CN 102236680B
Authority
CN
China
Prior art keywords
label
data
time
cycle
unit
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.)
Expired - Fee Related
Application number
CN 201010167287
Other languages
Chinese (zh)
Other versions
CN102236680A (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.)
HANGZHOU DECHANGLONG INFORMATION TECHNOLOGY CO LTD
Original Assignee
HANGZHOU DECHANGLONG INFORMATION 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 HANGZHOU DECHANGLONG INFORMATION TECHNOLOGY CO LTD filed Critical HANGZHOU DECHANGLONG INFORMATION TECHNOLOGY CO LTD
Priority to CN 201010167287 priority Critical patent/CN102236680B/en
Publication of CN102236680A publication Critical patent/CN102236680A/en
Application granted granted Critical
Publication of CN102236680B publication Critical patent/CN102236680B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a Gantt chart generation method and a Gantt chart generation device based on a browser. The method comprises the following steps of: initializing the layout of a background table according to the process information of a project carried by a Gantt chart to generate a table label; generating a process schedule label and a plurality of periodic data labels in the background table for each process according to the data of each process; and combining the table label, the process schedule label and the periodic data labels to generate a complete Gantt chart. In the embodiment of the invention, the label having minimum quantity are generated by pre-computing the sizes of the labels, and a mode of generating all labels at one time is adopted. Compared with the prior art which is low in display speed of the Gantt chart, low in performance and difficult to display a large amount of data, the embodiment of the invention has the advantages that: the probability of generating the Gantt chart is improved; the Gantt chart which comprises a large amount of process data can be displayed on the browser; the application range of the Gantt chart is expanded; and display time is shortened, so user experience is improved correspondingly.

Description

Lateral road drawing generating method and device based on browser
Technical field
The present invention relates to field of computer technology, particularly based on lateral road drawing generating method and the device of browser.
Background technology
Gunter drawing is again Gantt chart (Gantt Chart), bar graph, and it is activity command and the duration that represents visually any specific project in illustrated mode by effort scale and time scale, and Gantt chart is the progress control instrument of projects.Usually the right side of gunter drawing shows process information, comprise operation title, progress, percentage of completion etc., the left side shows the operation progress with graphics mode, and progress can be checked according to different time types such as day, week, the moons, the banded diagrammatic representation of the progress of each operation and duration usefulness different colours.The software of common demonstration gunter drawing has MicroSoft Proiect, but these softwares all are multipads, is difficult to move at browser.When browser operation gunter drawing, adopt HTML hypertext link language in the prior art, because html language itself does not provide the picture function, therefore splice figure by label.For gunter drawing, mainly adopt the label in the html language, and generate gunter drawing in conjunction with the JavaScript running node.Take the gunter drawing that shows by the sky as example, the progress figure of one procedure shows with div, whole image form<table〉show, every generation one day data, just dynamically generate one<td with JavaScript〉label, represent the implementation progress of corresponding operation, be appended to this label on the whole form after, browser can correspondingly refresh whole table-layout, and the page is played up again.
The inventor finds in the research process to prior art, increase along with data volume on the gunter drawing, one<td of every generation〉label just repeats page furbishing is played up once, to cause the formation speed of figure to descend, system performance reduces, the user need to wait for that the long period just can see figure, has reduced user's experience; Because the performance period of mega project is long, progress msg is many, therefore is difficult to show in browser by gunter drawing, has limited thus the range of application of gunter drawing.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of lateral road drawing generating method and device based on browser, shows that at browser gunter drawing speed is slower, the problem that performance is not high to solve in the prior art.
For solving the problems of the technologies described above, the embodiment of the invention provides following technical scheme:
A kind of lateral road drawing generating method based on browser comprises:
According to the layout of the process information initialization background form of project that gunter drawing carries, generate the form label;
Data according to each operation are that described each operation generates an operation progress label in described background form, and some cycle data labels;
Described form label, operation progress label and cycle data label are carried out the complete gunter drawing of combination producing.
The layout of described process information initialization background form according to project that gunter drawing carries comprises:
Carry the pattern of operation option table case marker label for described gunter drawing, described pattern has fixed measure;
The period type of operation in the described form label is set, and shared col width value of each cycle;
Determine the perdurability of described project according to the perdurability of each operation;
The number of columns of calculating described form label according to perdurability and the time period type of described project.
Determine described perdurability according to each operation to comprise the perdurability of described project:
Obtain start time and the concluding time of each operation;
From start time of all process steps that obtains and concluding time, select the earliest start time and the concluding time the latest as start time and concluding time of described project.
Described data according to each operation are that described each operation generates an operation progress label in described background form, and some cycle data labels comprise:
Preorder traversal operation data acquisition therefrom obtains the data of an operation, and the data of described operation comprise the start time of operation, concluding time, time cycle type and percentage of completion;
Start time, concluding time and percentage of completion according to each operation are that described operation generates an operation progress label, calculate the coordinate position of progress label on the background form;
Calculate the amount of cycles of described operation according to start time, concluding time, the time cycle type of each operation, and generate corresponding cycle data label according to cycle data;
Judge whether to handle the data of all process steps, if, then trigger and carry out described step of described form label, operation progress label and cycle data label being carried out the complete gunter drawing of combination producing, otherwise, return described preorder traversal operation data acquisition, therefrom obtain the step of the data of an operation.
Described described form label, operation progress label and cycle data label are carried out also comprising before the complete gunter drawing of combination producing:
Determine the size of described form label, operation progress label and described cycle data label;
The described form label of buffer memory, operation progress label and cycle data label and size thereof.
Describedly form label, operation progress label and cycle data label carried out the complete gunter drawing of combination producing comprise:
Form label, the operation progress label of described buffer memory are connected with the cycle data label, generate the label graphic after connecting;
Once play up the generation gunter drawing by the label graphic of browser after to described connection.
A kind of gunter drawing generating apparatus based on browser comprises:
Initialization unit is used for the layout according to the process information initialization background form of project that gunter drawing carries, and generates the form label;
Generation unit, the data that are used for according to each operation are that described each operation generates an operation progress label at described background form, and some cycle data labels;
Assembled unit is used for described form label, operation progress label and cycle data label are carried out the complete gunter drawing of combination producing.
Described initialization unit comprises:
The pattern selected cell is used to described gunter drawing to carry the pattern of operation option table case marker label, and described pattern has fixed measure;
Information setting unit, for the period type that described form label operation is set, and shared col width value of each cycle;
The time determining unit was used for according to the perdurability of determining described project the perdurability of each operation;
The columns computing unit is used for the number of columns that perdurability and time period type according to described project calculate described form label.
Described time determining unit comprises:
Time acquisition unit is used for start time and the concluding time of obtaining each operation;
The selection of time unit, be used for from all start times of obtaining and concluding time select the earliest start time and the concluding time the latest as start time and concluding time of described project.
Described generation unit comprises:
Data capture unit is used for preorder traversal operation data acquisition, therefrom obtains the data of an operation, and the data of described operation comprise the start time of operation, concluding time, time cycle type and percentage of completion;
Progress label generation unit, the start time, concluding time and the percentage of completion that are used for according to each operation are that described operation generates an operation progress label, calculate the coordinate position of progress label on the background form;
Cycle data label generation unit is used for calculating according to start time, concluding time, the time cycle type of each operation the amount of cycles of described operation, and generates the cycle data label of correspondence according to cycle data;
Process judging unit, be used for judging whether to handle the data of all process steps;
Performance element as a result, be used for when the judged result of described processing judging unit when being, trigger the function of described assembled unit, when described processing judging unit when the determination result is NO, trigger the function of described data capture unit.
Also comprise:
Determining unit is for the size of determining described form label, operation progress label and described cycle data label;
Buffer unit is used for the described form label of buffer memory, operation progress label and cycle data label and size thereof.
Described assembled unit comprises:
The label linkage unit is used for form label, the operation progress label of described buffer memory are connected with the cycle data label, generates the label graphic after connecting;
The gunter drawing generation unit is used for once playing up the generation gunter drawing by the label graphic of browser after to described connection.
The technical scheme that is provided by the above embodiment of the invention as seen, in the embodiment of the present application according to the layout of the process information initialization background form of project that gunter drawing carries, generate the form label, data according to each operation are that described each operation generates an operation progress label in described background form, and some cycle data labels, described form label, operation progress label and cycle data label are carried out the complete gunter drawing of combination producing.The embodiment of the present application is by calculating in advance label sizes, generate the label of minimum number, and with the mode of the disposable generation of all labels, show with prior art that gunter drawing speed is slow, performance is low and be difficult to show that mass data compares, the embodiment of the present application has improved the performance that generates gunter drawing, can show the gunter drawing that comprises a large amount of operation data at browser, has enlarged the range of application of gunter drawing, and because displaying time shortens, therefore correspondingly improved user's experience.
Description of drawings
Fig. 1 is the first embodiment process flow diagram that the present invention is based on the lateral road drawing generating method of browser;
Fig. 2 is the second embodiment process flow diagram that the present invention is based on the lateral road drawing generating method of browser;
Fig. 3 is the first embodiment block diagram that the present invention is based on the gunter drawing generating apparatus of browser;
Fig. 4 A is the second embodiment block diagram that the present invention is based on the gunter drawing generating apparatus of browser;
Fig. 4 B is the embodiment block diagram of the initialization unit in Fig. 4 A shown device;
Fig. 4 C is the embodiment block diagram of the generation unit in Fig. 4 A shown device;
Fig. 4 D is the embodiment block diagram of the assembled unit in Fig. 4 A shown device.
Embodiment
In following a plurality of embodiment of the present invention, some embodiment provides a kind of lateral road drawing generating method based on browser, and some embodiment provides a kind of gunter drawing generating apparatus based on browser.
In order to make those skilled in the art person understand better technical scheme in the embodiment of the invention, and the above-mentioned purpose of the embodiment of the invention, feature and advantage can be become apparent more, below in conjunction with accompanying drawing technical scheme in the embodiment of the invention is described in further detail.
Following the application description is used the HTML markup language based on the gunter drawing generation embodiment of browser, and wherein the form label also can be expressed as the table label, and operation progress label also can be expressed as the div label, and the cycle data label also can be expressed as the td label.For the calculating of the data of each operation, the demonstration of label graphic and layout can realize by JavaScript shell script language.
Referring to Fig. 1, be the first embodiment process flow diagram of the lateral road drawing generating method that the present invention is based on browser:
Step 101: according to the layout of the process information initialization background form of project that gunter drawing carries, generate the form label.
Concrete, carry the pattern of operation option table case marker label for gunter drawing, this pattern has fixed measure, the period type of operation in the form label is set, and shared col width value of each cycle, according to the perdurability of identifying project the perdurability of each operation, number of columns and the form tag width of the col width value computation sheet label that takies according to perdurability, period type and each cycle of project.
Step 102: the data according to each operation are operation progress label of each operation generation in the background form, and some cycle data labels.
Concrete, preorder traversal operation data acquisition, therefrom obtain the data of an operation, the data of operation comprise the start time of operation, concluding time and percentage of completion, according to the start time of each operation, concluding time and percentage of completion are that described operation generates an operation progress label, calculate operation coordinate position on the background form, according to the start time of each operation, concluding time is calculated the amount of cycles of described operation, and according to cycle data label corresponding to cycle data generation, judge whether to handle the data of all process steps, if, then trigger and carry out the form label, operation progress label and cycle data label carry out the step of the complete gunter drawing of combination producing, otherwise, return preorder traversal operation data acquisition, therefrom obtain the step of the data of an operation, until handle the data of all process steps.
Step 103: form label, operation progress label and cycle data label are carried out the complete gunter drawing of combination producing, finish current flow process.
Concrete, determine the size of form label, operation progress label and cycle data label, form label, the operation progress label of having determined size are connected with the cycle data label, generate the label graphic after connecting, by browser the label graphic after connecting is once played up the generation gunter drawing.
Referring to Fig. 2, be the second embodiment process flow diagram of the lateral road drawing generating method that the present invention is based on browser, this embodiment shows in detail the complete procedure that gunter drawing generates:
Step 201: the data of in data acquisition, preserving in advance each operation.
Each project that represents with gunter drawing is comprised of some operations, and each operation has comprised zero-time, and whether progress msg is the data messages such as summary operation.
Step 202: the pattern that has the form label of fixed measure for operation that gunter drawing carries selection.
In the embodiment of the present application, the form of process information adopts the table label to show, the background form of visuals also uses the table label, and these table labels all adopt the pattern with fixed measure, and the width of pattern size that can initial table case marker label and highly be respectively 0.
Step 203: the period type of operation in the form label is set, and shared col width value of each cycle.
Determine the time cycle type of operation, such as by the sky or monthly show the operation progress, and col width refers to the length that each cycle takies, and usually represents with a fixed value, such as representing a col width with 20 pixels.
Step 204: according to the perdurability of identifying project the perdurability of each operation.
Obtain start time and the concluding time of each operation, from all start times of obtaining and concluding time, select the earliest start time and the concluding time the latest as start time and concluding time of described project.
Step 205: the number of columns of the col width value computation sheet label that takies according to perdurability, time cycle type and each cycle of project.
All process steps is traveled through, determine the earliest start time of whole project, the latest concluding time with this, the above-mentioned time also is the beginning concluding time of whole gunter drawing, in this time span, according to the type of time cycle, can determine the number of columns of background table label.
Step 206: preorder traversal operation data acquisition, therefrom obtain the data of an operation, the data of operation comprise the start time of operation, concluding time, time cycle type and percentage of completion.
Step 207: start time, concluding time, time cycle type and percentage of completion according to each operation are that described operation generates an operation progress label.
Operation progress label is presented in the delegation of form label, each operation progress shows with a div label, no longer comprise other label in the div label, can guarantee thus to show the minimum number of the div label of each progress, label used in the corresponding whole gunter drawing is also minimum.Further, in order to guarantee that each label graphic is presented in the correct time ruler, first according to the operation start time, calculate the horizontal offset of the relative background form of operation label reference position, again according to the traversal order of operation, calculate the vertical offset on relative background form top, calculate accordingly the coordinate position of operation label on the background form.Can further adjust the pattern of div label, make its span corresponding with the time ruler of form label.
Step 208: according to the start time of each operation, the amount of cycles of concluding time calculation process, and according to cycle data label corresponding to cycle data generation.
According to the zero-time of each operation with after the concluding time, can calculate the time span of this operation, type according to the time cycle, calculate the amount of cycles of the required demonstration of each operation, each cycle represents with a cell, can represent one day such as each cell, also can represent a week, each cell shows with a td label.Can calculate thus the quantity of all td labels that comprise in the table label, except the td label of first row presentation graphic, no longer comprise other label in other td label, the td label by minimum number forms form thus.
Step 209: judge whether to handle the data of all process steps, if then execution in step 210; Otherwise, return step 206.
Step 211: the size of determining form label, operation progress label and described cycle data label.
Table label in the embodiment of the present application adopts fixing size, the table label in figure ground zone is when drawing, according to the time span of operation and the width of each cell, can individual calculate cell sum and the width that this operation takies, this width is exactly the width of the div label of this operation progress, the width of each div label can carry out computing before drafting thus, according to the quantity of operation, can calculate the height that increases a figure ground zone.
Each td label in the table label also adopts fixed measure, according to the number of columns of whole gunter drawing and the width of each td label, the width of table label can be calculated, according to the sum of operation and the height of single operation, the height of table label can be calculated.
After the size of table label is fixing, typesetting engine is its size of self-adaptation adjustment again, need not dynamically adjust label sizes, the size of td label is also all fixed, typesetting engine also needn't redraw all labels on the page for the td label, save thus the program of calculating in a large number and playing up, improved system performance.
Step 212: cache table case marker label, operation progress label and cycle data label and size thereof.
Whenever handle an operation, the label that represents this operation all is cached, after all process steps was all handled, the label of whole gunter drawing also corresponding generation was complete.
Step 213: form label, the operation progress label of buffer memory are connected with the cycle data label, generate the label graphic after connecting.
Step 214: by browser the label graphic after connecting is once played up the generation gunter drawing, finish current flow process.
Following period type be " my god " for example, the gunter drawing generative process in the embodiment of the present application is described:
If certain engineering has 100 procedures, span basic time of figure is the sky, and namely the background form of figure shows one day with a tabulation, checks project progress by the sky.At first width and the length with figure ground form table label is initialized as 0, travel through all process steps, calculate zero-time and the concluding time of gunter drawing, showed with a tabulation owing to one day, therefore according to the width of each td label, can calculate the width of whole gunter drawing;
Read the data of an operation, calculate the duration span of operation according to its zero-time and concluding time, for example operation starts from January 1st, 2009, ends on January 1st, 2015, continues for 6 years altogether.Annual calculated by 365 days, then need altogether the 365*6=2190 row, this procedure needs 2190 td labels altogether so, and the progress figure of a procedure represents with a div label, and then the width of this div label also can correspondingly be determined.
Whenever handle an operation, just the label with this operation is saved in the buffer memory, behind the traversal all process steps, the operation that wherein finishes the latest, its concluding time is the concluding time of whole gunter drawing, upgrade the width of table label, allow width get the maximal value of all process steps, row according to operation quantity and div label is high, can calculate the height of table label, take out all labels in the buffer memory, these labels once are appended on the dom node of browser, these labels can generate gunter drawing after playing up by typesetting engine.
Hence one can see that, the embodiment of the present application is by calculating in advance label sizes, generate the label of minimum number, and with the mode of the disposable generation of all labels, show with prior art that gunter drawing speed is slow, performance is low and be difficult to show that mass data compares, the embodiment of the present application has improved the performance that generates gunter drawing, can show the gunter drawing that comprises a large amount of operation data at browser, enlarge the range of application of gunter drawing, and because displaying time shortens, therefore correspondingly improved user's experience.
Corresponding with the lateral road drawing generating method that the present invention is based on browser, the present invention also provides the embodiment based on the gunter drawing generating apparatus of browser.
Referring to Fig. 3, be the first embodiment block diagram of the gunter drawing generating apparatus that the present invention is based on browser.
This gunter drawing generating apparatus comprises: initialization unit 310, generation unit 320 and assembled unit 330.
Wherein, initialization unit 310 is used for the layout according to the process information initialization background form of project that gunter drawing carries, and generates the form label;
Generation unit 320, the data that are used for according to each operation are that described each operation generates an operation progress label at described background form, and some cycle data labels;
Assembled unit 330 is used for described form label, operation progress label and cycle data label are carried out the complete gunter drawing of combination producing.
Referring to Fig. 4 A, be the second embodiment block diagram of the gunter drawing generating apparatus that the present invention is based on browser.
This gunter drawing generating apparatus comprises: initialization unit 410, generation unit 420, determining unit 430, buffer unit 440 and assembled unit 450.
Wherein, initialization unit 410 is used for the layout according to the process information initialization background form of project that gunter drawing carries, and generates the form label;
Generation unit 420, the data that are used for according to each operation are that described each operation generates an operation progress label at described background form, and some cycle data labels;
Determining unit 430 is for the size of determining described form label, operation progress label and described cycle data label;
Buffer unit 440 is used for the described form label of buffer memory, operation progress label and cycle data label and size thereof;
Assembled unit 450 is used for described form label, operation progress label and cycle data label are carried out the complete gunter drawing of combination producing.
Referring to Fig. 4 B, be the embodiment block diagram of the initialization unit in Fig. 4 A shown device.
Wherein, this initialization unit 410 comprises:
Pattern selected cell 411 is used to described gunter drawing to carry the pattern of operation option table case marker label, and described pattern has fixed measure;
Information setting unit 412, for the period type that described form label operation is set, and shared col width value of each cycle;
Time determining unit 413 was used for according to the perdurability of determining described project the perdurability of each operation;
Columns computing unit 414 is used for the number of columns that col width value that perdurability, time cycle type and described each cycle according to described project take is calculated described form label.
Concrete, time determining unit 413 can comprise (not shown among Fig. 4 B): time acquisition unit is used for start time and the concluding time of obtaining each operation; The selection of time unit, be used for from all start times of obtaining and concluding time select the earliest start time and the concluding time the latest as start time and concluding time of described project.
Referring to Fig. 4 C, be the embodiment block diagram of the generation unit in Fig. 4 A shown device.
Wherein, this generation unit 420 comprises:
Data capture unit 421 is used for preorder traversal operation data acquisition, therefrom obtains the data of an operation, and the data of described operation comprise the start time of operation, concluding time and percentage of completion;
Progress label generation unit 422, the start time, concluding time and the percentage of completion that are used for according to each operation are that described operation generates an operation progress label, calculate the coordinate position of progress label on the background form;
Cycle data label generation unit 423 is used for calculating according to start time, concluding time, the time cycle type of each operation the amount of cycles of described operation, and generates the cycle data label of correspondence according to cycle data;
Process judging unit 424, be used for judging whether to handle the data of all process steps;
Performance element 425 as a result, be used for when the judged result of described processing judging unit 424 when being, trigger the function of described determining unit 430, when described processing judging unit 424 when the determination result is NO, trigger the function of described data capture unit 421.
Referring to Fig. 4 D, be the embodiment block diagram of the assembled unit in Fig. 4 A shown device.
Wherein, this assembled unit 450 comprises:
Label linkage unit 451 is used for form label, the operation progress label of described buffer memory are connected with the cycle data label, generates the label graphic after connecting;
Gunter drawing generation unit 452 is used for once playing up the generation gunter drawing by the label graphic of browser after to described connection.
As seen through the above description of the embodiments, in the embodiment of the present application according to the layout of the process information initialization background form of project that gunter drawing carries, generate the form label, data according to each operation are that described each operation generates an operation progress label in described background form, and some cycle data labels, described form label, operation progress label and cycle data label are carried out the complete gunter drawing of combination producing.The embodiment of the present application is by calculating in advance label sizes, generate the label of minimum number, and with the mode of the disposable generation of all labels, show with prior art that gunter drawing speed is slow, performance is low and be difficult to show that mass data compares, the embodiment of the present application has improved the performance that generates gunter drawing, can show the gunter drawing that comprises a large amount of operation data at browser, has enlarged the range of application of gunter drawing, and because displaying time shortens, therefore correspondingly improved user's experience.
The technology that those skilled in the art can be well understood in the embodiment of the invention can realize by the mode that software adds essential general hardware platform.Based on such understanding, the part that technical scheme in the embodiment of the invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in the storage medium, such as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses is difference with other embodiment.Especially, for system embodiment because its basic simlarity is in embodiment of the method, thus describe fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
Above-described embodiment of the present invention does not consist of the restriction to protection domain of the present invention.Any modification of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., all should be included within protection scope of the present invention.

Claims (2)

1. the lateral road drawing generating method based on browser is characterized in that, comprising:
According to the layout of the process information initialization background form of project that gunter drawing carries, generate the form label;
Data according to each operation are that described each operation generates an operation progress label in described background form, and some cycle data labels;
Described form label, operation progress label and cycle data label are carried out the complete gunter drawing of combination producing;
The layout of described process information initialization background form according to project that gunter drawing carries comprises:
Carry the pattern of operation option table case marker label for described gunter drawing, described pattern has fixed measure;
The period type of operation in the described form label is set, and shared col width value of each cycle;
Determine the perdurability of described project according to the perdurability of each operation;
The number of columns of calculating described form label according to perdurability and the time period type of described project;
Determine described perdurability according to each operation to comprise the perdurability of described project:
Obtain start time and the concluding time of each operation;
From start time of all process steps that obtains and concluding time, select the earliest start time and the concluding time the latest as start time and concluding time of described project;
Described data according to each operation are that described each operation generates an operation progress label in described background form, and some cycle data labels comprise:
Preorder traversal operation data acquisition therefrom obtains the data of an operation, and the data of described operation comprise the start time of operation, concluding time, time cycle type and percentage of completion;
Start time, concluding time and percentage of completion according to each operation are that described operation generates an operation progress label, calculate the coordinate position of progress label on the background form;
Calculate the amount of cycles of described operation according to start time, concluding time, the time cycle type of each operation, and generate corresponding cycle data label according to cycle data;
Judge whether to handle the data of all process steps, if, then trigger and carry out described step of described form label, operation progress label and cycle data label being carried out the complete gunter drawing of combination producing, otherwise, return described preorder traversal operation data acquisition, therefrom obtain the step of the data of an operation;
Described described form label, operation progress label and cycle data label are carried out also comprising before the complete gunter drawing of combination producing:
Determine the size of described form label, operation progress label and described cycle data label;
The described form label of buffer memory, operation progress label and cycle data label and size thereof;
Describedly form label, operation progress label and cycle data label carried out the complete gunter drawing of combination producing comprise:
Form label, the operation progress label of described buffer memory are connected with the cycle data label, generate the label graphic after connecting;
Once play up the generation gunter drawing by the label graphic of browser after to described connection.
2. the gunter drawing generating apparatus based on browser is characterized in that, comprising:
Initialization unit is used for the layout according to the process information initialization background form of project that gunter drawing carries, and generates the form label;
Generation unit, the data that are used for according to each operation are that described each operation generates an operation progress label at described background form, and some cycle data labels;
Assembled unit is used for described form label, operation progress label and cycle data label are carried out the complete gunter drawing of combination producing;
Described initialization unit comprises:
The pattern selected cell is used to described gunter drawing to carry the pattern of operation option table case marker label, and described pattern has fixed measure;
Information setting unit, for the period type that described form label operation is set, and shared col width value of each cycle;
The time determining unit was used for according to the perdurability of determining described project the perdurability of each operation;
The columns computing unit is used for the number of columns that perdurability and time period type according to described project calculate described form label;
Described time determining unit comprises:
Time acquisition unit is used for start time and the concluding time of obtaining each operation;
The selection of time unit, be used for from all start times of obtaining and concluding time select the earliest start time and the concluding time the latest as start time and concluding time of described project;
Described generation unit comprises:
Data capture unit is used for preorder traversal operation data acquisition, therefrom obtains the data of an operation, and the data of described operation comprise the start time of operation, concluding time, time cycle type and percentage of completion;
Progress label generation unit, the start time, concluding time and the percentage of completion that are used for according to each operation are that described operation generates an operation progress label, calculate the coordinate position of progress label on the background form;
Cycle data label generation unit is used for calculating according to start time, concluding time, the time cycle type of each operation the amount of cycles of described operation, and generates the cycle data label of correspondence according to cycle data;
Process judging unit, be used for judging whether to handle the data of all process steps;
Performance element as a result, be used for when the judged result of described processing judging unit when being, trigger the function of described assembled unit, when described processing judging unit when the determination result is NO, trigger the function of described data capture unit;
Determining unit is for the size of determining described form label, operation progress label and described cycle data label;
Buffer unit is used for the described form label of buffer memory, operation progress label and cycle data label and size thereof;
Described assembled unit comprises:
The label linkage unit is used for form label, the operation progress label of described buffer memory are connected with the cycle data label, generates the label graphic after connecting;
The gunter drawing generation unit is used for once playing up the generation gunter drawing by the label graphic of browser after to described connection.
CN 201010167287 2010-04-27 2010-04-27 Gantt chart generation method and Gantt chart generation device based on browser Expired - Fee Related CN102236680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010167287 CN102236680B (en) 2010-04-27 2010-04-27 Gantt chart generation method and Gantt chart generation device based on browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010167287 CN102236680B (en) 2010-04-27 2010-04-27 Gantt chart generation method and Gantt chart generation device based on browser

Publications (2)

Publication Number Publication Date
CN102236680A CN102236680A (en) 2011-11-09
CN102236680B true CN102236680B (en) 2013-01-16

Family

ID=44887335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010167287 Expired - Fee Related CN102236680B (en) 2010-04-27 2010-04-27 Gantt chart generation method and Gantt chart generation device based on browser

Country Status (1)

Country Link
CN (1) CN102236680B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981842B (en) * 2012-11-08 2015-06-10 北京空间飞行器总体设计部 Method of generating interactive Gantt chart
CN105760375B (en) * 2014-12-15 2019-07-09 金蝶软件(中国)有限公司 Gantt chart display methods and system
CN107067220A (en) * 2016-06-20 2017-08-18 杨玉海 The full-automatic lateral road figure technical method of project management progress
CN109582941A (en) * 2018-11-29 2019-04-05 杭州迪普科技股份有限公司 A kind of list data display methods, device, equipment and storage medium
CN110119299A (en) * 2019-05-16 2019-08-13 北京字节跳动网络技术有限公司 Information display method and equipment
CN111126016A (en) * 2019-12-05 2020-05-08 北京明略软件系统有限公司 Gantt chart drawing method and device, computer storage medium and terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5709410A (en) * 1996-09-04 1998-01-20 Reeves, Jr.; Joe F. Development and construction job scheduling method
CN101005681A (en) * 2006-01-17 2007-07-25 大唐移动通信设备有限公司 Interface automatic forming method and interface automatic forming system
CN101246423A (en) * 2008-03-12 2008-08-20 浪潮集团山东通用软件有限公司 Method for pattern exhibition of task progress in management software
CN101504741A (en) * 2009-02-18 2009-08-12 路桥集团国际建设股份有限公司 Intelligent metering management system and method for construction engineering

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030067491A1 (en) * 2001-09-17 2003-04-10 Cadwallader Charles W. Column node (CN)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5709410A (en) * 1996-09-04 1998-01-20 Reeves, Jr.; Joe F. Development and construction job scheduling method
CN101005681A (en) * 2006-01-17 2007-07-25 大唐移动通信设备有限公司 Interface automatic forming method and interface automatic forming system
CN101246423A (en) * 2008-03-12 2008-08-20 浪潮集团山东通用软件有限公司 Method for pattern exhibition of task progress in management software
CN101504741A (en) * 2009-02-18 2009-08-12 路桥集团国际建设股份有限公司 Intelligent metering management system and method for construction engineering

Also Published As

Publication number Publication date
CN102236680A (en) 2011-11-09

Similar Documents

Publication Publication Date Title
CN102236680B (en) Gantt chart generation method and Gantt chart generation device based on browser
US8438496B1 (en) Content sensitive automatic scrolling
CN102306174B (en) Method and equipment for interacting with user based on web page elements
US6694485B1 (en) Enhanced viewing of hypertext markup language file
CN103678631A (en) Page rendering method and device
RU99128068A (en) DEVICE, METHOD AND DISTRIBUTED MEDIA FOR OBTAINING IMAGES TO BE PLAYED ON VIDEO DEVICES
CN106683037A (en) Method and equipment for three-dimensional visualized movement of track data
CN102902545A (en) Decomposing markup language elements for animation
CN113536179A (en) Page generation method and device, electronic equipment and storage medium
CN103377039A (en) Webgame developing and analyzing method, editor and analyzer
CN105869199A (en) Apparatus and method for processing animation
CN107707965B (en) Bullet screen generation method and device
CN104063431A (en) Method and equipment for processing static resources
CN112711729A (en) Rendering method and device based on page animation, electronic equipment and storage medium
CN103294819B (en) The method that Pagination Display is carried out to web page contents using HTML5 technologies
CN113688341B (en) Dynamic picture decomposition method and device, electronic equipment and readable storage medium
CN109151547B (en) Carousel method, carousel device, terminal and storage medium
CN107092514A (en) A kind of content of pages methods of exhibiting and device
US8023771B2 (en) Adjusting left-to-right graphics to a right-to-left orientation or vice versa using transformations with adjustments for line width and pixel orientation
CN113096217B (en) Picture generation method and device, electronic equipment and storage medium
CN114882188A (en) Implementation method of small map based on digital twin
JP3802483B2 (en) Calligraphy learning support system, computer, program, and recording medium
CN104142883B (en) Testing method and recording tool
JP4703695B2 (en) Data creation device, data creation method, data creation program, drawing device, drawing method, and drawing program
US20190163730A1 (en) Systems and methods for a mobile device application having a markup-language document

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130116

Termination date: 20160427