CN108737558A - A kind of general management platform of file based on OCX controls - Google Patents
A kind of general management platform of file based on OCX controls Download PDFInfo
- Publication number
- CN108737558A CN108737558A CN201810535721.0A CN201810535721A CN108737558A CN 108737558 A CN108737558 A CN 108737558A CN 201810535721 A CN201810535721 A CN 201810535721A CN 108737558 A CN108737558 A CN 108737558A
- Authority
- CN
- China
- Prior art keywords
- file
- server
- page
- ocx
- upload
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/0435—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1074—Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
- H04L67/1078—Resource delivery mechanisms
- H04L67/108—Resource delivery mechanisms characterised by resources being split in blocks or fragments
Abstract
The invention discloses a kind of general management platform of the file based on OCX controls, the platform intergration in the application system based on B/S framework, including:It uploads the page, download the page, OCX controls, file server, wherein the upload page downloads the page, OCX controls in the application system of B/S framework client, and the file server is in B/S framework server-side;Upload transmitting file on page invocation OCX controls;Transmitting file is to file server on OCX controls, and OCX determines whether big file according to file size, and carries out piecemeal processing to big file and upload blocks of files in a manner of breakpoint transmission;File server storage file;The page is downloaded by judging whether there is download file in B/S framework client, generates the download link of Local or Remote.The present invention provides the platforms that one directly uploads files to server-side file server using OCX controls, solve the problems, such as file consolidation upload and unified storage management, improve the working efficiency of enterprise document management.
Description
Technical field
The present invention relates to OCX files to upload field, the general management platform of especially a kind of file based on OCX controls.
Background technology
As the application system that enterprises use is more and more, have very for the information system management personnel of enterprises
In terms of big challenge, especially file management, substantially each application system can have the function of file upload, each to apply
System can all use an individual host, once the file uploaded is excessive, be required for considering dilatation problem;Moreover, each system
The function and performance that file uploads are also different, some big files of support, and some only supports text of the file size within 200,000,000
Part, this is also pretty troublesome for using the interior employee of application system.
Invention content
In order to overcome above-mentioned defect in the prior art, the present invention to provide a kind of general management of the file based on OCX controls
Platform solves the problems, such as file consolidation upload and unified storage management, improves the working efficiency of enterprise document management.
To achieve the above object, the present invention uses following technical scheme:
A kind of general management platform of file based on OCX controls, hereinafter referred to as platform, which is characterized in that the platform collection
At in the application system based on B/S framework, including following component part:
The page is uploaded, for user by uploading the upper transmitting file of page selection, upload page user oriented shows upload progress, described
Upload two-way communication link between the page and OCX controls;
OCX controls, the processing uploaded practical to upper transmitting file, the upload progress of real-time update file, the OCX controls
Two-way communication link between part and file server;
File server, transmitting file in storage return to the upload state of file to OCX controls;
The page is downloaded, user is by downloading page-downloading file, two-way between the download page and the file server
Letter connection;
Wherein, the upload page, the download page, OCX controls are in the application system of B/S framework client, the text
Part server is in B/S framework server-side.
User is stored in upload queue by the upload page select file and by file;The upload page is loaded and is adjusted
With OCX controls, it is described upload the page file for uploading queue is uploaded by OCX controls, suspend uploads, continue upload,
The processing of deletion, and the upload page obtains upload progress by OCX controls and carries out real-time exhibition.
Document base information is first uploaded to file server by the OCX controls, and the document base information includes:File
Name, file size, file level of confidentiality, upper successor, application system title;File is uploaded to file server by the OCX controls again,
And the OCX controls are big file or ordinary file according to file size judgement, if file is more than 512KB, are judged as big
Blocks of files is uploaded to file server by file after OCX controls carry out piecemeal processing to file;Otherwise it is ordinary file, OCX
File is directly uploaded to file server by control.
The upload of the blocks of files is by the way of breakpoint transmission.
The file server first stores the document base information that OCX controls are sent to the data of B/S framework server-side
Library, and file id is established according to document base information;The file server will store after file encryption again to B/S framework service
The database at end, and when file server receive be blocks of files when, the blocks of files that file server first sends OCX controls is closed
And generate file.
The file server is encrypted file using des Encryption Algorithm.
The upload state of file id and file is sent to OCX controls by the file server;The OCX controls are according to text
Part uploads state and generates file upload progress, and when file upload progress reaches 100%, OCX controls again send file id
To file server, that is, indicates that file uploads and complete.
The download page judges in B/S framework client with the presence or absence of download file, and if it exists, then generates and is locally-downloaded
Link, i.e., download file from B/S framework client;Otherwise, remote download link is generated, that is, passes through the text of B/S framework server-side
Part server downloads file from the database of B/S framework server-side.
When the download page generates long-range lower link, downloads the page and text is submitted to using POST modes to file name parameter
Part server, and download the page and file name parameter is encrypted using des Encryption Algorithm.
The mode of the platform intergration to the application system based on B/S framework is to call JavaScript's
ShowModalDialog methods.
The advantage of the invention is that:
(1) present invention is the platform based on OCX control designs, and OCX controls is called to reduce the program debugging time and improve
The performance and quality of program.
(2) the various operations when upload page of the invention provides transmitting file needed for user, and in real-time display
Degree of coming into enhances user experience.
(3) present invention can not only upload ordinary file, big file can also be uploaded, it is versatile, and to big file into
The processing of row piecemeal, improves file uploading speed.
(4) upload of blocks of files, when line interruption occurs, can be preserved and is come by the way of breakpoint transmission in time
Degree, saves the time, improves the upper transfer efficiency of file.
(5) it downloads page generation and link or remote download link is locally-downloaded, improve the speed of download of file.
(6) present invention downloading the page is submitted using POST modes to file name parameter, is improved file in platform and is believed
The safety of breath.
(7) the configuration of the present invention is simple is desirably integrated into the various application systems based on B/S framework, and integration mode letter
It is single, easy to operate.
(8) file consolidation uploads to the file server of B/S framework server-side, and stores to the data of B/S framework server-side
In library, administrator can check the upload text of the different application systems in B/S framework client in B/S framework server-side
Part improves the working efficiency of administrator, while only need to consider dilatation or safety etc. to the server of B/S framework server-side
Problem reduces maintenance cost.
Description of the drawings
Fig. 1 is a kind of integrated stand composition of the general management platform of file based on OCX controls of the invention.
Fig. 2 is a kind of upload flow chart of the general management platform of file based on OCX controls of the invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, a kind of general management platform of file based on OCX controls, the platform intergration is based on B/S framework
Application system in, including:It uploads the page 1, OCX controls 2, download the page 3, file server 4.
Wherein, the page 1, OCX controls 2 are uploaded, downloads the page 3 in the application system of B/S framework client, file clothes
Device 4 be engaged in B/S framework server-side.
User uploads queue by uploading 1 select file of the page and being stored in file.
Two-way communication between the page 1 and OCX controls 2 is uploaded, including:
On uploading the load of the page 1 and OCX controls 2 is called to be uploaded to uploading the file in queue, suspend upload, continuing
The operation for passing, deleting;
The page 1 is uploaded to obtain upload progress by OCX controls 2 and carry out real-time exhibition.
Two-way communication between OCX controls 2 and file server 4, including:
Document base information is first uploaded to file server 4 by OCX controls 2, and file is uploaded to file by OCX controls 2 again
Server 4, wherein OCX controls 2 can judge whether file size is more than 512KB before upper transmitting file, if so, for big text
Blocks of files is uploaded to file server 4 by part after the processing of big file block in a manner of breakpoint transmission, otherwise, for common text
File is directly uploaded to file server 4 by part;
File server 4 first stores the document base information that OCX controls 2 are sent to the database of B/S framework server-side,
And file id is established according to document base information;File server 4 stores after using des algorithm for encryption to file again to B/S framework
The database of server-side;And file server 4, before file encryption storage, the file merged block that OCX controls 2 are sent generates text
Part;
The upload state of file id and file is sent to OCX controls 2 by file server 4;OCX controls 2 are according on file
Biography state generates file upload progress, and when file upload progress reaches 100%, file id is sent to text by OCX controls 2 again
Part server 4 indicates that file uploads and completes.
Two-way communication between the page 3 and file server 4 is downloaded, including:
It downloads the page 3 to first determine whether in B/S framework client with the presence or absence of download file, and if it exists, then generate and be locally-downloaded
Link, i.e., from B/S framework client downloads file;Otherwise, remote download link is generated, i.e., by file server 4 from B/S framework
File is downloaded in the database of server-side, is downloaded the page 3 and is submitted the file for downloading file to file server by POST modes
Name parameter, and des algorithm for encryption is used to file name parameter.
As shown in Fig. 2, a kind of file of the general management platform of file based on OCX controls uploads, include the following steps:
S1, user are simultaneously stored in upload queue by uploading the page, select file.
S2 uploads the page and loads OCX controls.
The essential information of file is uploaded to file server by S3, OCX control.
The essential information of file is stored in B/S framework service client database by S4, file server, generates the id of file,
And file id is sent to OCX controls.
S5, OCX control judge whether file size is more than 512KB, that is, judge to be big file or ordinary file, if more than
512KB is then big file, executes step S6, otherwise, is ordinary file, executes step S7;
S6, OCX control carry out piecemeal processing to big file and generate blocks of files;
Blocks of files or file are uploaded to file server by S7, OCX control;
S8, whether what file server judged to receive is blocks of files, if so, thening follow the steps S9, otherwise, executes step
S10;
File merged block is generated file by S9, file server;
S10 after using des algorithm for encryption to file, and is stored to B/S framework and is serviced client database, while file being uploaded
State is sent to OCX controls.
S11, OCX control upload state according to file and generate file upload progress, and real-time display is carried out by uploading the page
Upload progress;
S12, after file upload progress reaches 100%, OCX controls send file id to file server, that is, indicate
It passes and completes.
In step S3, the essential information of file includes:Filename, file size, file level of confidentiality, upper successor, application system
Title.
In step S7, to uploading by the way of breakpoint transmission for blocks of files.
A kind of general management platform of file based on OCX controls is integrated into the application system based on B/S framework, with OA systems
For, include the following steps:
S1 copies to Uploader files in OA systems, in file comprising file upload page index.htm,
Ocx control installation kits.
S2 calls showModalDialog methods in OA systems, pops up the index.htm pages in Uploader, and
User name, systematic name information are passed to as parameter in showModalDialog methods, code is as follows:
Var arrPara=new Array ();
ArrPara [0]=" liujiangming ";
ArrPara [1]=" OA systems ";
window.showModalDialog("Uploader/index.htm",arrPara,"");
S3, user's select file and upper transmitting file.
S4 after uploading the end of file, closes the index.htm pages, filename and file id is put into
In the return value of showModalDialog, acquisition return value is further continued for handling in OA systems, and code is as follows:
Code in index.htm files:
Var arr=new Array ();
for(var key in map){
Arr [0]=map [key] .fileSvr.nameLoc;
Arr [1]=map [key] .fileSvr.nameSvr;
}
Parent.returnValue=map;
parent.close();
The preferred embodiment that these are only the invention is not intended to limit the invention creation, all in the present invention
All any modification, equivalent and improvement etc., should be included in the guarantor of the invention made by within the spirit and principle of creation
Within the scope of shield.
Claims (10)
1. a kind of general management platform of file based on OCX controls, hereinafter referred to as platform, which is characterized in that the platform intergration
In the application system based on B/S framework, including following component part:
The page is uploaded, user uploads page user oriented and show upload progress, the upload by uploading the upper transmitting file of page selection
Two-way communication link between the page and OCX controls;
OCX controls, the processing uploaded practical to upper transmitting file, the upload progress of real-time update file, the OCX controls with
Two-way communication link between file server;
File server, transmitting file in storage return to the upload state of file to OCX controls;
The page is downloaded, user is by downloading page-downloading file, two-way communication company between the download page and the file server
It connects;
Wherein, the upload page, the download page, OCX controls are in the application system of B/S framework client, the file clothes
Device be engaged in B/S framework server-side.
2. the general management platform of a kind of file based on OCX controls according to claim 1, which is characterized in that Yong Hutong
It crosses the upload page select file and is stored in file and upload queue;The upload page loads and calls OCX controls, described
It uploads the page to upload the file for uploading queue by OCX controls, suspend upload, continue the processing for uploading, deleting, and institute
It states and uploads the page by OCX controls acquisition upload progress and carry out real-time exhibition.
3. the general management platform of a kind of file based on OCX controls according to claim 1, which is characterized in that the OCX
Document base information is first uploaded to file server by control, and the document base information includes:Filename, file size, text
Part level of confidentiality, upper successor, application system title;File is uploaded to file server, and the OCX controls by the OCX controls again
It is that big file or ordinary file are judged as big file, OCX controls pair if file is more than 512KB according to file size judgement
After file carries out piecemeal processing, blocks of files is uploaded to file server;Otherwise it is ordinary file, OCX controls are directly by file
It is uploaded to file server.
4. the general management platform of a kind of file based on OCX controls according to claim 3, which is characterized in that the text
The upload of part block is by the way of breakpoint transmission.
5. the general management platform of a kind of file based on OCX controls according to claim 1, which is characterized in that the text
Part server first stores the document base information that OCX controls are sent to the database of B/S framework server-side, and according to file base
This information establishes file id;The file server will be stored after file encryption to the database of B/S framework server-side again, and is worked as
When what file server received is blocks of files, the file merged block that file server first sends OCX controls generates file.
6. the general management platform of a kind of file based on OCX controls according to claim 5, which is characterized in that the text
Part server is encrypted file using des Encryption Algorithm.
7. the general management platform of a kind of file based on OCX controls according to claim 5, which is characterized in that the text
The upload state of file id and file is sent to OCX controls by part server;The OCX controls upload state according to file and generate
File upload progress, and when file upload progress reaches 100%, file id is sent to file server by OCX controls again, i.e.,
It indicates that file uploads to complete.
8. the general management platform of a kind of file based on OCX controls according to claim 1, which is characterized in that under described
It carries the page to judge in B/S framework client with the presence or absence of download file, and if it exists, then generate and link is locally-downloaded, i.e., from B/S framework
File is downloaded in client;Otherwise, remote download link is generated, i.e., by the file server of B/S framework server-side from B/S framework
The database of server-side downloads file.
9. the general management platform of a kind of file based on OCX controls according to claim 8, which is characterized in that under described
When carrying the page and generating long-range lower link, downloads the page and file server submitted to using POST modes to file name parameter, and under
The page is carried file name parameter is encrypted using des Encryption Algorithm.
10. the general management platform of a kind of file based on OCX controls according to claim 1, which is characterized in that described flat
The mode that platform is integrated into the application system based on B/S framework is to call the showModalDialog methods of JavaScript.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810535721.0A CN108737558A (en) | 2018-05-30 | 2018-05-30 | A kind of general management platform of file based on OCX controls |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810535721.0A CN108737558A (en) | 2018-05-30 | 2018-05-30 | A kind of general management platform of file based on OCX controls |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108737558A true CN108737558A (en) | 2018-11-02 |
Family
ID=63935838
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810535721.0A Pending CN108737558A (en) | 2018-05-30 | 2018-05-30 | A kind of general management platform of file based on OCX controls |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108737558A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110519383A (en) * | 2019-08-30 | 2019-11-29 | 山东浪潮商用系统有限公司 | A kind of electronic document submission method suitable for self-help terminal equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102299958A (en) * | 2011-08-16 | 2011-12-28 | 深圳市佳信捷电子有限公司 | Method for monitoring video through IE (Internet Explorer) client side and system |
CN102546732A (en) * | 2010-12-31 | 2012-07-04 | 北大方正集团有限公司 | File transmission method and system in webpage |
CN103685557A (en) * | 2013-12-26 | 2014-03-26 | 金蝶软件(中国)有限公司 | Method and device for uploading and downloading file |
CN106534380A (en) * | 2016-12-30 | 2017-03-22 | 郑州云海信息技术有限公司 | Virtual platform file management method and system |
-
2018
- 2018-05-30 CN CN201810535721.0A patent/CN108737558A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546732A (en) * | 2010-12-31 | 2012-07-04 | 北大方正集团有限公司 | File transmission method and system in webpage |
CN102299958A (en) * | 2011-08-16 | 2011-12-28 | 深圳市佳信捷电子有限公司 | Method for monitoring video through IE (Internet Explorer) client side and system |
CN103685557A (en) * | 2013-12-26 | 2014-03-26 | 金蝶软件(中国)有限公司 | Method and device for uploading and downloading file |
CN106534380A (en) * | 2016-12-30 | 2017-03-22 | 郑州云海信息技术有限公司 | Virtual platform file management method and system |
Non-Patent Citations (1)
Title |
---|
胡斌: "基于B/S结构的外部设备数据传输方式研究与实现", 《计算机与现代化》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110519383A (en) * | 2019-08-30 | 2019-11-29 | 山东浪潮商用系统有限公司 | A kind of electronic document submission method suitable for self-help terminal equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101802921B1 (en) | Method and device for pulling out mirror image file for virtual machines | |
US7526472B2 (en) | Shared bookmarks based on user interest profiles | |
US6195696B1 (en) | Systems, methods and computer program products for assigning, generating and delivering content to intranet users | |
CA2490984C (en) | System and method for collecting electronic evidence data | |
US20050005259A1 (en) | System and method for communication and mapping of business objects between mobile client devices and a plurality of backend systems | |
US20050278422A1 (en) | Network-based remote data storage system having multiple access interfaces | |
CN1121216A (en) | System and method for efficient caching in a distributed file system | |
CN110825479A (en) | Page processing method and device, terminal equipment, server and storage medium | |
CN110134494B (en) | Container automatic management method based on Docker container | |
CN106254471A (en) | Resource United Dispatching method and system under a kind of isomery cloud environment | |
CN106708859B (en) | Resource access behavior auditing method and device | |
CN102413185A (en) | Cloud platform automatic updating system based on BT technology | |
AU663015B2 (en) | Data processing system | |
US6883020B1 (en) | Apparatus and method for filtering downloaded network sites | |
CN106547538A (en) | A kind of intelligent operation management system based on Django | |
CN104199683A (en) | ISO mirror image document loading method and device | |
JP2000132450A (en) | Data controller and data control method | |
CN109871221A (en) | A kind of system for deployment mobile application software of quickly installing for mobile terminal device | |
CN114969066A (en) | Enterprise management data interaction system and method based on big data regulation and control | |
CN108563697A (en) | A kind of data processing method, device and storage medium | |
CN108737558A (en) | A kind of general management platform of file based on OCX controls | |
CN104477776A (en) | A role-based crane remote graded monitoring system | |
CN110187895A (en) | Allocating operating system method, apparatus, equipment and computer readable storage medium | |
CN114465741A (en) | Anomaly detection method and device, computer equipment and storage medium | |
CN108009797A (en) | A kind of enterprise project management based on mobile interaction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181102 |
|
RJ01 | Rejection of invention patent application after publication |