Organizational structure adjusting system and method of visual scheduling system

By introducing an organizational structure adjustment system into the visual scheduling system, dynamically generating and adjusting basic data units, the problems of rigid and complex organizational structure management of mesh equipment in the existing technology are solved, and flexible allocation and unbinding of equipment and organizational structures are realized, and the flexibility and operation efficiency of the system are improved.

CN119692685APending Publication Date: 2025-03-25SHANGHAI GBCOM COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411753865.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

The prior art has problems such as rigid, complex and inefficient organizational structure management of mesh equipment, which is difficult to meet the needs of expanding equipment scale and dynamic adjustment.

Method used

It provides an organizational structure adjustment system for visual scheduling systems. Through the creation of new modules, allocation modules, unbinding modules and user allocation modules, the basic data units are dynamically generated and their types are adjusted to realize the flexible allocation and unbinding of equipment and organizational structures.

Benefits of technology

It realizes flexible creation and adjustment of equipment and organizational structures, breaks the traditional four-level organizational structure limitations, supports unlimited levels and custom names, simplifies operational processes, and improves work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119692685A_ABST
    Figure CN119692685A_ABST
Patent Text Reader

Abstract

The invention provides an organizational structure adjustment system of a visual scheduling system, and relates to the technical field of equipment management, comprising the following steps: adjusting the type of a basic data unit by setting an identifier of the basic data unit to obtain equipment or an organizational structure, and allocating the equipment or the organizational structure to a pre-configured unallocated organizational structure; the distribution of each device and the distribution of each organization structure are carried out; for each organizational structure, changing the parent class ID of the to-be-unbound device under the organizational structure into the structure ID of the unallocated organizational structure to complete device unbinding, and changing the parent class ID of the to-be-unbound organizational structure under the organizational structure into the structure ID of the unallocated organizational structure to complete structure unbinding; and for each pre-configured user, associating the architecture ID of the to-be-allocated organizational architecture with the user so as to allocate the to-be-allocated organizational architecture to the user. The method has the advantages that creation and modification are not limited by a preset fixed mode any more, flexible adjustment can be carried out according to actual requirements, and the flexibility and adaptability of the system are greatly enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of equipment management, and in particular to an organizational structure adjustment system and method for a visual scheduling system. Background Art

[0002] As an efficient management tool, the visual dispatch platform is widely used in the management and operation of mesh devices, especially in frontline work such as firefighting and rescue. The real-time voice and video functions it provides greatly improve the efficiency and accuracy of command and dispatch. The core functions of the platform cover the management and configuration of mesh devices, individual video preview and voice control, and information management of video devices, such as device restart, factory reset and parameter modification.

[0003] However, existing technologies have significant limitations in the management of mesh devices. The traditional management method of device organizational structure is relatively rigid, and usually the organization to which the device belongs is pre-set in the device attributes, such as a certain province, a certain city, and a certain team. Once the device is online, its organizational relationship remains fixed. This fixed organizational structure model may be able to cope with the situation where the number of devices is small and changes are not frequent, but as the scale of devices expands and the demand for dynamic adjustment increases, its disadvantages gradually become apparent.

[0004] Specifically, if the organizational structure of a device needs to be adjusted, the traditional method often requires the administrator to go to the device side in person to make changes, which is complicated and inefficient. In addition, the organizational structure defined by most current systems is usually multi-level, and devices can only be mounted at the last level. This design limits the diversity and flexibility of the organizational structure and is difficult to meet the actual needs in different scenarios.

[0005] In summary, the existing technology has obvious defects in the management of mesh device organizational structure, and a more flexible and efficient solution is urgently needed to cope with the increasingly complex and changeable device management needs. Summary of the invention

[0006] In view of the problems existing in the prior art, the present invention provides an organizational structure adjustment system for a visual scheduling system, comprising:

[0007] A new creation module, used to generate a basic data unit when a new device is entered or a new organizational structure is established, adjust the type of the basic data unit by setting the identifier of the basic data unit to obtain the device or the organizational structure, and assign the device or the organizational structure to a pre-configured unassigned organizational structure, and then set the device type associated with the device;

[0008] an allocation module, connected to the new creation module, for changing the parent class ID of each device in the unallocated organizational structure to the architecture ID of the organizational structure to be allocated, thereby completing the allocation of each device, and changing the parent class ID of the organizational structure to be allocated to the architecture ID of the organizational structure to be allocated, thereby completing the allocation of each organizational structure;

[0009] An unbinding module, connected to the allocation module, for each of the organizational structures, changing the parent class ID of the device to be unbound under the organizational structure to the architecture ID of the unallocated organizational structure to complete device unbinding, and changing the parent class ID of the organizational structure to be unbound under the organizational structure to the architecture ID of the unallocated organizational structure to complete architecture unbinding;

[0010] A user allocation module is connected to the allocation module and is used to associate the architecture ID of the organizational architecture to be allocated with each pre-configured user, so as to allocate the organizational architecture to be allocated to the user.

[0011] Preferably, the visual scheduling system includes an organizational structure table and an architecture equipment table, the fields in the basic data unit include a parent class ID, a primary key ID and an identifier, and the new module includes:

[0012] A structure establishment unit is used for, when it is necessary to newly construct the organizational structure, adding the basic data unit to the organizational structure table and generating the primary key ID, and setting the identifier to a first identification value, so as to construct the organizational structure, and then using the primary key ID as the structure ID of the organizational structure, and setting the parent class ID in the organizational structure as the structure ID of the unassigned organizational structure, so as to assign the newly constructed organizational structure to the unassigned organizational structure;

[0013] A new device creation unit is used to add the basic data unit to the organizational structure table and generate the primary key ID when any device is first connected to the visual scheduling system, and to set the identifier to a second identification value to enter the device, and then set the parent class ID in the device to the architecture ID of the unassigned organizational structure to assign the newly entered device to the unassigned organizational structure, and then generate a basic device unit associated with the device in the architecture device table, and set the device type of the basic device unit.

[0014] Preferably, the equipment new construction unit includes:

[0015] an association subunit, configured to set the association ID in the basic device unit as the primary key ID of the device and set the architecture parent class ID of the basic device unit as the parent class ID of the device, so as to associate the basic device unit with the device;

[0016] The attribute setting subunit is used to obtain the device type of the device connected to the visual scheduling system as the device type in the basic device unit.

[0017] Preferably, the device accessing the visual scheduling system includes a mesh device or an Android device, the mesh device accesses the visual scheduling system via TCP or UDP, and the Android device accesses the visual scheduling system via websocket.

[0018] Preferably, the organizational structure includes a primary structure and a hierarchical structure, and the allocation module includes:

[0019] an architecture allocation unit, configured to set the parent class ID of the organizational structure under the unallocated organizational structure to its own architecture ID to obtain the primary architecture, and to change the parent class ID of the organizational structure under the unallocated organizational structure to the architecture ID of the primary architecture to be allocated as the hierarchical architecture of the primary architecture, and to change the parent class ID of the organizational structure under the unallocated organizational structure to the architecture ID of the hierarchical architecture to be allocated as the hierarchical architecture of the hierarchical architecture;

[0020] A device allocation unit is used to change the parent class ID of the device under the unallocated organizational structure to the architecture ID of the first-level architecture to be allocated, as a device under the first-level architecture, and to change the parent class ID of the device under the unallocated organizational structure to the architecture ID of the hierarchical architecture to be allocated, as a device under the hierarchical architecture.

[0021] Preferably, the visual scheduling system further includes a user table, wherein the user table includes user data units of multiple users, and each user data unit includes a binding organization structure list; the user allocation module includes:

[0022] A user allocation unit, configured to add, for each of the users, a structure ID of the organizational structure to be allocated to a bound organizational structure list of a user data unit corresponding to the user, so as to allocate the organizational structure to be allocated to the user;

[0023] The user unbinding unit is used to remove the structure ID of the organizational structure to be unbound from the bound organizational structure list of the user data unit corresponding to the user for each user, so as to complete the unbinding.

[0024] Preferably, the basic data unit further includes a sorting field, and the hierarchical organizational structures and the devices under the same primary organizational structure or the same hierarchical organizational structure are sorted according to the sorting field.

[0025] The present invention also provides an organizational structure adjustment method for a visual scheduling system, which is applied to the above-mentioned organizational structure adjustment system, and comprises:

[0026] Step S1, the organizational structure adjustment system generates a basic data unit when a new device is entered or a new organizational structure is established, adjusts the type of the basic data unit by setting an identifier of the basic data unit to obtain the device or the organizational structure, and allocates the device or the organizational structure to a pre-configured unallocated organizational structure, and then sets the device type associated with the device;

[0027] Step S2, the organizational structure adjustment system changes the parent class ID of each device in the unallocated organizational structure to the architecture ID of the organizational structure to be allocated, thereby completing the allocation of each device, and changes the parent class ID of the organizational structure to be allocated to the architecture ID of the organizational structure to be allocated, thereby completing the allocation of each organizational structure;

[0028] Step S3, the organizational structure adjustment system changes the parent class ID of the device to be unbound under the organizational structure to the architecture ID of the unassigned organizational structure for each organizational structure to complete device unbinding, and changes the parent class ID of the organizational structure to be unbound under the organizational structure to the architecture ID of the unassigned organizational structure to complete architecture unbinding;

[0029] Step S4: the organizational structure adjustment system associates the structure ID of the organizational structure to be allocated with each pre-configured user, so as to allocate the organizational structure to be allocated to the user.

[0030] Preferably, the visual scheduling system includes an organizational structure table and an architecture device table, the fields in the basic data unit include a parent class ID, a primary key ID and an identifier, and the step S1 includes:

[0031] Step S11, when the organizational structure needs to be newly constructed, the organizational structure adjustment system adds the basic data unit to the organizational structure table and generates the primary key ID, and sets the identifier to the first identification value to construct the organizational structure, and then uses the primary key ID as the structure ID of the organizational structure, and sets the parent class ID in the organizational structure to the structure ID of the unassigned organizational structure, so as to assign the newly constructed organizational structure to the unassigned organizational structure;

[0032] Step S12, when any device is first connected to the visual scheduling system, the organizational structure adjustment system adds the basic data unit to the organizational structure table and generates the primary key ID, and sets the identifier to the second identification value to enter the device, and then sets the parent class ID in the device to the architecture ID of the unassigned organizational structure to assign the newly entered device to the unassigned organizational structure, and then generates a basic equipment unit associated with the device in the architecture equipment table, and sets the equipment type of the basic equipment unit.

[0033] Preferably, the step S12 comprises:

[0034] Step S121, the organizational structure adjustment system sets the association ID in the basic equipment unit as the primary key ID of the equipment, and sets the architecture parent class ID of the basic equipment unit as the parent class ID of the equipment, so as to associate the basic equipment unit with the equipment;

[0035] Step S122: the organizational structure adjustment system obtains the device type of the device connected to the visual scheduling system as the device type in the basic device unit.

[0036] The above technical solution has the following advantages or beneficial effects:

[0037] 1. The system in this embodiment allows dynamic generation of basic data units through new modules, and adjusts its type as needed to form a device or organizational structure. This flexibility makes the creation and modification of devices or organizational structures no longer limited to preset fixed modes, but can be flexibly adjusted according to actual needs.

[0038] 2. The limitation of the traditional four-level organizational structure is broken, allowing the reallocation of devices and organizational structures by changing the parent category ID, thereby achieving unlimited levels and custom names of the organizational structure, greatly enhancing the flexibility and adaptability of the system.

[0039] 3. The allocation module can quickly allocate devices and organizational structures through simple ID change operations, without the need for management personnel to go to the device side to make changes in person, which greatly simplifies the operation process and improves work efficiency. The unbinding module also unbinds devices and organizational structures through ID changes, making the adjustment of organizational structures more convenient. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a structural diagram of an organizational structure adjustment system of a visual scheduling system in a preferred embodiment of the present invention;

[0041] Figure 2It is a schematic diagram of the structure of the organization structure table, the structure equipment table and the user table in a preferred embodiment of the present invention;

[0042] Figure 3 It is a flow chart of a method for adjusting the organizational structure of a visual scheduling system in a preferred embodiment of the present invention;

[0043] Figure 4 A schematic diagram of a sub-process of step S1 in a preferred embodiment of the present invention;

[0044] Figure 5 This is a schematic diagram of a sub-process of step S12 in a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0045] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. The present invention is not limited to this embodiment, and other embodiments may also fall within the scope of the present invention as long as they conform to the gist of the present invention.

[0046] In a preferred embodiment of the present invention, based on the above problems existing in the prior art, a system for adjusting the organizational structure of a visual scheduling system is provided, comprising:

[0047] New module 1, used to generate a basic data unit when a new device is entered or a new organizational structure is established, adjust the type of the basic data unit by setting the identifier of the basic data unit to obtain the device or organizational structure, and assign the device or organizational structure to the pre-configured unassigned organizational structure, and then set the device type associated with the device;

[0048] The allocation module 2 is connected to the new module 1 and is used to change the parent class ID of each device in the unallocated organizational structure to the architecture ID of the organizational structure to be allocated, thereby completing the allocation of each device, and to change the parent class ID of the organizational structure to be allocated to the architecture ID of the organizational structure to be allocated, thereby completing the allocation of each organizational structure;

[0049] The unbinding module 3 is connected to the allocation module 2 and is used for, for each organizational structure, changing the parent class ID of the device to be unbound under the organizational structure to the architecture ID of the unallocated organizational structure to complete the device unbinding, and changing the parent class ID of the organizational structure to be unbound under the organizational structure to the architecture ID of the unallocated organizational structure to complete the architecture unbinding;

[0050] The user allocation module 4 is connected to the allocation module 2 and is used for associating the structure ID of the to-be-allocated organizational structure with the user for each pre-configured user, so as to allocate the to-be-allocated organizational structure to the user.

[0051] Specifically, the system in this embodiment allows dynamic generation of basic data units through new modules, and adjusts its type as needed to form a device or organizational structure. This flexibility makes the creation and modification of devices or organizational structures no longer limited to preset fixed modes, but can be flexibly adjusted according to actual needs.

[0052] The traditional four-level organizational structure limitation is broken, allowing the reallocation of devices and organizational structures by changing the parent category ID, thereby achieving unlimited levels and custom names of the organizational structure, greatly enhancing the flexibility and adaptability of the system.

[0053] The allocation module can quickly allocate equipment and organizational structures through simple ID change operations, without the need for management personnel to go to the equipment side to make modifications in person, greatly simplifying the operation process and improving work efficiency.

[0054] The unbinding module also unbinds devices and organizational structures through ID changes, making organizational structure adjustments more convenient.

[0055] The system architecture design makes operations such as adding, deleting, and modifying devices and organizational structures simple and fast, providing strong support for the scalability of the system.

[0056] At the same time, since the system adopts a modular design, each module is relatively independent, which facilitates maintenance and upgrades, reducing the maintenance cost of the system.

[0057] It can flexibly respond to organizational structure requirements in different scenarios. Whether it is a simple hierarchical structure or a complex mesh structure, it can be achieved by adjusting the parent class ID.

[0058] In addition, the system also supports users to customize the organizational structure name, further meeting the personalized needs of users.

[0059] In summary, the system in this embodiment is superior to traditional technologies in terms of flexibility, ease of operation, scalability and maintainability, and can effectively solve the defects of existing technologies in mesh device organizational structure management and meet the increasingly complex and changeable device management needs.

[0060] In a preferred embodiment of the present invention, the visual scheduling system includes an organizational structure table and an architecture device table, the fields in the basic data unit include a parent class ID, a primary key ID and an identifier, and the new module 1 includes:

[0061] The structure establishment unit 11 is used for adding a basic data unit to the organizational structure table and generating a primary key ID, and setting the identifier to a first identification value to construct the organizational structure when a new organizational structure needs to be constructed, and then using the primary key ID as the structure ID of the organizational structure, and setting the parent class ID in the organizational structure to the structure ID of the unassigned organizational structure, so as to assign the newly constructed organizational structure to the unassigned organizational structure;

[0062] The device creation unit 12 is used to add a basic data unit to the organizational structure table and generate a primary key ID when any device is first connected to the visual scheduling system, and set the identifier to the second identification value to enter the device, and then set the parent class ID in the device to the architecture ID of the unassigned organizational structure to assign the newly entered device to the unassigned organizational structure, and then generate a basic device unit associated with the device in the architecture device table, and set the device type of the basic device unit.

[0063] Specifically, in the organizational structure adjustment system of this embodiment, the new module generates a basic data unit, distinguishes the device and organizational structure through the identifier, and uniformly allocates it to the unallocated organizational structure. This solves the problem of lack of unified representation and management of different devices or organizational structures in the system. Through the basic data unit, all elements can be processed in the same way, simplifying the complexity of the system.

[0064] To make the data more concrete and easier to understand, refer to Figure 2 It is a schematic diagram of the organizational structure table and the architecture device table in this embodiment, as well as the basic data units, the devices that have been entered, and the organizational structure that has been constructed;

[0065] from Figure 2 It can be seen that the data structures of the basic data unit, the entered equipment and the constructed organizational structure are the same. The difference is that the identifier of the organizational structure is the first identification value (set to 0 in this embodiment), and the identifier of the equipment is the second identification value (set to 1 in this embodiment). When constructing a new entered device or establishing a new organizational structure, the value of the identifier can be set according to the needs to distinguish the entered device or establish the organizational structure; the system configures an unassigned organizational structure with a primary key ID = 9 by default. All newly entered equipment and newly constructed organizational structures will set the parent class ID to the primary key ID = 9 of the unassigned organizational structure by default. Furthermore, the allocation module is responsible for allocating equipment and organizational structures to the specified organizational structure, and the unbinding module is responsible for removing equipment and sub-organizational structures from the current organizational structure. It solves the problem that the reallocation and unbinding operations of equipment and organizational structures are complicated and error-prone when the organizational structure is adjusted. Through the automated allocation and unbinding process, the accuracy and efficiency of the operation are improved.

[0066] Furthermore, in a preferred embodiment of the present invention, the equipment new creation unit 12 includes:

[0067] An association subunit 121, used to set the association ID in the basic device unit to the primary key ID of the device, and set the architecture parent class ID of the basic device unit to the parent class ID of the device, so as to associate the basic device unit with the device;

[0068] The attribute setting subunit 122 is used to obtain the device type of the device connected to the visual scheduling system as the device type in the basic device unit.

[0069] More specifically, Figure 2 A device has been entered and an organizational structure has been built. For the entered device, its primary key in the organizational structure table is 2, and its parent class ID is 1 (the primary key represents the unique index of the device in the organizational structure table, which is automatically incremented when generating basic data units. The parent class ID indicates which organizational structure the device belongs to). This means that the device belongs to the organizational structure with primary key ID = 1. A basic device unit is generated in the architecture device, and its associated ID is set to the primary key ID = 2 of the device in the organizational structure table (indicated by the arrow) to associate the two. Subsequently, the device ID of the basic device unit is set (the device connected to the visual scheduling system is a physical device, and the physical device has its own inherent device ID). The device type of the device connected to the visual scheduling system is further used as the device type in the basic device unit to complete the entry of the device and the type and parameter settings.

[0070] The primary keys of the basic data unit and the basic equipment unit are two sets of independent IDs, which are not interoperable and are used to represent their unique indexes in the corresponding data tables.

[0071] In a preferred embodiment of the present invention, the device accessing the visual scheduling system includes a mesh device or an Android device, the mesh device accesses the visual scheduling system via TCP or UDP, and the Android device accesses the visual scheduling system via websocket.

[0072] Specifically, in this embodiment, the system supports mesh devices and Android devices, which access the system through different access methods (TCP / UDP, websocket). This solves the problem of compatibility and management difficulty of different devices and access methods in the system. By supporting multiple devices and access methods, the system can adapt to different application scenarios and needs more flexibly.

[0073] In a preferred embodiment of the present invention, the organizational structure includes a primary structure and a hierarchical structure, and the allocation module 2 includes:

[0074] The architecture allocation unit 21 is used to set the parent class ID of the organizational structure under the unallocated organizational structure to its own architecture ID to obtain a first-level architecture, and to change the parent class ID of the organizational structure under the unallocated organizational structure to the architecture ID of the first-level architecture to be allocated as a hierarchical architecture of the first-level architecture, and to change the parent class ID of the organizational structure under the unallocated organizational structure to the architecture ID of the hierarchical architecture to be allocated as a hierarchical architecture of the hierarchical architecture;

[0075] The device allocation unit 22 is used to change the parent class ID of the device under the unallocated organizational structure to the architecture ID of the first-level architecture to be allocated, as the device under the first-level architecture, and to change the parent class ID of the device under the unallocated organizational structure to the architecture ID of the hierarchical architecture to be allocated, as the device under the hierarchical architecture.

[0076] Specifically, in this embodiment, refer to Figure 2 There are two devices and two organizational structures, among which the organizational structure with primary key ID=1 and parent class ID=its own primary key ID is a first-level structure, and the organizational structure with primary key ID=3 and parent class ID=1 is a hierarchical structure under the first-level structure with primary key ID=1. A device (primary key ID=2) and a hierarchical structure (primary key ID=3) are mounted under the first-level structure at the same time, and a device (primary key ID=4) is also mounted under the hierarchical structure (primary key ID=3), all of which are achieved by modifying the parent class ID of the device or organizational structure through the allocation module.

[0077] When removing a device from the previously assigned organizational structure, it is only necessary to modify its parent class ID to the primary key ID of the unassigned organizational structure = 9.

[0078] The allocation module supports the management of primary and hierarchical structures, allowing users to create and allocate organizational structures of different levels as needed. This solves the problem of complex organizational structures in large systems that are difficult to manage and maintain. Through hierarchical management, the hierarchical relationship of the organizational structure can be displayed more clearly, making it easier for users to manage and operate. In this embodiment, a hierarchical structure and a device can be mounted under one organizational structure at the same time, which has higher flexibility than the traditional architecture that can only mount the organizational structure but not the device and the organizational structure at the same time.

[0079] And when the allocation and modification of the equipment or organizational structure are made, the data will be automatically updated synchronously, that is, the data at the end of the arrow in the figure will be automatically synchronized to the data pointed by the arrow.

[0080] In a preferred embodiment of the present invention, the visual scheduling system further includes a user table, which includes user data units of multiple users, each of which includes a binding organization structure list; the user allocation module 4 includes:

[0081] The user allocation unit 41 is used to add the structure ID of the organizational structure to be allocated to the bound organizational structure list of the user data unit corresponding to the user for each user, so as to allocate the organizational structure to be allocated to the user;

[0082] The user unbinding unit 42 is used to remove the structure ID of the organizational structure to be unbound from the bound organizational structure list of the user data unit corresponding to the user for each user, so as to complete the unbinding.

[0083] Specifically, refer to Figure 2 , also includes a user table, which adds the primary key IDs of different organizational structures to the bound organizational structure list of the user data unit, indicating that both the primary structure (primary key ID = 1) and the hierarchical structure (primary key ID = 3) are assigned to the user, and the user has full permissions to manage, view, and modify the organizational structure. When unbinding the organizational structure and the user, delete the primary key ID of the organizational structure from the bound organizational structure list of the original user data unit. A user can be assigned multiple organizational structures, and an organizational structure can also be assigned to multiple users, and there is no level restriction on the structure. When there is a change in the allocation of devices or organizational structures in the organizational structure to which the user has been assigned, the user's management permissions for the organizational structure will be automatically updated without manual settings.

[0084] In a preferred embodiment of the present invention, the basic data unit also includes a sorting field, and each hierarchical organizational structure and each device under the same primary organizational structure or the same hierarchical organizational structure are sorted according to the sorting field.

[0085] Specifically, in this embodiment, the basic data unit includes a sorting field for sorting the organizational structure or devices at the same level. Figure 2 , both the device (primary key ID = 2) and the organization structure (primary key ID = 3) are assigned to the organization structure (primary key ID = 1), but due to the order of creation time, the organization structure (primary key ID = 3) is ranked (2) after the device (primary key ID = 2) (1).

[0086] Solved the problem of lack of order in displaying organizational structures and devices. By sorting fields, it is possible to ensure that organizational structures and devices are displayed in a certain order, improving the readability and ease of use of the user interface.

[0087] The present invention also provides a method for adjusting the organizational structure of a visual scheduling system, which is applied to the above-mentioned organizational structure adjustment system. Figure 3 As shown, including:

[0088] Step S1, the organizational structure adjustment system generates a basic data unit when a new device is entered or a new organizational structure is established, adjusts the type of the basic data unit by setting the identifier of the basic data unit to obtain a device or organizational structure, and allocates the device or organizational structure to a pre-configured unallocated organizational structure, and then sets the device type associated with the device;

[0089] Step S2, the organizational structure adjustment system changes the parent class ID of each device in the unassigned organizational structure to the architecture ID of the organizational structure to be assigned, thereby completing the assignment of each device, and changes the parent class ID of the organizational structure to be assigned to the architecture ID of the organizational structure to be assigned, thereby completing the assignment of each organizational structure;

[0090] Step S3, the organizational structure adjustment system changes the parent class ID of the device to be unbound under the organizational structure to the architecture ID of the unassigned organizational structure for each organizational structure to complete the device unbinding, and changes the parent class ID of the organizational structure to be unbound under the organizational structure to the architecture ID of the unassigned organizational structure to complete the architecture unbinding;

[0091] Step S4, the organizational structure adjustment system associates the structure ID of the organizational structure to be allocated with the user for each pre-configured user, so as to allocate the organizational structure to be allocated to the user.

[0092] In a preferred embodiment of the present invention, the visual scheduling system includes an organizational structure table and an architectural device table, and the fields in the basic data unit include a parent class ID, a primary key ID, and an identifier, such as Figure 4 As shown, step S1 includes:

[0093] Step S11, when the organizational structure adjustment system needs to construct a new organizational structure, it adds a basic data unit to the organizational structure table and generates a primary key ID, and sets the identifier to the first identification value to construct the organizational structure, and then uses the primary key ID as the structure ID of the organizational structure, and sets the parent class ID in the organizational structure to the structure ID of the unassigned organizational structure, so as to assign the newly constructed organizational structure to the unassigned organizational structure;

[0094] Step S12, when any device is first connected to the visual scheduling system, the organizational structure adjustment system adds a new basic data unit to the organizational structure table and generates a primary key ID, and sets the identifier to the second identification value to enter the device, and then sets the parent class ID in the device to the architecture ID of the unassigned organizational structure to assign the newly entered device to the unassigned organizational structure, and then generates a basic equipment unit associated with the device in the architecture equipment table, and sets the equipment type of the basic equipment unit.

[0095] In a preferred embodiment of the present invention, Figure 5 As shown, step S12 includes:

[0096] Step S121, the organizational structure adjustment system sets the association ID in the basic equipment unit as the primary key ID of the equipment, and sets the architecture parent class ID of the basic equipment unit as the parent class ID of the equipment, so as to associate the basic equipment unit with the equipment;

[0097] Step S122: the organizational structure adjustment system obtains the device type of the device connected to the visual scheduling system as the device type in the basic device unit.

[0098] The above are only preferred embodiments of the present invention, and are not intended to limit the implementation methods and protection scope of the present invention. Those skilled in the art should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the contents of this specification and illustrations should be included in the protection scope of the present invention.

Claims

1. An organizational structure adjustment system for a visual scheduling system, characterized in that: include: A new creation module, used to generate a basic data unit when a new device is entered or a new organizational structure is established, adjust the type of the basic data unit by setting the identifier of the basic data unit to obtain the device or the organizational structure, and assign the device or the organizational structure to a pre-configured unassigned organizational structure, and then set the device type associated with the device; an allocation module, connected to the new creation module, for changing the parent class ID of each device in the unallocated organizational structure to the architecture ID of the organizational structure to be allocated, thereby completing the allocation of each device, and changing the parent class ID of the organizational structure to be allocated to the architecture ID of the organizational structure to be allocated, thereby completing the allocation of each organizational structure; An unbinding module, connected to the allocation module, for each of the organizational structures, changing the parent class ID of the device to be unbound under the organizational structure to the architecture ID of the unallocated organizational structure to complete device unbinding, and changing the parent class ID of the organizational structure to be unbound under the organizational structure to the architecture ID of the unallocated organizational structure to complete architecture unbinding; A user allocation module is connected to the allocation module and is used to associate the architecture ID of the organizational architecture to be allocated with each pre-configured user, so as to allocate the organizational architecture to be allocated to the user.

2. The organizational structure adjustment system according to claim 1, characterized in that: The visual scheduling system includes an organizational structure table and an architecture equipment table. The fields in the basic data unit include a parent class ID, a primary key ID and an identifier. The new module includes: A structure establishment unit is used for, when it is necessary to newly construct the organizational structure, adding the basic data unit to the organizational structure table and generating the primary key ID, and setting the identifier to a first identification value, so as to construct the organizational structure, and then using the primary key ID as the structure ID of the organizational structure, and setting the parent class ID in the organizational structure as the structure ID of the unassigned organizational structure, so as to assign the newly constructed organizational structure to the unassigned organizational structure; A new device creation unit is used to add the basic data unit to the organizational structure table and generate the primary key ID when any device is first connected to the visual scheduling system, and to set the identifier to a second identification value to enter the device, and then set the parent class ID in the device to the architecture ID of the unassigned organizational structure to assign the newly entered device to the unassigned organizational structure, and then generate a basic device unit associated with the device in the architecture device table, and set the device type of the basic device unit.

3. The organizational structure adjustment system according to claim 2, characterized in that: The equipment new construction unit includes: an association subunit, configured to set the association ID in the basic device unit as the primary key ID of the device and set the architecture parent class ID of the basic device unit as the parent class ID of the device, so as to associate the basic device unit with the device; The attribute setting subunit is used to obtain the device type of the device connected to the visual scheduling system as the device type in the basic device unit.

4. The organizational structure adjustment system according to claim 3, characterized in that: The device accessing the visual scheduling system includes a mesh device or an Android device. The mesh device accesses the visual scheduling system via TCP or UDP, and the Android device accesses the visual scheduling system via websocket.

5. The organizational structure adjustment system according to claim 1, characterized in that: The organizational structure includes a primary structure and a hierarchical structure, and the allocation module includes: an architecture allocation unit, configured to set the parent class ID of the organizational structure under the unallocated organizational structure to its own architecture ID to obtain the primary architecture, and to change the parent class ID of the organizational structure under the unallocated organizational structure to the architecture ID of the primary architecture to be allocated as the hierarchical architecture of the primary architecture, and to change the parent class ID of the organizational structure under the unallocated organizational structure to the architecture ID of the hierarchical architecture to be allocated as the hierarchical architecture of the hierarchical architecture; A device allocation unit is used to change the parent class ID of the device under the unallocated organizational structure to the architecture ID of the first-level architecture to be allocated, as a device under the first-level architecture, and to change the parent class ID of the device under the unallocated organizational structure to the architecture ID of the hierarchical architecture to be allocated, as a device under the hierarchical architecture.

6. The organizational structure adjustment system according to claim 1, characterized in that: The visual scheduling system further includes a user table, wherein the user table includes user data units of multiple users, and each user data unit includes a binding organization structure list; The user allocation module comprises: A user allocation unit, configured to add, for each of the users, a structure ID of the organizational structure to be allocated to a bound organizational structure list of a user data unit corresponding to the user, so as to allocate the organizational structure to be allocated to the user; The user unbinding unit is used to remove the structure ID of the organizational structure to be unbound from the bound organizational structure list of the user data unit corresponding to the user for each user, so as to complete the unbinding.

7. The organizational structure adjustment system according to claim 5, characterized in that: The basic data unit also includes a sorting field, and the hierarchical organizational structures and the devices under the same primary organizational structure or the same hierarchical organizational structure are sorted according to the sorting field.

8. A method for adjusting the organizational structure of a visual scheduling system, characterized in that: The organizational structure adjustment system as claimed in any one of claims 1 to 7 comprises: Step S1, the organizational structure adjustment system generates a basic data unit when a new device is entered or a new organizational structure is established, adjusts the type of the basic data unit by setting an identifier of the basic data unit to obtain the device or the organizational structure, and allocates the device or the organizational structure to a pre-configured unallocated organizational structure, and then sets the device type associated with the device; Step S2, the organizational structure adjustment system changes the parent class ID of each device in the unallocated organizational structure to the architecture ID of the organizational structure to be allocated, thereby completing the allocation of each device, and changes the parent class ID of the organizational structure to be allocated to the architecture ID of the organizational structure to be allocated, thereby completing the allocation of each organizational structure; Step S3, the organizational structure adjustment system changes the parent class ID of the device to be unbound under the organizational structure to the architecture ID of the unassigned organizational structure for each organizational structure to complete device unbinding, and changes the parent class ID of the organizational structure to be unbound under the organizational structure to the architecture ID of the unassigned organizational structure to complete architecture unbinding; Step S4: the organizational structure adjustment system associates the structure ID of the organizational structure to be allocated with each pre-configured user, so as to allocate the organizational structure to be allocated to the user.

9. The organizational structure adjustment method according to claim 8, characterized in that: The visual scheduling system includes an organizational structure table and an architecture equipment table, the fields in the basic data unit include a parent class ID, a primary key ID and an identifier, and the step S1 includes: Step S11, when the organizational structure needs to be newly constructed, the organizational structure adjustment system adds the basic data unit to the organizational structure table and generates the primary key ID, and sets the identifier to the first identification value to construct the organizational structure, and then uses the primary key ID as the structure ID of the organizational structure, and sets the parent class ID in the organizational structure to the structure ID of the unassigned organizational structure, so as to assign the newly constructed organizational structure to the unassigned organizational structure; Step S12, when any device is first connected to the visual scheduling system, the organizational structure adjustment system adds the basic data unit to the organizational structure table and generates the primary key ID, and sets the identifier to the second identification value to enter the device, and then sets the parent class ID in the device to the architecture ID of the unassigned organizational structure to assign the newly entered device to the unassigned organizational structure, and then generates a basic equipment unit associated with the device in the architecture equipment table, and sets the equipment type of the basic equipment unit.

10. The organizational structure adjustment method according to claim 9, characterized in that: The step S12 comprises: Step S121, the organizational structure adjustment system sets the association ID in the basic equipment unit as the primary key ID of the equipment, and sets the architecture parent class ID of the basic equipment unit as the parent class ID of the equipment, so as to associate the basic equipment unit with the equipment; Step S122: the organizational structure adjustment system obtains the device type of the device connected to the visual scheduling system as the device type in the basic device unit.