CN115454936A - Document number processing control method and device, server and storage medium - Google Patents

Document number processing control method and device, server and storage medium Download PDF

Info

Publication number
CN115454936A
CN115454936A CN202211000967.0A CN202211000967A CN115454936A CN 115454936 A CN115454936 A CN 115454936A CN 202211000967 A CN202211000967 A CN 202211000967A CN 115454936 A CN115454936 A CN 115454936A
Authority
CN
China
Prior art keywords
document
product code
information list
acquiring
new
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
CN202211000967.0A
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.)
Xi'an Zhenyou Communication Technology Co ltd
Original Assignee
Xi'an Zhenyou Communication Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xi'an Zhenyou Communication Technology Co ltd filed Critical Xi'an Zhenyou Communication Technology Co ltd
Priority to CN202211000967.0A priority Critical patent/CN115454936A/en
Publication of CN115454936A publication Critical patent/CN115454936A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/156Query results presentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a document number processing control method, a document number processing control device, a server and a storage medium, wherein the method comprises the following steps: acquiring an input project name, and acquiring a product code information list according to the project name; confirming the information of the product code information list based on the obtained product code information list; when the product code information list is confirmed to have information, acquiring the maximum number of the document, and generating a new document number with the current time; and when no information exists in the product code information list, acquiring equipment identification information of the current server, constructing a new project object by an intercepting and splicing method, and converting the constructed new project object into a code to be stored as a new project code. The invention can realize the automation of document numbering when the document corresponding to a certain project is conveniently searched in a plurality of document libraries, and can realize the intelligent searching of the document, thereby improving the document searching efficiency.

Description

Document number processing control method and device, server and storage medium
Technical Field
The invention relates to the technical field of document processing, in particular to a document number processing control method, a document number processing control device, a server and a storage medium.
Background
With the popularization of computer use, document editing use is more and more common. Numbering is often encountered when writing documents of complex structure. Especially writing project documents, requires a lot of additional information.
In the prior art, when a document corresponding to a certain item is searched in a plurality of document libraries. It is also extremely difficult. The automation of document numbering cannot be realized, and the document cannot be intelligently searched.
Thus, there is still a need for improvement and development of the prior art.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, an apparatus, a server and a storage medium for processing and controlling document numbering, which can realize the automation of document numbering and the intelligent searching of documents when documents corresponding to a certain item are conveniently searched in a plurality of document libraries, and improve the document searching efficiency.
The technical scheme adopted by the invention for solving the problems is as follows:
a document numbering process control method, wherein the method comprises:
acquiring an input project name, and acquiring a product code information list according to the project name;
confirming the information of the product code information list based on the obtained product code information list;
when the product code information list is confirmed to have information, acquiring the maximum number of the document, and generating a new document number with the current time;
and when no information exists in the product code information list, acquiring equipment identification information of the current server, constructing a new project object by an intercepting and splicing method, and converting the constructed new project object into a code to be stored as a new project code.
The document numbering process control method, wherein the step of acquiring the input project name and acquiring the product code information list according to the project name comprises the following steps:
the method comprises the steps of obtaining a project name input by a user, searching a product code information list corresponding to the project name according to the project name, and obtaining the product code information list.
The document number processing control method, wherein the step of confirming information of the product code information list based on the acquired product code information list, comprises:
and detecting whether the product code information list has information or not according to the obtained product code information list so as to judge whether the product code information list has information or not.
The document number processing control method, wherein when it is determined that the product code information list has information, the step of obtaining the maximum number of the document and generating a new document number with the current time comprises:
when the product code information list is confirmed to have information, acquiring the maximum number of the document;
and adding 1 to the obtained maximum number of the document to generate a new number, and adding the current time to generate a new document number with the current time.
The document numbering process control method, wherein the device identification information includes: the IP and mac addresses of the servers.
The document number processing control method comprises the following steps of obtaining equipment identification information of a current server when no information exists in a product code information list, constructing a new project object by an intercepting and splicing method, converting the constructed new project object into a code number, and storing the code number as the new project code number:
when no information exists in the product code information list, judging that the currently input item name is a new item, and acquiring the IP and mac address of the current server;
constructing an object by the IP, the mac address, the current date and the current user of the current server through an intercepting and splicing method, and taking the object as a new project object;
and converting the constructed new project object into a code number, and storing the code number as the new project code number.
The document number processing control method is executed through an operation interface or in a command mode.
A document numbering process control apparatus, wherein the apparatus comprises:
the acquisition module is used for acquiring the input project name and acquiring a product code information list according to the project name;
the information confirmation module is used for confirming the information of the product code number information list based on the obtained product code number information list;
the acquisition and generation module is used for acquiring the maximum number of the document and generating a new document number with the current time when the product code number information list is confirmed to have information;
and the new project construction module is used for acquiring the equipment identification information of the current server when no information exists in the product code information list, constructing a new project object by an intercepting and splicing method, converting the constructed new project object into a code and storing the code as a new project code.
A server comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to implement the steps of any of the methods when the one or more programs are executed by one or more processors.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of an electronic device, enable the electronic device to perform any of the methods described herein.
The invention has the beneficial effects that: the embodiment of the invention provides a document number processing control method, a document number processing control device, a server and a storage medium. Acquiring an input project name and acquiring a product code information list according to the project name; confirming the information of the product code information list based on the obtained product code information list; when the product code information list is confirmed to have information, acquiring the maximum number of the document, and generating a new document number with the current time; and when no information exists in the product code information list, acquiring equipment identification information of the current server, constructing a new project object by an intercepting and splicing method, and converting the constructed new project object into a code to be stored as a new project code. The invention provides a method for maintaining document numbers, which realizes the automatic generation of the codes of projects, obtains the maximum number of the documents under the projects according to the codes of the projects and automatically generates a new document number.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and it is also possible for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a document numbering process control method according to an embodiment of the present invention.
Fig. 2 is a functional block diagram of a document numbering process control device according to an embodiment of the present invention.
Fig. 3 is a schematic block diagram of an internal structure of a server according to an embodiment of the present invention.
Fig. 4 is a schematic diagram illustrating an example of a project name of a document numbering process control method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that, if directional indications (such as upper, lower, left, right, front, rear, 8230; \8230;) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components in a specific posture (as shown in the figure), the motion situation, etc., and if the specific posture is changed, the directional indications are correspondingly changed.
In the prior art, when a document corresponding to a certain item is searched in a plurality of document libraries. It is also extremely difficult. The automation of document numbering cannot be realized, and the documents cannot be intelligently searched.
In order to solve the problems of the prior art, the invention provides a document number processing control method, and in the embodiment of the invention, a document number maintenance method is provided, so that the code number of a project is automatically generated, the maximum number of a document below the project is obtained according to the code number of the project, and a new document number is automatically generated.
And the method of 'obtaining product code information list', 'obtaining item object according to item code number', 'deleting one item code number according to code number', 'obtaining all item code numbers', 'updating item code number' and so on are provided.
Exemplary method
As shown in fig. 1, an embodiment of the present invention provides a document numbering process control method that can be applied to a server. In an embodiment of the present invention, the method includes the steps of:
s100, acquiring an input project name, and acquiring a product code information list according to the project name;
in the embodiment of the invention, the project name input by the user is obtained, the product code information list corresponding to the project name is searched according to the project name, and the product code information list is obtained.
Specifically, for example, the acquiring user inputs a project name, and first acquires a product code information list according to the project name. In the embodiment of the present invention, the project name is, for example: as shown in fig. 4, for example, if the item name conforming to the emergency product is input, the item code GDMS corresponding to the item name is queried, and the GDMS is clicked to display the current number as GDMS12126C4B90DA0287, and the new number is obtained as GDMS12126C4B90DA0288.
In the embodiment of the invention, the product number can be used for distinguishing which project the document belongs to.
Step S200, confirming the information of the product code information list based on the obtained product code information list;
in the embodiment of the invention, whether the product code information list has information or not is detected according to the obtained product code information list, namely whether the product code information list has information or not is judged by detecting whether the product code information list has document number information or not.
Step S300, when the product code number information list is confirmed to have information, acquiring the maximum number of the document, and generating a new document number with the current time;
in the embodiment of the invention, when the product code number information list is confirmed to have information, the maximum number of the document is obtained; and adding 1 to the obtained maximum number of the document to generate a new number, and adding the current time to generate a new document number with the current time.
For example, in the embodiment of the present invention, when it is determined that the product code information list has information, the maximum number of the document is obtained; the maximum number taken is added by 1 to generate a number. Adding the current time as the latest document number to generate a new document number with the current time; wherein, the document number is composed of an item code + "@" + IP + "@" + Mac.
In the invention, because different documents need different numbers, the automatic document number setting mode can make the attribute of the document obvious and prevent the occurrence of repeated numbers.
And S400, when no information exists in the product code information list, acquiring equipment identification information of the current server, constructing a new project object by an intercepting and splicing method, converting the constructed new project object into a code, and storing the code as a new project code.
In the present invention, the device identification information includes: IP and mac address of the server.
Specifically, when no information exists in the product code information list, judging that the currently input project name is a new project, and acquiring the IP and mac address of the current server; constructing an object by the IP, the mac address, the current date and the current user of the current server through an intercepting and splicing method, and taking the object as a new project object; and converting the constructed new project object into a code number, and storing the code number as the new project code number.
For example, if there is no information in the product code information list, the representative is a new item. The IP and mac address of the current server need to be acquired; then, an object is constructed by the IP, the MAC, the current date and the current user through an intercepting and splicing method, and the object is used as a new project object; and then the item object is converted into a code as an item code. The document number generated in the invention can not only see which item the document belongs to through the number, but also know the server address operated by the product. So that the readability of the product code is increased.
The document numbering process control method described in the specific embodiment of the present invention may be executed through an operation interface, that is, may be executed directly on the operation interface through a visual interface, or may be executed in a command manner, where the following example is executed in the command manner:
1. command line
help:
Function of viewing commands
Use of the method hellp [ Commandname1 Commandname2.. Commandname ]
user:
Function of adding users
Add user | | | e.g.: userip @ mac
add:
Function of adding item code
Use addition of item code | | | for example: add GDMS
showlist:
Function of displaying item code list | | | showlist
Use method of displaying all item codes
delete:
Function of deleting item code and document number
Use of deletion of item code I, e.g. delete GDMS
update:
Function of modifying item code
Instruct the original project code new project code number | | | for example: update GDMS GENEW
2. The new user may be added in a command line manner, or may directly add the add configuration of the node in the configuration file, console application1. Ex. Config, as follows
<add key="172.19.20.17"value="00-26-2D-24-D0-C1"/>。
Therefore, the invention provides a document number maintenance method, which realizes automatic generation of a code number for a project, obtains the maximum number of a document under the project according to the code number of the project, and automatically generates a new document number.
Exemplary device
As shown in fig. 2, an embodiment of the present invention provides a document number processing control apparatus including:
an obtaining module 510, configured to obtain an input project name, and obtain a product code information list according to the project name;
an information confirmation module 520, configured to confirm information of the product code information list based on the obtained product code information list;
an obtaining and generating module 530, configured to obtain a maximum number of the document and generate a new document number with current time when it is determined that the product code information list has information;
the new project building module 540 is configured to, when it is determined that there is no information in the product code information list, obtain the device identification information of the current server, build a new project object by using an interception and concatenation method, and convert the built new project object into a code to be stored as a new project code, which is specifically described above.
Based on the above embodiments, the present invention further provides a server, and a schematic block diagram thereof may be as shown in fig. 3. The server comprises a processor, a memory, a network interface, a display screen and a temperature sensor which are connected through a system bus. Wherein the processor of the server is configured to provide computing and control capabilities. The memory of the server comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The network interface of the server is used for communicating with an external terminal through network connection. The computer program is executed by a processor to implement a document numbering process control method. The display screen of the server can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the server is arranged in the server in advance and used for detecting the operating temperature of internal equipment.
It will be appreciated by those skilled in the art that the block diagram shown in fig. 3 is a block diagram of only a portion of the structure associated with the inventive arrangements and is not intended to limit the servers to which the inventive arrangements may be applied, and that a particular server may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a server is provided that includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors the one or more programs include instructions for:
acquiring an input project name, and acquiring a product code information list according to the project name;
confirming the information of the product code information list based on the obtained product code information list;
when the product code information list is confirmed to have information, acquiring the maximum number of the document, and generating a new document number with the current time;
and when no information exists in the product code information list, acquiring equipment identification information of the current server, constructing a new project object by an intercepting and splicing method, converting the constructed new project object into a code, and storing the code as a new project code.
The step of acquiring the input project name and acquiring the product code information list according to the project name comprises the following steps:
the method comprises the steps of obtaining a project name input by a user, searching a product code information list corresponding to the project name according to the project name, and obtaining the product code information list.
Wherein the step of confirming information of the product code information list based on the acquired product code information list comprises:
and detecting whether the product code information list has information or not according to the obtained product code information list so as to judge whether the product code information list has information or not.
Wherein, when confirming that there is information in the product code information list, the step of obtaining the maximum number of the document and generating a new document number with the current time comprises:
when the product code information list is confirmed to have information, acquiring the maximum number of the document;
and adding 1 to the obtained maximum number of the document to generate a new number, and adding the current time to generate a new document number with the current time.
Wherein the device identification information includes: the IP and mac addresses of the servers.
Wherein, when confirming that there is no information in the product code information list, acquiring the equipment identification information of the current server, constructing a new project object by intercepting and splicing methods, and converting the constructed new project object into a code, and the step of storing as the new project code comprises:
when no information exists in the product code information list, judging that the currently input item name is a new item, and acquiring the IP and mac address of the current server;
constructing an object by the IP, the mac address, the current date and the current user of the current server through an intercepting and splicing method, and taking the object as a new project object;
and converting the constructed new project object into a code number, and storing the code number as the new project code number.
The method is executed through an operation interface or executed in a command mode.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases or other media used in the embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the present invention discloses a document numbering process control method, apparatus, server and storage medium, wherein the method comprises: acquiring an input project name and acquiring a product code information list according to the project name; confirming the information of the product code information list based on the obtained product code information list; when the product code number information list is confirmed to have information, acquiring the maximum number of the document, and generating a new document number with the current time; and when no information exists in the product code information list, acquiring equipment identification information of the current server, constructing a new project object by an intercepting and splicing method, and converting the constructed new project object into a code to be stored as a new project code. The invention provides a method for maintaining document numbers, which realizes automatic generation of a code number for a project, obtains the maximum number of a document below the project according to the code number of the project and automatically generates a new document number.
It will be understood that the invention is not limited to the examples described above, but that modifications and variations will occur to those skilled in the art in light of the above teachings, and that all such modifications and variations are considered to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A document numbering process control method, characterized by comprising:
acquiring an input project name, and acquiring a product code information list according to the project name;
confirming the information of the product code information list based on the obtained product code information list;
when the product code information list is confirmed to have information, acquiring the maximum number of the document, and generating a new document number with the current time;
and when no information exists in the product code information list, acquiring equipment identification information of the current server, constructing a new project object by an intercepting and splicing method, converting the constructed new project object into a code, and storing the code as a new project code.
2. The document numbering process control method according to claim 1, wherein said step of acquiring an input item name, and acquiring a list of product code information according to said item name, comprises:
the method comprises the steps of obtaining a project name input by a user, searching a product code information list corresponding to the project name according to the project name, and obtaining the product code information list.
3. The document numbering process control method according to claim 1, wherein the step of confirming information of the product code information list based on the acquired product code information list comprises:
and detecting whether the product code information list has information or not according to the obtained product code information list so as to judge whether the product code information list has information or not.
4. The document number processing control method according to claim 1, wherein the step of acquiring the maximum number of the document and generating a new document number with the current time when it is confirmed that there is information in the product code information list comprises:
when the product code information list is confirmed to have information, acquiring the maximum number of the document;
and adding 1 to the acquired maximum number of the document to generate a new number, and adding the current time to generate a new document number with the current time.
5. The document numbering process control method according to claim 1, wherein the device identification information includes: IP and mac address of the server.
6. The document numbering process control method according to claim 1, wherein said step of acquiring device identification information of a current server when no information is confirmed in the product code information list, constructing a new project object by intercepting and splicing methods, and converting the constructed new project object into a code, and storing the new project object as a new project code comprises:
when no information exists in the product code information list, judging that the currently input item name is a new item, and acquiring the IP and mac address of the current server;
constructing an object by the IP, the mac address, the current date and the current user of the current server through an intercepting and splicing method, and taking the object as a new project object;
and converting the constructed new project object into a code number, and storing the code number as the new project code number.
7. The document numbering process control method according to claim 1, wherein the method is performed through an operation interface or by means of a command.
8. A document numbering process control apparatus, characterized by comprising:
the acquisition module is used for acquiring the input project name and acquiring a product code information list according to the project name;
the information confirmation module is used for confirming the information of the product code number information list based on the obtained product code number information list;
the acquisition and generation module is used for acquiring the maximum number of the document and generating a new document number with the current time when the product code number information list is confirmed to have information;
and the new project construction module is used for acquiring the equipment identification information of the current server when no information exists in the product code information list, constructing a new project object by an intercepting and splicing method, converting the constructed new project object into a code and storing the code as a new project code.
9. A server comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to implement the steps of the method of any one of claims 1-7 when the one or more programs are executed by one or more processors.
10. A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of claims 1-7.
CN202211000967.0A 2022-08-19 2022-08-19 Document number processing control method and device, server and storage medium Pending CN115454936A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211000967.0A CN115454936A (en) 2022-08-19 2022-08-19 Document number processing control method and device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211000967.0A CN115454936A (en) 2022-08-19 2022-08-19 Document number processing control method and device, server and storage medium

Publications (1)

Publication Number Publication Date
CN115454936A true CN115454936A (en) 2022-12-09

Family

ID=84298340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211000967.0A Pending CN115454936A (en) 2022-08-19 2022-08-19 Document number processing control method and device, server and storage medium

Country Status (1)

Country Link
CN (1) CN115454936A (en)

Similar Documents

Publication Publication Date Title
CN111125169B (en) Data query method, control device, control medium and computer equipment
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
CN108509400B (en) Document template generation method and device, computer equipment and storage medium
CN109542529B (en) Function name-based point burying method and device, computer equipment and storage medium
CN107688664B (en) Chart generation method and device, computer equipment and storage medium
CN112073405A (en) Webpage data loading method and device, computer equipment and storage medium
CN109361628B (en) Message assembling method and device, computer equipment and storage medium
CN111460474B (en) Method, device, memory and computer for implementing decentralization predictor
CN110826978A (en) Unified backlog processing method and device based on enterprise browser
CN111767297B (en) Big data processing method, device, equipment and medium
CN111414379A (en) Serial number generation method, device, equipment and computer readable storage medium
CN111581456A (en) JSON character string comparison method, device, equipment and storage medium
CN113010224A (en) Front-end micro-service method, device, computer equipment and storage medium
CN108255898B (en) Page display method and device
CN112231379A (en) API (application program interface) auditing method, device, equipment and storage medium based on micro-service architecture
CN115454936A (en) Document number processing control method and device, server and storage medium
CN112612706A (en) Automated testing method, computer device and storage medium
CN109741776B (en) Initialization method, device, equipment and medium of block-shaped static random access memory
CN115687490A (en) Data export method and device, computer equipment and storage medium
CN115658801A (en) Report display method, device, system and medium based on user portrait
CN115061916A (en) Method for automatically generating interface test case and related equipment thereof
CN110362773B (en) Cross-domain communication method, device, computer equipment and storage medium
CN111026466A (en) File processing method and device, computer readable storage medium and electronic equipment
CN111400319A (en) Method, device and equipment for realizing data processing framework and computer storage medium
CN112015406A (en) Data processing method, page access method, device, terminal and server

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