Task management method and system, electronic equipment and storage medium
By establishing a visual schedule and automatically adjusting the time data of task items, the problem of cumbersome task relationships and time adjustments in the existing technology is solved, and the task management effect of intuitive display and efficient adjustment is achieved.
Patent Information
- Application Number
- CN202510098826.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-22
- Publication Date
- 2025-05-23
AI Technical Summary
The prior art is difficult to intuitively demonstrate the affiliation, chronological order and upper and lower road relationship between task packages and dispatched work orders during ship construction, and the task time adjustment is cumbersome, inefficient, and high error rate.
By creating task items and task packages and setting up upper and lower relationships for task items, a visual schedule displays the affiliation and upper and lower relationships between task items and task packages. Based on parent number information and upper and lower channel relationship identification, the task item time data is automatically adjusted to realize automatic synchronization of task time.
It realizes intuitive display of task items and task packages, simplifies task time adjustment steps, improves operation efficiency, and reduces error rate.
Smart Images

Figure CN120031307A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of task management in shipbuilding, and in particular to a task management method, system, electronic device and storage medium. Background Art
[0002] Since the compilation and statistics of work tasks and their task decomposition in the shipbuilding process are managed based on a large number of task packages and the work orders (or task items) they are decomposed into, there is not only a mutual subordination relationship between task packages and some work orders, but also a time sequence and a complex upstream and downstream relationship between task packages and work orders.
[0003] The original task packages and work orders were compiled and managed in a tabular format, which could not clearly and intuitively display the affiliation between the task packages and work orders, as well as the start and completion dates of the task packages and work orders, and the relationship between the previous and next steps. In addition, the compilation and adjustment of task packages and work orders were implemented by date entry, which was not intuitive and cumbersome. In particular, after the time of the previous task was adjusted, the start and end dates of the corresponding subsequent tasks also needed to be adjusted, and automatic adjustment could not be achieved, resulting in cumbersome operating steps, low efficiency, and a high error rate. Summary of the invention
[0004] The purpose of the present application is to provide a task management method, system, electronic device and storage medium, which can also visually display the affiliation of task items and task packages and the upstream and downstream relationships between task items, and can automatically adjust the relevant task item time data based on the parent number information and the upstream and downstream relationship identifiers.
[0005] A task management method provided by this application includes:
[0006] S1. Create a task item and / or a task package containing multiple task items, and set the up-down relationship for the task items belonging to the same task package; the task package contains package information, and the task item contains item information; the package information at least includes the package name and task package time data, and the item information at least includes the item name, task item time data, parent number information and up-down relationship identifier; the parent number information is used to indicate the task package to which the current task item belongs, and the up-down relationship identifier is used to indicate the relationship between the current task item and other task items;
[0007] S2. Create a visual schedule based on package information and item information; the visual schedule shows the subordinate relationship between task items and task packages, and the upper and lower relationships between task items;
[0008] S3. After adjusting the task package time data and / or task item time data, the relevant task item time data is automatically adjusted based on the parent number information and the upper and lower relationship identifiers, and updated and displayed in the visual schedule.
[0009] In an implementable solution, the item information includes the item number, and the upper and lower road relationship identifiers include an empty identifier and a non-empty identifier;
[0010] The empty mark indicates that there is no upper or lower relationship between the current task items;
[0011] A non-empty identifier indicates that the current task item has a superior-subordinate relationship, and the non-empty identifier is the item number of the specific task item.
[0012] In an implementable solution, in step S2, the step of establishing a visual schedule based on the package information and the item information includes:
[0013] S21, creating a visual progress chart of empty data; the visual progress chart includes a title row and data rows corresponding to the title row, the title row includes a task name column, a start date column, an end date column, a progress value column and a graphical display column; the graphical display column includes a year information row, a month information row, a week information row and a day information row;
[0014] S22, obtaining the package name and task package time data of each task package, adding a new data row below the title row, filling in the package name and task package time data in the task name column, start date column, end date column, and progress value column corresponding to the data row, and drawing a task package progress bar in the graphical display column;
[0015] S23, read the parent number information of the task item in sequence, and determine whether the parent number information is a null value; if it is a null value, add a data row at the same level as the task package below the title row, fill in the item name and task item time data of the current task item in the task name column, start date column, end date column, and progress value column corresponding to the data row, and draw a task item progress bar in the graphical display column; if it is not a null value, add a data row below the corresponding task package, fill in the item name and task item time data of the current task item in the task name column, start date column, end date column, and progress value column corresponding to the data row, and draw a task item progress bar in the graphical display column;
[0016] S24, for the task items in the same task package, read the upper and lower track relationship identifiers in sequence, and connect the tail of the progress bar of the upper track task item and the head of the progress bar of the lower track task item using a line with an arrow in the data row corresponding to the graphical display column;
[0017] Among them, if the corresponding value of the progress value bar is 0%, the corresponding task package progress bar or task item progress bar is displayed in the first color; when the corresponding value of the progress value bar is 100%, the corresponding task package progress bar or task item progress bar is displayed in the second color; when the corresponding value of the progress value bar is greater than 0% and less than 100%, the corresponding percentage length of the corresponding task package progress bar or task item progress bar is displayed in the second color, and the rest is displayed in the first color.
[0018] In an implementable solution, the task package progress bar is set with a binding relationship with the data corresponding to the progress value column of the current data row; the head of the task package progress bar is set with a binding relationship with the data of the start date column of the current data row at the position of the graphical display column, and the tail of the task package progress bar is set with a binding relationship with the data of the end date column of the current data row at the position of the graphical display column;
[0019] The task item progress bar is bound to the data setting corresponding to the progress value column of the current data row; the position of the task package progress bar head in the graphical display column is bound to the data setting of the start date column of the current data row, and the position of the task package progress bar tail in the graphical display column is bound to the data setting of the end date column of the current data row;
[0020] The data in the progress value column of the data row corresponding to a task package is set to have a binding relationship with the data in the progress value column of the task item included in the current task package;
[0021] In the same data row, the ratio of the length of the second color in the task package progress bar or task item progress bar to the entire progress bar is bound to the data setting of the progress value column in the current data row;
[0022] The task package progress bar and the task item progress bar are set to be draggable forward and backward as a whole, and the head and tail of the task package progress bar and the task item progress bar are set to be draggable forward and backward separately.
[0023] In an implementable solution, adjusting the task package time data and / or the task item time data includes graphical adjustment and data modification adjustment;
[0024] The data modification and adjustment includes modifying the data corresponding to the start date column, the end date column, and the progress value column in the data row;
[0025] Graphic adjustment includes overall movement adjustment and end-to-end individual adjustment;
[0026] The overall movement adjustment includes dragging the task package progress bar to move left or right or dragging the task item progress bar to move left or right;
[0027] Individual adjustments at the ends include:
[0028] Drag the beginning or end of the task package progress bar to a new position in the left or right direction;
[0029] Drag the beginning or end of the task item progress bar to a new position.
[0030] In an implementable solution, the task management method further includes adjusting the progress of the task package or task item, including:
[0031] Fill in the specific value in the progress value column corresponding to the data row;
[0032] Change the length ratio of the second color in the task package progress bar or task item progress bar.
[0033] In an practicable solution, in step S3, the step of automatically adjusting the time data of the relevant task items based on the parent number information and the upper and lower road relationship identifiers, and updating the display in the visual schedule table includes: step S31, the adjustment process of the time data of the task items; step S32, the adjustment process of the time data of the task package;
[0034] Step S31 includes:
[0035] S311, after adjusting the task item time data of a task item, obtain the parent number information of the current task item and determine whether it is empty; if it is empty, the adjustment is completed; if it is not empty, proceed to the next step;
[0036] S312, obtaining the upper and lower track relationship identifiers of the current task item, determining the task item that has the upper and lower track relationship with the current task item as the target task item, and automatically adjusting the time data of its task item, including changing the corresponding values of the start date column and the end date column of the target task item in the visual progress chart, and the corresponding task item progress bar is shifted to the left or right as a whole; wherein, after the time data of the task items of the same task package are adjusted, the start date and end time of all task items are still between the start date and end date of the task package;
[0037] Step S32 includes:
[0038] S321, after adjusting the time data of a task package, obtaining the item information of all task items included in the current task package;
[0039] S312, obtaining the change of the task package time data, and determining whether the interval from the start date to the end date corresponding to the current task package is consistent with that before adjustment;
[0040] If they are consistent, it is determined that the time data of the current task package is only advanced or postponed as a whole, and the time data of all the task items contained in it are also only advanced or postponed as a whole by the same time; and the values corresponding to the start date column and the end date column of the corresponding task item are updated in the visual progress table, and the corresponding task item progress bar is translated to the left or right as a whole;
[0041] If not, adjust the time data of one or more task items in the task package and execute step S31.
[0042] In a second aspect, a task management system is also provided, including:
[0043] A creation module is used to create a task item and / or a task package containing multiple task items, and set the up-down relationship for the task items belonging to the same task package; the task package contains package information, and the task item contains item information; the package information at least includes the package name and task package time data, and the item information at least includes the item name, task item time data, parent number information and up-down relationship identifier; the parent number information is used to indicate the task package to which the current task item belongs, and the up-down relationship identifier is used to indicate the relationship between the current task item and other task items;
[0044] Library module, used to store package information and item information;
[0045] The visualization module is used to establish a visualization schedule based on the package information and item information, and is also used to adjust the task package time data and / or task item time data; the visualization schedule shows the subordinate relationship between the task item and the task package, and shows the upper and lower relationships between the task items;
[0046] The update module is used to automatically adjust the time data of relevant task items based on the parent number information and the upper and lower relationship identifiers, and update the display in the visual schedule.
[0047] In a third aspect, an electronic device is also provided, the electronic device comprising: a processor and a memory storing computer program instructions. When the processor executes the computer program instructions, the steps in the above-mentioned task management method are implemented.
[0048] In a fourth aspect, a computer-readable storage medium is also provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the steps in the aforementioned task management method are implemented.
[0049] Compared with the prior art, the beneficial effects of this application include at least:
[0050] In the task management method of the present application, a visual schedule is established to display the package information of the task package and the item information of the task item, and to display the subordinate relationship between the task item and the task package, and to display the superior-subordinate relationship between the task items, so that the staff can more intuitively obtain the subordinate relationship between the task package and the task item, and can also intuitively obtain the superior-subordinate relationship between the task items. At the same time, when the task package time data or the task item time data is adjusted, the method can also automatically adjust the relevant task item time data based on the parent number information and the superior-subordinate relationship identifier, simplify the operation steps, improve the adjustment efficiency, and reduce the adjustment error rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 A flowchart of a task management method according to an embodiment of the present application is shown;
[0053] Figure 2 A schematic diagram of the relationship between upper and lower tasks according to an embodiment of the present application;
[0054] Figure 3 A schematic diagram of a visual schedule according to an embodiment of the present application;
[0055] Figure 4 This is a schematic diagram of information of a partial area of a visual schedule according to an embodiment of the present application;
[0056] Figure 5 This is a schematic diagram of information of a partial area of a visual schedule according to an embodiment of the present application;
[0057] Figure 6 is a schematic diagram of a visual schedule after adjusting the time according to an embodiment of the present application;
[0058] Figure 7 is a schematic diagram of a visual schedule after adjusting the time according to an embodiment of the present application;
[0059] Figure 8 It is a structural diagram of a task management system according to an embodiment of the present application;
[0060] Fig. 9 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0062] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0063] According to a first aspect of the present application, a task management method is first provided, comprising:
[0064] S1. Create a task item and / or a task package containing multiple task items, and set the up-down relationship for the task items belonging to the same task package; the task package contains package information, and the task item contains item information; the package information at least includes the package name and task package time data, and the item information at least includes the item name, task item time data, parent number information and up-down relationship identifier; the parent number information is used to indicate the task package to which the current task item belongs, and the up-down relationship identifier is used to indicate the relationship between the current task item and other task items;
[0065] S2. Establishing a visual schedule based on the package information and the item information; the visual schedule shows the subordinate relationship between the task items and the task packages, and shows the upper and lower relationships between the task items;
[0066] S3. After adjusting the task package time data and / or task item time data, the relevant task item time data is automatically adjusted based on the parent number information and the upper and lower relationship identifiers, and updated and displayed in the visual schedule.
[0067] In the task management method of the present application, a visual schedule is established to display the package information of the task package and the item information of the task item, and to display the subordinate relationship between the task item and the task package, and to display the superior-subordinate relationship between the task items, so that the staff can more intuitively obtain the subordinate relationship between the task package and the task item, and can also intuitively obtain the superior-subordinate relationship between the task items. At the same time, when the task package time data or the task item time data is adjusted, the method can also automatically adjust the relevant task item time data based on the parent number information and the superior-subordinate relationship identifier, simplify the operation steps, improve the adjustment efficiency, and reduce the adjustment error rate.
[0068] In one embodiment, for the item information of a task item, it also includes the item number, and the upper and lower road relationship identifier includes an empty identifier and a non-empty identifier. When the position of the upper and lower road relationship identifier is an empty identifier, it means that there is no upper and lower road relationship for the current task item. The non-empty identifier indicates that there is an upper and lower road relationship for the current task item, and the non-empty identifier is the item number of the specific task item.
[0069] Specifically, the upper and lower road relationship identification may include an upper road relationship identification bit and a lower road relationship identification bit. The upper road relationship identification bit is used to fill in the item number of the previous task item associated with the current task item, and the lower road relationship identification bit is used to fill in the item number of the next task item associated with the current task item. If the upper road relationship identification bit or the lower road relationship identification bit is an empty identification bit, it means that there is no upper road relationship or lower road relationship for the current task item.
[0070] In one embodiment, in step S2, the step of establishing a visual schedule based on the package information and the item information includes:
[0071] S21, creating a visual progress chart of empty data; Figure 3 As shown in FIG, the visual progress table includes a title row and data rows corresponding to the title row. Figure 4 The header row includes at least the task name column, the start date column, the end date column, the progress value column, and the graphical display column; see Figure 5 , the graphical display column includes a year information row, a month information row, a week information row and a day information row; for example, each cell in the fourth row of the graphical display column represents a day's scale, the third row merges the seven cells from Monday to Sunday corresponding to the date into one cell to represent a week's scale, the second row merges the cells from the first day to the last day of each month corresponding to the date into one cell to represent a month's scale, and the first row merges the cells from the first day to the last day of each year corresponding to the date into one cell to represent a year's scale;
[0072] S22, obtain the package name and task package time data of each task package, such as Figure 3 As shown in the data row where task package 1 is located, add a new data row below the title row, fill in the package name and task package time data in the task name column, start date column, end date column, and progress value column corresponding to the data row, and draw a task package progress bar in the graphical display column, and the task name can be displayed in the task package progress bar, for example Figure 3 "Task Package 1" is displayed in the progress bar of Task Package 1; the head position of the task package progress bar is positioned at the cell corresponding to the start date of the task package, and the tail position is positioned at the cell corresponding to the end date of the task package;
[0073] S23, read the parent number information of the task item in sequence, and determine whether the parent number information is a null value; if it is a null value, add a data row at the same level as the task package below the title row (not shown in the figure), fill in the task name column, start date column, end date column, and progress value column corresponding to the data row with the item name and task item time data of the current task item, and draw a task item progress bar in the graphical display column; if it is not a null value, such as Figure 3 As shown in the data row where task item 1 and task item 2 are located, a new data row is added below the corresponding task package, and the item name and task item time data of the current task item are filled in the task name column, start date column, end date column, and progress value column corresponding to the data row, and a task item progress bar is drawn in the graphical display column, and the task name can be displayed in the task item progress bar, for example Figure 3 "Task Item 1" is displayed in the progress bar of Task Item 1; the head position of the progress bar of the task item is positioned at the cell corresponding to the start date of the task item, and the tail position is positioned at the cell corresponding to the end date of the task item;
[0074] S24, such as Figure 2 and Figure 3 As shown, for the task items belonging to the same task package, read the upper and lower track relationship identifiers in sequence, and use a line with an arrow in the data row corresponding to the graphical display bar to connect the tail of the upper track task item progress bar and the head of the lower track task item progress bar;
[0075] Among them, if the corresponding value of the progress value bar is 0%, the corresponding task package progress bar or task item progress bar is displayed in the first color (for example, white in the figure); when the corresponding value of the progress value bar is 100%, the corresponding task package progress bar or task item progress bar is displayed in the second color (for example, yellow in the figure); when the corresponding value of the progress value bar is greater than 0% and less than 100%, the corresponding percentage length of the corresponding task package progress bar or task item progress bar is displayed in the second color, and the rest is displayed in the first color.
[0076] In one embodiment, if Figure 4 As shown, in step S23, for all task items in the same task package, the item name in the data row corresponding to the task item is indented to the right than the package name of the task package, and a folding button is set at the package name of the task package. By clicking the folding button, the data row corresponding to the task item under the current task package can be folded, and it can be expanded by clicking here. At the same time, a first icon (such as a folder icon) can be added before the package name, and a second icon (such as a document icon) can be added before the task item to intuitively distinguish the task package and the task item.
[0077] In one embodiment, there is a binding relationship between the task package progress bar and the data set in the progress value column of the current data row; the position of the head of the task package progress bar in the graphical display column has a binding relationship with the data set in the start date column of the current data row, and the position of the tail of the task package progress bar in the graphical display column has a binding relationship with the data set in the end date column of the current data row;
[0078] There is a binding relationship between the task item progress bar and the data set in the progress value column of the current data row; the position of the head of the task package progress bar in the graphical display column has a binding relationship with the data set in the start date column of the current data row, and the position of the tail of the task package progress bar in the graphical display column has a binding relationship with the data set in the end date column of the current data row;
[0079] The data in the progress value column of the data row corresponding to a task package has a binding relationship with the data set in the progress value column of the task items included in the current task package;
[0080] In the same data row, the ratio of the length of the second color in the task package progress bar or the task item progress bar to the entire progress bar has a binding relationship with the data set in the progress value column of the current data row;
[0081] The task package progress bar and the task item progress bar are set to be able to be dragged forward and backward as a whole, and the heads and tails of the task package progress bar and the task item progress bar are set to be able to be dragged forward and backward individually.
[0082] It should be noted that the binding relationship means that when one party's data changes, the bound data of the other party changes accordingly.
[0083] In one embodiment, adjusting the task package time data and / or the task item time data may include graphical adjustment and data modification adjustment. The data modification adjustment includes modifying the data corresponding to the start date column, the end date column, and the progress value column in the data row, and the graphical adjustment includes overall movement adjustment and end part individual adjustment.
[0084] Specifically, the overall movement adjustment includes dragging the task package progress bar left and right or dragging the task item progress bar left and right;
[0085] The end part individual adjustment includes:
[0086] Dragging the head or tail of the task package progress bar in the left-right direction to a new position;
[0087] Dragging the head or tail of the task item progress bar in the left-right direction to a new position.
[0088] For the convenience of description, the task package progress bar and the task item progress bar can be collectively referred to as the progress bar container.
[0089] For example, when adjusting the start date of a task package or task item, you can place the mouse on the left edge of the progress bar container. The mouse can switch from a pointer icon to a width adjustment icon. Press and hold the left mouse button and drag left and right. The new head position of the progress bar container is determined based on the distance the mouse slides and the initial head position of the progress bar container. When the left mouse button is released, the display position of the progress bar container is repositioned based on the newly calculated head position, the mouse icon is restored to a pointer, and the value of the start date column is automatically adjusted, thereby achieving graphical adjustment.
[0090] If the interval days between task packages or task items (or the number of working hours) is always a fixed value, the tail position of the adjusted progress bar container can be determined based on the calculated new head position of the progress bar container and the fixed interval days. When the left mouse button is released, the display position of the positioning progress bar container is re-updated according to the newly calculated head position and tail arrangement. If the interval days between task packages or task items is not a fixed value, the tail position remains unchanged after the head position is adjusted.
[0091] For example, when adjusting the end date of a task package or task item, you can place the mouse on the right edge of the progress bar container. The mouse can switch from a pointer icon to a width adjustment icon. Press and hold the left mouse button and drag left and right. The new tail position of the progress bar container is determined based on the distance the mouse slides and the initial tail position of the progress bar container. When the left mouse button is released, the display position of the progress bar container is repositioned based on the newly calculated tail position, the mouse icon is restored to a pointer, and the value of the end date column is automatically adjusted, thereby achieving graphical adjustment.
[0092] If the interval days between task packages or task items (or the number of working hours) is always a fixed value, the head position of the adjusted progress bar container can be determined based on the calculated new tail position of the progress bar container and the fixed interval days. When the left mouse button is released, the display position of the positioning progress bar container is re-updated according to the newly calculated head position and tail arrangement. If the interval days between task packages or task items is not a fixed value, the head position remains unchanged after the tail position is adjusted.
[0093] For example, the progress bar container can be dragged as a whole. The mouse can stay on the progress bar container, and the mouse can be set to switch from a pointer icon to a hand icon. Press and hold the left mouse button to drag left and right. The new position of the progress bar container is determined according to the sliding distance of the mouse and the initial position of the container, thereby determining the start date and end date of the task package or task item. When the left mouse button is released, the display position of the container is repositioned, the mouse icon is restored to a pointer, and the values of the start date column and the end date column are automatically updated to achieve graphical overall adjustment.
[0094] In one embodiment, the task management method further includes adjusting the progress of the task package or the task item, including:
[0095] Fill in the specific value in the progress value column corresponding to the data row;
[0096] Change the length ratio of the second color in the task package progress bar or task item progress bar (see Figure 3 Task Pack 1 progress bar in the task list).
[0097] In one embodiment, the step of changing the length ratio of the second color in the task package progress bar or the task item progress bar may include: the mouse can be placed outside the right edge of the progress bar container, the mouse icon switches from a pointer icon to a width adjustment icon, and the left mouse button is held down to drag left and right, and the completion progress percentage value is determined based on the position where the mouse is placed and the starting position and length of the container. When the left mouse button is released, the value of the task running completion status progress bar in the progress bar container is changed to the calculated progress percentage value, the mouse icon is restored to a pointer, and the value in the progress value bar changes automatically to achieve a graphical completion progress status.
[0098] In one embodiment, in step S3, the step of automatically adjusting the time data of the relevant task items based on the parent number information and the upper and lower road relationship identifiers, and updating the display in the visual schedule, includes: step S31, the adjustment process of the time data of the task items; step S32, the adjustment process of the time data of the task package;
[0099] Step S31 includes:
[0100] S311, after adjusting the task item time data of a task item, obtain the parent number information of the current task item and determine whether it is empty; if it is empty, the adjustment is completed; if it is not empty, proceed to the next step;
[0101] S312, obtaining the upper and lower track relationship identifiers of the current task item, determining the task item that has the upper and lower track relationship with the current task item as the target task item, and automatically adjusting the time data of its task item, including changing the corresponding values of the start date column and the end date column of the target task item in the visual progress chart, and the corresponding task item progress bar is shifted to the left or right as a whole; wherein, after the time data of the task items of the same task package are adjusted, the start date and end time of all task items are still between the start date and end date of the task package;
[0102] Step S32 includes:
[0103] S321, after adjusting the time data of a task package, obtaining the item information of all task items included in the current task package;
[0104] S312, obtaining the change of the task package time data, and determining whether the interval from the start date to the end date corresponding to the current task package is consistent with that before adjustment;
[0105] If they are consistent, it is determined that the time data of the current task package is only advanced or postponed as a whole, and the time data of all the task items contained in it are also only advanced or postponed as a whole by the same time; and the values corresponding to the start date column and the end date column of the corresponding task item are updated in the visual progress table, and the corresponding task item progress bar is translated to the left or right as a whole;
[0106] If not, adjust the time data of one or more task items in the task package and execute step S31.
[0107] Assume that the information of the visual schedule before adjustment is as follows Figure 3 As shown, Figure 6 and Figure 7 Visualize the progress after adjustment.
[0108] For example, Figure 6 As shown, the task item time data of task item 1 is adjusted, that is, the progress bar container of task item 1 is moved forward by one day by dragging, and the values of the start date column and the end date column automatically change accordingly. The parent number information of task item 1 is obtained as task package 1, and it is determined that task item 1 may have a parent-child relationship;
[0109] Further obtain the upper and lower relationship identifiers of the current task item 1, determine that task item 2 is the lower task of the current task item 1, and move the progress bar container of task item 2 forward by one day as a whole, and the values of the start date column and the end date column automatically change accordingly.
[0110] Specifically, Figure 6As shown, the current task package 1 has data for two task items. The start and end dates of task item 1 are from October 10 to October 11, and the start and end dates of task item 2 are from October 13 to October 14. Task item 1 and task item 2 have established a superior-subordinate relationship. We modify the end date of task item 1 to October 10 manually or graphically. According to the time before and after the adjustment of task item 1, we calculate that this adjustment advances the end date of task item 1 by one day. Based on the superior-subordinate relationship, search for the next task number of the adjusted task, locate the next task (i.e., task item 2) according to the number of the next task, and adjust the start time of the next task to October 12 one day in advance, and adjust the end time to October 13 one day in advance. Then, based on the superior-subordinate relationship, continue to search for the next task number of the automatically adjusted task. If there is a subsequent next task number, repeat the above calculation process until there is no subsequent next task number.
[0111] For example, Figure 7 As shown, the time data of task package 1 is adjusted, the progress bar container of task package 1 is moved back one day as a whole, the item information of all task items contained in the current task package 1 is obtained, and it is determined that task package 1 includes task item 1 and task item 2; further, the change of the time data of the task package is obtained, and it is determined that the interval from the start date to the end date corresponding to the current task package is consistent with that before the adjustment, that is, the total working hours corresponding to task package 1 have not changed;
[0112] Then the time data of all the task items included in task package 1 is also postponed by only one day; and the corresponding values of the start date column and end date column of the corresponding task item are updated in the visual progress table, and the corresponding task item progress bar is shifted to the right as a whole. Since the start date and end time of all task items after adjustment are still between the start date and end date of the task package, the adjustment is completed.
[0113] Specifically, Figure 7 As shown, the current task package 1 starts and ends from October 9 to October 14. Task package 1 contains two task items. The start and end dates of task item 1 are from October 10 to October 11, and the start and end dates of task item 2 are from October 13 to October 14. We adjust the end date of task package 1 to October 10 to October 15 by manual modification or graphical method. According to the end time of task package 1 before and after adjustment, it is calculated that this adjustment postpones the overall date of the task package by one day. Search for the task item number of the adjusted task package 1, locate the task item data item according to the task item number, adjust the start and end time of task item 1 to October 11 to October 12, and the start and end time of task item 2 to October 14 to October 15.
[0114] like Figure 8As shown, the present application also provides a task management system, which can implement the aforementioned task management method, including:
[0115] The creation module 10 is used to create a task item and / or a task package containing multiple task items, and set the up-down relationship for the task items belonging to the same task package; the task package contains package information, and the task item contains item information; the package information at least includes the package name and the task package time data, and the item information at least includes the item name, the task item time data, the parent number information and the up-down relationship identifier; the parent number information is used to indicate the task package to which the current task item belongs, and the up-down relationship identifier is used to indicate the relationship between the current task item and other task items;
[0116] A library module 20, used to store package information and item information;
[0117] The visualization module 30 is used to establish a visualization schedule based on the package information and the item information, and is also used to adjust the task package time data and / or the task item time data; the visualization schedule shows the subordinate relationship between the task item and the task package, and shows the upper and lower relationships between the task items;
[0118] The updating module 40 is used to automatically adjust the time data of the relevant task items based on the parent number information and the upper and lower relationship identifiers, and update the display in the visual schedule.
[0119] Corresponding to the above method embodiment, Fig. 9 As shown, the present application also provides an electronic device, which includes a processor 1 and a memory 2 storing computer program instructions. The processor 1 and the memory 2 can communicate with each other through a communication bus 3. The processor 1 is used to execute computer program instructions, and the memory 2 is used to store computer program instructions.
[0120] The processor 1 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the present embodiment. The memory 2 may include a high-speed RAM memory, or may also include a non-volatile memory, such as at least one disk memory. The processor 1 executes at least one computer program instruction to implement the steps shown in the embodiment of the task management method.
[0121] Corresponding to the above method embodiment, the present application also provides a computer-readable storage medium, on which computer program instructions are stored. When one or more computer program instructions are executed by a processor, the steps shown in the task management method embodiment are implemented.
[0122] Among them, computer storage media can be tangible media that can contain or store programs for use by or in combination with instruction execution systems, devices or equipment. Computer storage media can be machine-readable signal media or machine-readable storage media. Computer storage media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the above. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.
[0123] Corresponding to the above method embodiment, the present application also provides a computer program product, and when the instructions in the computer program product are executed by a processor, the steps shown in the task management method embodiment are implemented.
[0124] The above description is only a partial preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A task management method, characterized in that: include: S1. Create a task item and / or a task package containing multiple task items, and set a superior-subordinate relationship for the task items belonging to the same task package; the task package contains package information, and the task item contains item information; the package information at least includes a package name and task package time data, and the item information at least includes an item name, task item time data, parent number information and superior-subordinate relationship identifier; the parent number information is used to indicate the task package to which the current task item belongs, and the superior-subordinate relationship identifier is used to indicate the relationship between the current task item and other task items; S2. Establishing a visual schedule based on the package information and the item information; the visual schedule shows the subordinate relationship between the task items and the task packages, and shows the upper and lower relationships between the task items; S3. After adjusting the task package time data and / or task item time data, the relevant task item time data is automatically adjusted based on the parent number information and the upper and lower relationship identifiers, and updated and displayed in the visual schedule.
2. The task management method according to claim 1, characterized in that: The item information includes the item number, and the upper and lower road relationship identifiers include an empty identifier and a non-empty identifier; The empty mark indicates that there is no upper or lower relationship between the current task item; The non-empty identifier indicates that there is a superior-subordinate relationship between the current task items, and the non-empty identifier is the item number of the specific task item.
3. The task management method according to claim 2, characterized in that: In step S2, the step of establishing a visual schedule based on the package information and the item information includes: S21, creating a visual progress chart of empty data; the visual progress chart includes a title row and data rows corresponding to the title row, the title row includes a task name column, a start date column, an end date column, a progress value column and a graphical display column; the graphical display column includes a year information row, a month information row, a week information row and a day information row; S22, obtaining the package name and task package time data of each task package, adding a new data row below the title row, filling in the package name and task package time data in the task name column, start date column, end date column, and progress value column corresponding to the data row, and drawing a task package progress bar in the graphical display column; S23, read the parent number information of the task item in sequence, and determine whether the parent number information is a null value; if it is a null value, add a data row at the same level as the task package below the title row, fill in the item name and task item time data of the current task item in the task name column, start date column, end date column, and progress value column corresponding to the data row, and draw a task item progress bar in the graphical display column; if it is not a null value, add a data row below the corresponding task package, fill in the item name and task item time data of the current task item in the task name column, start date column, end date column, and progress value column corresponding to the data row, and draw a task item progress bar in the graphical display column; S24, for the task items in the same task package, read the upper and lower track relationship identifiers in sequence, and connect the tail of the progress bar of the upper track task item and the head of the progress bar of the lower track task item using a line with an arrow in the data row corresponding to the graphical display column; Among them, if the corresponding value of the progress value bar is 0%, the corresponding task package progress bar or the task item progress bar is displayed in the first color; when the corresponding value of the progress value bar is 100%, the corresponding task package progress bar or the task item progress bar is displayed in the second color; when the corresponding value of the progress value bar is greater than 0% and less than 100%, the corresponding percentage length of the corresponding task package progress bar or the task item progress bar is displayed in the second color, and the rest is displayed in the first color.
4. The task management method according to claim 3, characterized in that: The task package progress bar is set with the data corresponding to the progress value column of the current data row in a binding relationship; the head of the task package progress bar is set with the data corresponding to the start date column of the current data row in a position in the graphical display column, and the tail of the task package progress bar is set with the data corresponding to the end date column of the current data row in a position in the graphical display column; The task item progress bar is set with the data corresponding to the progress value column of the current data row; the head of the task package progress bar is set with the data corresponding to the start date column of the current data row at the position of the graphical display column, and the tail of the task package progress bar is set with the data corresponding to the end date column of the current data row at the position of the graphical display column; The data in the progress value column of the data row corresponding to a task package is set to have a binding relationship with the data in the progress value column of the task item included in the current task package; In the same data row, the ratio of the length of the second color in the task package progress bar or task item progress bar to the entire progress bar is bound to the data setting of the progress value column in the current data row; The task package progress bar and the task item progress bar are configured to be draggable as a whole, and the head and tail of the task package progress bar and the task item progress bar are configured to be draggable individually.
5. The task management method according to claim 4, characterized in that: Adjusting task package time data and / or task item time data includes graphical adjustment and data modification adjustment; The data modification and adjustment includes modifying the data corresponding to the start date column, the end date column, and the progress value column in the data row; The graphical adjustment includes overall movement adjustment and end individual adjustment; Wherein, the overall movement adjustment includes dragging the task package progress bar to move left and right or dragging the task item progress bar to move left and right; The end individual adjustment includes: Drag the beginning or end of the task package progress bar to a new position in the left or right direction; Drag the beginning or end of the task item progress bar to a new position.
6. The task management method according to claim 4, characterized in that: It also includes adjusting the progress of task packages or task items, including: Fill in the specific value in the progress value column corresponding to the data row; Change the length ratio of the second color in the task package progress bar or task item progress bar.
7. The task management method according to claim 5, characterized in that: In the step S3, the time data of the relevant task items are automatically adjusted based on the parent number information and the upper and lower road relationship identifiers, and the step of updating the display in the visual schedule includes: step S31, the adjustment process of the time data of the task items; step S32, the adjustment process of the time data of the task package; The step S31 comprises: S311, after adjusting the task item time data of a task item, obtain the parent number information of the current task item and determine whether it is empty; if it is empty, the adjustment is completed; if it is not empty, proceed to the next step; S312, obtaining the upper and lower track relationship identifiers of the current task item, determining the task item that has the upper and lower track relationship with the current task item as the target task item, and automatically adjusting the time data of its task item, including changing the corresponding values of the start date column and the end date column of the target task item in the visual progress chart, and the corresponding task item progress bar is shifted to the left or right as a whole; wherein, after the time data of the task items of the same task package are adjusted, the start date and end time of all task items are still between the start date and end date of the task package; The step S32 comprises: S321, after adjusting the time data of a task package, obtaining the item information of all task items included in the current task package; S312, obtaining the change of the task package time data, and determining whether the interval from the start date to the end date corresponding to the current task package is consistent with that before adjustment; If they are consistent, it is determined that the time data of the current task package is only advanced or postponed as a whole, and the time data of all the task items contained in it are also only advanced or postponed as a whole by the same time; and the values corresponding to the start date column and the end date column of the corresponding task item are updated in the visual progress table, and the corresponding task item progress bar is translated to the left or right as a whole; If not, adjust the time data of one or more task items in the task package and execute step S31.
8. A task management system, characterized in that: include: A creation module (10) is used to create a task item and / or a task package containing multiple task items, and to set a hierarchy relationship for the task items belonging to the same task package; the task package contains package information, and the task item contains item information; the package information at least includes a package name and task package time data, and the item information at least includes an item name, task item time data, parent number information and a hierarchy relationship identifier; the parent number information is used to indicate the task package to which the current task item belongs, and the hierarchy relationship identifier is used to indicate the relationship between the current task item and other task items; A library module (20), used for storing package information and item information; A visualization module (30) is used to establish a visualization schedule based on the package information and the item information, and is also used to adjust the task package time data and / or the task item time data; the visualization schedule displays the subordinate relationship between the task item and the task package, and displays the superior and subordinate relationship between the task items; The updating module (40) is used to automatically adjust the time data of the relevant task items based on the parent number information and the upper and lower relationship identifiers, and update the display in the visual progress table.
9. An electronic device, characterized in that: The electronic device includes a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the task management method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the task management method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Visualization method and system for ship construction plan, electronic equipment and storage medium
CN121188257A