General printing method and system, electronic equipment and storage medium
By obtaining the printer list and the list of printing lists from the server, and determining the content of the printing according to the user name, remote printing of data information in the business system, solving the problem of not supporting remote printing in existing technology, provided more flexible flexibility Printing scheme.
Patent Information
- Application Number
- CN202411366972.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-21
AI Technical Summary
Remote printing is not supported in the prior art. Users can only print ontology and cannot print data information in the business system anywhere or at any time.
By responding to the user's login operation, the printer list is obtained from the server and associated with the user, the list to be printed is obtained, and the content to be printed is determined based on the user name, and is sent to the target printer to perform the printing operation.
Realized the remote printing of data information in the business system, users can print at any place or at any time, solve the problem of adaptation of the printer of the business system, and avoid the phenomenon of the printer selected by the user. Essence
Smart Images

Figure CN119336281A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a universal printing method and system, an electronic device and a storage medium. Background Art
[0002] With the continuous upgrading of business systems, in order to better serve customers, how to realize remote printing of data information in business systems has become particularly important. However, related technologies do not support remote printing and can only perform on-site printing. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0004] To this end, a first aspect of the present invention proposes a universal printing method.
[0005] A second aspect of the present invention provides a universal printing system.
[0006] A third aspect of the present invention provides an electronic device.
[0007] A fourth aspect of the present invention provides a storage medium.
[0008] In view of this, according to the first aspect of the present invention, a universal printing method is proposed, comprising: in response to a user's login operation, obtaining a printer list from a server; in response to a user's operation of selecting a target printer in the printer list, associating the user's first user name with the target printer; obtaining a to-be-printed list from the server, wherein the to-be-printed list includes: printing time, printing status, to-be-printed content and a second user name, and the first user name corresponds to the second user name; determining the to-be-printed content in the to-be-printed list according to the first user name, and sending the to-be-printed content to the target printer to perform a printing operation.
[0009] The universal printing method provided by the present invention mainly includes: first, in response to the user's login operation, a printer list is obtained from the server, that is, when the user successfully logs in to the client through the account and password, a printer list is obtained from the server, and the printer list includes all printers that the client can access and use in the current environment. Then, in response to the user's operation of selecting a target printer in the printer list, the user's first user name is associated with the target printer, that is, when the user selects one of the printers in the printer list, the first user name corresponding to the user is associated with the printer, wherein the first user name can be the account used by the user to log in to the client. After the first user name is associated with the target printer, a list to be printed is obtained from the server, wherein the list to be printed can be obtained at a set fixed time after the user logs in to the client, or can be obtained at a preset time interval. At the same time, multiple data information are included in the list to be printed, and the content of each data information includes the second user name, the content to be printed, the printing time and the printing status. When the content to be printed in the data information has not been printed, the printing status is not printed, and the printing time can be empty. When the content to be printed in the data information has been printed, the printing status is printed, and the printing time is the time when the content to be printed is printed. The second user name in each data information can be the same or different. At the same time, the second user name in the data information is the same as or corresponds to the first user name when the user logs in to the client, that is, the second user name in the data information is the same as or corresponds to the first user name associated with the target printer. At the same time, the content to be printed can be selected by the user in the business system. After obtaining the list to be printed, the content to be printed is determined in the list to be printed according to the first user name. Specifically, the second user name corresponding to the first user name can be determined in the list to be printed according to the first user name, and then the content to be printed can be determined in the list to be printed according to the second user name. After obtaining the content to be printed, the content to be printed is sent to the target printer so that the target printer performs a printing operation. In the present invention, by responding to the user's login operation, a printer list consisting of all accessible and usable printers in the current environment is obtained from the server, so that the user can make a selection in the printer list, thereby solving the problem of business system adaptation to the printer and avoiding the situation where the printer selected by the user cannot adapt to the business system. At the same time, by obtaining the to-be-printed list from the server, and then determining the to-be-printed content in the to-be-printed list according to the first user name, the user does not need to print the to-be-printed content in the business system. The user can log in to the client at any place or at any time to print the print content in the business system, thereby realizing remote printing of the content of the business system.
[0010] The above-mentioned general printing method according to the present invention may also have the following technical features: In some technical solutions, optionally, before the step of obtaining the to-be-printed list from the server, it includes: determining the to-be-printed content selected by the user in the business system and the user's second user name; after associating the to-be-printed content with the second user name, storing it in the to-be-printed list.
[0011] In this technical solution, before the step of obtaining the list to be printed from the server, it includes: first determining the content to be printed selected by the user in the business system and the second user name of the user, that is, the user can use the second user name to log in to the business system, and then select the content to be printed, that is, the content to be printed, in the business system, and then the server obtains the second user name used by the user when logging in to the business system and the content to be printed selected by the user in the business system. Then the content to be printed is associated with the second user name to generate a data message, and in the data message, the printing status is marked as unprinted and the printing time is marked as empty. After associating the content to be printed with the second user name, it is stored in the list to be printed. By associating the content to be printed with the second user name and storing it in the list to be printed, it is ensured that the corresponding content to be printed can be accurately obtained when performing remote printing, and the content to be printed is stored in the list to be printed, and it can also be ensured that the content to be printed can be printed at any time.
[0012] In some technical solutions, optionally, after the step of associating the first user name of the user with the target printer, the method further includes: storing the association relationship between the first user name and the target printer in a user-printer relationship table.
[0013] In this technical solution, after the step of associating the first user name of the user with the target printer, the step includes: storing the association relationship between the first user name and the target printer in a user-printer relationship table, that is, after associating the first user name with the target printer, storing the association relationship between the first user name and the target printer in the user-printer relationship table, the user-printer relationship table includes a plurality of data information, each data information represents the association relationship between each user and the printer. By storing the association relationship between the first user name and the target printer in the user-printer relationship table, the target printer selected by the user is saved, so that the target printer can be called in subsequent printing. At the same time, by saving the target printer selected by the user, when the user logs in to the client again, there is no need to re-select, and the target printer can be directly determined according to the first user name.
[0014] In some technical schemes, optionally, the step of determining the content to be printed in the to-be-printed list according to the first user name includes: determining the second user name according to the first user name; determining whether there is unprinted content to be printed according to the second user name, wherein the content to be printed corresponds to the second user name; and obtaining the content to be printed in the to-be-printed list based on the existence of unprinted content to be printed.
[0015] In the technical solution, the step of determining the content to be printed in the to-be-printed list according to the first user name includes: firstly determining the second user name according to the first user name, and since the first user name corresponds to the second user name, the second user name can be determined by the first user name. Then determining whether there is unprinted content to be printed in the to-be-printed list according to the second user name, wherein the content to be printed corresponds to the second user name, that is, first determining the data information related to the second user name in the to-be-printed list according to the second user name, wherein the data information includes the printing time, the printing status, the content to be printed and the second user name. Then analyzing the data information, determining the content of the printing status in each piece of data information, and then determining whether there is unprinted content to be printed according to the content of the printing status, if the printing status is unprinted, it means that the content to be printed related to the printing status is unprinted, and if the printing status is printed, it means that the content to be printed related to the printing status is printed. If there is unprinted content to be printed, the content to be printed is obtained in the to-be-printed list so as to send it to the target printer for printing. If there is no unprinted content to be printed, no processing is performed. At the same time, when the content to be printed is printed, the printing status related to the printed content is changed from unprinted to printed. By determining the second user name according to the relationship between the first user name and the second user name, and then determining whether there is unprinted content to be printed according to the second user name, the technical effect of determining the content to be printed in the to-be-printed list according to the first user name is achieved.
[0016] According to a second aspect of the present invention, a universal printing system is proposed, wherein the universal printing system comprises: a first acquisition module, the first acquisition module is used to obtain a printer list from a server in response to a user's login operation; a first association module, the first association module is used to associate a user's first user name with a target printer in response to a user's operation of selecting a target printer in the printer list; a second acquisition module, the second acquisition module is used to obtain a to-be-printed list from a server, wherein the to-be-printed list comprises: printing time, printing status, to-be-printed content and a second user name, the first user name corresponding to the second user name; a first processing module, the first processing module is used to determine the to-be-printed content in the to-be-printed list according to the first user name, and send the to-be-printed content to the target printer to perform a printing operation.
[0017] The universal printing system provided by the present invention mainly includes: a first acquisition module, a first association module, a second acquisition module and a first processing module. Among them, the first acquisition module can respond to the user's login operation and obtain a printer list from the server, that is, when the user successfully logs in to the client through the account and password, a printer list will be obtained from the server, and the printer list includes all printers that the client can access and use in the current environment. Then the first association module responds to the user's operation of selecting a target printer in the printer list and associates the user's first user name with the target printer, that is, when the user selects one of the printers in the printer list, the first user name corresponding to the user will be associated with the printer, wherein the first user name can be the account used by the user to log in to the client. After associating the first user name with the target printer, the second acquisition module will obtain a list to be printed from the server, wherein the list to be printed can be obtained at a set fixed time after the user logs in to the client, or can be obtained at a preset time interval. At the same time, a plurality of data information are included in the list to be printed, and the content of each data information includes a second user name, content to be printed, printing time and printing status. When the content to be printed in the data information has not been printed, the printing status is not printed, and the printing time can be empty. When the content to be printed in the data information has been printed, the printing status is printed, and the printing time is the time when the content to be printed is printed. The second user name in each data information can be the same or different. At the same time, the second user name in the data information is the same as or corresponds to the first user name when the user logs in to the client, that is, the second user name in the data information is the same as or corresponds to the first user name associated with the target printer. At the same time, the content to be printed can be selected by the user in the business system. After obtaining the list to be printed, the first processing module determines the content to be printed in the list to be printed according to the first user name. Specifically, the second user name corresponding to the first user name can be determined in the list to be printed according to the first user name, and then the content to be printed can be determined in the list to be printed according to the second user name. After obtaining the content to be printed, the content to be printed is sent to the target printer so that the target printer performs a printing operation. In the present invention, by responding to the user's login operation, a printer list consisting of all printers that can be accessed and used in the current environment is obtained from the server, so that the user can make a selection from the printer list, thereby solving the problem of business system adaptation to the printer and avoiding the situation where the printer selected by the user cannot adapt to the business system.At the same time, by obtaining the to-be-printed list from the server, and then determining the to-be-printed content in the to-be-printed list according to the first user name, the user does not need to print the to-be-printed content in the business system. The user can log in to the client at any place or at any time to print the print content in the business system, thereby realizing remote printing of the content of the business system.
[0018] In some technical solutions, optionally, the universal printing system also includes: a first determination module, the first determination module is used to determine the content to be printed selected by the user in the business system and the user's second user name; a second processing module, the second processing module is used to associate the content to be printed with the second user name and store it in the to-be-printed list.
[0019] In the technical solution, the universal printing system also includes: a first determination module and a second processing module. Among them, the first determination module can determine the content to be printed selected by the user in the business system and the second user name of the user, that is, the user can use the second user name to log in to the business system, and then select the content to be printed, that is, the content to be printed, in the business system, and then the server obtains the second user name used by the user when logging in to the business system and the content to be printed selected by the user in the business system. Then the second processing module associates the content to be printed with the second user name, generates a data message, and marks the printing status as unprinted and the printing time as empty in the data message. After associating the content to be printed with the second user name, it is stored in the list to be printed. By associating the content to be printed with the second user name and storing it in the list to be printed, it is ensured that when performing remote printing, the corresponding content to be printed can be accurately obtained, and the content to be printed is stored in the list to be printed, and it can also be ensured that the content to be printed can be printed at any time.
[0020] In some technical solutions, optionally, the universal printing system further includes: a third processing module, the third processing module being used to store the association relationship between the first user name and the target printer in a user-printer relationship table.
[0021] In the technical solution, the universal printing system also includes: a third processing module. The third processing module can store the association relationship between the first user name and the target printer in the user-printer relationship table, that is, after the first user name is associated with the target printer, the association relationship between the first user name and the target printer is stored in the user-printer relationship table, and the user-printer relationship table includes multiple data information, each of which represents the association relationship between each user and the printer. By storing the association relationship between the first user name and the target printer in the user-printer relationship table, the target printer selected by the user is saved, so that the target printer can be called in subsequent printing. At the same time, by saving the target printer selected by the user, when the user logs in to the client again, there is no need to re-select, and the target printer can be directly determined according to the first user name.
[0022] In some technical schemes, optionally, the first processing module includes: a second determination module, the second determination module is used to determine the second user name based on the first user name; a third determination module, the third determination module is used to determine whether there is unprinted content to be printed in the to-be-printed list based on the second user name, wherein the content to be printed corresponds to the second user name; and a third acquisition module, the third acquisition module is used to acquire the content to be printed in the to-be-printed list based on the existence of unprinted content to be printed.
[0023] In the technical solution, the first processing module includes: a second determination module, a third determination module and a third acquisition module. The second determination module can determine the second user name according to the first user name. Since the first user name corresponds to the second user name, the second user name can be determined by the first user name. Then the third determination module determines whether there is unprinted content to be printed in the to-be-printed list according to the second user name, wherein the content to be printed corresponds to the second user name, that is, first determine the data information related to the second user name in the to-be-printed list according to the second user name, wherein the data information includes the printing time, the printing status, the content to be printed and the second user name. Then analyze these data information to determine the content of the printing status in each piece of data information, and then determine whether there is unprinted content to be printed according to the content of the printing status. If the printing status is unprinted, it means that the content to be printed related to the printing status is unprinted, and if the printing status is printed, it means that the content to be printed related to the printing status is printed. If there is unprinted content to be printed, the third acquisition module acquires the content to be printed in the to-be-printed list so as to send it to the target printer for printing. If there is no unprinted content to be printed, no processing is performed. At the same time, when the content to be printed is printed, the printing status related to the printed content is changed from unprinted to printed. By determining the second user name according to the relationship between the first user name and the second user name, and then determining whether there is unprinted content to be printed according to the second user name, the technical effect of determining the content to be printed in the to-be-printed list according to the first user name is achieved.
[0024] According to a third aspect of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of any of the above-mentioned general printing methods are implemented.
[0025] The electronic device provided by the present invention implements the steps of the above-mentioned general printing method when the processor executes the computer program, which can achieve the technical effects of any of the above-mentioned technical solutions and will not be repeated here.
[0026] According to a fourth aspect of the present invention, a storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the above-mentioned general printing methods are implemented.
[0027] The storage medium provided by the present invention implements the steps of the above-mentioned general printing method when the computer program is executed by the processor, and can achieve the technical effects of any of the above-mentioned technical solutions, which will not be repeated here.
[0028] Additional aspects and advantages of the present invention will become apparent from the following description or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which: Figure 1 One of the flowcharts of a general printing method according to an embodiment of the present invention is shown; Figure 2 A schematic diagram of a process flow before the step of obtaining a list to be printed from a server in a universal printing method according to an embodiment of the present invention is shown; Figure 3 A schematic flow chart showing a step of determining content to be printed in a to-be-printed list according to a first user name in a universal printing method according to an embodiment of the present invention; Figure 4 A second flowchart diagram of a general printing method according to an embodiment of the present invention is shown; Figure 5 A schematic diagram of an interface of a general printing method according to an embodiment of the present invention is shown; Figure 6 One of the schematic block diagrams of a universal printing system according to an embodiment of the present invention is shown; Figure 7 A second schematic block diagram of a universal printing system according to an embodiment of the present invention is shown; Figure 8 A third schematic block diagram showing a universal printing system according to an embodiment of the present invention; Fig. 9 A schematic block diagram showing a first processing module in a universal printing system according to an embodiment of the present invention is shown; Fig.10 A schematic block diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0030] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0031] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0032] Figure 1A schematic diagram of a general printing method according to an embodiment of the present invention is shown. The method includes: Step 102: In response to the user's login operation, obtain a printer list from the server; Step 104: in response to the user selecting a target printer in the printer list, associating the first user name of the user with the target printer; Step 106: Obtain a to-be-printed list from the server, wherein the to-be-printed list includes: printing time, printing status, to-be-printed content, and a second user name, and the first user name corresponds to the second user name; Step 108: Determine the content to be printed in the to-be-printed list according to the first user name, and send the content to be printed to the target printer to perform a printing operation.
[0033] The universal printing method provided by the present invention mainly includes: first, in response to the user's login operation, a printer list is obtained from the server, that is, when the user successfully logs in to the client through the account and password, a printer list is obtained from the server, and the printer list includes all printers that the client can access and use in the current environment. Then, in response to the user's operation of selecting a target printer in the printer list, the user's first user name is associated with the target printer, that is, when the user selects one of the printers in the printer list, the first user name corresponding to the user is associated with the printer, wherein the first user name can be the account used by the user to log in to the client. After the first user name is associated with the target printer, a list to be printed is obtained from the server, wherein the list to be printed can be obtained at a set fixed time after the user logs in to the client, or can be obtained at a preset time interval. At the same time, multiple data information are included in the list to be printed, and the content of each data information includes the second user name, the content to be printed, the printing time and the printing status. When the content to be printed in the data information has not been printed, the printing status is not printed, and the printing time can be empty. When the content to be printed in the data information has been printed, the printing status is printed, and the printing time is the time when the content to be printed is printed. The second user name in each data information can be the same or different. At the same time, the second user name in the data information is the same as or corresponds to the first user name when the user logs in to the client, that is, the second user name in the data information is the same as or corresponds to the first user name associated with the target printer. At the same time, the content to be printed can be selected by the user in the business system. After obtaining the list to be printed, the content to be printed is determined in the list to be printed according to the first user name. Specifically, the second user name corresponding to the first user name can be determined in the list to be printed according to the first user name, and then the content to be printed can be determined in the list to be printed according to the second user name. After obtaining the content to be printed, the content to be printed is sent to the target printer so that the target printer performs a printing operation. In the present invention, by responding to the user's login operation, a printer list consisting of all accessible and usable printers in the current environment is obtained from the server, so that the user can make a selection in the printer list, thereby solving the problem of business system adaptation to the printer and avoiding the situation where the printer selected by the user cannot adapt to the business system. At the same time, by obtaining the to-be-printed list from the server, and then determining the to-be-printed content in the to-be-printed list according to the first user name, the user does not need to print the to-be-printed content in the business system. The user can log in to the client at any place or at any time to print the print content in the business system, thereby realizing remote printing of the content of the business system.
[0034] Figure 2A flow chart of a general printing method according to an embodiment of the present invention before the step of obtaining a list to be printed from a server is shown; wherein, before the step of obtaining a list to be printed from a server, the following steps are included: Step 202: Determine the content to be printed selected by the user in the business system and the second user name of the user; Step 204: After associating the content to be printed with the second user name, the content is stored in a list to be printed.
[0035] In this embodiment, before the step of obtaining the list to be printed from the server, it includes: first determining the content to be printed selected by the user in the business system and the second user name of the user, that is, the user can use the second user name to log in to the business system, and then select the content to be printed, that is, the content to be printed, in the business system, and then the server obtains the second user name used by the user when logging in to the business system and the content to be printed selected by the user in the business system. Then the content to be printed is associated with the second user name to generate a data message, and in the data message, the printing status is marked as unprinted and the printing time is marked as empty. After associating the content to be printed with the second user name, it is stored in the list to be printed. By associating the content to be printed with the second user name and storing it in the list to be printed, it is ensured that the corresponding content to be printed can be accurately obtained when performing remote printing, and the content to be printed is stored in the list to be printed, and it can also be ensured that the content to be printed can be printed at any time.
[0036] In some embodiments, optionally, after the step of associating the first user name of the user with the target printer, the method further includes: storing the association relationship between the first user name and the target printer in a user-printer relationship table.
[0037] In this embodiment, after the step of associating the first user name of the user with the target printer, the step includes: storing the association relationship between the first user name and the target printer in a user-printer relationship table, that is, after associating the first user name with the target printer, storing the association relationship between the first user name and the target printer in the user-printer relationship table, the user-printer relationship table includes a plurality of data information, each data information represents the association relationship between each user and the printer. By storing the association relationship between the first user name and the target printer in the user-printer relationship table, the target printer selected by the user is saved, so that the target printer can be called in subsequent printing. At the same time, by saving the target printer selected by the user, when the user logs in to the client again, there is no need to re-select, and the target printer can be directly determined according to the first user name.
[0038] Figure 3 A flow chart of a step of determining content to be printed in a to-be-printed list according to a first user name in a universal printing method according to an embodiment of the present invention is shown; wherein the step of determining content to be printed in a to-be-printed list according to a first user name includes: Step 302: Determine a second user name according to the first user name; Step 304: determining whether there is unprinted content to be printed according to the second user name, wherein the content to be printed corresponds to the second user name; Step 306: Based on the existence of unprinted content to be printed, the content to be printed is obtained from the to-be-printed list.
[0039] In this embodiment, the step of determining the content to be printed in the to-be-printed list according to the first user name includes: firstly determining the second user name according to the first user name, and since the first user name corresponds to the second user name, the second user name can be determined by the first user name. Then determining whether there is unprinted content to be printed in the to-be-printed list according to the second user name, wherein the content to be printed corresponds to the second user name, that is, first determining the data information related to the second user name in the to-be-printed list according to the second user name, wherein the data information includes the printing time, the printing status, the content to be printed and the second user name. Then analyzing these data information, determining the content of the printing status in each piece of data information, and then determining whether there is unprinted content to be printed according to the content of the printing status, if the printing status is unprinted, it means that the content to be printed related to the printing status is unprinted, and if the printing status is printed, it means that the content to be printed related to the printing status is printed. If there is unprinted content to be printed, the content to be printed is obtained in the to-be-printed list so as to send it to the target printer for printing. If there is no unprinted content to be printed, no processing is performed. At the same time, when the content to be printed is printed, the printing status related to the printed content is changed from unprinted to printed. By determining the second user name according to the relationship between the first user name and the second user name, and then determining whether there is unprinted content to be printed according to the second user name, the technical effect of determining the content to be printed in the to-be-printed list according to the first user name is achieved.
[0040] Figure 4 A second flow chart of a general printing method according to an embodiment of the present invention is shown; wherein the method comprises: Step 402: Open the client and log in; Step 404: After successful login, the system automatically loads the printer list and selects one of the printers; Step 406: When logging into the business system to print, a printer selection box list pops up; Step 408: After the business system selects the printer selected in the client view and confirms it, it is written into the print queue; Step 410: The client automatically scans the print queue according to the logged-in user and sends it to the selected printer for printing.
[0041] In this embodiment, the universal printing method can be that the user first opens the client and logs in, wherein the client can be a developed client software, and the client software needs to be installed in the Windows (Windows operating system) operating system. After the successful login, the client system automatically loads the printer list, and then the user selects one of the printers in the printer list, wherein the printer list includes all accessible printers. Then the user can select one of the printers from all accessible printers, specifically, Figure 5 As shown, Figure 5 The interface is the Print Server user interface, where users can Figure 5 Enter the user account and password in the interface to log in. After the login is successful, you can select the corresponding printer at the printer selection. Specifically, you can select the printer numbered 11F-NPICEB432, and select the PDF (Portable Document Format) save directory, that is, select the save address of the list to be printed. After the user selects the printer, when the user logs in to the business system to print, a printer selection box list will pop up, and then the user selects the printer selected by the client view in the business system, and writes the content to be printed, that is, the content to be printed, into the print queue, that is, write it into the list to be printed. The client automatically scans the queue to be printed according to the user name of the logged-in user, and then sends the content to be printed in the queue to be printed to the previously selected printer for printing. The present invention can adapt to all business systems and is compatible with multiple platforms (any terminal that can access the system, such as PAD (tablet computer), mobile phone, PC (Personal Computer)), and the present invention also belongs to a plug-in structure and can be integrated into other business systems, so that users can use it conveniently.
[0042] Figure 6 One of the schematic block diagrams of a universal printing system according to an embodiment of the present invention is shown; wherein the universal printing system 60 comprises: A first acquisition module 602 is used to obtain a printer list from a server in response to a user's login operation; A first associating module 604, configured to associate a first user name of a user with a target printer in response to a user selecting a target printer in a printer list; The second acquisition module 606 is used to acquire a to-be-printed list from the server, wherein the to-be-printed list includes: printing time, printing status, to-be-printed content, and a second user name, and the first user name corresponds to the second user name; The first processing module 608 is used to determine the content to be printed in the to-be-printed list according to the first user name, and send the content to be printed to a target printer to perform a printing operation.
[0043] The universal printing system 60 provided by the present invention mainly includes: a first acquisition module 602, a first association module 604, a second acquisition module 606 and a first processing module 608. The first acquisition module 602 can obtain a printer list from the server in response to the user's login operation, that is, when the user successfully logs in to the client through the account and password, a printer list will be obtained from the server, and the printer list includes all printers that the client can access and use in the current environment. Then the first association module 604 responds to the user's operation of selecting a target printer in the printer list, and associates the user's first user name with the target printer, that is, when the user selects one of the printers in the printer list, the first user name corresponding to the user will be associated with the printer, wherein the first user name can be the account used by the user to log in to the client. After the first user name is associated with the target printer, the second acquisition module 606 will obtain a list to be printed from the server, wherein the list to be printed can be obtained at a set fixed time after the user logs in to the client, or can be obtained at a preset time interval. At the same time, multiple data information are included in the list to be printed, and the content of each data information includes the second user name, the content to be printed, the printing time and the printing status. When the content to be printed in the data information has not been printed, the printing status is not printed, and the printing time can be empty. When the content to be printed in the data information has been printed, the printing status is printed, and the printing time is the time when the content to be printed is printed. The second user name in each data information can be the same or different. At the same time, the second user name in the data information is the same as or corresponds to the first user name when the user logs in to the client, that is, the second user name in the data information is the same as or corresponds to the first user name associated with the target printer. At the same time, the content to be printed can be selected by the user in the business system. After obtaining the list to be printed, the first processing module 608 determines the content to be printed in the list to be printed according to the first user name. Specifically, the second user name corresponding to the first user name can be determined in the list to be printed according to the first user name, and then the content to be printed can be determined in the list to be printed according to the second user name. After obtaining the content to be printed, the content to be printed is sent to the target printer so that the target printer performs a printing operation. In the present invention, by responding to the user's login operation, a printer list consisting of all printers that can be accessed and used in the current environment is obtained from the server, so that the user can make a selection from the printer list, thereby solving the problem of business system adaptation to the printer and avoiding the situation where the printer selected by the user cannot adapt to the business system.At the same time, by obtaining the to-be-printed list from the server, and then determining the to-be-printed content in the to-be-printed list according to the first user name, the user does not need to print the to-be-printed content in the business system. The user can log in to the client at any place or at any time to print the print content in the business system, thereby realizing remote printing of the content of the business system.
[0044] Figure 7 The second schematic block diagram of a universal printing system according to an embodiment of the present invention is shown; wherein the universal printing system 60 further includes: A first determination module 610 is used to determine the content to be printed selected by the user in the business system and the second user name of the user; The second processing module 612 is used to associate the to-be-printed content with the second user name and store them in the to-be-printed list.
[0045] In this embodiment, the universal printing system 60 further includes: a first determination module 610 and a second processing module 612. The first determination module 610 can determine the content to be printed selected by the user in the business system and the second user name of the user, that is, the user can use the second user name to log in to the business system, and then select the content to be printed, that is, the content to be printed, in the business system, and then the server obtains the second user name used by the user when logging in to the business system and the content to be printed selected by the user in the business system. Then the second processing module 612 associates the content to be printed with the second user name, generates a data message, and marks the printing status as unprinted and the printing time as null in the data message. After associating the content to be printed with the second user name, it is stored in the list to be printed. By associating the content to be printed with the second user name and storing it in the list to be printed, it is ensured that the corresponding content to be printed can be accurately obtained when performing remote printing, and the content to be printed is stored in the list to be printed, and it can also be ensured that the content to be printed can be printed at any time.
[0046] Figure 8 The third schematic block diagram of a universal printing system according to an embodiment of the present invention is shown; wherein the universal printing system 60 further includes: The third processing module 614 is used to store the association relationship between the first user name and the target printer in the user-printer relationship table.
[0047] In this embodiment, the universal printing system 60 also includes: a third processing module 614. The third processing module 614 can store the association relationship between the first user name and the target printer in the user-printer relationship table, that is, after the first user name is associated with the target printer, the association relationship between the first user name and the target printer is stored in the user-printer relationship table, and the user-printer relationship table includes multiple data information, each of which represents the association relationship between each user and the printer. By storing the association relationship between the first user name and the target printer in the user-printer relationship table, the target printer selected by the user is saved, so that the target printer can be called in subsequent printing. At the same time, by saving the target printer selected by the user, when the user logs in to the client again, there is no need to re-select, and the target printer can be directly determined according to the first user name.
[0048] Fig. 9 A schematic block diagram of a first processing module in a universal printing system according to an embodiment of the present invention is shown; wherein the first processing module 608 includes: A second determination module 6082, configured to determine a second user name according to the first user name; A third determining module 6084 is used to determine whether there is unprinted to-be-printed content in the to-be-printed list according to the second user name, wherein the to-be-printed content corresponds to the second user name; The third acquisition module 6086 is configured to acquire the to-be-printed content from the to-be-printed list based on the existence of unprinted to-be-printed content.
[0049] In this embodiment, the first processing module 608 includes: a second determination module 6082, a third determination module 6084 and a third acquisition module 6086. The second determination module 6082 can determine the second user name according to the first user name. Since the first user name corresponds to the second user name, the second user name can be determined by the first user name. Then the third determination module 6084 determines whether there is unprinted content to be printed in the to-be-printed list according to the second user name, wherein the content to be printed corresponds to the second user name, that is, first determine the data information related to the second user name in the to-be-printed list according to the second user name, wherein the data information includes the printing time, the printing status, the content to be printed and the second user name. Then analyze the data information to determine the content of the printing status in each piece of data information, and then determine whether there is unprinted content to be printed according to the content of the printing status. If the printing status is unprinted, it means that the content to be printed related to the printing status is unprinted, and if the printing status is printed, it means that the content to be printed related to the printing status is printed. If there is unprinted content to be printed, the third acquisition module 6086 acquires the content to be printed in the to-be-printed list so as to send it to the target printer for printing. If there is no unprinted content to be printed, no processing is performed. At the same time, when the content to be printed is printed, the printing status related to the printed content is changed from unprinted to printed. By determining the second user name according to the relationship between the first user name and the second user name, and then determining whether there is unprinted content to be printed according to the second user name, the technical effect of determining the content to be printed in the to-be-printed list according to the first user name is achieved.
[0050] Fig.10 A schematic block diagram of an electronic device according to an embodiment of the present invention is shown; wherein the electronic device 100 includes a memory 1002, a processor 1004, and a computer program stored in the memory 1002 and executable on the processor 1004, and when the processor 1004 executes the computer program, the steps of the general printing method as described above are implemented.
[0051] The electronic device 100 provided by the present invention, in which the processor 1004 implements the steps of the above-mentioned general printing method when executing the computer program, can achieve the technical effect of any of the above-mentioned embodiments, and will not be described in detail.
[0052] An embodiment of the present invention provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned general printing methods are implemented.
[0053] The storage medium provided by the present invention implements the steps of the above-mentioned general printing method when the computer program is executed by the processor, and can achieve the technical effects of any of the above-mentioned embodiments, which will not be repeated here.
[0054] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance unless otherwise clearly specified and limited; the terms "connection", "installation", "fixation" and the like should be understood in a broad sense, for example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0055] In the description of this specification, the description of the term "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms and does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0056] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A universal printing method, characterized in that: include: In response to the user's login operation, obtaining a printer list from the server; In response to the user selecting a target printer in the printer list, associating the first user name of the user with the target printer; Acquire a to-be-printed list from the server, wherein the to-be-printed list includes: printing time, printing status, to-be-printed content, and a second user name, and the first user name corresponds to the second user name; The to-be-printed content is determined in the to-be-printed list according to the first user name, and the to-be-printed content is sent to the target printer to perform a printing operation.
2. The universal printing method according to claim 1, characterized in that: Before the step of obtaining the to-be-printed list from the server, the universal printing method includes: Determine the content to be printed selected by the user in the business system and the second user name of the user; After associating the to-be-printed content with the second user name, the content is stored in the to-be-printed list.
3. The universal printing method according to claim 1, characterized in that: After the step of associating the first user name of the user with the target printer, the universal printing method includes: The association relationship between the first user name and the target printer is stored in a user-printer relationship table.
4. The universal printing method according to any one of claims 1 to 3, characterized in that: The step of determining the content to be printed in the to-be-printed list according to the first user name comprises: Determine the second user name according to the first user name; Determining whether there is any unprinted content to be printed in the to-be-printed list according to the second user name, wherein the content to be printed corresponds to the second user name; Based on the existence of the to-be-printed content that has not been printed, the to-be-printed content is obtained from the to-be-printed list.
5. A universal printing system, characterized in that: include: A first acquisition module, the first acquisition module is used to obtain a printer list from a server in response to a user's login operation; a first associating module, the first associating module being used for associating a first user name of the user with the target printer in response to the user selecting the target printer in the printer list; A second acquisition module, the second acquisition module is used to acquire a to-be-printed list from the server, wherein the to-be-printed list includes: printing time, printing status, to-be-printed content and a second user name, and the first user name corresponds to the second user name; The first processing module is used to determine the to-be-printed content in the to-be-printed list according to the first user name, and send the to-be-printed content to the target printer to perform a printing operation.
6. The universal printing system according to claim 5, characterized in that: The universal printing system further comprises: A first determining module, the first determining module is used to determine the to-be-printed content selected by the user in the business system and the second user name of the user; The second processing module is used for associating the to-be-printed content with the second user name and storing the associated content in the to-be-printed list.
7. The universal printing system according to claim 5, characterized in that: The universal printing system further comprises: A third processing module, the third processing module is used to store the association relationship between the first user name and the target printer in a user-printer relationship table.
8. The universal printing system according to any one of claims 5 to 7, characterized in that: The first processing module comprises: a second determining module, the second determining module being configured to determine the second user name according to the first user name; a third determining module, the third determining module being used to determine whether there is any unprinted content to be printed in the to-be-printed list according to the second user name, wherein the content to be printed corresponds to the second user name; A third acquisition module is used for acquiring the to-be-printed content in the to-be-printed list based on the existence of the to-be-printed content that has not been printed.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the general printing method according to any one of claims 1 to 4 are implemented.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the general printing method according to any one of claims 1 to 4 are implemented.