CN101110023A - Method for implementing three-layer structure second-generation personal identification card document management system - Google Patents

Method for implementing three-layer structure second-generation personal identification card document management system Download PDF

Info

Publication number
CN101110023A
CN101110023A CNA2007100261980A CN200710026198A CN101110023A CN 101110023 A CN101110023 A CN 101110023A CN A2007100261980 A CNA2007100261980 A CN A2007100261980A CN 200710026198 A CN200710026198 A CN 200710026198A CN 101110023 A CN101110023 A CN 101110023A
Authority
CN
China
Prior art keywords
ocx
personal identification
identification card
management system
document management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2007100261980A
Other languages
Chinese (zh)
Other versions
CN100444114C (en
Inventor
唐治
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Asialnfo Technology (Nanjing) Co., Ltd.
Original Assignee
LINKAGE SYSTEM INTEGRATION 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 LINKAGE SYSTEM INTEGRATION CO Ltd filed Critical LINKAGE SYSTEM INTEGRATION CO Ltd
Priority to CNB2007100261980A priority Critical patent/CN100444114C/en
Publication of CN101110023A publication Critical patent/CN101110023A/en
Application granted granted Critical
Publication of CN100444114C publication Critical patent/CN100444114C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The implementation method used for the second generation of the ID card data management system with the three-layer structure: as developing the client program, the object linking and the embedded user's control ocx are used to drive the operation of the card reader so as to obtain the ID card data from the second generation of the ID card. The object linking and the embedded user's control ocx can be transferred via the dynamic library of the function api transferring as offered by the Windows operating system. Also, the name of the object linking and the embedded user's control ocx is configured as the parameter in the configuration files. The utility model realizes the loose coupling between the ocx control and the client program, so that the same set of the program can combine with the different ocx more flexibly. Therefore, the same program can be implemented in the different ocx environments more easily and quickly. The image file can also guarantee the synchronousness and the continuance with the operational logic. The image file is stored in the database, so that the advantages of the database can be used for management.

Description

Method for implementing three-layer structure second-generation personal identification card document management system
One, technical field
The present invention relates to the method for data base administration, especially the implementation method of personal identification card document management system.
Two, background technology
Object linking and embedding user control (OCX) are a kind of programs that can be created the specific use of using by the application software of moving in the Windows of Microsoft system.OCX provides the operation scroll bar to move function with the form resizing.(OLE) be designed to support hybrid document (comprising multiple data type) such as text, pictorial image, sound, animation.Windows desktop is exactly the example of a hybrid document, and Microsoft uses OLE to set up.OLE and The Component Object Model (the more commonly used notion of COM behind OLE) are supported the development of " plug and play " program, and " plug and play " program can write and can dynamically be used by Any Application in system with any language.These programs are considered to establishment and the application program of the container that they move thereon.The development of this approximate application program based on assembly has reduced the program debug time and has improved the performance and the quality of program.Windows application development program (such as PowerBuilder and MicrosoftAccess) has the advantage of OCX.
Existing three-layer structure second-generation personal identification card document management system, the main function that realizes has 3 points:
1, calls ocx, drive card reader and obtain China second-generation identity card information;
2, China second-generation identity card information (comprising the head portrait image file) is transferred to the middle layer;
3, be saved in the database from the middle layer with China second-generation identity card information
Method commonly used at present:
The ocx that will drive card reader work in exploitation during client-side program earlier is installed among the C++Builder as control, and then obtains personal identification card document in the two generation identity with the work of control driving card reader.
After client obtains the data of I.D., take the FTP mode with the head portrait data transmission to the middle layer.
The head portrait file is kept in the unix file system by the form of file.
According to the exploitation of top method, tempo of development is very fast, realizes dumbly, and the extensibility continuity is not strong.
Ocx is developed ocx and client-side program tight coupling as control.Same program is changed an environment and is implemented, and the change amount is bigger, and the program basic need is developed again.
Adopt the mode of FTP to carry out the transmission of head portrait data in client and middle layer.Because the ftp function that the ftp method often adopts operating system to provide, so data transmission and its follow-up business continuance are not strong.The inconvenient storage of carrying out data after data transmission immediately waits other relevant operations.The head portrait file is kept in the unix file system in the mode of file, is inconvenient to carry out operations such as effective managing queries.
Three, summary of the invention
The present invention seeks to: in order to solve the deficiency in the present common scheme; In order to make ocx and the loose coupling of client C++Builder program that drives card reader work, be convenient for changing ocx; In order to guarantee data transmission and professional continuity; More effective management for image file.
The technology of the present invention solution is: Method for implementing three-layer structure second-generation personal identification card document management system: utilize object linking during client-side program and embed user control ocx in exploitation to drive card reader work and obtain personal identification card document in the two generation identity.Object linking and embedding user control ocx call, and the function api that adopts the Windows system to provide calls the mode of dynamic base and calls.
The title of ocx can be used as parameter configuration in configuration file.Only need to revise the function declaration that drives card reader in configuration file and the calling program, just can be easily realize again at the variation of ocx.
Transmission about image file.Adopt the CARRAY categorical variable among the tuxedo, binary file is read in the variable that the internal memory assignment is given the CARRAY type, and transmit.Middle tier server end program is obtained the CARRAY categorical variable, and carries out follow-up business processing.
Preservation about image file.The oci that adopts oracle database to provide calls, and binary file is saved in the field of BLOB type of database table.During inquiry, will show the content spanned file in the BLOB field again, show.
Beneficial effect of the present invention: make ocx control and client-side program loose coupling, same set of program can be more flexibly in conjunction with enforcement with different ocx, and it is more convenient that same program is implemented in different ocx environment.Image file also can guarantee the synchronism continuity with service logic in transmission.Image file is kept in the database, can utilize the advantage of database to manage.
Four, embodiment
Divide three parts specifically to introduce the method for using in the correlation technique below.
1) correlation technique that relates in the calling of ocx:
// definition OCX handle
HINSTANCE?hOcxLibrary;
// loading OCX
HOcxLibrary=LoadLibrary (" readcard.ocx "); // the ocx title here can be obtained from configuration file
// load and fail
if(!hOcxLibrary)
Retum false; // error handling processing
// registration OCX
DllRegisterServer=(int
(_stdcall*)(void))GetProcAddress(hOcxLibrary,″DllRegisterServer″);
if(!DllRegisterServer)
Return false; // error handling processing
// registration failure
if(FAILED(DllRegisterServer()))
Return false; // error handling processing
// release Ocx
FreeLibrary(hOcxLibrary);
2) correlation technique of using in the image file transmission
Client-side program:
Char*pBuff; // image file the buffer that transmit
Int iSize; // calculate the size that will transmit content;
SndBuf=(FBFR32*) tpalloc (" FML32 ", NULL, iSize); The buffer memory * that/* application sends/
Fchg(m_SndBuf,Fldid(“Photo”),0,(char*)pBuff,(FLDLEN)iSize);
iRet=tpcall(″TransSvc″,(char*)SndBuf,0L,(char**)&RcvBuf,(long*)&iSize,0L);
Server:
long?lphotoLen=Flen((Fbfr32*)InBuf,Fldid(″PHOTO″),0);
char*pchPhoto=new?char[lphotoLen];
Fget(InBuf,Fldid(“Photo”),0,(char*)pchPhoto,(FLDLEN*)0);
3) image file is saved in the correlation technique of using in the database
OCILobLocator*blobphoto;
(void)OCIDescriptorAlloc((dvoid*)envhp,(dvoid**)&lobphoto,
(ub4)OCI_DTYPE_LOB,(size_t)0,(dvoid**)0);
OCILobCreateTemporary(svchp,errhp,lobphoto,
(ub2)OCI_DEFAULT,(ub1)OCI_DEFAULT,OCI_TEMP_BLOB,FALSE,
OCI_DURATION_SESSION);
OCILobWrite(svchp,errhp,lobphoto,&amtPhoto,1,(dvoid*)pchPhoto,
(ub4)lphotoLen,OCI_ONE_PIECE,(dvoid*)0,
(sb4(*)(dvoid*,dvoid*,ub4*,ubl*))0,
(ub2)0,(ub1)SQLCS_IMPLICIT);
.... //the insert operation
... // query manipulation ....
OCILobGetLength(svchp,errhp,blobphoto,(ub4*)&lphotolen);
OCILobRead(svchp,errhp,blobphoto,&amtp,
(ub4)1,(dvoid*)pchPhoto,(ub4)lphotolen,(dvoid*)0,
(sb4(*)(dvoid*,CONST?dvoid*,ub4,ub1))0,
(ub2)0,(ub1)SQLCS_IMPLICIT);
The name of ocx is referred to as parameter configuration in configuration file, and can't help WINDOWS and support.
Embodiment is as follows:
// following three line statements are realized: the name that reads from configuration file Config.ini in the App trifle is the content of OcxFile.Its content is exactly that what preserve is the title of ocx file.
TIniFile*ini=new?TIniFile(“Config.ini”);
String?strOcxFile=ini->ReadString(″App″,“OcxFile”,“”);
delete?ini;
// load OCX just can use the ocx title of from configuration file, reading to call
hOcxLibrary=LoadLibrary(strOcxFile.c_str())。

Claims (4)

1. Method for implementing three-layer structure second-generation personal identification card document management system: it is characterized in that when the exploitation client-side program, utilizing object linking and embed user control ocx driving card reader work and obtaining personal identification card document in the two generation identity, object linking and embedding user control ocx call, and the function api that adopts the Windows system to provide calls the mode of dynamic base and calls.
2. personal identification card document management system implementation method according to claim 1: the name that it is characterized in that object linking and embedding user control ocx is referred to as parameter configuration in configuration file.
3. personal identification card document management system implementation method according to claim 1: the CARRAY categorical variable among " middleware " tuxedo of client/server is adopted in the transmission that it is characterized in that image file, binary file is read in the variable that the internal memory assignment is given the CARRAY type among the tuxedo, and transmit; Middle tier server end program is obtained the CARRAY categorical variable, and carries out follow-up business processing.
4. personal identification card document management system implementation method according to claim 1: the oci function call that the preservation of image file adopts oracle database to provide is provided, binary file is saved in the field of BLOB type of database table; During inquiry, will show the content spanned file in the BLOB field again, show.
CNB2007100261980A 2007-08-17 2007-08-17 Method for implementing three-layer structure second-generation personal identification card document management system Active CN100444114C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100261980A CN100444114C (en) 2007-08-17 2007-08-17 Method for implementing three-layer structure second-generation personal identification card document management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100261980A CN100444114C (en) 2007-08-17 2007-08-17 Method for implementing three-layer structure second-generation personal identification card document management system

Publications (2)

Publication Number Publication Date
CN101110023A true CN101110023A (en) 2008-01-23
CN100444114C CN100444114C (en) 2008-12-17

Family

ID=39042109

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100261980A Active CN100444114C (en) 2007-08-17 2007-08-17 Method for implementing three-layer structure second-generation personal identification card document management system

Country Status (1)

Country Link
CN (1) CN100444114C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106530525A (en) * 2016-11-07 2017-03-22 浪潮(苏州)金融技术服务有限公司 Massage processing method, interaction module and driving device of driver layer

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100436667B1 (en) * 2003-02-20 2004-06-22 브이알 포토 주식회사 The method and equipment of ASP service for multi-resolution image on the environment of multi-server.

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106530525A (en) * 2016-11-07 2017-03-22 浪潮(苏州)金融技术服务有限公司 Massage processing method, interaction module and driving device of driver layer

Also Published As

Publication number Publication date
CN100444114C (en) 2008-12-17

Similar Documents

Publication Publication Date Title
RU2427026C2 (en) Device-specific content indexing for optimised device operation
US8185494B2 (en) Data-driven synchronization
KR20080017351A (en) Data centric workflows
US20070226238A1 (en) Media file conversion using plug-ins
CN101452465A (en) Mass file data storing and reading method
JP2010541043A (en) Access to device-hosted services from scripting and other programming environments
TW200846920A (en) Interfacing an external attachment device to a computing device
US10303420B2 (en) Proactive staged distribution of document activity indicators
CN114385091B (en) Method and device for realizing network disk drive character, network disk and storage medium
JP4726539B2 (en) Flexible context management for enumeration sessions using context exchange
US20090083764A1 (en) Device-hosted services over media transfer protocol
TW200830113A (en) System and method for the dynamic loading of protocol adapters
US7797396B2 (en) Network attached storage (NAS) server having a plurality of automated media portals
US20180239787A1 (en) Configurable provider for layered repository
CN100444114C (en) Method for implementing three-layer structure second-generation personal identification card document management system
US11868819B2 (en) System and method for constructing filter graph-based media processing pipelines in a browser
US20240004832A1 (en) System and method for providing a container environment in a single file
US20060182102A1 (en) Intelligent MPEG media storage, execution, and presentation system using network storage system
TW200937212A (en) Method of improving remote desktop performance
JP2010257033A (en) User log collection apparatus and user log management system
Maksimchuk et al. Uml for mere mortals®
US20040193940A1 (en) WebDAV unit test framework
US7752241B1 (en) Message based file system
CN101753974A (en) Realization method of unified interface based on virtual channel for digital TV
US8620856B2 (en) Method and system for providing a data exchange service provider interface

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Assignee: LIAN Technology (Nanjing) Co., Ltd.

Assignor: Linkage System Integration Co., Ltd.

Contract fulfillment period: 2009.6.23 to 2027.8.30

Contract record no.: 2009320001548

Denomination of invention: Method for implementing three-layer structure second-generation personal identification card document management system

Granted publication date: 20081217

License type: exclusive license

Record date: 20090817

LIC Patent licence contract for exploitation submitted for record

Free format text: EXCLUSIVE LICENSE; TIME LIMIT OF IMPLEMENTING CONTACT: 2009.6.23 TO 2027.8.30; CHANGE OF CONTRACT

Name of requester: LIANCHUANG SCIENCE ( NANJING ) CO., LTD.

Effective date: 20090817

ASS Succession or assignment of patent right

Owner name: LIANCHUANG SCIENCE ( NANJING ) CO., LTD.

Free format text: FORMER OWNER: NANJING LIANCHUANG SCIENCE CO., LTD.

Effective date: 20100122

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20100122

Address after: 16 floor, No. 12 Huai gate, Nanjing, Jiangsu

Patentee after: Lianchang Technology (Nanjing) Co., Ltd.

Address before: 16 floor, No. 12 Huai gate, Nanjing, Jiangsu

Patentee before: Linkage System Integration Co., Ltd.

C56 Change in the name or address of the patentee

Owner name: LINKAGE-ASIAINFO TECHNOLOGY (NANJING) CO., LTD.

Free format text: FORMER NAME: LINKAGE TECHNOLOGY (NANJING) CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 210013, No. 12, Huai gate, 16 floor, Nanjing, Jiangsu

Patentee after: LINKAGE-ASIAINFO TECHNOLOGIES (NANJING), INC.

Address before: 210013, No. 12, Huai gate, 16 floor, Nanjing, Jiangsu

Patentee before: Linkage System Integration Co., Ltd.

C56 Change in the name or address of the patentee

Owner name: ASIALNFO TECHNOLOGY (NANJING) CO., LTD.

Free format text: FORMER NAME: LINKAGE-ASIAINFO TECHNOLOGY (NANJING) CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 210013, No. 12, Huai gate, 16 floor, Nanjing, Jiangsu

Patentee after: Asialnfo Technology (Nanjing) Co., Ltd.

Address before: 210013, No. 12, Huai gate, 16 floor, Nanjing, Jiangsu

Patentee before: LINKAGE-ASIAINFO TECHNOLOGIES (NANJING), INC.