CN109918157B - Operation processing method and device - Google Patents

Operation processing method and device Download PDF

Info

Publication number
CN109918157B
CN109918157B CN201910014011.8A CN201910014011A CN109918157B CN 109918157 B CN109918157 B CN 109918157B CN 201910014011 A CN201910014011 A CN 201910014011A CN 109918157 B CN109918157 B CN 109918157B
Authority
CN
China
Prior art keywords
instruction
operation instruction
parameter
determining
callback function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910014011.8A
Other languages
Chinese (zh)
Other versions
CN109918157A (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.)
Beijing Aerospace Control Center
Original Assignee
Beijing Aerospace Control Center
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 Beijing Aerospace Control Center filed Critical Beijing Aerospace Control Center
Priority to CN201910014011.8A priority Critical patent/CN109918157B/en
Publication of CN109918157A publication Critical patent/CN109918157A/en
Application granted granted Critical
Publication of CN109918157B publication Critical patent/CN109918157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an operation processing method and device. Wherein, the method comprises the following steps: acquiring an operation instruction of a visual object, wherein the visual object comprises a Gantt chart and/or a data table corresponding to the Gantt chart and the like; determining a preset callback function corresponding to the operation instruction; and executing an adjusting action corresponding to the preset callback function on the visual object. The invention solves the technical problem that the related operation of the traditional Gantt chart cannot be flexibly expanded and set.

Description

Operation processing method and device
Technical Field
The invention relates to the field of computers, in particular to an operation processing method and device.
Background
The Gantt Chart (Gantt Chart) is a data visualization view, and marks the continuous start and end Time of an event or a state through the position occupation of a Time Item (Time Item) on a Time axis, so as to show the precedence relationship of Time-related elements. The gantt chart has a wide application scenario in software products such as project management, job planning and scheduling.
From the operability perspective, the gantt chart has two application levels: the first level is unidirectional data display, relevant time elements are visualized, and besides the overall display configuration of the Gantt chart, such as simple zooming, time range selection and the like, each time item in the Gantt chart has no operability; the second layer is bidirectional data visualization, namely, time items are allowed to be dragged, linked and the like, so that data sources are changed, and visualization operation of data is realized to replace filling of a data table.
Products such as Microsoft Project (a Project management software product from Microsoft) support two-way data visualization, but as an end-user oriented product, their response to a drag operation on a time Project is solidified.
As for Gantt chart middleware (such as Infragritics XamsGantt and WinGantView controls), only an event processing interface of related operations is generally provided, such as TaskBarDragComplete (drag end of task item) event of XamsGantt, and the type of the drag operation still cannot be freely expanded.
Aiming at the problem that the related operation of the existing Gantt chart cannot be flexibly expanded and set, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides an operation processing method and device, which at least solve the technical problem that the related operation of the existing Gantt chart cannot be flexibly expanded and set.
According to an aspect of the embodiment of the present invention, there is provided an operation object for executing an adjustment action corresponding to the predetermined callback function.
Optionally, the determining of the predetermined callback function corresponding to the operation instruction includes: determining an operation type corresponding to the operation instruction; and determining a preset callback function corresponding to the operation type.
Optionally, after determining the operation type corresponding to the operation instruction, the method further includes: determining a predetermined parameter list corresponding to the operation type, wherein the predetermined parameter list is used for transmitting the operation parameter corresponding to the operation instruction to the predetermined callback function corresponding to the operation type; and configuring the operating parameters in the preset parameter list according to the operating instructions.
Optionally, after determining the predetermined callback function corresponding to the operation type, the method further includes: and distributing the operation instruction to the preset callback function corresponding to the operation type of the operation instruction.
Optionally, in a case that the operation instruction is a drag operation instruction, the operation parameters in the drag operation instruction include a source parameter and a target parameter, the source parameter includes a location parameter of an initial location of the visualization object, the target parameter includes a location parameter of dragging the visualization object to a target location, and after configuring the operation parameters in the predetermined parameter list according to the operation instruction, the method further includes: establishing an association between the source parameters, the target parameters and the predetermined parameter list.
According to another aspect of the embodiments of the present invention, there is also provided an operation processing apparatus including: the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring an operation instruction of a visual object, and the visual object comprises a Gantt chart and/or a data table corresponding to the Gantt chart; the first determining unit is used for determining a preset callback function corresponding to the operation instruction; and the execution unit is used for executing the adjustment action corresponding to the preset callback function on the visual object.
Optionally, the determining unit includes: the first determining module is used for determining the operation type corresponding to the operation instruction; and the second determining module is used for determining the preset callback function corresponding to the operation type.
Optionally, the apparatus further comprises: a second determining unit, configured to determine, after determining an operation type corresponding to the operation instruction, a predetermined parameter list corresponding to the operation type, where the predetermined parameter list is used to transmit an operation parameter corresponding to the operation instruction to the predetermined callback function corresponding to the operation type; and the configuration unit is used for configuring the operation parameters in the preset parameter list according to the operation instruction.
Optionally, the apparatus further comprises: the distribution unit is configured to distribute the operation instruction to the predetermined callback function corresponding to the operation type of the operation instruction after determining the predetermined callback function corresponding to the operation type.
Optionally, in a case that the operation instruction is a drag operation instruction, the operation parameters in the drag operation instruction include a source parameter and a target parameter, the source parameter includes a location parameter of an initial location of the visualization object, and the target parameter includes a location parameter of dragging the visualization object to a target location, the apparatus further includes: an establishing unit, configured to establish an association between the source parameter, the target parameter, and the predetermined parameter list after configuring the operating parameter in the predetermined parameter list according to the operating instruction.
In the embodiment of the invention, the operation instruction generated by the operation of the user on the visual object is obtained, the predetermined callback function corresponding to the operation instruction is determined, then controlling the visual object to execute corresponding adjustment action according to the preset callback function to complete the adjustment of the visual object, thereby setting corresponding predetermined callback functions for different operation instructions, enabling the visual object to respond to the operation instructions according to the predetermined callback functions corresponding to the operation instructions and execute the adjustment actions corresponding to the operation instructions, under the condition of adjusting the Gantt chart, by setting the preset callback functions corresponding to different operation instructions, can make the adjustment of the Gantt chart more flexible, realizes the technical effect of flexibly setting the operation instruction of the Gantt chart, and further solves the technical problem that the related operation of the existing Gantt chart can not be flexibly expanded and set.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention and do not constitute a limitation of the invention. In the drawings:
FIG. 1 is a flow chart of a method of operation processing according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the operation flow of a connection mechanism according to an embodiment of the invention;
fig. 3 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Where an embodiment of a method of operation processing is provided according to the present invention, it should be noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flow chart of an operation processing method according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
step S102, acquiring an operation instruction of a visual object, wherein the visual object comprises a Gantt chart and/or a data table corresponding to the Gantt chart;
step S104, determining a predetermined callback function corresponding to the operation instruction;
and step S106, executing an adjusting action corresponding to the preset callback function on the visual object.
Through the steps, the operation instruction generated by the operation of the user on the visual object is obtained, the preset callback function corresponding to the operation instruction is determined, then controlling the visual object to execute corresponding adjustment action according to the preset callback function to complete the adjustment of the visual object, thereby setting corresponding predetermined callback functions for different operation instructions, enabling the visual object to respond to the operation instructions according to the predetermined callback functions corresponding to the operation instructions and execute the adjustment actions corresponding to the operation instructions, under the condition of adjusting the Gantt chart, by setting the preset callback functions corresponding to different operation instructions, can make the adjustment of the Gantt chart more flexible, realizes the technical effect of flexibly setting the operation instruction of the Gantt chart, and further solves the technical problem that the related operation of the existing Gantt chart can not be flexibly expanded and set.
In the scheme provided in step S102, the visualization object may be a gantt chart, or may be a data table corresponding to the gantt chart. The operation instruction may be an adjustment instruction for adjusting the gantt chart or the data table corresponding to the gantt chart.
It should be noted that the visualization object includes, but is not limited to, the gantt chart and the data table.
It should be noted that the gantt chart includes at least one time item, where each time item corresponds to one data item in the data table.
Alternatively, the operation instruction may be an instruction issued by a mouse pointer, for example, an instruction generated by dragging a time item by a mouse; but also instructions for adjusting data in the data item.
In the scheme provided in step S104, the predetermined callback function may be a function that is preset and used for adjusting the visual object.
It should be noted that the callback function is to allow the user to pass a pointer of a method to be called as a parameter to a function, so that the function can flexibly use different methods when processing similar time.
For example, when an operation instruction triggered by an operation performed on the visual object is obtained, a parameter of the operation instruction may be transferred to a predetermined callback function corresponding to the operation instruction, and then the predetermined callback function may adjust the visual object according to the parameter.
Optionally, the relation between the operation instruction and the adjustment action can be established through a predetermined callback function, and after the operation instruction is triggered, the visual object can be controlled to execute the adjustment action corresponding to the operation instruction through the predetermined callback function, so that the operation instruction and the adjustment action do not need to be directly constructed, and under the condition of expanding the operation instruction, only the corresponding predetermined callback function needs to be set, so that the flexibility of the operation instruction is enhanced, and a user can flexibly set the operation instruction and the corresponding relation between different operation instructions and adjustment actions according to the use habit.
In the scheme provided in step S106, after the operation instruction is triggered, the visual object may respond to the predetermined callback function corresponding to the trigger instruction, and execute the adjustment action corresponding to the visual object.
Optionally, the operation instruction includes a time item creation instruction, wherein the creation instruction is an instruction for creating a time item in a gantt chart. For example, a data item may be dragged into a gantt chart in a data table, an instruction for creating a time item may be generated, and then a time item corresponding to the dragged data item may be created in the gantt chart according to the time item creation instruction.
Optionally, the operation instruction comprises an adjustment instruction, wherein the adjustment instruction is used for adjusting the time items and the time span of the data items in the gantt chart. For example, the specific time of the time item and the time span thereof may be displayed on the time axis of the gantt chart, and by dragging the time item as a whole, the position of the time item in the gantt chart may be adjusted, thereby adjusting the specific time of the time item; adjusting the time span of the time item by dragging the start position and the end position of the time item separately in the gantt chart; by adjusting the start-stop time in a data item, the time span of the data item corresponding to the time item can be adjusted accordingly.
Optionally, the operation instruction includes an association creating instruction for creating an association relationship between a time item and a service, where the time item represents time consumed by a certain service. For example, a time item can represent the demand of a job (service) schedule, and when the demand is finally satisfied, and how long the time span is, depending on the objective situation of the resource, the specific time of the job (service) is calculated, and the time range. By establishing the association relation between the operation (service) and the time project, the specific time and the time range in the time project can be automatically adjusted according to the objective condition of resources in the operation (service).
Optionally, the operation instructions include an order creation instruction for establishing an order relationship between at least one time item, wherein the at least one time item may be executed in a certain order. For example, the time item a represents a first service, the time item B represents a second service, and the second service needs to be executed after the first service is completed, a direct sequence of the time item a and the time item B may be established, so that the time item a is always located in front of the time item B, and thus, when the time item a or the time item B is moved independently, another time item may also be moved correspondingly; alternatively, when the time item a is moved to the rear of the time item B, alarm information is presented.
Optionally, the alarm information includes warning information such as pictures, sounds, and words, and may also control each time item to automatically return to an initial position to prompt that the movement fails.
Optionally, the operation instruction comprises a dependency creation instruction for building a dependency relationship between the time item and the entity. For example, when a job (service) represented in a certain time item needs to depend on a certain resource (entity), an association relationship between the time item and the resource (entity) time may be established, and in the case that the resource is insufficient to support the job, the job may be marked with an abnormal view style (e.g., red); resources can be automatically created; it is also possible to automatically move the job to a feasible time.
Optionally, in the case of constructing a dependency relationship between a time item and an entity, dragging may be started from a time item, and released from a resource item, indicating that the job depends on the resource, so that a corresponding relationship may be established.
As an alternative embodiment, the determining the predetermined callback function corresponding to the operation instruction includes: determining an operation type corresponding to the operation instruction; and determining a preset callback function corresponding to the operation type.
By adopting the embodiment of the invention, the operation type of the operation instruction can be predetermined, the predetermined callback function corresponding to each operation type can be determined, and further, after the operation instruction is triggered, the operation type of the operation instruction can be determined first, and then the predetermined callback function corresponding to the operation instruction is determined according to the operation type.
Optionally, the operation type includes an operation name, a correspondence between the operation name and a predetermined callback function may be established, and the predetermined callback function corresponding to the operation name may be selected according to the operation name of the operation instruction.
Optionally, the operation type may be a unique identifier of the operation instruction, a correspondence between the unique identifier of the operation instruction and the predetermined callback function may be established, and the predetermined callback function corresponding to the operation instruction is determined according to the unique identifier corresponding to each operation instruction.
Optionally, the predetermined callback function has a corresponding unique identifier, and the predetermined callback function is determined by a corresponding relationship between the operation type and the unique identifier of the predetermined callback function.
Alternatively, the unique identifier of the predetermined callback function may be a callback name corresponding to the predetermined callback function.
As an optional embodiment, after determining the operation type corresponding to the operation instruction, the embodiment may further include: determining a preset parameter list corresponding to the operation type, wherein the preset parameter list is used for transmitting the operation parameter corresponding to the operation instruction to a preset callback function corresponding to the operation type; and configuring the operating parameters in a predetermined parameter list according to the operating instructions.
By adopting the embodiment of the invention, the preset parameter list corresponding to the operation type can be preset, and then after the operation instruction is triggered, the preset parameter list of the operation instruction can be determined according to the operation type of the operation instruction, and then the operation parameter corresponding to the operation instruction is configured in the preset parameter list, so that the operation parameter can be transmitted to the preset callback function through the preset parameter list, and the preset callback function can control the visual object to execute the corresponding adjustment action according to the operation parameter.
Alternatively, the predetermined parameter table may be a function that uses an object [ ] array, that can accommodate any number and type of parameters, as appropriate for an unspecified signature. Any number of parameters can be transferred to any function through a preset parameter table, and therefore flexible calling of callback processing is achieved.
As an optional embodiment, after determining the predetermined callback function corresponding to the operation type, the embodiment may further include: and distributing the operation instruction to a preset callback function corresponding to the operation type of the operation instruction.
By adopting the embodiment of the invention, the preset callback function can accurately acquire the operation instruction corresponding to the preset callback function and respond, thereby ensuring that the operation instruction can be accurately executed.
As an optional embodiment, in a case that the operation instruction is a drag operation instruction, the operation parameters in the drag operation instruction include a source parameter and a target parameter, the source parameter includes a location parameter of an initial location of the visual object, and the target parameter includes a location parameter of dragging the visual object to a target location, and after configuring the operation parameters in a predetermined parameter list according to the operation instruction, the embodiment may further include: an association is established between the source parameters, the target parameters and a predetermined list of parameters.
By adopting the embodiment of the invention, the association among the source parameters, the target parameters and the preset parameter list can be established, and further, under the condition of triggering the dragging instruction, the correspondence can be quickly made according to the association relation, so that the visual object can be quickly moved from the source position to the target position.
Alternatively, the association between the source parameter, the target parameter and the predetermined parameter list may be establishing a logical relationship between the source parameter, the target parameter and the predetermined parameter list, and controlling the execution logic of the source parameter, the target parameter and the predetermined parameter list.
According to still another embodiment of the present invention, there is also provided a storage medium including a stored program, wherein the program executes to perform any one of the operation processing methods described above.
According to still another embodiment of the present invention, there is also provided a processor configured to execute a program, where the program executes to perform any one of the operation processing methods described above.
The invention also provides a preferred embodiment, which provides a Gantt chart dragging operation processing framework.
The Gantt chart dragging operation processing framework provided by the invention comprises a logic model of the dragging operation processing framework.
To implement loosely coupled drag operation definitions and responses, the processing framework is designed in a configurable, adjustable parameter and contextual fashion to facilitate callback processing. The main logic model and related attributes are designed as follows:
table 1 shows a logical model of a drag-and-drop operation processing framework according to an embodiment of the present invention, and as shown in table 1, the attributes and methods of the logical model are represented by taking an operation instruction triggered by a mouse operation as an example, and a corresponding description is provided.
Figure BSA0000177179820000081
TABLE 1
According to the above embodiment of the present invention, the processing dispatcher is mainly responsible for sending mouse operations (operation instructions) to correct processing callbacks for updating the logical data sources. With this distribution service, both legitimate mouse operations (operating instructions) and corresponding processing methods can be easily extended to handle future more complex operations.
The special drawing operation processing framework provided by the invention can be maintained only in the view layer (interface layer) of the software, which means that the logical service data is not stored. The draggable information of the visualization instance is thus implemented through the connected logic in the logical model.
Fig. 2 is a schematic diagram of an action flow of a connection mechanism according to an embodiment of the present invention, and as shown in fig. 2, after a drag and drop operation is triggered, it may be determined whether a connection between the drag and drop operation and a predetermined callback function has been previously established, and if the connection is not established, the connection may be established, and then connection data is generated, and service data is generated according to the connection data, or adjustment of the connection is performed.
Alternatively, in the case where it is determined after the determination that the connection described above has been constructed, connection adjustment may be performed according to a drag and drop operation.
Alternatively, after the drag and drop operation is triggered, drag and drop operation data may be generated, and connection adjustment may be performed according to the drag and drop operation data.
Optionally, a source, a target and a parameter list are included in the associated data structure of the connection. Based on this information, a drag operation can be ultimately translated into details of business data adjustment. The following are typical time-dependent traffic types that the connection mechanism can handle:
1) creating type instances
If a time-dependent type is dragged from the data table into the Gantt chart, an instance definition for that type will be generated in the logical layer. For example, in planning software, dragging a resource from a data table to the Gantt chart timeline creates an instance data record of the resource in the data source. And simultaneously, creating a connection, recording the relation between the instance record and the time item, endowing the time item and the instance data in a reference mode, ensuring that the time item can be referred to the data record, and the time item can be referred to from the data record.
2) Time and span specification
The specification of the specific time of the time item and its span is usually realized by moving the whole time item or dragging the start position or the end position of the time item separately on the time axis. By the "adjust ()" method, if the start-stop time changes, the instance data records in the data source also change accordingly. By the "refresh ()" method, if the instance data record changes in the business calculation, the corresponding time item will also refresh its appearance in the gantt chart.
3) Temporal item demand description
The connection between the time item and its business logic can be accomplished through a specific business process (e.g., SQL transaction). The specific start-stop time of the time item, as well as its additional service attributes, may change during the processing of the service process and thus may not correspond to the initial details of its time item. For example, in a business planning software, a time item may represent a requirement for a job schedule, and at what time the requirement is ultimately met and how much time span is, depending on the objective situation of the resource, can only be finally determined by planning business calculations.
4) Entity time sequence definition
In planning software, specifying the precedence relationship of items at different times is a common business logic. For example, a connection may be used to specify that time item B must begin after time item A is completed.
5) Entity dependency definition
In addition to chronological relationships of time, the existence of time items may also depend on other conditions. Time items such as job classes typically require corresponding resource coverage support over the same period of time. A connection may be used to support the definition of such a dependency.
The relevant logic model of the operation processing framework provided by the invention comprises mouse operation, connection, processing callback, processing distributor and the like.
According to the technical scheme provided by the invention, the operation mode can be expanded by a software developer and a user; new operation types can be freely defined; the response mode of the operation can be freely defined; and the background business logic can be seamlessly integrated with various Gantt chart controls through a connection object, and the connection between the background business logic and the various Gantt chart controls is kept.
By using the technical scheme provided by the invention, the whole translation, the initial point dragging, the linking and the like of the time items in the Gantt chart are realized, so that the operation requirement adjustment, the duration adjustment, the dependency sequence adjustment and the like are realized, and the design of operation planning is greatly simplified.
According to an embodiment of the present invention, there is also provided an embodiment of a data processing apparatus, and it should be noted that the data processing apparatus may be configured to execute the data processing method in the embodiment of the present invention, and the data processing method in the embodiment of the present invention may be executed in the data processing apparatus.
Fig. 3 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention, as shown in fig. 3, the apparatus may include: the acquiring unit 31 is configured to acquire an operation instruction of a visualized object, where the visualized object includes a gantt chart and/or a data table corresponding to the gantt chart; a first determining unit 33, configured to determine a predetermined callback function corresponding to the operation instruction; and the execution unit 35 is configured to execute an adjustment action corresponding to the predetermined callback function on the visual object.
It should be noted that the obtaining unit 31 in this embodiment may be configured to execute step S102 in this embodiment, the first determining unit 33 in this embodiment may be configured to execute step S104 in this embodiment, and the executing unit 35 in this embodiment may be configured to execute step S106 in this embodiment. The modules are the same as the corresponding steps in the realized examples and application scenarios, but are not limited to the disclosure of the above embodiments.
In the embodiment of the invention, the operation instruction generated by the operation of the user on the visual object is obtained, the predetermined callback function corresponding to the operation instruction is determined, then controlling the visual object to execute corresponding adjustment action according to the preset callback function to complete the adjustment of the visual object, thereby setting corresponding predetermined callback functions for different operation instructions, enabling the visual object to respond to the operation instructions according to the predetermined callback functions corresponding to the operation instructions and execute the adjustment actions corresponding to the operation instructions, under the condition of adjusting the Gantt chart, by setting the preset callback functions corresponding to different operation instructions, can make the adjustment of the Gantt chart more flexible, realizes the technical effect of flexibly setting the operation instruction of the Gantt chart, and further solves the technical problem that the related operation of the existing Gantt chart can not be flexibly expanded and set.
As an alternative embodiment, the determining unit includes: the first determining module is used for determining an operation type corresponding to the operation instruction; and the second determining module is used for determining the preset callback function corresponding to the operation type.
As an alternative embodiment, the embodiment may further include: the second determining unit is used for determining a predetermined parameter list corresponding to the operation type after determining the operation type corresponding to the operation instruction, wherein the predetermined parameter list is used for transmitting the operation parameter corresponding to the operation instruction to a predetermined callback function corresponding to the operation type; and the configuration unit is used for configuring the operation parameters in the preset parameter list according to the operation instruction.
As an alternative embodiment, the embodiment may further include: and the distribution unit is used for distributing the operation instruction to the preset callback function corresponding to the operation type of the operation instruction after the preset callback function corresponding to the operation type is determined.
As an optional embodiment, in a case that the operation instruction is a drag operation instruction, the operation parameters in the drag operation instruction include a source parameter and a target parameter, the source parameter includes a location parameter of an initial location of the visualization object, and the target parameter includes a location parameter of dragging the visualization object to a target location, and the embodiment may further include: and the establishing unit is used for establishing the association among the source parameter, the target parameter and the predetermined parameter list after the operating parameters are configured in the predetermined parameter list according to the operating instruction.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and amendments can be made without departing from the principle of the present invention, and these modifications and amendments should also be considered as the protection scope of the present invention.

Claims (10)

1. An operation processing method, comprising:
acquiring an operation instruction of a visual object, wherein the visual object comprises a Gantt chart and/or a data table corresponding to the Gantt chart;
determining a preset callback function corresponding to the operation instruction;
executing an adjustment action corresponding to the preset callback function on the visual object;
the Gantt chart comprises at least one time item, wherein each time item corresponds to one data item in the data table;
wherein the operation instruction comprises a creation instruction of a time item, wherein the creation instruction is used for creating the time item in the Gantt chart;
the operation instructions comprise an adjusting instruction, wherein the adjusting instruction is used for adjusting time items and time spans of data items in the Gantt chart;
the operation instruction comprises an association establishing instruction used for establishing an association relation between a time item and a service, wherein the time item represents the time consumed by a certain service;
the operation instructions comprise a sequence establishing instruction for establishing a sequence relation between at least one time item, wherein at least one time item is executed according to a certain sequence;
the operation instructions comprise dependency creation instructions for building a dependency relationship between the time item and the entity.
2. The method of claim 1, wherein determining the predetermined callback function to which the operating instruction corresponds comprises:
determining an operation type corresponding to the operation instruction;
and determining a preset callback function corresponding to the operation type.
3. The method of claim 2, wherein after determining the operation type corresponding to the operation instruction, the method further comprises:
determining a predetermined parameter list corresponding to the operation type, wherein the predetermined parameter list is used for transmitting the operation parameter corresponding to the operation instruction to the predetermined callback function corresponding to the operation type;
and configuring the operating parameters in the preset parameter list according to the operating instructions.
4. The method of claim 2, wherein after determining the predetermined callback function corresponding to the operation type, the method further comprises:
and distributing the operation instruction to the preset callback function corresponding to the operation type of the operation instruction.
5. The method according to claim 3, wherein in a case that the operation instruction is a drag operation instruction, the operation parameters in the drag operation instruction include a source parameter and a target parameter, the source parameter includes a position parameter of an initial position of the visual object, the target parameter includes a position parameter of dragging the visual object to a target position, and after configuring the operation parameters in the predetermined parameter list according to the operation instruction, the method further includes:
establishing an association between the source parameters, the target parameters and the predetermined parameter list.
6. An operation processing apparatus characterized by comprising:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring an operation instruction of a visual object, and the visual object comprises a Gantt chart and/or a data table corresponding to the Gantt chart;
the first determining unit is used for determining a preset callback function corresponding to the operation instruction;
the execution unit is used for executing an adjusting action corresponding to the preset callback function on the visual object;
the Gantt chart comprises at least one time item, wherein each time item corresponds to one data item in the data table;
wherein the operation instruction comprises a creation instruction of a time item, wherein the creation instruction is used for creating the time item in the Gantt chart;
the operation instructions comprise an adjusting instruction, wherein the adjusting instruction is used for adjusting time items and time spans of data items in the Gantt chart;
the operation instruction comprises an association establishing instruction used for establishing an association relation between a time item and a service, wherein the time item represents the time consumed by a certain service;
the operation instructions comprise a sequence establishing instruction for establishing a sequence relation between at least one time item, wherein at least one time item is executed according to a certain sequence;
the operation instructions comprise dependency creation instructions for building a dependency relationship between the time item and the entity.
7. The apparatus of claim 6, wherein the determining unit comprises:
the first determining module is used for determining the operation type corresponding to the operation instruction;
and the second determining module is used for determining the preset callback function corresponding to the operation type.
8. The apparatus of claim 7, further comprising:
a second determining unit, configured to determine, after determining an operation type corresponding to the operation instruction, a predetermined parameter list corresponding to the operation type, where the predetermined parameter list is used to transmit an operation parameter corresponding to the operation instruction to the predetermined callback function corresponding to the operation type;
and the configuration unit is used for configuring the operation parameters in the preset parameter list according to the operation instruction.
9. The apparatus of claim 7, further comprising:
the distribution unit is configured to distribute the operation instruction to the predetermined callback function corresponding to the operation type of the operation instruction after determining the predetermined callback function corresponding to the operation type.
10. The apparatus according to claim 8, wherein in a case that the operation instruction is a drag operation instruction, the operation parameters in the drag operation instruction include a source parameter and a destination parameter, the source parameter includes a location parameter of an initial location of the visualization object, the destination parameter includes a location parameter of dragging the visualization object to a destination location, the apparatus further comprises:
an establishing unit, configured to establish an association between the source parameter, the target parameter, and the predetermined parameter list after configuring the operating parameter in the predetermined parameter list according to the operating instruction.
CN201910014011.8A 2019-01-08 2019-01-08 Operation processing method and device Active CN109918157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910014011.8A CN109918157B (en) 2019-01-08 2019-01-08 Operation processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910014011.8A CN109918157B (en) 2019-01-08 2019-01-08 Operation processing method and device

Publications (2)

Publication Number Publication Date
CN109918157A CN109918157A (en) 2019-06-21
CN109918157B true CN109918157B (en) 2022-05-10

Family

ID=66960209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910014011.8A Active CN109918157B (en) 2019-01-08 2019-01-08 Operation processing method and device

Country Status (1)

Country Link
CN (1) CN109918157B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112363790B (en) * 2020-11-11 2022-11-29 北京字跳网络技术有限公司 Table view display method and device and electronic equipment
CN112766919A (en) * 2021-01-27 2021-05-07 意潜建筑科技(上海)有限公司 Project management method for deep editing based on Gantt chart
CN113485610A (en) * 2021-05-08 2021-10-08 北京易成时代科技有限公司 Gantt chart dependency relationship technical method based on position calculation

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414221A (en) * 2008-10-31 2009-04-22 深圳市神舟电脑股份有限公司 Method for implementing user-defined function of keyboard shortcut key
CN101692206A (en) * 2009-08-28 2010-04-07 腾讯科技(深圳)有限公司 Method for adding dynamic parameters to static callback function and related realization
CN102375740A (en) * 2010-08-26 2012-03-14 上海科泰世纪科技有限公司 Handheld device and method for implementing interoperation of Java component and custom member by same
CN102508650A (en) * 2011-09-28 2012-06-20 奇智软件(北京)有限公司 Method and device for starting browser extended application as well as browser
CN103377059A (en) * 2012-04-23 2013-10-30 阿里巴巴集团控股有限公司 Function module dynamic loading method and device based on jQuery framework
CN105279600A (en) * 2014-06-05 2016-01-27 株式会社日立制作所 Label extension giving method in process management system
CN105718784A (en) * 2014-12-05 2016-06-29 航天信息股份有限公司 Gesture unlocking implementation method based on Javascript
CN106294822A (en) * 2016-08-17 2017-01-04 国网上海市电力公司 A kind of electric power data visualization system
CN106484548A (en) * 2016-10-20 2017-03-08 济南浪潮高新科技投资发展有限公司 A kind of choreography request response processing method based on asynchronism callback mechanism
CN107340955A (en) * 2017-07-07 2017-11-10 广州优视网络科技有限公司 The method and apparatus for obtaining the positional information after change in location of the view on screen

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9081466B2 (en) * 2012-09-10 2015-07-14 Sap Se Dynamic chart control that triggers dynamic contextual actions
CN102981842B (en) * 2012-11-08 2015-06-10 北京空间飞行器总体设计部 Method of generating interactive Gantt chart
CN103186405B (en) * 2013-02-25 2016-05-11 北京网御星云信息技术有限公司 A kind of unified control method and device of realizing equipment
CN105069822A (en) * 2015-08-07 2015-11-18 金蝶软件(中国)有限公司 Gantt chart processing method and apparatus
CN106970802B (en) * 2017-04-25 2024-04-09 北京航天飞行控制中心 Method and device for integrating programming script language in domain-specific language
CN108287721A (en) * 2017-08-17 2018-07-17 北京微应软件科技有限公司 A kind of method for controlling mobile terminal and device
CN108744514B (en) * 2018-05-18 2021-08-06 腾讯科技(深圳)有限公司 Sliding list generation method, data display device and storage medium
CN108920146A (en) * 2018-06-05 2018-11-30 广州衡昊数据科技有限公司 Page control assembly and visual Simulation operating system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414221A (en) * 2008-10-31 2009-04-22 深圳市神舟电脑股份有限公司 Method for implementing user-defined function of keyboard shortcut key
CN101692206A (en) * 2009-08-28 2010-04-07 腾讯科技(深圳)有限公司 Method for adding dynamic parameters to static callback function and related realization
CN102375740A (en) * 2010-08-26 2012-03-14 上海科泰世纪科技有限公司 Handheld device and method for implementing interoperation of Java component and custom member by same
CN102508650A (en) * 2011-09-28 2012-06-20 奇智软件(北京)有限公司 Method and device for starting browser extended application as well as browser
CN103377059A (en) * 2012-04-23 2013-10-30 阿里巴巴集团控股有限公司 Function module dynamic loading method and device based on jQuery framework
CN105279600A (en) * 2014-06-05 2016-01-27 株式会社日立制作所 Label extension giving method in process management system
CN105718784A (en) * 2014-12-05 2016-06-29 航天信息股份有限公司 Gesture unlocking implementation method based on Javascript
CN106294822A (en) * 2016-08-17 2017-01-04 国网上海市电力公司 A kind of electric power data visualization system
CN106484548A (en) * 2016-10-20 2017-03-08 济南浪潮高新科技投资发展有限公司 A kind of choreography request response processing method based on asynchronism callback mechanism
CN107340955A (en) * 2017-07-07 2017-11-10 广州优视网络科技有限公司 The method and apparatus for obtaining the positional information after change in location of the view on screen

Also Published As

Publication number Publication date
CN109918157A (en) 2019-06-21

Similar Documents

Publication Publication Date Title
CN109918157B (en) Operation processing method and device
CA2932644C (en) Data processor for project data
US8285838B2 (en) Hierarchical management of realtime edge processor
US9274757B2 (en) Customer tailored release master plan generation for hybrid networked solutions
CN109739937B (en) Method, device, equipment and storage medium for displaying path in knowledge graph
US9632802B2 (en) Automatic configuration of mobile programs
CN103778178A (en) Method and system for reconfiguring snapshot of virtual machine (VM)
JP5681939B2 (en) Form providing device, form providing method, and program
JP2004227359A (en) Operation management method for storage system based on policy
JP2007184914A (en) Method, system and program for comparing topologies (topology comparison)
JP2010146306A (en) Configuration monitoring system and configuration monitoring method
CN102523242B (en) Goal state communication in computer clusters
US20060041440A1 (en) Method, system and program product for managing a project
Braun et al. Piloting a mobile-app ecosystem for smart farming
US9021017B2 (en) Configuring a plurality of diverse devices/services from an adaptive configuration control hyper-server apparatus
US9977726B2 (en) System and method for smart framework for network backup software debugging
US20170264709A1 (en) Media intelligence suite
EP3588300B1 (en) System and method for backup topology map
US10997564B2 (en) Electronic change planning manager
JP6351295B2 (en) Display control apparatus and display control method
KR20120011574A (en) Distributed file management apparatus and method
CN113656095B (en) Processing method and device for configuration data
JP2017120453A (en) Plan management system, method, and recording medium
JP2017102694A (en) Gantt chart generation program, gantt chart generation apparatus and gantt charge generation method
JP6746003B2 (en) Management device, management method and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant