CN118095241A - Method and related device for generating custom template - Google Patents

Method and related device for generating custom template Download PDF

Info

Publication number
CN118095241A
CN118095241A CN202410285586.4A CN202410285586A CN118095241A CN 118095241 A CN118095241 A CN 118095241A CN 202410285586 A CN202410285586 A CN 202410285586A CN 118095241 A CN118095241 A CN 118095241A
Authority
CN
China
Prior art keywords
custom
template
loading
database
target
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.)
Pending
Application number
CN202410285586.4A
Other languages
Chinese (zh)
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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN202410285586.4A priority Critical patent/CN118095241A/en
Publication of CN118095241A publication Critical patent/CN118095241A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a method and a related device for generating a custom template, which are used for improving the convenience of acquiring the custom template. The method of the embodiment of the application comprises the following steps: the method comprises the steps of independently storing custom objects in a custom template in a database in a preset format, wherein the preset format comprises the following steps: associating the custom object with the custom template and an object that can invoke the custom template; responding to the triggering operation of loading the custom template, and loading a preset public template; and loading the custom object from the database to the public template to generate the custom template. The method can be applied to various business systems, such as enterprise resource planning systems (ENTERPRISE RESOURCE PLANNING, ERP), enterprise management systems, financial systems, human resource systems, supply chain systems, and the like.

Description

Method and related device for generating custom template
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and a related device for generating a custom template.
Background
The template is a system file in which a specific format or content can be configured.
With the development of organization structures, different organizations need to perform personalized modification on a common template to generate personalized templates suitable for self organization. The more personalized templates, the more personalized contents in the personalized templates, so that the larger the data volume of the personalized templates is recorded, the more space occupied by the personalized templates in the database is further caused, and the lower efficiency of acquiring the corresponding personalized templates in the database is caused.
Disclosure of Invention
The embodiment of the application provides a method and a related device for generating a custom template, which are used for improving the convenience of acquiring the custom template.
The first aspect of the embodiment of the application provides a method for generating a custom template, which comprises the following steps:
storing the custom objects in the custom templates in a database in a preset format, wherein the preset format comprises: associating the custom object with the custom template and a role that can invoke the custom template;
responding to the triggering operation of loading the custom template, and loading a preset public template;
And loading the custom object from the database to the public template to generate the custom template.
Preferably, the method further comprises:
Adding or modifying a target custom object in a database;
And loading the public template in response to the triggering operation of loading the custom template, loading the custom object from the database to the public template, and carrying out visual identification on the target custom object.
Preferably, the custom template includes a custom table, the custom object includes a custom formula, and the preset format further includes: associating the custom formula with a cell identification code of a custom table;
the method further comprises the steps of:
if the custom formulas are added in the custom table, the added custom formulas are stored in the database in the preset format;
And recording the cell identification codes associated with the added custom formulas.
Preferably, the method further comprises:
Identifying cells associated with the added custom formulas with incremental identification codes;
Recording the current maximum value of the cell identification codes associated with the custom formulas in the custom templates.
Preferably, the method further comprises:
When the modified target custom formula is searched in the custom template, the identification code of the target cell associated with the target modified custom formula is obtained;
Traversing the custom template according to the identification code of the target cell so as to locate the modified target custom formula in the custom template.
Preferably, the object capable of calling the custom template comprises an upper organization and a lower organization subordinate to the upper organization, and the upper organization and the lower organization are associated with the custom template through the same association code;
the method further comprises the steps of:
After the upper organization modifies the custom object, responding to the triggering operation of loading the custom template by the lower organization, loading the public template by adopting the same association code, and loading the modified custom object to the public template from the database.
Preferably, the method further comprises:
And carrying out visual identification on the modified custom object in the custom template, wherein the visual identification comprises at least one of color, style and animation. .
A second aspect of the embodiment of the present application provides a device for generating a custom template, which is characterized in that the device includes:
the storage unit is used for independently storing the custom objects in the custom templates in a database in a preset format, wherein the preset format comprises the following steps: associating the custom object with the custom template and a role that can invoke the custom template;
The first loading unit is used for responding to the triggering operation of loading the custom template and loading a preset public template;
And the second loading unit is used for loading the custom object from the database to the public template so as to generate the custom template.
Preferably, the generating device further includes:
The modification unit is used for adding or modifying the target custom object in the database;
the second loading unit is further configured to:
And loading the public template in response to triggering operation of loading the custom template, loading the target custom object from the database to the public template, and carrying out visual identification on the target custom object.
Preferably, the custom template includes a custom table, the custom object includes a custom formula, and the preset format further includes: associating the custom formula with a cell identification code of a custom table;
The storage unit is further configured to:
if the custom formulas are added in the custom table, the added custom formulas are stored in the database in the preset format;
the generating device further includes:
and the recording unit is used for recording the cell identification codes associated with the added custom formulas.
Preferably, the generating device further includes: an identification unit for:
Identifying cells associated with the added custom formulas with incremental identification codes;
The recording unit is used for recording the current maximum value of the cell identification code associated with the custom formula in the custom template.
Preferably, the generating device further includes:
the acquisition unit is used for acquiring the identification code of the target cell associated with the target custom formula when the target custom formula is searched in the custom template;
And the traversing unit is used for traversing the custom template according to the identification code of the target cell so as to position the target custom formula in the custom template.
Preferably, the object capable of calling the custom template comprises an upper organization and a lower organization subordinate to the upper organization, and the upper organization and the lower organization are associated with the custom template through the same association code;
the second loading unit is further used for:
After the upper organization modifies the custom object, responding to the triggering operation of loading the custom template by the lower organization, loading the public template by adopting the same association code, and loading the modified custom object to the public template from the database.
Preferably, the identification unit is further configured to:
And carrying out visual identification on the modified custom object in the custom template, wherein the visual identification comprises at least one of color, style and animation. .
A third aspect of the embodiment of the present application provides a computer apparatus, including a processor, where the processor is configured to implement the method for generating a custom template according to the first aspect of the embodiment of the present application when executing a computer program stored on a memory.
A fourth aspect of the embodiment of the present application provides a computer readable storage medium, on which a computer program is stored, where the computer program is configured to implement the method for generating a custom template according to the first aspect of the embodiment of the present application when the computer program is executed by a processor.
A fifth aspect of the embodiments of the present application provides a computer program product, on which a computer program/instruction is stored, which when executed by a processor is configured to implement the method for generating a custom template according to the first aspect of the embodiments of the present application.
From the above technical solutions, the embodiment of the present application has the following advantages:
In the embodiment of the application, the custom objects in the custom templates are independently stored in the database in a preset format, wherein the preset format comprises the following steps: associating the custom object with the custom template and an object that can invoke the custom template; and responding to the triggering operation of loading the custom template, loading a preset public template, and loading the custom object from the database to the public template to generate the custom template.
In the embodiment of the application, the custom objects in the custom templates are stored in the database, so that the public templates are loaded first and then the custom objects are loaded from the database when the custom templates are loaded, thereby avoiding the problem of storing a large number of custom templates in the database and correspondingly improving the convenience of loading the custom templates.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a method for generating a custom template according to an embodiment of the present application;
FIG. 2 is a schematic diagram of another embodiment of a method for generating a custom template according to an embodiment of the present application;
FIG. 3 is a schematic diagram of another embodiment of a method for generating a custom template according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another embodiment of a method for generating a custom template according to an embodiment of the present application;
fig. 5 is a schematic diagram of another embodiment of a device for generating a custom template according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a method and a related device for generating a custom template, which are used for improving the convenience of acquiring the custom template.
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
The terms first, second, third, fourth and the like in the description and in the claims and in the above drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, 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.
For convenience of understanding, the following describes a method for generating a custom template in an embodiment of the present application, please refer to fig. 1, and one embodiment of the method for generating a custom template in an embodiment of the present application includes:
101. The method comprises the steps of independently storing custom objects in a custom template in a database in a preset format, wherein the preset format comprises the following steps: associating the custom object with the custom template and a role that can invoke the custom template;
In the prior art, when personalized requirements exist, custom templates are correspondingly generated, so that the data size of the custom templates corresponding to each organization in a database is increased along with the development of an organization structure, and the problem of low efficiency of searching the corresponding custom templates in the database is caused.
Compared with the prior art, the embodiment of the application extracts the custom objects in each custom template from the custom templates, and independently stores the custom objects in each custom template in the database in a preset format, thereby avoiding the problem that the number of recorded templates is larger because the same data content as the common template needs to be stored in each custom template.
Specifically, the preset format of the custom object recorded in the embodiment of the present application includes: associating the custom object with the custom template and the role that can call the custom template, so that step 102 can be executed when the custom template is loaded, wherein the specific manner of association can be mapping or binding, the role that calls the custom template can be different individual roles or different organization roles in the group organization, and when the role is the group organization role, the roles can be a first role and a second role with the same level, and can also be an upper organization role and a lower organization role in the group organization, and the object and the specific association manner of the roles are not limited.
102. And responding to the triggering operation of loading the custom template, and loading a preset public template.
When the object of the custom template is called to trigger the operation of loading the custom template, the computer device can firstly load the public module in response to the triggering operation of loading the custom template, wherein the public module is a template commonly used by some user roles or organizations, can also be a general original template in a certain service field, and the like, and does not particularly limit the object of the public module and the content of the public module.
103. And loading the custom object from the database to the public template to generate the custom template.
Unlike the prior art that a large number of custom templates are stored in a database, so that the problem of low efficiency of loading the custom modules is caused.
Specifically, the custom object in the embodiment of the present application may be a formula, format information, a picture, a video or an audio, and the content of the custom object is not specifically limited herein.
In the embodiment of the application, the custom objects in the custom templates are stored in the database, so that the public templates can be loaded firstly when the custom templates are loaded, and then the custom objects are loaded into the public templates from the database, thereby obtaining the custom module.
Based on the embodiment described in fig. 1, when a custom object in a custom template needs to be modified, a procedure for modifying the custom template is described below, referring to fig. 2, and another embodiment of a method for generating a custom template in an embodiment of the present application includes:
201. adding or modifying a target custom object in a database;
When the custom template needs to be modified, adding or modifying a target custom object in the database, and storing the target custom object, wherein the target custom object is an object added, deleted or modified in the original custom template.
202. And loading a public template in response to the triggering operation of loading the custom template, loading the target custom object into the public template from the database, and carrying out visual identification on the target custom object.
In order to enable an object calling the custom template to find modification of the custom template, the embodiment of the application loads the public module in response to triggering operation of loading the custom template, loads the target custom object from the database to the public template, and carries out visual identification on the target custom object, for example, the color of the modified custom object is marked yellow, or the text color of the custom object is displayed in a distinguishing mode, so long as the object calling the custom template can quickly identify the modified target custom object in the custom template according to the visual identification.
In the embodiment of the application, after the target custom object in the custom template is modified, when the custom template is reloaded, the target custom object modified in the custom template is subjected to visual identification, so that the convenience of identifying the target custom object in the custom template by a user is improved.
Based on the embodiment described in fig. 1, when the custom template includes a custom table and the custom object includes a custom formula, a method for generating the custom table is described below, referring to fig. 3, and one embodiment of the method for generating the custom template in the embodiment of the present application includes:
301. Storing the formulas in the custom table in a database in a preset format, wherein the preset format comprises: associating the custom formula with the custom form, the identification code of the cell and the role of the callable form;
When the custom template is a custom table and the custom object is a custom formula in the table, the embodiment of the application extracts the custom formula from the custom table and stores the custom formula in a database independently in a preset format, wherein the preset format comprises: the custom formula is associated with the custom table, the identification code of the cell and the role that the table can be invoked.
If the custom formula is assumed to be y=ax+b, the custom formula is associated with custom table 1 and the 5 th cell in table 1, and the custom formula is only called by tax department organization. The association relationship may be expressed in a form of a table map or a text map, and the limitation of the association relationship is not particularly limited.
302. Loading a public template in response to a trigger operation of loading the custom form, and loading a custom formula from a database to the public template to generate the custom form;
When the user capable of calling the custom table triggers the operation of loading the custom table, the public template is loaded firstly in response to the triggering operation, and the custom formula is loaded from the database to the public template to obtain the custom table, so that the problem of huge data volume caused by storing a large number of custom tables in the database is reduced. 303. If the custom formulas are added in the custom table, the added custom formulas are stored in the database in the preset format, and cell identifications associated with the added custom formulas are recorded;
Further, if the formulas are required to be customized in the custom table, the added custom formulas are stored in the database in the preset format, and the cell identifiers associated with the added custom formulas are recorded. If the custom table contains 5 formulas and the cell associated with the last formula is identified as 5, if one formula 6 needs to be added in the custom table, the added formula 6 is stored in the database, and the cell identification associated with the added custom formula is recorded, if the cell associated with the added formula 6 is identified as 6, the cell identification 6 associated with the formula 6 is recorded, so that when the formula 6 is loaded, the formula can be loaded in the cell with the cell identification of 6 according to the formula 6. It should be noted that, the identifier 6 is only an example of a cell identifier, and it is of course also possible to identify the cell associated with the formula 6 with 7 or 8, so long as a one-to-one correspondence between a formula and a cell can be achieved.
As a specific implementation manner, in order to orderly identify the added formulas, when the custom formulas are added, the added custom formulas and the cells associated with the added custom formulas are identified by incremental identification codes, so that when the custom formulas are added again next time, preset numbers (such as 1, 2 or 3) can be added on the basis of the current cell identifications, and convenient management of the currently added formulas and the cell identifications associated with the currently added formulas is realized.
304. Recording the current maximum value of the cell identification code associated with the custom formula in the custom template;
in order to assign a new identification code to a cell associated with an added formula when the formula is added next, in the embodiment of the present application, the current maximum value of the cell identification code associated with the custom formula is recorded in the definition template, and if the current maximum value of the cell identification code associated with the custom formula is 6, 6 is recorded in the custom template, so that the cell associated with the newly added formula is assigned a new identification code next time on the basis of the recording.
305. When the modified target custom formula is searched in the custom table, the identification code of the target cell associated with the modified target custom formula is acquired;
Unlike the prior art, when a modified custom formula in the custom template needs to be searched, the prior art needs to traverse the table before modification and the table after modification, and compare the table after modification with the table before modification to search the custom formula after modification in the table after modification.
In the embodiment of the present application, when the modified target custom formula is found in the custom table, only the identification code of the target cell associated with the modified target custom formula needs to be obtained, and step 306 is executed according to the identification code of the target cell.
306. Traversing the custom table according to the identification code of the target cell to locate the modified target custom formula in the custom table.
And after the identification codes of the target cells are acquired, traversing the custom table according to the identification codes of the target cells so as to position the modified target custom formula in the custom table.
Therefore, when the modified custom formula is searched in the custom table, the embodiment of the application only needs to traverse the custom table according to the identification code of the custom formula, but the prior art needs to traverse the table before modification and the table after modification and compare the table after modification and the table before modification with each other, so that compared with the prior art, the embodiment of the application improves the convenience of searching the target custom formula after modification when searching the target custom formula after modification.
Based on the embodiment described in fig. 1, the role of invoking the custom template includes an upper organization and a lower organization subordinate to the upper organization, where the upper organization and the lower organization are related to the custom template through the same association code, and after the upper organization modifies the custom object, the lower organization triggers a process of loading the custom template to describe, referring to fig. 4, another embodiment of a method for generating the custom template in the embodiment of the present application includes:
401. After the upper organization modifies the custom object, responding to the triggering operation of loading the custom template by the lower organization, loading the public template by adopting the same association code, and loading the modified custom object to the public template from the database;
For convenience of explanation, assume that the upper organization is a educational administration place, the lower organization is a student place, after the educational administration place modifies the custom object, the same association code shared by the student place and the educational administration place is adopted in response to the triggering operation of loading the custom template at the student place, the public template associated with the same association code is loaded first, and then the modified custom object is loaded to the public template from the database.
Because the embodiment of the application only needs the upper-level organization to configure the custom template, the sharing of the custom template by the lower-level organization can be completed, thereby reducing the process of configuring the custom template for each lower-level organization and improving the convenience of sharing the custom template among organizations.
402. And after loading the modified custom object, carrying out visual identification on the modified custom object in the custom template.
In order to prompt the subordinate organization to modify the custom object in the custom template, in the embodiment of the application, after the subordinate organization is loaded with the modified custom object, the modified custom object in the custom template is further subjected to visual identification, wherein the visual identification comprises, for example, a color identification, a format identification or a font identification, or an animation identification, and the form of the visual identification is not particularly limited.
In the embodiment of the application, when the upper-level organization and the lower-level organization share the custom template, the upper-level organization only needs to configure and modify the custom template, and the sharing of the custom template by the lower-level organization can be completed, so that the process of configuring the custom template for each lower-level organization is reduced, and the convenience of the lower-level organization in triggering and loading the custom template is improved.
The method for generating the custom template in the embodiment of the present application is described in detail above, and the following describes a device for generating the custom template in the embodiment of the present application, please refer to fig. 5, and one embodiment of the device for generating the custom template in the embodiment of the present application includes:
the storage unit 501 is configured to store the custom objects in the custom templates in a database separately in a preset format, where the preset format includes: associating the custom object with the custom template and a role that can invoke the custom template;
the first loading unit 502 is configured to load a preset public template in response to a trigger operation of loading the custom template;
A second loading unit 503, configured to load the custom object from the database to the common template, so as to generate the custom template.
Preferably, the generating device further includes:
A modification unit 504, configured to add or modify a target custom object in the database;
the second loading unit 503 is further configured to:
And loading the public template in response to triggering operation of loading the custom template, loading the target custom object from the database to the public template, and carrying out visual identification on the target custom object.
Preferably, the custom template includes a custom table, the custom object includes a custom formula, and the preset format further includes: associating the custom formula with a cell identification code of a custom table;
The storage unit 501 is further configured to:
if the custom formulas are added in the custom table, the added custom formulas are stored in the database in the preset format;
the generating device further includes:
a recording unit 505, configured to record the cell identifier associated with the added custom formula.
Preferably, the generating device further includes:
An identification unit 506, configured to:
Identifying cells associated with the added custom formulas with incremental identification codes;
The recording unit 505 is further configured to record, in the custom template, a current maximum value of the cell identifier code associated with the custom formula.
Preferably, the generating device further includes:
an obtaining unit 507, configured to obtain, when a target custom formula is found in the custom template, an identification code of a target cell associated with the target custom formula;
and a traversing unit 508, configured to traverse the custom template according to the identification code of the target cell, so as to locate the target custom formula in the custom template.
Preferably, the object capable of calling the custom template comprises an upper organization and a lower organization subordinate to the upper organization, and the upper organization and the lower organization are associated with the custom template through the same association code;
the second loading unit 503 is further configured to:
After the upper organization modifies the custom object, responding to the triggering operation of loading the custom template by the lower organization, loading the public template by adopting the same association code, and loading the modified custom object to the public template from the database.
Preferably, the identification unit 506 is further configured to:
And carrying out visual identification on the modified custom object in the custom template, wherein the visual identification comprises at least one of color, style and animation. .
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the embodiment of the application, the storage unit 501 stores the custom objects in the custom templates in the database, so that the second loading unit 503 can load the public module first and then load the custom objects from the database to the public template to obtain the custom templates, thereby avoiding the problem of storing a large number of custom templates in the database and correspondingly improving the convenience of loading the custom templates.
Embodiments of the present application also provide a computer program product having stored thereon a computer program/instruction for implementing the method steps described in fig. 1 to 4 when executed by a processor.
The apparatus for generating a custom template in the embodiment of the present application is described above from the point of view of a modularized functional entity, and the computer apparatus in the embodiment of the present application is described below from the point of view of hardware processing:
the computer device is used for realizing the function of the generating device of the custom template, and one embodiment of the computer device comprises:
a processor and a memory;
the memory is used for storing a computer program and the processor is used for executing the computer program stored in the memory, so that the method steps described in fig. 1 to 4 can be implemented.
It will be appreciated that when the processor in the above-described computer apparatus executes the computer program, the functions of each unit in the corresponding embodiments of the apparatus may also be implemented, which is not described herein. The computer program may be divided into one or more modules/units, which are stored in the memory and executed by the processor to accomplish the present application, for example. The one or more modules/units may be a series of computer program instruction segments capable of performing a specific function for describing the execution of the computer program in the custom template generating means. For example, the computer program may be divided into units in the custom template generating device, and each unit may implement a specific function described in the corresponding custom template generating device.
The computer device can be a desktop computer, a notebook computer, a palm computer, a cloud server and other computing equipment. The computer device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the processor, memory, etc. are merely examples of computer apparatus and are not limiting of computer apparatus, and may include more or fewer components, or may combine certain components, or different components, e.g., the computer apparatus may also include input and output devices, network access devices, buses, etc.
The processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital SignalProcessor, DSP), application SPECIFIC INTEGRATED Circuits (ASIC), off-the-shelf Programmable gate arrays (Field-Programmable GATEARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like that is a control center of the computer device, connecting various parts of the overall computer device using various interfaces and lines.
The memory may be used to store the computer program and/or modules, and the processor may implement various functions of the computer device by running or executing the computer program and/or modules stored in the memory, and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the terminal, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart memory card (SMART MEDIA CARD, SMC), secure Digital (SD) card, flash memory card (FLASH CARD), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
The present application also provides a computer readable storage medium for implementing the functions of the generating means of the custom template, on which a computer program is stored which, when executed by a processor, can be used to perform the method steps of fig. 1 to 4.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. A method of generating a custom template, comprising:
storing the custom objects in the custom templates in a database in a preset format, wherein the preset format comprises: associating the custom object with the custom template and a role that can invoke the custom template;
responding to the triggering operation of loading the custom template, and loading a preset public template;
And loading the custom object from the database to the public template to generate the custom template.
2. The method according to claim 1, wherein the method further comprises:
Adding or modifying a target custom object in a database;
And loading the public template in response to triggering operation of loading the custom template, loading the target custom object from the database to the public template, and carrying out visual identification on the target custom object.
3. The method of claim 1, wherein the custom template comprises a custom table, the custom object comprises a custom formula, and the pre-set format further comprises: associating the custom formula with a cell identification code of the custom table;
the method further comprises the steps of:
if the custom formulas are added in the custom table, the added custom formulas are stored in the database in the preset format;
And recording the cell identification codes associated with the added custom formulas.
4. A method according to claim 3, characterized in that the method further comprises:
Identifying cells associated with the added custom formulas with incremental identification codes;
Recording the current maximum value of the cell identification codes associated with the custom formulas in the custom templates.
5. A method according to claim 3, characterized in that the method further comprises:
When a target custom formula is searched in the custom template, acquiring an identification code of a target cell associated with the target custom formula;
Traversing the custom template according to the identification code of the target cell so as to locate the target custom formula in the custom template.
6. The method of claim 1, wherein the roles that can invoke the custom template include a superior organization and a subordinate organization affiliated with the superior organization, the superior organization and the subordinate organization being associated with the custom template by a same association code;
the method further comprises the steps of:
After the upper organization modifies the custom object, responding to the triggering operation of loading the custom template by the lower organization, loading the public template by adopting the same association code, and loading the modified custom object to the public template from the database.
7. The method of claim 2 or 6, wherein the modified custom object in the custom template is visually identified, the visual identification comprising at least one of a color, a style, and an animation.
8. The device for generating the custom template is characterized by comprising the following components:
the storage unit is used for independently storing the custom objects in the custom templates in a database in a preset format, wherein the preset format comprises the following steps: associating the custom object with the custom template and a role that can invoke the custom template;
The first loading unit is used for responding to the triggering operation of loading the custom template and loading a preset public template;
And the second loading unit is used for loading the custom object from the database to the public template so as to generate the custom template.
9. A computer device comprising a processor for implementing the method of generating a custom template as claimed in claims 1 to 7 when executing a computer program stored on a memory.
10. A computer readable storage medium having stored thereon a computer program for implementing the method of generating a custom template as claimed in claims 1 to 7 when executed by a processor.
11. A computer program product having stored thereon computer programs/instructions for implementing the method of generating a custom template as claimed in claims 1 to 7 when executed by a processor.
CN202410285586.4A 2024-03-12 2024-03-12 Method and related device for generating custom template Pending CN118095241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410285586.4A CN118095241A (en) 2024-03-12 2024-03-12 Method and related device for generating custom template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410285586.4A CN118095241A (en) 2024-03-12 2024-03-12 Method and related device for generating custom template

Publications (1)

Publication Number Publication Date
CN118095241A true CN118095241A (en) 2024-05-28

Family

ID=91159871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410285586.4A Pending CN118095241A (en) 2024-03-12 2024-03-12 Method and related device for generating custom template

Country Status (1)

Country Link
CN (1) CN118095241A (en)

Similar Documents

Publication Publication Date Title
EP3252592A1 (en) Method and device for storing and reading data
CN105550345A (en) File operation method and apparatus
CN110427775B (en) Data query authority control method and device
CN111414739B (en) Excel data entry component, entry method and device
CN111068328A (en) Game advertisement configuration table generation method, terminal device and medium
CN105488125A (en) Page access method and apparatus
CN109522332A (en) Customer profile data merging method, device, equipment and readable storage medium storing program for executing
CN105389184A (en) Configuration method and apparatus for product interface information
CN110738038A (en) Contract text generation method, device, equipment and computer readable storage medium
CN109558191A (en) A kind of method, apparatus, storage medium and computer equipment configuring the page
CN106557307B (en) Service data processing method and system
CN108153877A (en) Data dictionary methods of exhibiting, device, terminal device and storage medium
CN109614600B (en) Report display method and device and computer storage medium
CN107391272A (en) The method and terminal of multi-process data interaction
CN110888972A (en) Sensitive content identification method and device based on Spark Streaming
CN110618993B (en) Data organization structure, data acquisition method, device and readable storage medium
CN109992980B (en) User authority multi-model management method
CN109324838B (en) Execution method and execution device of single chip microcomputer program and terminal
CN111553749A (en) Activity push strategy configuration method and device
CN118095241A (en) Method and related device for generating custom template
CN114003661A (en) Offline data entry method and device, electronic equipment and storage medium
CN115167728A (en) Menu bar merging and displaying method, device and computer readable storage medium
CN114115864A (en) Interface generation method and device and electronic equipment
CN114217847B (en) Multi-version configuration adding and saving method in same environment
CN117573090B (en) Construction method, system and storage medium of application system

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