File processing method, related equipment and medium

By automatically selecting and replacing file templates and structured variables in the appointment and removal process, the cost and efficiency problems caused by artificial filling of standard file variables are solved, and the method of automatically generating standard files in the appointment and removal activities is realized, improving efficiency and saving labor costs.

CN119740564APending Publication Date: 2025-04-01KINGDEE SOFTWARE(CHINA) CO LTD

Patent Information

Application Number
CN202411795001.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-04-01

AI Technical Summary

Technical Problem

In the appointment and removal activities, the existing technology requires artificially filling in the standard file variables in different appointment and removal links, resulting in increased costs and reduced efficiency.

Method used

By selecting the target file template for the current appointment and removal process, determine its corresponding set template, obtain the variable value of the structured variable, and replace it with the natural language variable in the target file template, and automatically generate the standard file.

Benefits of technology

Automatically generate standard files in different appointment and removal links, saving labor costs and improving file generation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119740564A_ABST
    Figure CN119740564A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a file processing method, related equipment and a medium, and is used for the technical field of file processing. In the embodiment of the invention, a target file template is selected from file templates of a plurality of standard files based on a current free link; wherein different free links have corresponding file templates, and the file templates comprise natural language variables; according to the method and the device, the sleeve printing template corresponding to the target file template of the current free link is determined, the variable value of the structured variable in the sleeve printing template is obtained, and the variable value of the structured variable in the sleeve printing template is used for replacing the corresponding natural language variable in the target file template, so that the standard file can be automatically generated in different free links, and the labor cost is effectively saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of file processing technology, and in particular to a file processing method, related equipment and medium. Background Art

[0002] Appointment and removal refers to the transfer and change of personnel in a certain position or post, including appointment (appointing someone to a certain position) and removal (removing someone from a certain position). Appointment and removal activities are the processes that need to be followed in the appointment and removal process. An appointment and removal activity includes multiple appointment and removal links, and corresponding appointment and removal documents often need to be generated in the appointment and removal links.

[0003] The appointment and dismissal documents include: standard documents; standard documents are standardized documents produced in accordance with the prescribed format. There are appointment and dismissal links in the appointment and dismissal activities that generate standard documents, such as: in the recommendation link, the recommendation ticket file is used; in the personnel file review link, the pre-appointment file review registration form is used; the voting ballot is used in the discussion and decision-making activities, etc.

[0004] The standard files have corresponding file variables. The existing method often requires manual filling of the file variables of the standard files. The appointment and dismissal activities include multiple appointment and dismissal links. The corresponding file variables that need to be filled in the standard files of different appointment and dismissal links are also different, which leads to increased costs and reduced efficiency in the file processing process. Summary of the invention

[0005] The embodiments of the present application provide a file processing method, related equipment and medium, which can automatically generate standard files in different appointment and removal links, effectively saving labor costs.

[0006] The present application provides a file processing method, including:

[0007] Selecting a target file template from a plurality of file templates of standard files based on the current appointment and dismissal link; wherein different appointment and dismissal links have corresponding file templates, and the file templates include: natural language variables;

[0008] Determine a template corresponding to the target document template, wherein the template includes: structured variables corresponding to the natural language variables of the target document template;

[0009] Obtaining the variable value of the structured variable in the template;

[0010] The variable values ​​of the structured variables in the template are used to replace the corresponding natural language variables in the target file template to generate a standard file.

[0011] The present application also provides a file processing device, including:

[0012] A selection unit is used to select a target file template from a plurality of file templates of standard files based on the current appointment and dismissal link; wherein different appointment and dismissal links have corresponding file templates, and the file templates include: natural language variables;

[0013] A determination unit, configured to determine a template corresponding to the target document template, wherein the template includes: structured variables corresponding to the natural language variables of the target document template;

[0014] An acquisition unit, used for acquiring the variable value of the structured variable in the template;

[0015] The replacement unit is used to replace the variable value of the structured variable in the template with the corresponding natural language variable in the target file template to generate a standard file.

[0016] The present application also provides an electronic device, including:

[0017] CPU, memory and input / output interface;

[0018] The memory is a short-term storage memory or a persistent storage memory;

[0019] The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the above method.

[0020] An embodiment of the present application also provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enable the computer to execute the method described above.

[0021] An embodiment of the present application further provides a computer program product comprising instructions or a computer program, wherein when the computer program product is run on a computer, the computer is enabled to execute the method described above.

[0022] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0023] It can be seen that in the embodiment of the present application, the template corresponding to the target file template of the current appointment and dismissal link is determined, and by obtaining the variable values ​​of the structured variables in the template, the variable values ​​of the structured variables in the template are replaced with the corresponding natural language variables in the target file template. This can automatically generate standard files in different appointment and dismissal links, effectively saving labor costs and improving the efficiency of standard file generation. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0025] Figure 1 A schematic diagram of an application architecture disclosed in an embodiment of the present application;

[0026] Figure 2 A flowchart of generating a standard file disclosed in an embodiment of the present application;

[0027] Figure 3 A flowchart of another method for generating a standard file disclosed in an embodiment of the present application;

[0028] Figure 4 A flowchart of extracting and archiving an appointment and exemption file disclosed in an embodiment of the present application;

[0029] Figure 5 A flowchart of generating an official document disclosed in an embodiment of the present application;

[0030] Figure 6 A flowchart for generating an appointment and removal approval table disclosed in an embodiment of the present application;

[0031] Figure 7 A schematic diagram of a file template disclosed in an embodiment of the present application;

[0032] Figure 8 A schematic diagram of a generated standard file disclosed in an embodiment of the present application;

[0033] Fig. 9 A schematic diagram of extracting appointment and dismissal documents disclosed in an embodiment of the present application;

[0034] Fig.10 A schematic diagram of an optional file grouping disclosed in an embodiment of the present application;

[0035] Fig.11 A schematic diagram of an official document template disclosed in an embodiment of the present application;

[0036] Fig.12 A schematic diagram of a generated official document disclosed in an embodiment of the present application;

[0037] Fig.13 A schematic diagram of an appointment and dismissal approval form template disclosed in an embodiment of the present application;

[0038] Fig.14 A schematic diagram of another application architecture disclosed in an embodiment of the present application;

[0039] Fig.15 A diagram of a file processing device for an appointment and dismissal process disclosed in an embodiment of the present application;

[0040] Fig.16 A schematic diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0042] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims and drawings of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0043] In the following description, similar expressions such as "a specific implementation" or "a specific example" are involved, which describe a subset of all possible embodiments, but it is understood that "a specific implementation" or "a specific example" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict. In the following description, the term multiple refers to at least two. The numerical value mentioned in this application reaches a threshold value (if any), which may include the case where the former is greater than the latter in some specific examples.

[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0045] To facilitate understanding and explanation, before further describing the embodiments of the present application in detail, the application scenarios of the present application will be briefly described.

[0046] like Figure 1As shown, during the appointment and dismissal process, the appointment and dismissal file corresponding to the appointment and dismissal activity is stored in the file server, and the appointment and dismissal file includes: standard files; standard files are made in accordance with the prescribed format, in a standardized document form, and have corresponding file variables in the standard files. Among them, the file server is connected to the user operation interface, and the user operation interface can be set in a terminal device (such as a mobile phone or computer, etc.). The standard file can be displayed on the user operation interface, and the file variables of the standard file can be manually filled in to generate the standard file. However, the appointment and dismissal activity includes multiple appointment and dismissal links, and the corresponding file variables that need to be filled in the standard files of different appointment and dismissal links are also different, which will greatly increase the labor cost. Therefore, the embodiment of the present application provides a file processing method for the appointment and dismissal process, which can automatically generate standard files in different appointment and dismissal links, effectively saving labor costs, such as Figure 2 As shown, the specific steps include:

[0047] 201. Select a target file template from file templates of multiple standard files based on the current appointment and dismissal link.

[0048] In the embodiment of the present application, the file processing device in the appointment and dismissal process can select a target file template from multiple standard file templates based on the current appointment and dismissal link. Generally, in the business scenario of appointment and dismissal, the standard file (which can be called a format file) is a file archived in Word format, and correspondingly, the file template of the standard file is a file template in Word format.

[0049] During the appointment and removal process, an appointment and removal activity includes multiple appointment and removal links: motion, recommendation, investigation, personnel file review, personal matters report verification, discussion and decision, pre-appointment publicity, appointment talk and document issuance; among them, except for the pre-appointment publicity link and document issuance link, the appointment and removal documents generated by other appointment and removal links are standard documents. The current appointment and removal link is the appointment and removal link that generates standard documents; different appointment and removal links have corresponding standard documents, such as in the recommendation link, the recommendation ticket file is used; in the personnel file review link, the pre-appointment file review registration form is used; the voting ballot used in the discussion and decision activities, etc. Different appointment and removal links have corresponding file templates, and the file templates contain: natural language variables; that is, the file variables of the standard files in different appointment and removal links can be abstracted into corresponding natural language variables to obtain the file templates of the standard files in different appointment and removal links.

[0050] Among them, the natural language variable is a variable recorded by sampling natural language. The natural language is a language that evolves naturally with culture and is the main tool for human communication and thinking. The natural language variable can be a variable name in Chinese. The file variable can be abstracted into the corresponding natural language variable through semantic analysis; for example, the file variables of the standard file: name A, name B and name C can be abstracted into the natural language variable: name. The target file template corresponding to the current appointment and dismissal link can be selected from the file templates of multiple standard files.

[0051] 202. Determine the printing template corresponding to the target file template.

[0052] Next, you can determine the copy template corresponding to the target file template, where the copy template is a positioning printing template, that is, the data content that needs to be filled in is printed on a template with a preset format with zero error, such as printing vouchers, purchase orders, warehouse in and out documents, etc.; in the digital development platform, different business scenarios have corresponding copy templates, and the printing paper specifications, printing direction and printing style of the copy template can be designed by dragging and dropping and configuring.

[0053] Among them, the file templates of different appointment and dismissal links can be bound to corresponding templates to determine the template corresponding to the target file template; the template contains: structured variables corresponding to the natural language variables of the target file template, wherein the structured variables are variables recorded in a sampled structured language, and the structured language is a language used for database query and programming; the structured variables can be English variable identifiers; if the natural language variable of the target file template is: name, the template corresponding to the target file template contains the corresponding structured variable: Name; each natural language variable in the target file template has a corresponding structured variable in the corresponding template.

[0054] 203. Obtain the variable value of the structured variable in the template.

[0055] After determining the template that corresponds to the target file template, the variable values ​​of the structured variables in the template can be obtained. Among them, the template business capability of the digital development platform can be called to obtain the variable values ​​of the structured variables in batches, and return a result set of structured variables and variable value combinations. That is, the variable metadata of the structured variable can be obtained, and the variable metadata contains the data table information corresponding to the structured variable. Then, based on the data table information, the corresponding data table can be queried from the appointment and dismissal database of the digital development platform to obtain the variable value of the structured variable. Among them, the appointment and dismissal database contains the business data of the appointment and dismissal activities in the appointment and dismissal process, the file information of the appointment and dismissal files, and the extended information (such as the associated information of the appointment and dismissal files, etc.)

[0056] 204. Replace the variable value of the structured variable in the template with the corresponding natural language variable in the target file template.

[0057] After obtaining the variable value of the structured variable in the template, the variable value of the structured variable can be substituted for the corresponding natural language variable in the target file template to generate a standard file. That is, the structured variable in the template corresponding to the natural language variable in the target file template can be determined, and then the variable value of the structured variable can be substituted for the corresponding natural language variable to generate a standard file in Word format. In the embodiment of the present application, a standard file can be automatically generated in any optional link of generating a standard file.

[0058] It can be seen that in the embodiment of the present application, the template corresponding to the target file template of the current appointment and dismissal link is determined, and by obtaining the variable values ​​of the structured variables in the template, the variable values ​​of the structured variables in the template are replaced with the corresponding natural language variables in the target file template. This can automatically generate standard files in different appointment and dismissal links, effectively saving labor costs.

[0059] Further, in the embodiment of the present application, the application architecture is as follows Fig.14 As shown, it includes: data storage layer, business logic layer, view presentation layer and user operation interface.

[0060] The data storage layer includes an appointment and dismissal database and a file server. The appointment and dismissal database stores business data (appointment and dismissal activity information), file information (attachment information) and extended information of appointment and dismissal documents. The file server stores appointment and dismissal documents in appointment and dismissal activities. The appointment and dismissal documents in appointment and dismissal activities include: standard documents, official documents and appointment and dismissal approval forms. Official documents are written materials with legal effect and standardized format. Appointment and dismissal approval forms are written documents that record and reflect the appointment and dismissal of personnel and their changes.

[0061] The business logic layer includes: template components, appointment and dismissal file generation components and appointment and dismissal file archiving components; template components include: official document templates, copy templates and file templates; appointment and dismissal file generation components include official document automatic generation services, appointment and dismissal approval form automatic generation services and standard file automatic generation services. The appointment and dismissal file generation component is used to generate appointment and dismissal files based on the templates in the template components and the data stored in the appointment and dismissal database; the appointment and dismissal file archiving components include: appointment and dismissal file automatic extraction services and appointment and dismissal file grouping and packaging services.

[0062] The view display layer is used to display: official documents (including document issuance documents in the document issuance phase and public notice documents in the pre-appointment publicity phase), appointment and removal approval forms, standard file export controls, and attachment download controls.

[0063] The following describes the automatic generation service of standard files. Figure 3As shown, the specific steps include:

[0064] 301. Perform consistency matching on the natural language variables in the document template and the structured variables in the template corresponding to the document template.

[0065] In the embodiment of the present application, a configuration file template is required. Specifically, the file variables in the standard file can be abstracted into corresponding natural language variables to obtain a file template, that is, a file template for designing standard files in different appointment and dismissal links. The natural language variable can be: name, company, department, and proposed position, etc., which are not limited here.

[0066] The natural language variables in the file template and the structured variables in the template corresponding to the file template are matched consistently, that is, the natural language variables of the file template are matched one by one with the structured variables in the template, and the natural language variables of the file template and the structured variables in the template are synchronized to make the variables in the file template and the template consistent, so that the generated standard file and the template file generated by the template can be consistent in format and content; there is no need to waste resources to obtain the variable values ​​of redundant structured variables, which are structured variables for which there are no corresponding natural language variables in the corresponding file template.

[0067] For example, in the appointment and removal phase: recommendation phase, the target file template is as follows Figure 7 As shown, the natural language variables are: name and intended position; the structured variables in the template corresponding to the target file template are: Name and Appointment.

[0068] 302. Select a target file template from file templates of multiple standard files based on the current appointment and dismissal link.

[0069] 303. Determine the printing template corresponding to the target file template.

[0070] It can be understood that step 302 and step 303 are similar to the above-mentioned step 201 and step 202, and the details are not repeated here.

[0071] 304. Extract the variable value of the structured variable in the template based on the storage location of the variable value.

[0072] In the embodiment of the present application, the corresponding template is searched through the selected target file template, and the variable value of the structured variable in the template is extracted based on the storage location of the variable value. Specifically, when the variable value is stored in the appointment and dismissal database, the variable value of the structured variable is extracted from the appointment and dismissal database based on the variable metadata of the structured variable in the template, that is, the corresponding data table is found in the appointment and dismissal data based on the data table information in the variable metadata, and the variable value of the structured variable is extracted. For some complex scenarios, such as when the structured variable is the level information of the appointment and dismissal personnel, and the appointment and dismissal personnel level information is not recorded in the appointment and dismissal database; that is, when the variable value is not stored in the appointment and dismissal database, other databases are accessed through business extension points, and the variable value of the structured variable is extracted from other databases; the other database is a third-party database other than the appointment and dismissal database, and the corresponding interface can be configured in other databases through business extension points, and the variable value of the structured variable is extracted from other databases through the interface.

[0073] 305. Replace the variable value of the structured variable in the template with the corresponding natural language variable in the target file template to generate a standard file.

[0074] After obtaining the variable value of the structured variable in the template, the variable value of the structured variable in the template can be substituted for the corresponding natural language variable in the target file template. Specifically, the first natural language variable corresponding to the structured variable in the template can be obtained, that is, through the variable metadata corresponding to the structured variable, the variable metadata contains the corresponding natural language variable, and the first natural language variable set corresponding to the structured variable can be obtained in batches, such as batch obtaining the Chinese variable name set corresponding to the English variable identifier.

[0075] Next, the second natural language variable in the target file template can be queried; for example, the set of Chinese variable names in the target file template can be queried. Based on the matching relationship between the first natural language variable and the second natural language variable, the variable value of the structured variable in the template is replaced with the second natural language variable in the target file template to generate a standard file. It can be understood that even if the first natural language variable corresponding to the structured variable in the template obtained and the second natural language variable in the target file template express the same meaning, there may be certain differences in the specific natural language variables, such as name and given name. At this time, it is necessary to determine whether the first natural language variable matches the second natural language variable, that is, whether the meanings expressed by the natural language variables are the same; then the variable value of the structured variable in the template is replaced with the second natural language variable in the target file template to ensure accurate replacement of the natural language variable in the target file template.

[0076] When the first natural language variable in the template matches the second natural language variable in the target file template, the variable value of the structured variable corresponding to the first natural language variable can be assembled into the variable value of the second natural language variable, and can be returned in the format of Chinese variable name = variable value, such as name = name A. The variable value of the second natural language variable replaces the second natural language variable in the target file template to generate a standard file in Word format; the standard file can be downloaded through the platform file service of the digital development platform.

[0077] In an practicable manner, the structured variable corresponding to the natural language variable in the target file template in the template printing can also be determined, such as converting the natural language variable in the target file template into a first structured variable, and determining the structured variable corresponding to the first structured variable in the template printing. Then, the variable value of the corresponding structured variable replaces the natural language variable in the target file template to generate a standard file.

[0078] For example, in the recommendation phase, the standard file generated by the target file template of the recommendation ticket is as follows Figure 8 As shown, the variable value of the structured variable: Appointment in the template is: Deputy Manager of Company A, and the variable value of the structured variable: Name is: Name A, Name B, Name C, and Name D.

[0079] It can be understood that the standard file automatic generation service can be applied to any link in the generation of standard files, automatically fill in the corresponding variable values ​​in the file template, generate standard files, and effectively save labor costs.

[0080] Furthermore, in an embodiment of the present application, the variable values ​​of the structured variables in the template are used to replace the corresponding natural language variables in the target file template. After the standard file is generated, it is necessary to download the standard file or other optional files.

[0081] In the appointment and dismissal process (selection and appointment business), there are many appointment and dismissal activities, and the corresponding appointment and dismissal files are also many. When downloading the appointment and dismissal files, if the appointment and dismissal files are downloaded one by one, the download efficiency of the appointment and dismissal files is low. Therefore, the following will describe the appointment and dismissal file automatic extraction service and the appointment and dismissal file grouping and packaging archiving service in the appointment and dismissal file archiving component. By extracting and archiving the appointment and dismissal files, one-click download is achieved, and the download efficiency of the appointment and dismissal files is improved; Figure 4 As shown, the specific steps include:

[0082] 401. Determine the appointment and dismissal activities of the appointed and dismissed personnel based on their appointment and dismissal orders.

[0083] In an embodiment of the present application, the file processing device can determine the appointment and dismissal activities of the appointed and dismissed personnel based on the appointment and dismissal list of the appointed and dismissed personnel. Among them, the appointed and dismissed personnel can be selected by the user through the user operation interface, or can be a pre-set appointed and dismissed personnel, which is not limited here. The appointment and dismissal list of the appointed and dismissed personnel can be queried, and the appointment and dismissal list is a data table for recording the appointment and dismissal activity information of the appointed and dismissed personnel; it can be understood that an appointed and dismissed personnel can include multiple appointment and dismissal positions (such as position A, position B, and position C, etc.), an appointment and dismissal position can include multiple appointment and dismissal lists (such as divided into multiple appointment and dismissal lists based on the appointment and dismissal types corresponding to the appointment and dismissal positions), and an appointment and dismissal list can include multiple appointment and dismissal activities (such as the appointment and dismissal activities are restarted after a certain appointment and dismissal link is terminated); all appointment and dismissal activities of the appointed and dismissed personnel can be queried through the appointment and dismissal list of the appointed and dismissed personnel.

[0084] 402. Extract the appointment and dismissal file from the file server based on the file storage method corresponding to the appointment and dismissal activity of the appointed and dismissed personnel.

[0085] Next, the appointment and dismissal file can be extracted from the file server based on the file storage method corresponding to the appointment and dismissal activity of the appointment and dismissal personnel. The file storage method corresponding to the appointment and dismissal activity refers to the method in which the appointment and dismissal file is uploaded to the file server for storage during the appointment and dismissal activity.

[0086] The file storage methods include: single / multiple attachment panels, multi-entry attachment panels, and multi-person multi-attachment panels; the attachment panel is a control for uploading files, which supports file selection, drag and drop to upload files, and supports file download preview, etc. Single / multiple attachment panels refer to: uploading appointment and dismissal files through one or more attachment panels in the appointment and dismissal activities; multi-entry attachment panels refer to: in the appointment and dismissal activities, there may be multiple meetings in an appointment and dismissal link (such as discussion and decision), each meeting will generate an appointment and dismissal file, and each appointment and dismissal file will be uploaded through an attachment panel; multi-person multi-attachment panels refer to: multiple appointment and dismissal personnel, each appointment and dismissal personnel uses the corresponding attachment panel to upload the appointment and dismissal file.

[0087] Through the file storage method, the corresponding appointment and dismissal files can be extracted from the file server, and the appointment and dismissal files of all appointment and dismissal activities in the same appointment and dismissal form can be packaged into a data structure package corresponding to the appointment and dismissal form, and returned to the view display layer; the corresponding data structure package is displayed in the view display layer, such as Fig. 9 As shown, the data structure package of the appointment and dismissal form displays: the name of the appointed and dismissed person, the appointment and dismissal type, the appointment and dismissal registration date, and the number of appointment and dismissal files in the appointment and dismissal form; at this time, the appointment and dismissal file corresponding to the task order in the data structure package can be downloaded, that is, the extracted appointment and dismissal file can be loaded into the memory of the file processing device.

[0088] 403. Group and package the extracted appointment and dismissal files based on preset grouping and packaging rules to generate corresponding archive files.

[0089] After extracting the appointment and dismissal files, the extracted appointment and dismissal files can be grouped and packaged based on the preset grouping and packaging rules to generate corresponding archive files. The preset grouping and packaging rules can be: grouped by appointment and dismissal personnel: naming of attachment folders: [name_appointment and dismissal form type_appointment and dismissal form creation time], such as: appointment and dismissal activity attachments_20230808 / person A_appointment_20230808 / *****.docx; grouped by appointment and dismissal activities: naming of attachment folders: [appointment and dismissal link name], such as: appointment and dismissal activity attachments_20230808 / recommendation / *****.docx; grouped by appointment and dismissal personnel to ... Name: [Name_Appointment and Dismissal Form Type_Appointment and Dismissal Form Creation Time]>[Appointment and Dismissal Link Name], such as: Appointment and Dismissal Activity Attachment_20230808 / Name A_Appointment_20230808 / Recommendation / *****.docx; Group by appointment and dismissal activities to appointment and dismissal personnel: Naming of attachment folder: [Appointment and Dismissal Link Name]>[Name_Appointment and Dismissal Form Type_Appointment and Dismissal Form Creation Time], such as: Appointment and Dismissal Activity Attachment_20230808 / Recommendation / Name A_Appointment_20230808 / *****.docx.

[0090] For example, the preset grouping and packaging rules can be read: the extracted appointment and dismissal files are packaged according to the appointment and dismissal personnel and appointment and dismissal activities groups, and the archived files obtained are as follows: Fig.10 shown.

[0091] It can be seen that by extracting the appointment and dismissal files and grouping them, the appointment and dismissal files to be downloaded can be quickly selected by naming the attachment folder in the attachment folder of the packaged appointment and dismissal files, thereby improving the download efficiency of the appointment and dismissal files.

[0092] Furthermore, in the embodiment of the present application, when it is necessary to generate standard documents for the appointment and dismissal links (proposal, recommendation, investigation, personnel file review, personal affairs report verification, discussion and decision), standard documents are generated, and after passing the corresponding appointment and dismissal links based on the standard documents, the next appointment and dismissal links to be entered are the pre-appointment publicity link and the document issuance link, and official documents are needed in the pre-appointment publicity link and the document issuance link; that is, in the appointment and dismissal activities, after generating the standard documents, official documents also need to be generated.

[0093] That is, during the appointment and dismissal process, the appointment and dismissal documents corresponding to the appointment and dismissal activities also include: official documents (issued documents and public documents). The following will describe the automatic generation service of official documents, such as Figure 5 As shown, the specific steps include:

[0094] 501. Select official document templates that meet the preset official document requirements, as well as appoint and dismiss personnel.

[0095] In the embodiment of the present application, a document template that meets the preset document requirements and the appointment and dismissal of personnel can be selected; it can be understood that the document template is used in the document issuance stage and the pre-appointment publicity stage. The document template includes: administrative position document issuance template, other position document issuance template, and proposed appointment publicity template. The corresponding document template can be selected based on the corresponding appointment and dismissal stage. If it is a document issuance stage, it is also necessary to select an administrative position document issuance template or a other position document issuance template.

[0096] The official document elements, official document copy corresponding to the official document elements, and the layout format corresponding to the official document copy contained in the official document file are determined to form a corresponding official document template. The official document template that meets the preset official document requirements is that the official document elements, official document copy corresponding to the official document elements, and the layout format corresponding to the official document copy in the official document template all meet the requirements.

[0097] like Fig.11 As shown in the figure, the job posting template contains multiple elements (such as posting question mark, posting title, etc.) and corresponding copy (posting number, posting title, etc.). The official document template also contains optional variables: the name and work number of the appointed and dismissed personnel; in the posting stage, one or more appointed and dismissed personnel can be selected.

[0098] 502. Read the appointment and dismissal information of the appointed and dismissed personnel from the appointment and dismissal database, and fill the appointment and dismissal information into the official document template to generate an official document file.

[0099] Next, the appointment and dismissal information of the appointed and dismissed personnel can be read from the appointment and dismissal database, and the appointment and dismissal information can be filled into the official document template to generate an official document file. The appointment and dismissal information of the appointed and dismissed personnel includes: the information of the proposed appointment and dismissal of the appointed and dismissed personnel. The appointment and dismissal information is filled into the corresponding official document copy to generate an official document file.

[0100] When generating a document, there are strict format requirements for the writing and sorting of companies, departments, and positions in the document. For example, for full-time appointments and dismissals, you can directly write the company, department, and position. For part-time appointments and dismissals, you must indicate the word "part-time" and specify the part-time department and position. When multiple appointments and dismissals are involved, full-time appointments and dismissals are usually written first, followed by part-time appointments and dismissals, and the appointments and dismissals must be sorted by level. The appointment and dismissal information of multiple people in the same company can be merged. Fig.12 As shown, when multiple persons are appointed or dismissed in the same company, multiple appointment and dismissal persons can be selected, and the appointment and dismissal information of the multiple appointment and dismissal persons can be respectively filled into a document template, and then a document file can be generated to display the appointment and dismissal information of the multiple appointment and dismissal persons.

[0101] It can be seen that in the official document automatic generation service, official document files that meet the requirements can be quickly and automatically generated through official document templates, ensuring strict compliance with the official document format and content, and improving business processing efficiency and accuracy.

[0102] Furthermore, after completing each appointment and dismissal link in the appointment and dismissal activity (including: the appointment and dismissal link that generates standard documents and the appointment and dismissal link that generates official documents), before the formal appointment and dismissal is carried out, it is necessary to use the appointment and dismissal approval form to approve the appointment and dismissal information of the appointed and dismissed personnel; that is, in the appointment and dismissal activity, after generating standard documents and official documents, it is also necessary to generate an appointment and dismissal approval form.

[0103] That is, during the appointment and dismissal process, the appointment and dismissal documents corresponding to the appointment and dismissal activities also include: appointment and dismissal approval form. The following will describe the automatic generation service of the appointment and dismissal approval form, such as Figure 6 As shown, the specific steps include:

[0104] 601. Obtain the appointment and dismissal approval form template and the archival data of the appointed and dismissed personnel.

[0105] In an embodiment of the present application, the file processing device can obtain the appointment and removal approval form template and the file data of the appointment and removal personnel. It can be understood that the appointment and removal approval form contains: basic information, job information, resume information, rewards and punishments and assessment information, reasons for appointment and removal, family situation and reporting and approval information of the appointment and removal personnel, and the obtained appointment and removal approval form template contains template boxes corresponding to these information for filling in the corresponding information. The file data of the appointment and removal personnel can be stored in the appointment and removal database. The file data of the appointment and removal personnel in the appointment and removal database is generally stored as structured data. The structured data corresponding to the file can be extracted, and the extracted structured data can be converted into corresponding natural language data.

[0106] 602. The work experience data, appointment and dismissal experience data, and education experience data in the archive data are combined based on time comparison to generate resume information.

[0107] The archive data contains the work experience data, appointment and dismissal experience data and education experience data related to the resume information. The work experience data, appointment and dismissal experience data and education experience data in the archive data can be spliced ​​based on time comparison to generate resume information. Specifically, the work experience data, appointment and dismissal experience data and education experience data can be cleaned and repeated data can be deleted, and then a resume object with a resume time period corresponding to the start time and the end time can be generated respectively. Then, the resume objects can be sorted in chronological order. For resume objects with overlapping time, the resume splicing can be performed based on time comparison to make the corresponding education experience time continuous and the work experience time continuous; for example, the time periods of multiple resume objects can be compared with the month as the time axis, and the overlapping time periods can be split and reorganized. For example, the time period of the previous resume object overlaps with the time period of the next resume object in the time sequence for a certain number of months. At this time, the middle month of the months corresponding to the number of months can be taken as the end month of the previous resume object and as the start month of the next resume object, even if the end month of the previous resume object and the start month of the next resume object in the time sequence are the same.

[0108] The corresponding resume information can be: 2019.09-2022.06 studied full-time at University A and obtained a bachelor's degree; 2022.06-2024.01 worked as a financial clerk at Company A; 2024.01 to present worked as a manager at Company A.

[0109] 603. Other archival data in the archival data are spliced ​​together to generate appointment and dismissal approval form information in addition to resume information.

[0110] Next, other archival data in the archival data can be spliced ​​to generate appointment and dismissal approval form information in addition to the resume information; that is, for other archival data (age data, family situation data, reward and punishment experience data, etc.), the corresponding natural language data can be directly spliced ​​to generate appointment and dismissal approval form information in addition to the resume information.

[0111] 604. Fill the resume information and appointment and dismissal approval form information into the appointment and dismissal approval form template to generate the appointment and dismissal approval form.

[0112] Next, you can fill the resume information and appointment and dismissal approval form information into the appointment and dismissal approval form template to generate the appointment and dismissal approval form, that is, you can assemble the resume information and the appointment and dismissal approval form information and fill them into the corresponding template box in the appointment and dismissal approval form template. Then, you can call the lrmx file generator to generate the appointment and dismissal approval form in lrmx format, where lrmx is a special file format mainly used to store the data of the appointment and dismissal approval form.

[0113] It can be seen that the automatic generation service of the appointment and dismissal approval form generates resume information by splicing the work experience data, appointment and dismissal experience data and education experience data based on time comparison, which can effectively avoid overlapping time periods in the obtained resume information and quickly generate accurate appointment and dismissal approval forms.

[0114] The present application also provides a file processing device for the appointment and removal process, such as Fig.15 As shown, including:

[0115] The selection unit 1501 is used to select a target file template from a plurality of file templates of standard files based on the current appointment and dismissal link; wherein different appointment and dismissal links have corresponding file templates, and the file templates include: natural language variables;

[0116] A determining unit 1502 is used to determine a template corresponding to the target document template, wherein the template includes: structured variables corresponding to the natural language variables of the target document template;

[0117] The acquiring unit 1503 is used to acquire the variable value of the structured variable in the template;

[0118] The replacement unit 1504 is used to replace the variable value of the structured variable in the template with the corresponding natural language variable in the target file template to generate a standard file.

[0119] Furthermore, the acquisition unit 1503 is specifically used to, when the variable value is stored in the appointment and dismissal database, extract the variable value of the structured variable from the appointment and dismissal database based on the variable metadata of the structured variable in the template; when the variable value is not stored in the appointment and dismissal database, access other databases through business extension points to extract the variable value of the structured variable from the other databases.

[0120] Furthermore, the replacement unit 1504 is specifically used to obtain a first natural language variable corresponding to the structured variable in the template; query the second natural language variable in the target file template; and based on the matching relationship between the first natural language variable and the second natural language variable, replace the variable value of the structured variable in the template with the second natural language variable in the target file template to generate a standard file.

[0121] Furthermore, the replacement unit 1504 is also used to determine the structural variables corresponding to the natural language variables in the target file template in the template; replace the natural language variables in the target file template with the variable values ​​of the corresponding structural variables to generate a standard file.

[0122] The present application also provides an electronic device. Fig.16The electronic device 1600 of the embodiment of the present application may include one or more central processing units (CPU) 1601 and a memory 1602 , in which one or more application programs or data are stored.

[0123] The memory 1602 may be a volatile storage or a persistent storage. The program stored in the memory 1602 may include one or more modules, each of which may include a series of instruction operations in the electronic device. Furthermore, the central processor 1601 may be configured to communicate with the memory 1602 and execute a series of instruction operations in the memory 1602 on the electronic device 1600.

[0124] The electronic device 1600 may also include one or more power supplies 1605, one or more wired or wireless network interfaces 1604, one or more input and output interfaces 1603, and / or one or more operating systems, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0125] The central processor 1601 can execute the operations performed by the aforementioned first aspect or any specific method embodiment of the first aspect, and the details will not be repeated here.

[0126] The present application provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enable the computer to execute the method described in the first aspect or any specific implementation of the first aspect.

[0127] The present application provides a computer program product comprising instructions or a computer program. When the computer program product is run on a computer, the computer is enabled to execute the method described in the first aspect or any specific implementation of the first aspect.

[0128] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0129] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0130] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple 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.

[0131] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0132] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

Claims

1. A file processing method, characterized in that: include: Selecting a target file template from a plurality of file templates of standard files based on the current appointment and dismissal link; wherein different appointment and dismissal links have corresponding file templates, and the file templates include: natural language variables; Determine a template corresponding to the target document template, wherein the template includes: structured variables corresponding to the natural language variables of the target document template; Obtaining the variable value of the structured variable in the template; The variable values ​​of the structured variables in the template are used to replace the corresponding natural language variables in the target file template to generate a standard file.

2. The file processing method according to claim 1, characterized in that: The step of obtaining the variable value of the structured variable in the template includes: When the variable value is stored in the appointment and dismissal database, the variable value of the structured variable is extracted from the appointment and dismissal database based on the variable metadata of the structured variable in the template; When the variable value is not stored in the appointment and removal database, other databases are accessed through business extension points, and the variable value of the structured variable is extracted from the other databases.

3. The file processing method according to claim 1, characterized in that: The step of replacing the corresponding natural language variables in the target file template with the variable values ​​of the structured variables in the template to generate a standard file includes: Obtaining a first natural language variable corresponding to the structured variable in the template; Querying a second natural language variable in the target file template; Based on the matching relationship between the first natural language variable and the second natural language variable, the variable value of the structured variable in the template is substituted for the second natural language variable in the target file template to generate a standard file.

4. The file processing method according to claim 1, characterized in that: The step of replacing the variable value of the structured variable in the template with the corresponding natural language variable in the target file template to generate a standard file also includes: Determine the structured variables in the template corresponding to the natural language variables in the target file template; The variable value of the corresponding structured variable replaces the natural language variable in the target file template to generate a standard file.

5. The file processing method according to claim 1, characterized in that: The method further comprises: Abstract the file variables in the standard file into corresponding natural language variables to obtain a file template; The natural language variables in the file template and the structured variables in the template corresponding to the file template are matched for consistency.

6. The file processing method according to any one of claims 1 to 5, characterized in that: The method further comprises: Determine the appointment and dismissal activities of the appointed and dismissed personnel based on the appointment and dismissal list of the appointed and dismissed personnel; Extracting appointment and dismissal files from a file server based on the file storage method corresponding to the appointment and dismissal activities of the appointed and dismissed personnel; The extracted appointment and removal files are grouped and packaged based on the preset grouping and packaging rules to generate corresponding archive files.

7. The file processing method according to any one of claims 1 to 5, characterized in that: The method further comprises: Select document templates that meet preset document requirements, and appoint and dismiss personnel; The appointment and dismissal information of the appointed and dismissed personnel is read from the appointment and dismissal database, and the appointment and dismissal information is filled into the official document template to generate an official document file.

8. The file processing method according to any one of claims 1 to 5, characterized in that: The method further comprises: Obtain the appointment and dismissal approval form template and the file data of the appointed and dismissed personnel; The employment experience data, appointment and dismissal experience data and education experience data in the archive data are spliced ​​based on time comparison to generate resume information; splicing other archival data in the archival data to generate appointment and dismissal approval form information in addition to the resume information; Fill the resume information and the appointment and dismissal approval form information into the appointment and dismissal approval form template to generate the appointment and dismissal approval form.

9. A file processing device, characterized in that: include: A selection unit is used to select a target file template from a plurality of file templates of standard files based on the current appointment and dismissal link; wherein different appointment and dismissal links have corresponding file templates, and the file templates include: natural language variables; A determination unit, configured to determine a template corresponding to the target document template, wherein the template includes: structured variables corresponding to the natural language variables of the target document template; An acquisition unit, used for acquiring the variable value of the structured variable in the template; The replacement unit is used to replace the variable value of the structured variable in the template with the corresponding natural language variable in the target file template to generate a standard file.

10. An electronic device, characterized in that: include: CPU, memory and input / output interface; The memory is a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The method comprises instructions, which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 8.

12. A computer program product comprising instructions or a computer program, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Structured information input method of document, electronic equipment and storage medium

    CN113378538A

  • Medical safety event description generation method and device, equipment and storage medium

    CN114444463A

  • OFD file generation method and device, equipment and storage medium

    CN115994528A

  • Personnel affair official announcement integrated processing system

    JP1996123865A

Cited By

  • Automatic processing method and system for talent duty free process

    CN120297703A

  • File header-containing file sleeve printing method and device, computer equipment and storage medium

    CN121680762A