CN118035594A - Method, apparatus, electronic device and computer readable medium for accessing production document - Google Patents

Method, apparatus, electronic device and computer readable medium for accessing production document Download PDF

Info

Publication number
CN118035594A
CN118035594A CN202410431380.8A CN202410431380A CN118035594A CN 118035594 A CN118035594 A CN 118035594A CN 202410431380 A CN202410431380 A CN 202410431380A CN 118035594 A CN118035594 A CN 118035594A
Authority
CN
China
Prior art keywords
production
information
switch
document
management application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410431380.8A
Other languages
Chinese (zh)
Inventor
杨先燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN MTN ELECTRONIC CO Ltd
Original Assignee
SHENZHEN MTN ELECTRONIC CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN MTN ELECTRONIC CO Ltd filed Critical SHENZHEN MTN ELECTRONIC CO Ltd
Priority to CN202410431380.8A priority Critical patent/CN118035594A/en
Publication of CN118035594A publication Critical patent/CN118035594A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

Embodiments of the present disclosure disclose a method, apparatus, electronic device, and computer-readable medium for producing document access. One embodiment of the method comprises the following steps: in response to determining that the network connection state of the switch production line management application represents an offline state, replacing webpage entry information corresponding to the production collaborative document with target entry file information, and loading target webpage resource information to offline display a webpage of the production collaborative document in the switch production line management application; responding to the network connection state representation online state of the switch production line management application, and downloading the webpage resource information of the webpage from the production line document server without storing the webpage resource information of the corresponding production collaboration document locally; and displaying the web pages for producing the collaborative document in the switch production line management application according to the web page resource information, and storing the web page resource information into a local database. The embodiment can realize successful access to the production collaboration document when offline.

Description

Method, apparatus, electronic device and computer readable medium for accessing production document
Technical Field
Embodiments of the present disclosure relate to the field of production document access, and in particular, to a production document access method, apparatus, electronic device, and computer readable medium.
Background
Production collaboration documents are documents that are used for collaborative production during production of the various switches by the production line. Currently, when accessing production collaborative documents, the following methods are generally adopted: and caching the webpage codes of the latest production collaborative document in the production line management end so as to realize offline opening of the webpage of the production collaborative document.
However, when accessing production collaborative documents in the above manner, there is often a technical problem as follows: the internal plug-in has domain name limitation, and the plug-in cannot be normally used when local loading is used, so that the function is abnormal when offline, and the production collaborative document cannot be accessed.
The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, may contain information that does not form the prior art that is already known to those of ordinary skill in the art in this country.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a production document access method, apparatus, electronic device, and computer-readable medium to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a method of producing document access, the method comprising: determining a network connection state of a switch production line management application in response to detecting a query operation of a production collaboration document acting in the switch production line management application; in response to determining that the network connection state of the switch production line management application represents an offline state, replacing webpage entrance information corresponding to the production collaboration document with target entrance file information, and loading target webpage resource information to offline display a webpage of the production collaboration document in the switch production line management application, wherein the target entrance file information is file information of an entrance file of a webpage corresponding to the production collaboration document, which is downloaded in advance, and the target webpage resource information is locally stored resource information corresponding to the webpage; responding to the network connection state representation online state of the switch production line management application, and not storing the webpage resource information corresponding to the production collaborative document locally, and downloading the webpage resource information of the webpage from a production line document server, wherein the webpage resource information comprises an entry file and resource information; and displaying the web page of the production collaboration document in the switch production line management application according to the web page resource information, and storing the web page resource information into a local database.
In a second aspect, some embodiments of the present disclosure provide a production document access apparatus comprising: a determining unit configured to determine a network connection state of a switch line management application in response to detection of a query operation of a production cooperation document acting in the switch line management application; a loading unit configured to, in response to determining that the network connection state of the switch line management application represents an offline state, replace web page entry information corresponding to the production collaboration document with target entry file information, and load target web page resource information to display a web page of the production collaboration document offline in the switch line management application, wherein the target entry file information is file information of an entry file of a web page corresponding to the production collaboration document downloaded in advance, and the target web page resource information is locally stored resource information corresponding to the web page; a download unit configured to download web resource information of the web page from a production line document server in response to determining that the network connection state of the switch production line management application represents an online state and web resource information corresponding to the production collaborative document is not stored locally, wherein the web resource information includes an entry file and resource information; and a storage unit configured to display the web page of the production collaboration document in the switch line management application according to the web page resource information, and store the web page resource information to a local database.
In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors causes the one or more processors to implement the method described in any of the implementations of the first aspect above.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
The above embodiments of the present disclosure have the following advantageous effects: by the production document access method, the production collaborative document can be successfully accessed offline. Specifically, the reason why the production collaboration document cannot be accessed is that: the internal plug-in has domain name limitation, and the plug-in cannot be normally used when local loading is used, so that the function is abnormal when offline, and the production collaborative document cannot be accessed. Based on this, the production document access method of some embodiments of the present disclosure first determines the network connection state of the above-described switch line management application in response to detecting a query operation of a production collaboration document acting in the switch line management application. Then, in response to determining that the network connection state of the switch production line management application represents an offline state, replacing the webpage entrance information corresponding to the production collaboration document with target entrance file information, and loading target webpage resource information to display the webpage of the production collaboration document offline in the switch production line management application. The target entry file information is file information of an entry file of the web page corresponding to the production collaboration document, which is downloaded in advance, and the target web page resource information is locally stored resource information corresponding to the web page. And then, in response to determining that the network connection state of the switch production line management application represents an online state, and web page resource information corresponding to the production collaboration document is not stored locally, downloading the web page resource information of the web page from a production line document server. The webpage resource information comprises an entry file and resource information. Finally, displaying the web page of the production collaboration document in the switch production line management application according to the web page resource information, and storing the web page resource information into a local database. Therefore, when the production collaborative document is accessed offline, the entrance of the webpage of the production collaborative document is switched in advance, and the limitation of domain names can be avoided, so that the plug-in can be normally used when the local loading is performed, and the production collaborative document can be successfully accessed offline.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of some embodiments of a method of producing document access according to the present disclosure;
FIG. 2 is a schematic structural view of some embodiments of a production document access apparatus according to the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
FIG. 1 is a flow chart of some embodiments of a method of producing document access according to the present disclosure. A flow 100 of some embodiments of a method of producing document access according to the present disclosure is shown. The production document access method comprises the following steps:
Step 101, in response to detecting the query operation of the production collaboration document acting on the switch production line management application, determining the network connection state of the switch production line management application.
In some embodiments, an executing body (e.g., a computing device) of the production document access method may determine a network connection state of a switch line management application as described above in response to detecting a query operation acting on a production collaboration document in the switch line management application. The switch production line management application may be a system program that can access production collaboration documents of a production line web page end web page in a switch production line. The system program for producing collaborative documents may be an application for collaborative editing of production documents. For example, a system program for producing collaborative documents may be an application for collaborative editing of documents in various production business scenarios. The production collaboration document may be one of the production collaboration documents displayed in the production collaboration document list in the switch production line management application. The query operation may be a selection operation for one of the production collaborative documents displayed in the production collaborative document list. The query operation may include, but is not limited to: click, slide, drag. The network connection state may include: online state, offline state.
Step 102, in response to determining that the network connection state of the switch production line management application represents an offline state, replacing the web page entry information corresponding to the production collaboration document with target entry file information, and loading target web page resource information to offline display the web page of the production collaboration document in the switch production line management application.
In some embodiments, the executing entity may replace the web page entry information corresponding to the production collaboration document with the target entry file information and load the target web page resource information in response to determining that the network connection state of the switch line management application represents the offline state, so as to display the web page of the production collaboration document offline in the switch line management application. The target entry file information is file information of an entry file of the web page corresponding to the production collaboration document, which is downloaded in advance, and the target web page resource information is locally stored resource information corresponding to the web page. The web page entry information may be a resource path of an entry file. The portal file may be a web portal file of a web page item. For example, the portal file may be an html file. The target portal file information may be previously downloaded file information of a web portal corresponding to the production collaborative document. The file information may be previously downloaded in a file storage path corresponding to the above-described entry file for producing the collaborative document. The resource information of the web page may be the resource required when the web page is loaded. The resource information may include: JS file, CSS file, page resource information. The page resource information may include: pictures, videos.
In practice, the execution body may execute the following steps for each page resource information included in the loaded target web page resource information:
first, determining the local storage address of the page resource information. The local storage address may be a local storage path of the page resource information. The local storage address includes a file name of the page resource information.
And a second step of generating an updated resource address according to the local storage address and the preset offline protocol information. The preset offline protocol information may be a preset offline protocol identifier. For example, the preset offline protocol information may be "off". The offline protocol may be a protocol registered at the start of a switch line management application. In practice, the execution body may combine the preset offline protocol information and the local storage address into an updated resource address through a connection string.
And thirdly, replacing the resource path of the page resource information with the updated resource address.
Step 103, in response to determining that the network connection state of the switch production line management application represents an online state, and web page resource information corresponding to the production collaboration document is not stored locally, downloading the web page resource information of the web page from a production line document server.
In some embodiments, the executing entity may download the web page resource information of the web page from the production line document server in response to determining that the network connection state of the switch production line management application characterizes the online state and that the web page resource information corresponding to the production collaboration document is not stored locally. The webpage resource information comprises an entry file and resource information. The web page resource information may refer to page resources required for the existing web page. In practice, the execution body may download the web page resource information of the web page from the production line document server when the production collaboration document is accessed online for the first time.
And 104, displaying the web page of the production collaboration document in the switch production line management application according to the web page resource information, and storing the web page resource information into a local database.
In some embodiments, the execution body may display the web page of the production collaboration document in the switch line management application according to the web page resource information, and store the web page resource information to a local database. In practice, the execution body may display the web page for producing the collaborative document online through webview.
In practice, the execution body may execute the following steps for each piece of page resource information included in the web page resource information:
And a first step of determining a resource path corresponding to the page resource information. The resource path may be a path of the page resource information when the web page is loaded.
And a second step of removing each parameter value meeting the invalid condition from the resource path to obtain a removed resource path. The invalidation condition may be that the parameter value in the resource path belongs to an invalidation parameter in a preset invalidation parameter set. For example, the preset invalid parameter set may include: token, query parameters.
And thirdly, carrying out encryption processing on the removed resource path to generate an encrypted resource path. In practice, the execution body may encrypt the removed resource path by using a preset encryption algorithm to obtain an encrypted resource path. The encryption algorithm may be a symmetric encryption algorithm.
And step four, storing the page resource information according to the encryption resource path. In practice, the execution body may determine the encrypted resource path as a file name of the page resource information, and store the page resource information in an offline resource folder in a local database.
Optionally, in response to determining that the network connection state of the switch production line management application represents the online state, web page resource information corresponding to the production collaboration document is locally stored, and according to the locally stored web page resource information corresponding to the production collaboration document, displaying the web page of the production collaboration document in the switch production line management application.
In some embodiments, the executing entity may characterize the online state in response to determining a network connection state of the switch line management application, and locally store web page resource information corresponding to the production collaboration document, and display the web page of the production collaboration document in the switch line management application according to the locally stored web page resource information corresponding to the production collaboration document.
Optionally, according to the user identification of the current target user, the production document data of the switch production line management application in online running is cached to a front-end database corresponding to the switch production line management application.
In some embodiments, the execution body may cache, according to a user identifier of a current target user, production document data of the switch production line management application during online running to a front-end database corresponding to the switch production line management application. Wherein, the above production document data may include: production document list data and production document base data. The production document list data may be a list of production documents that the target user participates in editing. The production document base data may be attribute related data of the document, for example, the document base data may include: document rights information, document name, document creation time, document modification time. In practice, the execution body may store the production document data in a database table corresponding to the user identifier in the front-end database, so as to separate the data to be stored according to the user identifier. The target user may be a management user of a certain production line.
Optionally, according to the user identifier, newly created production document data of the switch production line management application in offline operation is cached to the front-end database.
In some embodiments, the execution entity may cache newly created production document data of the switch production management application when running offline to the front-end database according to the user identifier. The front-end database can be operated by the web-side application of the production line system corresponding to the switch production line management application. The newly created document data may be a list of documents created offline. In practice, the executing body may store the newly created document data in a database table corresponding to the user identifier in the money end database.
Optionally, the data stored in the front-end database is synchronized to a server corresponding to the web-side application of the production line system.
In some embodiments, the execution body may synchronize the data stored in the front-end database to a server corresponding to the web-side application of the production line system. The execution body may synchronize the data stored in the front-end database to a server corresponding to the web-side application of the production line system at regular time.
Therefore, the web page resource information can be downloaded to the local area when the online collaborative document is accessed, and the web page resource information stored locally can be utilized to accelerate when the online collaborative document is accessed.
Continuing, when the production collaborative document access method of the application is adopted to carry out production collaborative document access, the following problems are often accompanied: verification of switch production orders before and after production performance is also typically required. For these problems, the conventional solutions are: and checking the production orders of the exchanges before and after the production performance by a manager.
However, the above solution generally has the following technical problem two: the manual check efficiency is low, and the actual production progress of the switch is difficult to determine.
For the second technical problem, the following solution is decided to be adopted.
Optionally, in response to receiving a checking instruction of a corresponding switch production order sent by the switch production management application, a switch production order information set currently to be processed by the switch production management application is obtained.
In some embodiments, the executing entity may obtain the current pending switch production order information set of the switch production management application in response to receiving a check instruction of a corresponding switch production order sent by the switch production management application. The reconciliation instruction may refer to an instruction to perform a production check on an order for switch production. The switch production order information group may be information of each switch production order processed by the switch production line management application. The exchange production order information may include: order number, switch production details, order generation time.
Optionally, at least one alternative exchange production order information for which the same original production order exists as between the exchange production order information sets described above is determined.
In some embodiments, the executing entity may determine at least one alternative switch production order information for which the same original production order exists as between the switch production order information set. Wherein, the switch production order information group includes: at least one exchange production split information, said at least one alternative exchange production order information comprising: at least one alternative switch produces split information. The original production order may be an order placed by a production line user. I.e. an order for which the original production order has not been processed by the switch line management application. The at least one alternative switch production order information may be a processing result of the switch production line management application after production processing of the originally generated order. The production order information to be split may be order information to be subjected to production order splitting. That is, the at least one exchange production split information may be an order processing result after the exchange production line management application performs production order splitting on the production order information to be split. Likewise, the at least one alternative switch production order information may be a result of processing by the switch production line management application after the production order splitting of the production order information to be split.
In practice, the executing entity may determine that at least one piece of alternative switch production split information exists between the same piece of production order information to be split and the at least one piece of switch production split information, including:
And the first step of determining the upper-level production order information corresponding to the production split information of the at least one exchanger as the first upper-level production order information. The first upper-level production order information may be upper-level order information corresponding to at least one switch production split information. That is, the first upper-level production order information may be information after the switch production line management application performs initial order processing on the production order information to be split.
And a second step of determining order information of the same production order information to be split as the first upper-level production order information, as second upper-level production order information. Wherein the second upper level production order information may be order information processed locally. Namely, the first upper-level production order information and the second upper-level production order information are corresponding to the production order information to be split. For example, the first upper level production order information is order a01. The to-be-split production order information corresponding to the first upper-level production order information is a01 order. The order information processed locally corresponding to the production order information to be split is an order a01. I.e. the second upper order information is order a01.
And thirdly, determining at least one piece of production split information corresponding to the second upper-level production list information as at least one piece of alternative exchange production split information. Wherein the at least one alternative exchange production split information is lower-level production order information of the second upper-level production order information. That is, the at least one piece of alternative exchange production split information is a processing result after the local execution body performs production order splitting on the second upper-level production order information.
Optionally, performing information verification processing on the switch production order information set and the at least one alternative switch production order information set to generate an information verification result.
In some embodiments, the execution body may perform an information verification process on the switch production order information set and the at least one alternative switch production order information to generate an information verification result. The information verification result may include: and characterizing the result of checking the normal and characterizing the result of checking the abnormal.
In practice, the execution body may perform information verification processing on the switch production order information set and the at least one alternative switch production order information by:
First, determining whether the production order progress information between the at least one switch production split information and the at least one alternative switch production split information is consistent. The production order progress information may refer to the production progress of each exchange to which the order corresponds. As an example, the executing body may determine whether the production order progress information between the at least one switch production split information and the at least one alternative switch production split information is consistent through a preset information query manner.
And a second step of determining, in response to determining agreement, whether order user information for the switch production order information set and the at least one alternative switch production order information are in agreement. The order user information may be order data corresponding to the order user. For example, the order user information may include: user information, order details, user address, user contact.
And thirdly, generating an information verification result representing that the order information passes the verification in response to the determination of the consistency.
Optionally, the verification error-free information is generated in response to the information verification result characterizing that the verification is abnormal.
In some embodiments, the execution body may generate the verification error-free information in response to the information verification result characterizing that the verification is not abnormal. Wherein said verification error-free information characterizes said switch production order information set and said at least one alternative switch production order information verification error-free.
The above related matters are taken as an invention point of the present disclosure, and solve the second technical problem that "the manual checking efficiency is low, and it is difficult to determine the actual production progress of the switch". Factors with low efficiency of manual verification are often as follows: the manual check efficiency is low, and the actual production progress of the switch is difficult to determine. If the above factors are solved, the effects of improving the order checking efficiency and checking accuracy can be achieved. To achieve this, first, in response to receiving a collation instruction of a corresponding exchange production order transmitted by the above-described target exchange production line system, an exchange production order information group currently pending by the above-described target exchange production line system is acquired. Next, at least one alternative exchange production order information for which the same original production order exists as the exchange production order information set is determined. And then, carrying out information verification processing on the switch production order information group and the at least one alternative switch production order information to generate an information verification result. And finally, responding to the information verification result to represent that verification is abnormal, and generating verification error-free information. Wherein the performing information verification processing on the switch production order information set and the at least one alternative switch production order information to generate an information verification result includes: determining whether production order progress information between the at least one switch production split information and the at least one alternative switch production split information is consistent; responsive to determining agreement, determining whether order user information for the switch production order information set and the at least one alternative switch production order information agree; and generating an information verification result which represents that the order information passes the verification in response to determining the consistency. Therefore, the information verification is accurately and efficiently carried out on the switch production order information group and at least one alternative switch production order information by determining the original production order information, and the order information verification can be accurately and efficiently realized.
With further reference to fig. 2, as an implementation of the method shown in the above figures, the present disclosure provides some embodiments of a production document access apparatus, which correspond to those method embodiments shown in fig. 1, which may be applied in particular in various electronic devices.
As shown in fig. 2, the production document access apparatus 200 of some embodiments includes: a determining unit 201, a loading unit 202, a downloading unit 203 and a storing unit 204. Wherein the determining unit 201 is configured to determine a network connection state of the switch line management application in response to detecting a query operation of a production collaboration document acting on the switch line management application; a loading unit 202 configured to, in response to determining that the network connection state of the switch line management application represents an offline state, replace web page entry information corresponding to the production collaboration document with target entry file information, which is file information of an entry file of a web page corresponding to the production collaboration document downloaded in advance, and load target web page resource information, which is locally stored resource information corresponding to the web page, to offline display the web page of the production collaboration document in the switch line management application; a downloading unit 203 configured to download web resource information of the web page from a production line document server in response to determining that the network connection state of the switch production line management application represents an online state and web resource information corresponding to the production collaborative document is not stored locally, wherein the web resource information includes an entry file and resource information; the storage unit 204 is configured to display the web page of the production collaboration document in the switch line management application according to the web page resource information, and store the web page resource information to a local database.
It will be appreciated that the elements described in the production document access apparatus 200 correspond to the individual steps in the method described with reference to fig. 1. Thus, the operations, features and resulting benefits described above with respect to the method are equally applicable to the production of the document access apparatus 200 and the units contained therein, and are not described in detail herein.
Referring now to fig. 3, a schematic diagram of an electronic device (e.g., computing device) 300 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic devices in some embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, as well as stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various suitable actions and processes in accordance with a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM303, various programs and task data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM302, and the RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
In general, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 308 including, for example, magnetic tape, hard disk, etc.; and communication means 309. The communication means 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange task data. While fig. 3 shows an electronic device 300 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 3 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications device 309, or from storage device 308, or from ROM 302. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing means 301.
It should be noted that, the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a task data signal that propagates in baseband or as part of a carrier wave, in which computer-readable program code is carried. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital task data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: determining a network connection state of a switch production line management application in response to detecting a query operation of a production collaboration document acting in the switch production line management application; in response to determining that the network connection state of the switch production line management application represents an offline state, replacing webpage entrance information corresponding to the production collaboration document with target entrance file information, and loading target webpage resource information to offline display a webpage of the production collaboration document in the switch production line management application, wherein the target entrance file information is file information of an entrance file of a webpage corresponding to the production collaboration document, which is downloaded in advance, and the target webpage resource information is locally stored resource information corresponding to the webpage; responding to the network connection state representation online state of the switch production line management application, and not storing the webpage resource information corresponding to the production collaborative document locally, and downloading the webpage resource information of the webpage from a production line document server, wherein the webpage resource information comprises an entry file and resource information; and displaying the web page of the production collaboration document in the switch production line management application according to the web page resource information, and storing the web page resource information into a local database.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including a product oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor comprising: the device comprises a determining unit, a loading unit, a downloading unit and a storing unit. Wherein the names of these units do not constitute a limitation of the unit itself in some cases, for example, the determination unit may also be described as "a unit that determines the network connection status of the above-described switch line management application in response to detecting a query operation acting on a production cooperation document in the switch line management application".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (7)

1. A method of producing document access, comprising:
in response to detecting a query operation acting on a production collaboration document in a switch production line management application, determining a network connection state of the switch production line management application;
In response to determining that the network connection state of the switch production line management application represents an offline state, replacing webpage entrance information corresponding to the production collaborative document with target entrance file information, and loading target webpage resource information to offline display a webpage of the production collaborative document in the switch production line management application, wherein the target entrance file information is file information of an entrance file of a webpage corresponding to the production collaborative document, which is downloaded in advance, and the target webpage resource information is locally stored resource information corresponding to the webpage;
Responding to the network connection state representation online state of the switch production line management application, and not storing the webpage resource information corresponding to the production collaborative document locally, and downloading the webpage resource information of the webpage from a production line document server, wherein the webpage resource information comprises an entry file and resource information;
And displaying the webpage of the production collaborative document in the switch production line management application according to the webpage resource information, and storing the webpage resource information into a local database.
2. The method of claim 1, wherein the method further comprises:
And responding to the network connection state representation on-line state of the switch production line management application, and locally storing the webpage resource information corresponding to the production collaboration document, and displaying the webpage of the production collaboration document in the switch production line management application according to the locally stored webpage resource information corresponding to the production collaboration document.
3. The method of claim 1, wherein the method further comprises:
According to the user identification of the current target user, caching the production document data of the switch production line management application in online operation to a front-end database corresponding to the switch production line management application;
According to the user identification, caching newly-built production document data of the switch production line management application in offline operation to the front-end database, wherein the front-end database is operable by a production line system webpage end application corresponding to the switch production line management application;
and synchronizing the data stored in the front-end database to a server corresponding to the webpage end application of the production line system.
4. The method of claim 1, wherein the method further comprises:
Responding to a checking instruction of a corresponding switch production order sent by the switch production line management application, and acquiring a switch production order information group to be processed currently by the switch production line management application;
Determining at least one alternative exchange production order information for which the same original production order exists between the exchange production order information group;
Performing information verification processing on the switch production order information group and the at least one alternative switch production order information to generate an information verification result;
and responding to the information verification result to represent verification without abnormality, and generating verification error-free information.
5. A production document access apparatus comprising:
a determining unit configured to determine a network connection state of a switch line management application in response to detecting a query operation acting on a production cooperation document in the switch line management application;
The loading unit is configured to respond to the fact that the network connection state of the switch production line management application represents the offline state, replace webpage entrance information corresponding to the production collaborative document with target entrance file information and load target webpage resource information to display the webpage of the production collaborative document in the switch production line management application in an offline mode, wherein the target entrance file information is file information of an entrance file of a webpage corresponding to the production collaborative document, which is downloaded in advance, and the target webpage resource information is locally stored resource information corresponding to the webpage;
A download unit configured to download web page resource information of the web page from a production line document server in response to determining that a network connection state of the switch production line management application characterizes an online state and web page resource information corresponding to the production collaborative document is not stored locally, wherein the web page resource information includes an entry file and resource information;
And a storage unit configured to display a web page of the production collaboration document in the switch production line management application according to the web page resource information, and store the web page resource information to a local database.
6. An electronic device, comprising:
One or more processors;
A storage device having one or more programs stored thereon,
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-4.
7. A computer readable medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of any of claims 1-4.
CN202410431380.8A 2024-04-11 2024-04-11 Method, apparatus, electronic device and computer readable medium for accessing production document Pending CN118035594A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410431380.8A CN118035594A (en) 2024-04-11 2024-04-11 Method, apparatus, electronic device and computer readable medium for accessing production document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410431380.8A CN118035594A (en) 2024-04-11 2024-04-11 Method, apparatus, electronic device and computer readable medium for accessing production document

Publications (1)

Publication Number Publication Date
CN118035594A true CN118035594A (en) 2024-05-14

Family

ID=90989648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410431380.8A Pending CN118035594A (en) 2024-04-11 2024-04-11 Method, apparatus, electronic device and computer readable medium for accessing production document

Country Status (1)

Country Link
CN (1) CN118035594A (en)

Similar Documents

Publication Publication Date Title
US20220253458A1 (en) Method and device for synchronizing node data
CN113254466B (en) Data processing method and device, electronic equipment and storage medium
CN111274503B (en) Data processing method, device, electronic equipment and computer readable medium
CN110019263B (en) Information storage method and device
CN111125107A (en) Data processing method, device, electronic equipment and medium
CN115757400B (en) Data table processing method, device, electronic equipment and computer readable medium
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN111597107A (en) Information output method and device and electronic equipment
CN111460432B (en) On-line document authority control method, device, equipment and computer readable medium
CN111858381B (en) Application fault tolerance capability test method, electronic device and medium
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN111756953A (en) Video processing method, device, equipment and computer readable medium
CN113807056B (en) Document name sequence error correction method, device and equipment
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN111628938B (en) Branch merging method, device, electronic equipment and computer storage medium
CN111625745B (en) Recommendation method, recommendation device, electronic equipment and computer readable medium
CN118035594A (en) Method, apparatus, electronic device and computer readable medium for accessing production document
CN114741686A (en) Method and device for detecting program white list and related equipment
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN111580890A (en) Method, apparatus, electronic device, and computer-readable medium for processing features
CN111581305B (en) Feature processing method, device, electronic equipment and medium
CN112084440B (en) Data verification method, device, electronic equipment and computer readable medium
CN111262776B (en) Method, device, electronic equipment and computer readable medium for sending notification message
CN116302208A (en) Apollo configuration modification method, apparatus, electronic device and computer readable medium
CN118041813A (en) Signal test script data construction method and device, electronic equipment and readable medium

Legal Events

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