CN117591706A - Method and device for generating file numbers and terminal equipment - Google Patents

Method and device for generating file numbers and terminal equipment Download PDF

Info

Publication number
CN117591706A
CN117591706A CN202410080129.1A CN202410080129A CN117591706A CN 117591706 A CN117591706 A CN 117591706A CN 202410080129 A CN202410080129 A CN 202410080129A CN 117591706 A CN117591706 A CN 117591706A
Authority
CN
China
Prior art keywords
expression
term
gear
long
file number
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.)
Granted
Application number
CN202410080129.1A
Other languages
Chinese (zh)
Other versions
CN117591706B (en
Inventor
曾祥龙
于鹏
石自军
张鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinzheng Software Technology Co ltd
Original Assignee
Shenzhen Jinzheng Software 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 Shenzhen Jinzheng Software Technology Co ltd filed Critical Shenzhen Jinzheng Software Technology Co ltd
Priority to CN202410080129.1A priority Critical patent/CN117591706B/en
Publication of CN117591706A publication Critical patent/CN117591706A/en
Application granted granted Critical
Publication of CN117591706B publication Critical patent/CN117591706B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application is applicable to the technical field of file number generation and provides a file number generation method, a file number generation device and terminal equipment. The generation method of the gear number comprises the following steps: receiving a gear number generation instruction and acquiring service data corresponding to the gear number generation instruction; determining the number attribute of the service data; acquiring a gear number expression corresponding to the gear number attribute according to the gear number attribute, wherein the gear number expression comprises a gear number element type; and replacing the type of the file number element in the file number expression by using the service data to obtain the target file number. According to the embodiment of the application, the target gear is automatically generated by receiving the gear generation instruction sent by the user, and the user can quickly obtain the target gear by simply sending the gear generation instruction, so that the gear generation efficiency and accuracy are improved.

Description

Method and device for generating file numbers and terminal equipment
Technical Field
The application belongs to the technical field of file number generation, and particularly relates to a file number generation method, a file number generation device and terminal equipment.
Background
The file number is a set of unique codes for reflecting, fixing, and identifying the order of arrangement of files. It is generally composed of numbers, letters or symbols, and can express information such as category, level, storage period, year, serial number, etc. of the files. The file number can help a file manager to quickly and accurately find the required file material, and meanwhile, the safety and confidentiality and long-term storage of the file material can be ensured.
In the related art, the file number is mainly generated manually, and when the file number is generated manually, various elements (whole number, file directory number, file number and the like) of the file number need to be determined one by one, so that the file number generation efficiency is low and errors are easy to occur.
Disclosure of Invention
The embodiment of the application provides a method, a device and terminal equipment for generating a file number, which can solve the problems of low file number generation efficiency and easy error in the related technology.
In a first aspect, an embodiment of the present application provides a method for generating a gear number, including:
receiving a gear number generation instruction and acquiring service data corresponding to the gear number generation instruction;
determining the number attribute of the service data;
acquiring a gear number expression corresponding to the gear number attribute according to the gear number attribute, wherein the gear number expression comprises a gear number element type;
and replacing the type of the file number element in the file number expression by using the service data to obtain the target file number.
In a second aspect, an embodiment of the present application provides a device for generating a gear number, including:
the receiving module is used for receiving the file number generation instruction and obtaining service data corresponding to the file number generation instruction;
the determining module is used for determining the number attribute of the service data;
the acquisition module is used for acquiring a gear number expression corresponding to the gear number attribute according to the gear number attribute, wherein the gear number expression contains a gear number element type;
And the replacing module is used for replacing the type of the number element in the number expression by using the service data to obtain the target number.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the steps of the method for generating a gear number when the processor executes the computer program.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described method for generating a gear number.
In a fifth aspect, embodiments of the present application provide a computer program product, which when run on a terminal device, causes the terminal device to perform the above-mentioned method for generating a gear number.
Compared with the prior art, the beneficial effects of the embodiment of the application are as follows: according to the embodiment of the application, the business data corresponding to the file number generation instruction is obtained by receiving the file number generation instruction, the file number attribute of the business data is determined, the file number expression corresponding to the file number attribute is obtained according to the file number attribute, and then the file number element type in the file number expression is replaced by the business data to obtain the target file number. According to the embodiment of the application, the target gear is automatically generated by receiving the gear generation instruction sent by the user, and the user can quickly obtain the target gear by simply sending the gear generation instruction, so that the gear generation efficiency and accuracy are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required for the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic implementation flow chart of a method for generating a gear number according to an embodiment of the present application;
fig. 2 is a schematic diagram of an implementation flow for obtaining a target file number according to an embodiment of the present application;
fig. 3 is a schematic diagram of an implementation flow of an obtaining a file number expression provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of an implementation flow of selecting a long-term gear number expression according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an implementation flow of a configuration long-term number expression provided in an embodiment of the present application;
fig. 6 is a schematic diagram of an implementation flow of an obtaining a file number expression provided in an embodiment of the present application;
FIG. 7 is a schematic diagram of an implementation flow of selecting a short-term gear number expression according to an embodiment of the present application;
FIG. 8 is a schematic diagram of an implementation flow of a configuration short-term file number expression provided in an embodiment of the present application;
Fig. 9 is a schematic structural diagram of a gear number generating device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application 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 for purposes of illustration only and are not intended to limit the present application. 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, are intended to be protected herein.
It is noted that the terms "comprising," "including," and "having," and any variations thereof, in the description and claims of the present application and in the foregoing figures, are intended to cover non-exclusive inclusions. For example, a process, method, terminal, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus. In the claims, specification, and drawings of this application, relational terms such as "first" and "second," and the like are used solely to distinguish one entity/operation/object from another entity/operation/object without necessarily requiring or implying any such real-time relationship or order between such entities/operations/objects.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The file number is a set of unique codes for reflecting, fixing, and identifying the order of arrangement of files. It is generally composed of numbers, letters or symbols, and can express information such as category, level, storage period, year, serial number, etc. of the files. The file number can help a file manager to quickly and accurately find the required file material, and meanwhile, the safety and confidentiality and long-term storage of the file material can be ensured. In the related art, the file number is mainly generated manually, and when the file number is generated manually, various elements (whole number, file directory number, file number and the like) of the file number need to be determined one by one, so that the file number generation efficiency is low and errors are easy to occur.
In view of this, the embodiment of the application realizes automatic generation of the target gear by receiving the gear generation instruction sent by the user, and the user can quickly obtain the target gear by simply sending the gear generation instruction, thereby improving the gear generation efficiency and accuracy.
In order to illustrate the technical solution of the present application, the following description is made by specific examples.
Fig. 1 shows a schematic implementation flow chart of a method for generating a file number according to an embodiment of the present application, where the method may be applied to a terminal device. The terminal device may be a mobile phone, tablet computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, etc.
Specifically, the method for generating the gear number may include the following steps S101 to S104.
Step S101, receiving a file number generation instruction and acquiring service data corresponding to the file number generation instruction.
The file number generation instruction is sent by a user and used for indicating the terminal equipment to generate the target file number. The user can click a gear number generation button on the gear number generation interface, so that a gear number generation instruction is sent to the terminal equipment. The business data records data for generating the target file number.
In the embodiment of the application, the terminal device may receive a gear number generation instruction sent by the user and synchronously acquire corresponding service data, and specifically may acquire the service data from a gear number generation interface.
Step S102, determining the number attribute of the business data.
The file number attribute is used for reflecting the shelf life of the file number, and can comprise a long-term file number and a short-term file number, wherein the long-term file number can be a file number with a longer shelf life, and the short-term file number can be a file number with a shorter shelf life.
It should be appreciated that, for different service requirements, the number of the file to be generated is different, for a service requiring long-term storage, a long-term file may be selectively generated, and for a service temporarily stored, a short-term file may be selectively generated.
In the embodiment of the application, the terminal device may acquire the number attribute parameter attached to the number generation instruction and the corresponding relation between the number attribute parameter and the number attribute pre-stored in the memory, and determine the number attribute corresponding to the service data according to the two parameters.
Step S103, acquiring a gear number expression corresponding to the gear number attribute according to the gear number attribute.
The file number expression can be configured in advance and stored in the terminal equipment, and can be used for generating the target file number. The file number expression contains a file number element type, wherein the file number element type is used for representing the type of the file number element, the file number element can comprise a whole number, a file directory number, a year, a month, a storage period, a file number, a page number and the like, and can also comprise characters (such as "-", and the like) and constants (such as KU and the like).
For example, a certain file number expression may be full-KU-directory-year-month-shelf life-case number-part number-page number. The file number element type is the whole number, KU, catalog number, year, month, keeping period, file number, part number and page number in the file number expression.
In the embodiment of the application, after obtaining the number attribute, the terminal device may retrieve the number expression corresponding to the number attribute.
It should be appreciated that in the embodiment of the present application, the gear number expressions corresponding to different gear number attributes are different. For example, the long-term number corresponding to the long-term number is a long-term number, and the short-term number corresponding to the short-term number is a short-term number.
And step S104, replacing the type of the number element in the number expression by using the service data to obtain the target number.
The target file number is a file number finally generated according to the service data.
In the embodiment of the application, the terminal device may replace the corresponding number element type in the corresponding number expression according to the specific content corresponding to the number element type recorded in the service data, so as to obtain the target number.
Exemplary, specific content corresponding to the type of the file number element is recorded in the service data. For example, a certain piece of business data is recorded with data such as "a001", "2023", "03", etc., where "a001" is the specific content of the full-number in the number element type, "2023" is the specific content of the year in the number element type, and "03" is the specific content of the month in the number element type. The terminal device can replace the number element type in the number expression according to the specific content corresponding to the number element type in the service data, so as to obtain the target number.
Compared with the prior art, the beneficial effects of the embodiment of the application are as follows: according to the embodiment of the application, the business data corresponding to the file number generation instruction is obtained by receiving the file number generation instruction, the file number attribute of the business data is determined, the file number expression corresponding to the file number attribute is obtained according to the file number attribute, and then the file number element type in the file number expression is replaced by the business data to obtain the target file number. According to the embodiment of the application, the target gear is automatically generated by receiving the gear generation instruction sent by the user, and the user can quickly obtain the target gear by simply sending the gear generation instruction, so that the gear generation efficiency and accuracy are improved.
As shown in fig. 2, in some embodiments of the present application, the replacing the type of the number element in the number expression with the service data to obtain the target number may specifically include steps S201 to S203.
Step S201, a service field of service data and the content of a file number element corresponding to the service field are obtained.
Wherein, the service field and the file number element content are recorded in the service data. The service field is a code form of the content of the file number element, and may be, for example, "orgCode", "setYear", "montah", etc.
In the embodiment of the application, the terminal device may traverse all the service fields and the corresponding file number element contents in the service data to obtain the service fields of the service data and the file number element contents corresponding to the service fields.
Step S202, an expression field of a gear number expression is acquired.
The expression field is a code form of a file number element type, and can be $ { orgCode }, $ { setYear }, $ { month }, and the like.
In the embodiment of the present application, the terminal device may directly read the expression field of the file number expression.
Step S203, the type of the file number element with the corresponding relation between the expression field and the business field in the file number expression is replaced by the corresponding file number element content, and the target file number is obtained.
In the embodiment of the application, after the service field and the expression field are obtained, the terminal equipment can determine the type of the number element of which the expression field is consistent with the service field in the number expression, replace the type of the number element with the content of the number element corresponding to the corresponding service field, and obtain the target number after all the replacement.
The service field and the content of the file number element corresponding to the service field are recorded in a certain service data, specifically { "orgCode": "A001", "category code": "21101", "setYear": "2023", "monta": "03", "relation period": "D30", "volume num": "0001" }. According to the service data, the corresponding file number expression obtained from the terminal equipment is: full-KU-catalog number, year, month-custody-case number-piece number, the corresponding expression fields are: the method comprises the steps of { orgCode } -KU- $ { categoriCode }, { setYear }, $ { Month } - $ { retationperiod } - $ { volumnNum } - $ { bookNum }. At this time, the terminal device may replace the type of the number element in the number expression, where the expression field and the service field have a corresponding relationship, with the content of the number element corresponding to the service field, so as to obtain the target number: A001-KU.21101.2023.03-D30-0001-0001.
As shown in fig. 3, in some embodiments of the present application, the number attribute may include a long-term number, and the above-mentioned obtaining the number expression corresponding to the number attribute according to the number attribute may specifically include steps S301 to S303.
In step S301, when the number attribute is a long-term number, a service ID of the service data is obtained.
Wherein the service ID may be used to identify the service data.
In the embodiment of the present application, the terminal device may directly read the service ID of the service data.
Step S302, inquiring the long-term file number expression from the database according to the service ID.
Wherein the long-term gear number expression may be used to generate a long-term gear number. Notably, the long-term number expression is stored in the database, preventing the long-term number expression from being lost.
In some usage scenarios, the same class of service may require multiple generation of the numbers, which may be generated using the same number expression since the numbers belong to the same class of service. Further, after the class of services generates the number by using the number expression, the terminal device may bind the service ID of the class of services with the corresponding number expression, where a binding relationship exists between the service ID and the number expression. When the operation of generating the file number is executed on other service data of the service, the corresponding file number expression can be directly called according to the binding relation to be used for generating the file number.
In the embodiment of the application, the terminal device can query the corresponding long-term file number expression in the database by using the service ID, and specifically can query the long-term file number expression bound with the service ID in the database by using the SQL sentence.
Step S303, when the long-term gear number expression is queried, the long-term gear number expression is read from the database.
In the embodiment of the application, if the long-term number expression is queried, it is indicated that the long-term number expression is already bound with the corresponding service ID, that is, the long-term number expression has been used before, and the number generation is performed on the service data similar to the service data. Therefore, the terminal device may directly read the long-term number expression from the database, and execute the target number generation step, that is, step S104 and the specific embodiment, by using the long-term number expression.
As shown in fig. 4, in some embodiments of the present application, after the long-term number expression is queried from the database according to the service ID, step S401 and step S402 may be specifically further included.
In step S401, when the long-term number expression cannot be queried, a long-term expression library is acquired from the database.
Wherein a plurality of long-term expressions are stored in the long-term expression library.
In the embodiment of the present application, when the long-term number expression cannot be queried according to the service ID, it may be that the service ID is not bound to the long-term number expression, and at this time, the user is required to select what long-term number expression to use to generate the long-term number. Therefore, the terminal equipment can directly acquire the long-term expression library from the database when the long-term gear expression cannot be queried.
Step S402, receiving a first expression selection instruction, and reading a long-term gear number expression corresponding to the first expression selection instruction from a long-term expression library.
The first expression selection instruction is an instruction sent by a user and is used for determining a long-term gear number expression from a long-term expression library.
In an embodiment of the present application, a user may click on a long-term number expression that is desired to be selected in a long-term expression library on an interactive interface. After clicking, the terminal device can receive the first expression selection instruction, and reads the long-term file number expression corresponding to the first expression selection instruction from the long-term expression library. And the long-term gear number expression is used to execute the target gear number generation step, that is, step S104 and the specific implementation.
As shown in fig. 5, in some embodiments of the present application, steps S501 to S504 may be specifically further included after the long-term expression library is obtained from the database when the long-term number expression cannot be queried.
Step S501, a first expression configuration instruction is received, and an optional element type is determined based on the first expression configuration instruction.
Wherein the first expression configuration instruction is an instruction issued by a user for determining the selectable element type. The selectable element types are used for representing all the file number element types which can be selected by different types of services. It will be appreciated that for different businesses, such as paperwork, electronic accounting, etc., different archival businesses, the type of file number element used will also differ.
In the embodiment of the application, the user can click the buttons (such as a file type archive service button and an electronic accounting archive service button) for representing different service types on the interactive interface, and the click indicates that the user can select the required file number element type from all file number element types corresponding to the service type. At this time, the terminal device may receive the first expression configuration instruction, and determine a corresponding selectable element type according to the first expression configuration instruction.
Step S502, receiving a first element configuration instruction, and configuring a long-term file number expression from the element types of the optional elements according to the first element configuration instruction.
The first element configuration instruction is an instruction sent by a user and is used for determining the element type of the required file number from the selectable element types.
In the embodiment of the application, the user can click the needed number element types on the interactive interface in sequence, and after clicking, the terminal equipment can determine the arrangement sequence of the number element types in the long-term number expression according to the click sequence of the user on the number element types. It is understood that the number expression is obtained by arranging the number element types in the arrangement order.
Step S503, adding the long-term file number expression into a long-term expression library in the database to obtain an updated long-term expression library.
The updated long-term expression library is an expression library obtained by updating the long-term expression library.
In the embodiment of the application, the terminal equipment can be added to the long-term expression library in the database through the long-term file number expression obtained through user configuration, so that the updated long-term expression library is obtained.
Step S504, receiving a second expression selection instruction, and reading a long-term gear number expression corresponding to the second expression selection instruction from the updated long-term expression library.
Wherein the second expression selection instruction is an instruction issued by the user for determining a long-term gear number expression from the updated long-term expression library.
In an embodiment of the present application, after updating the long-term expression library, the user may return to the long-term number expression selection interface, and click on the newly configured long-term number expression from the updated long-term expression library. After clicking, the terminal device can receive the second expression selection instruction, and read the long-term file number expression corresponding to the second expression selection instruction from the updated long-term expression library. And the long-term gear number expression is used to execute the target gear number generation step, that is, step S104 and the specific implementation.
As shown in fig. 6, in some embodiments of the present application, the number attribute may include a short-term number, and the above-mentioned obtaining the number expression corresponding to the number attribute according to the number attribute may specifically include steps S601 to S603.
In step S601, when the number attribute is a short-term number, a service ID of the service data is obtained.
Wherein the service ID may be used to identify the service data.
In the embodiment of the present application, the terminal device may directly read the service ID of the service data.
Step S602, inquiring the short-term file number expression from the memory according to the service ID.
Wherein the short-term gear number expression may be used to generate a short-term gear number. It is noted that the short-term file number expression is stored in the memory, and the short-term file number expression stored by the memory can be completely separated from the dependence of the database structure, and can be completely and independently modularized, so that the reading speed can be improved.
In the embodiment of the present application, the specific implementation manner of the step S602 may refer to the step S302, which is not repeated herein, and only needs to pay attention to that the database in the step S302 is replaced by a memory, the long-term number expression is replaced by a short-term number expression, and other words including "long term" are replaced by words with "short term".
In step S603, when the short-term number expression is queried, the short-term number expression is read from the memory.
In the embodiment of the present application, the specific implementation manner of the above step S603 may refer to the above step S303, which is not repeated herein, and only needs to pay attention to that the database in step S303 is replaced by a memory, the long-term number expression is replaced by a short-term number expression, and other words including "long term" are replaced by words with "short term".
As shown in fig. 7, in some embodiments of the present application, after the short-term number expression is queried from the database according to the service ID, step S701 and step S702 may be specifically further included.
In step S701, when the short-term number expression cannot be queried, a short-term expression library is obtained from the memory.
Wherein a plurality of short-term expressions are stored in the short-term expression library.
In the embodiment of the present application, the specific implementation manner of the above step S701 may refer to the above step S401, which is not repeated herein, and only needs to pay attention to that the database in the step S401 is replaced by a memory, the long-term number expression is replaced by a short-term number expression, and other words including "long term" are replaced by words with "short term".
Step S702, receiving a third expression selection instruction, and reading a short-term gear number expression corresponding to the third expression selection instruction from a short-term expression library.
Wherein the third expression selection instruction is an instruction issued by the user for determining a short-term gear number expression from the short-term expression library.
In the embodiment of the present application, the specific implementation manner of the step S702 may refer to the step S402, which is not repeated herein, and only needs to pay attention to that the database in the step S402 is replaced by a memory, the long-term number expression is replaced by a short-term number expression, and other words including "long term" are replaced by words with "short term".
As shown in fig. 8, in some embodiments of the present application, after the short-term expression library is obtained from the memory when the short-term number expression cannot be queried, steps S801 to S804 may be specifically further included.
Step S801 receives a second expression configuration instruction and determines an optional element type based on the second expression configuration instruction.
Wherein the second expression configuration instruction is an instruction issued by the user for determining the selectable element type. The selectable element types are used for representing all the file number element types which can be selected by different types of services. It will be appreciated that for different businesses, such as paperwork, electronic accounting, etc., different archival businesses, the type of file number element used will also differ.
In the embodiment of the present application, the specific implementation manner of the above step S801 may refer to the above step S501, which is not repeated herein, and only needs to pay attention to that the database in step S501 is replaced by a memory, the long-term number expression is replaced by a short-term number expression, and other words including "long term" are replaced by words with "short term".
Step S802, receiving a second element configuration instruction, and configuring the element types of the file number from the selectable element types to form a short-term file number expression according to the second element configuration instruction.
The second element configuration instruction is an instruction sent by a user and is used for determining the element type of the required gear number from the selectable element types.
In the embodiment of the present application, the specific implementation manner of the step S802 may refer to the step S502, which is not repeated herein, and only needs to pay attention to that the database in the step S502 is replaced by a memory, the long-term number expression is replaced by a short-term number expression, and other words including "long term" are replaced by words with "short term".
Step S803, the short-term file number expression is added to the short-term expression library in the memory, and the updated short-term expression library is obtained.
The short-term expression library is updated.
In the embodiment of the present application, reference may be made to the above step S503 for a specific implementation of the above step S803, which is not repeated herein, and only needs to pay attention to that the database in step S503 is replaced by a memory, that the long-term number expression is replaced by a short-term number expression, and that other words including "long term" are replaced by words with "short term".
Step S804, receiving a fourth expression selection instruction, and reading a short-term gear number expression corresponding to the fourth expression selection instruction from the updated short-term expression library.
Wherein the fourth expression selection instruction is an instruction issued by the user for determining a short-term gear number expression from the updated short-term expression library.
In the embodiment of the present application, reference may be made to the above step S504 for the specific implementation of the above step S804, which is not repeated herein, and only needs to pay attention to replace the database in step S504 with a memory, replace the long-term number expression with a short-term number expression, and replace other words including "long term" with words with "short term".
Fig. 9 shows a schematic structural diagram of a device for generating a gear number according to an embodiment of the present application, where the device 9 for generating a gear number may be configured on a terminal device, and specifically, the device 9 for generating a gear number may include:
the receiving module 901 is configured to receive a file number generation instruction, and obtain service data corresponding to the file number generation instruction;
a determining module 902, configured to determine a number attribute of the service data;
the obtaining module 903 is configured to obtain a number expression corresponding to the number attribute according to the number attribute, where the number expression includes a number element type;
and the replacing module 904 is configured to replace the type of the number element in the number expression by using the service data to obtain the target number.
Compared with the prior art, the beneficial effects of the embodiment of the application are as follows: according to the embodiment of the application, the business data corresponding to the file number generation instruction is obtained by receiving the file number generation instruction, the file number attribute of the business data is determined, the file number expression corresponding to the file number attribute is obtained according to the file number attribute, and then the file number element type in the file number expression is replaced by the business data to obtain the target file number. According to the embodiment of the application, the target gear is automatically generated by receiving the gear generation instruction sent by the user, and the user can quickly obtain the target gear by simply sending the gear generation instruction, so that the gear generation efficiency and accuracy are improved.
In some embodiments of the present application, the replacement module 904 described above may also be used to: acquiring a service field of service data and file number element content corresponding to the service field; acquiring an expression field of a gear number expression; and replacing the type of the file number element with the corresponding file number element content in the corresponding relation between the expression field and the service field in the file number expression to obtain the target file number.
In some embodiments of the present application, the number attribute includes a long-term number, and the acquiring module 903 may be further configured to: when the attribute of the gear number is a long-term gear number, acquiring a service ID of service data; inquiring a long-term gear number expression from a database according to the service ID; when the long-term number expression is queried, the long-term number expression is read from the database.
In some embodiments of the present application, the acquisition module 903 described above may also be used to: when the long-term file number expression cannot be queried, acquiring a long-term expression library from a database; and receiving a first expression selection instruction, and reading a long-term gear number expression corresponding to the first expression selection instruction from a long-term expression library.
In some embodiments of the present application, the acquisition module 903 described above may also be used to: receiving a first expression configuration instruction, and determining an optional element type based on the first expression configuration instruction; receiving a first element configuration instruction, and configuring a file number element type from selectable element types to form a long-term file number expression according to the first element configuration instruction; adding the long-term gear number expression into a long-term expression library in a database to obtain an updated long-term expression library; and receiving a second expression selection instruction, and reading a long-term gear number expression corresponding to the second expression selection instruction from the updated long-term expression library.
In some embodiments of the present application, the number attribute includes a short-term number, and the obtaining module 903 may be further configured to: when the file number attribute is a short-term file number, acquiring a service ID of service data; inquiring a short-term file number expression from the memory according to the service ID; when the short-term file number expression is queried, the short-term file number expression is read from the memory.
In some embodiments of the present application, the acquisition module 903 described above may also be used to: when the short-term file number expression cannot be queried, acquiring a short-term expression library from the memory; and receiving a third expression selection instruction, and reading a short-term gear number expression corresponding to the third expression selection instruction from the short-term expression library.
In some embodiments of the present application, the acquisition module 903 described above may also be used to: receiving a second expression configuration instruction, and determining the type of the selectable element based on the second expression configuration instruction; receiving a second element configuration instruction, and configuring a file number element type from the selectable element types to form a short-term file number expression according to the second element configuration instruction; adding the short-term file number expression into a short-term expression library in a memory to obtain an updated short-term expression library; and receiving a fourth expression selection instruction, and reading a short-term gear number expression corresponding to the fourth expression selection instruction from the updated short-term expression library.
Fig. 10 is a schematic diagram of a terminal device according to an embodiment of the present application. The terminal device 10 may include: a processor 1001, a memory 1002 and a computer program 1003 stored in the memory 1002 and executable on the processor 1001, such as a generation program of a gear number. The processor 1001 implements the steps in the above-described embodiment of the method for generating each gear number when executing the computer program 1003, for example, steps S101 to S104 shown in fig. 1. Alternatively, the processor 1001 implements the functions of the modules/units in the above-described device embodiments when executing the computer program 1003, for example, the receiving module 901, the determining module 902, the acquiring module 903, and the replacing module 904 shown in fig. 9.
The computer program may be divided into one or more modules/units, which are stored in the memory 1002 and executed by the processor 1001 to complete the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments are used for describing the execution of the computer program in the terminal device.
The terminal device may include, but is not limited to, a processor 1001, a memory 1002. It will be appreciated by those skilled in the art that fig. 10 is merely an example of a terminal device and is not limiting of the terminal device, and may include more or fewer components than shown, or may combine some components, or different components, e.g., the terminal device may also include input and output devices, network access devices, buses, etc.
The processor 1001 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, 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.
The memory 1002 may be an internal storage unit of the terminal device, such as a hard disk or a memory of the terminal device. The memory 1002 may be an external storage device of the terminal device, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like. Further, the memory 1002 may also include both an internal storage unit and an external storage device of the terminal device. The memory 1002 is used for storing the computer program and other programs and data required by the terminal device. The memory 1002 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for convenience and brevity of description, the structure of the above terminal device may also refer to a specific description of the structure in the method embodiment, which is not repeated herein.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment 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, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program can realize the steps in the method for generating the gear number when being executed by a processor.
The embodiment of the application provides a computer program product which can realize the steps in the method for generating the file number when being executed by a mobile terminal when the computer program product runs on the mobile terminal.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, 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 may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
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 each embodiment 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 integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each method embodiment described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should 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, and are intended to be included in the scope of the present application.

Claims (10)

1. The method for generating the gear number is characterized by comprising the following steps:
receiving a gear number generation instruction and acquiring service data corresponding to the gear number generation instruction;
determining the number attribute of the service data;
acquiring a gear number expression corresponding to the gear number attribute according to the gear number attribute, wherein the gear number expression comprises a gear number element type;
and replacing the type of the number element in the number expression by using the service data to obtain a target number.
2. The method for generating a file number according to claim 1, wherein said replacing the file number element type in the file number expression with the service data to obtain a target file number comprises:
Acquiring a service field of the service data and file number element content corresponding to the service field;
acquiring an expression field of the gear number expression;
and replacing the type of the file number element with the corresponding content of the file number element in the corresponding relation between the expression field and the service field in the file number expression to obtain the target file number.
3. The method for generating a gear according to claim 1, wherein the gear attribute includes a long-term gear, and the obtaining a gear expression corresponding to the gear attribute according to the gear attribute includes:
when the number attribute is a long-term number, acquiring a service ID of the service data;
inquiring a long-term gear number expression from a database according to the service ID;
and when the long-term gear number expression is queried, reading the long-term gear number expression from the database.
4. The method for generating a serial number according to claim 3, further comprising, after said querying a long-term serial number expression from a database according to said service ID:
when the long-term gear number expression cannot be queried, acquiring a long-term expression library from the database;
And receiving a first expression selection instruction, and reading a long-term gear number expression corresponding to the first expression selection instruction from the long-term expression library.
5. The method of generating a number according to claim 4, further comprising, after the long-term expression library is acquired from the database when the long-term number expression cannot be queried:
receiving a first expression configuration instruction, and determining an optional element type based on the first expression configuration instruction;
receiving a first element configuration instruction, and configuring the file number element type from the selectable element types according to the first element configuration instruction to form the long-term file number expression;
adding the long-term file number expression into the long-term expression library in the database to obtain an updated long-term expression library;
and receiving a second expression selection instruction, and reading the long-term gear number expression corresponding to the second expression selection instruction from the updated long-term expression library.
6. The method for generating a gear according to claim 1, wherein the gear attribute includes a short-term gear, and the obtaining a gear expression corresponding to the gear attribute according to the gear attribute includes:
When the file number attribute is a short-term file number, acquiring a service ID of the service data;
inquiring a short-term file number expression from a memory according to the service ID;
and when the short-term file number expression is queried, reading the short-term file number expression from the memory.
7. The method for generating a file number according to claim 6, further comprising, after said querying a short-term file number expression from a memory according to said service ID:
when the short-term file number expression cannot be queried, acquiring a short-term expression library from the memory;
and receiving a third expression selection instruction, and reading a short-term gear number expression corresponding to the third expression selection instruction from the short-term expression library.
8. The method for generating a file number according to claim 7, further comprising, after the short-term expression library is obtained from the memory when the short-term file number expression cannot be queried:
receiving a second expression configuration instruction, and determining an optional element type based on the second expression configuration instruction;
receiving a second element configuration instruction, and configuring the file number element types from the selectable element types according to the second element configuration instruction to form the short-term file number expression;
Adding the short-term file number expression into the short-term expression library in the memory to obtain an updated short-term expression library;
and receiving a fourth expression selection instruction, and reading the short-term gear number expression corresponding to the fourth expression selection instruction from the updated short-term expression library.
9. A gear number generating device, characterized by comprising:
the receiving module is used for receiving the gear number generation instruction and acquiring service data corresponding to the gear number generation instruction;
the determining module is used for determining the number attribute of the service data;
the acquisition module is used for acquiring a gear number expression corresponding to the gear number attribute according to the gear number attribute, wherein the gear number expression comprises a gear number element type;
and the replacing module is used for replacing the type of the file number element in the file number expression by utilizing the service data to obtain a target file number.
10. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method of generating a gear number according to any of claims 1 to 8 when the computer program is executed.
CN202410080129.1A 2024-01-19 2024-01-19 Method and device for generating file numbers and terminal equipment Active CN117591706B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410080129.1A CN117591706B (en) 2024-01-19 2024-01-19 Method and device for generating file numbers and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410080129.1A CN117591706B (en) 2024-01-19 2024-01-19 Method and device for generating file numbers and terminal equipment

Publications (2)

Publication Number Publication Date
CN117591706A true CN117591706A (en) 2024-02-23
CN117591706B CN117591706B (en) 2024-04-26

Family

ID=89913810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410080129.1A Active CN117591706B (en) 2024-01-19 2024-01-19 Method and device for generating file numbers and terminal equipment

Country Status (1)

Country Link
CN (1) CN117591706B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170236130A1 (en) * 2014-10-13 2017-08-17 Kim Seng Kee Emulating Manual System of Filing Using Electronic Document and Electronic File
CN109493205A (en) * 2018-10-16 2019-03-19 深圳壹账通智能科技有限公司 Intelligent bookkeeping methods, computer readable storage medium and terminal device
CN111340447A (en) * 2020-02-26 2020-06-26 山东浪潮通软信息科技有限公司 Configuration-based business process management method and device
CN113377952A (en) * 2021-05-26 2021-09-10 长江勘测规划设计研究有限责任公司 Automatic generation method for filing number of electronic file for quality test of water conservancy and hydropower engineering
CN114201447A (en) * 2021-12-08 2022-03-18 广州明动软件股份有限公司 Archives classification total library based on cloud archives integration platform is realized
CN114968914A (en) * 2022-05-26 2022-08-30 金蝶票据云科技(深圳)有限公司 Electronic archive management method and device, computer equipment and storage medium
CN115392845A (en) * 2022-06-13 2022-11-25 杭州京胜航星科技有限公司 File hanging management method and system based on file intellectualization
CN115794202A (en) * 2022-11-04 2023-03-14 中央广播电视总台 Data configuration method and engine, file system and computer storage medium
CN115796123A (en) * 2022-12-20 2023-03-14 四川启睿克科技有限公司 Method for realizing flexible configuration generation number and number safety

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170236130A1 (en) * 2014-10-13 2017-08-17 Kim Seng Kee Emulating Manual System of Filing Using Electronic Document and Electronic File
CN109493205A (en) * 2018-10-16 2019-03-19 深圳壹账通智能科技有限公司 Intelligent bookkeeping methods, computer readable storage medium and terminal device
CN111340447A (en) * 2020-02-26 2020-06-26 山东浪潮通软信息科技有限公司 Configuration-based business process management method and device
CN113377952A (en) * 2021-05-26 2021-09-10 长江勘测规划设计研究有限责任公司 Automatic generation method for filing number of electronic file for quality test of water conservancy and hydropower engineering
CN114201447A (en) * 2021-12-08 2022-03-18 广州明动软件股份有限公司 Archives classification total library based on cloud archives integration platform is realized
CN114968914A (en) * 2022-05-26 2022-08-30 金蝶票据云科技(深圳)有限公司 Electronic archive management method and device, computer equipment and storage medium
CN115392845A (en) * 2022-06-13 2022-11-25 杭州京胜航星科技有限公司 File hanging management method and system based on file intellectualization
CN115794202A (en) * 2022-11-04 2023-03-14 中央广播电视总台 Data configuration method and engine, file system and computer storage medium
CN115796123A (en) * 2022-12-20 2023-03-14 四川启睿克科技有限公司 Method for realizing flexible configuration generation number and number safety

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宋岩: ""办公自动化环境下高校档案档号条型码编制技术探析"", 《陕西档案》, no. 4, 25 August 2010 (2010-08-25), pages 31 - 32 *

Also Published As

Publication number Publication date
CN117591706B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN109254966B (en) Data table query method, device, computer equipment and storage medium
Abraham et al. Spanning the length scales in dynamic simulation
Gisler et al. EGovernment
CN114218455A (en) Method, device, equipment and medium for quickly reading files
Sontag On some questions of rationality and decidability
CN117591706B (en) Method and device for generating file numbers and terminal equipment
CN110362540B (en) Data storage and visitor number acquisition method and device
CN112199393B (en) Data table generation method, device, equipment and storage medium based on cross-table query
CN116976800A (en) Data processing method and device, storage medium and electronic equipment
CN108460159B (en) Information reply method, terminal equipment and computer readable storage medium
Gomes da Silva et al. Core problems in bi-criteria {0, 1}-knapsack problems
Dassow et al. On subregular selection languages in internal contextual grammars
Mihalo The microcomputer and social relationships
Palvia et al. Approximating block accesses in database organizations
Schmidt Interpolation in a derivative strip
McQuarrie The computer imperative among owners of home computers: Explanation by social factors
and Communication Networks Retracted:: A Novel Hierarchical Key Assignment Scheme for Data Access Control in IoT
CN117078389A (en) Credit card data storage query method, device, terminal and storage medium
Systems Retracted:: Exploring the Impact of Avatar Customization in Metaverse: The Role of the Class Mode on Task Engagement and Expectancy-Value Beliefs for Fashion Education
Mohammed et al. Corrigendum to “A decision modeling approach for smart e-tourism data management applications based on spherical fuzzy rough environment”[Applied Soft Computing 143 (2023) 110297]
Semiz et al. Corrigendum to “Solving an industry-inspired generalization of lifelong MAPF problem including multiple delivery locations”[Adv. Eng. Inf. 57 (2023) 102026]
Complexity Retracted:: Construction and Simulation of Economic Statistics Measurement Model Based on Time Series Analysis and Forecast
Mobile Computing Retracted:: Reform and Challenges of Ideological and Political Education for College Students Based on Wireless Communication and Virtual Reality Technology
Mobile Computing Retracted:: Design of Counselor Job Matching and Ideological and Political Education Methods Integrating Deep Learning Model
Ford Maximal collections of intersecting arithmetic progressions

Legal Events

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