CN100444114C - 三层结构二代身份证资料管理系统实现方法 - Google Patents

三层结构二代身份证资料管理系统实现方法 Download PDF

Info

Publication number
CN100444114C
CN100444114C CNB2007100261980A CN200710026198A CN100444114C CN 100444114 C CN100444114 C CN 100444114C CN B2007100261980 A CNB2007100261980 A CN B2007100261980A CN 200710026198 A CN200710026198 A CN 200710026198A CN 100444114 C CN100444114 C CN 100444114C
Authority
CN
China
Prior art keywords
ocx
file
program
object linking
personal identification
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.)
Active
Application number
CNB2007100261980A
Other languages
English (en)
Other versions
CN101110023A (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.)
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/zh
Publication of CN101110023A publication Critical patent/CN101110023A/zh
Application granted granted Critical
Publication of CN100444114C publication Critical patent/CN100444114C/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

三层结构二代身份证资料管理系统实现方法:在开发客户端程序时利用对象链接和嵌入用户控件ocx驱动读卡器工作获取二代身份中的身份证资料。对象链接和嵌入用户控件ocx的调用,采用Windows系统提供的函数api调用动态库的方式进行调用。且对象链接和嵌入用户控件ocx的名称作为参数配置在配置文件中。本发明使ocx控件和客户端程序松耦合,同一套程序和不同的ocx能更灵活的结合实施,使同样的程序在不同的ocx环境中实施更加方便快捷。图象文件在传输中也能保证和业务逻辑的同步性连续性。图象文件保存在数据库中,能利用数据库的优势进行管理。

Description

三层结构二代身份证资料管理系统实现方法
一、技术领域
本发明涉及数据库管理的方法,尤其是身份证资料管理系统的实现方法。
二、背景技术
对象链接和嵌入用户控件(OCX)是一种可以由在微软的Windows系统中运行的应用软件创建使用的特殊用途的程序。OCX提供操作滚动条移动和视窗恢复尺寸的功能。(OLE)被设计来支持混合文档(包含多种资料类型,比如文本、绘画图像、声音、动画)。Windows桌面就是一个混合文档的范例,微软使用OLE来建立的。OLE和组件对象模型(COM继OLE后的更常用的概念)支持“即插即用”程序的发展,“即插即用”程序在系统中可以用任何语言写入并可以由任何应用程序动态地使用。这些程序被认为是他们在其上运行的container的组建和应用程序。这种基于组件的近似应用程序的发展缩减了程序调试时间并改善了程序的性能和品质。Windows应用发展程序(比如PowerBuilder和MicrosoftAccess)具有OCX的优势。
现有的三层结构二代身份证资料管理系统,主要实现的功能有三点:
1、调用ocx,驱动读卡器获取二代身份证信息;
2、将二代身份证信息(包括头像图像文件)传输到中间层;
3、从中间层将二代身份证信息保存到数据库中
目前常用的方法:
在开发客户端程序时先将驱动读卡器工作的ocx作为控件安装在C++Builder中,然后再用控件驱动读卡器工作获取二代身份中的身份证资料。
客户端获得身份证的资料后,采取FTP方式将头像数据传输到中间层。
头像文件按文件的形式保存在unix文件系统中。
按照上面方法开发,开发速度较快,实现不灵活,可扩展性连续性不强。
将ocx作为控件进行开发,ocx和客户端程序紧耦合。同样的程序换一个环境实施,改动量较大,程序基本需要重新开发。
采用FTP的方式在客户端和中间层进行头像数据的传输。因为ftp方法经常采用操作系统提供的ftp功能,所以数据传输和其后续业务连续性不强。不方便在数据传输之后立即进行资料的存储等其他相关的操作。头像文件以文件的方式保存在unix文件系统中,不方便进行有效的管理查询等操作。
三、发明内容
本发明目的是:为了解决目前常用方案中的不足;为了使驱动读卡器工作的ocx与客户端C++Builder程序松耦合,方便更换ocx;为了保证数据传输和业务的连续性;为了图象文件的更有效的管理。
本发明技术解决方案是:三层结构二代身份证资料管理系统实现方法:在开发客户端程序时利用对象链接和嵌入用户控件ocx驱动读卡器工作获取二代身份中的身份证资料。对象链接和嵌入用户控件ocx的调用,采用Windows系统提供的函数api调用动态库的方式进行调用。
ocx的名称可以作为参数配置在配置文件中。只需要修改配置文件和调用程序中驱动读卡器的函数声明,就可以很容易的针对ocx的变化进行重新实现。
关于图象文件的传输。采用tuxedo中的CARRAY类型变量,将二进制文件读入内存赋值给CARRAY类型的变量,并进行传输。中间层服务器端程序获取CARRAY类型变量,并进行后续的业务处理。
关于图象文件的保存。采用Oracle数据库提供的oci调用,将二进制文件保存到数据库表的BLOB类型的字段中。查询时,再将表BLOB字段中的内容生成文件,进行展示。
本发明有益效果:使ocx控件和客户端程序松耦合,同一套程序和不同的ocx能更灵活的结合实施,使同样的程序在不同的ocx环境中实施更加方便快捷。图象文件在传输中也能保证和业务逻辑的同步性连续性。图象文件保存在数据库中,能利用数据库的优势进行管理。
四、具体实施方式
下面分三个部分具体介绍相关技术中使用的方法。
1)ocx的调用中涉及到的相关方法:
           //定义OCX句柄
           HINSTANCE hOcxLibrary;
           //加载OCX
           hOcxLibrary=LoadLibrary(“readcard.ocx”);//这里的ocx名称可以从配置文件中获取
           //加载失败
           if(!hOcxLibrary)
               return false;//出错处理
           //注册OCX
           DllRegisterServer=(int
(___stdcall*)(void))GetProcAddress(hOcxLibrary,″DllRegisterServer″);
           if(!DllRegisterServer)
                return false;//出错处理
           //注册失败
           if(FAILED(DllRegisterServer()))
               return false;//出错处理
           //释放Ocx
           FreeLibrary(hOcxLibrary);
2)图象文件传输中用到的相关方法
客户端程序:
char*pBuff;//要传输的图象文件buffer
int iSize;//计算出要传输内容的大小;
SndBuf=(FBFR32*)tpalloc(″FML32″,NULL,iSize);/*申请发送的缓存*/
Fchg(m_SndBuf,Fldid(“Photo”),0,(char*)pBuff,(FLDLEN)iSize);
iRet=tpcall(″TransSvc″,(char*)SndBuf,0L,(char**)&RcvBuf,(long*)&iSize,0L);
服务器端程序:
long lphotoLen=Flen((Fbfr32*)InBuf,Fldid(″PHOTO″),0);
char*pchPhoto=new char[lphotoLen];
Fget(InBuf,Fldid(“Photo”),0,(char*)pchPhoto,(FLDLEN*)0);
3)图象文件保存到数据库中用到的相关方法
    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*,ub1*))0,
                    (ub2)0,(ub1)SQLCS_IMPLICIT);
                ....//insert操作
           ...//查询操作....
           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);
ocx的名称作为参数配置在配置文件中,并不由WINDOWS支持。
实施例如下:
//下面三行语句实现:从配置文件Config.ini中读取App小节中的名字为OcxFile的内容。其内容就是保存的是ocx文件的名称。
TIniFile*ini=new TIniFile(“Config.ini”);
String strOcxFile=ini->ReadString(″App″,“OcxFile”,“”);
delete ini;
//加载OCX就可以使用从配置文件中读到的ocx名称进行调用
hOcxLibrary=LoadLibrary(strOcxFile.c_str())。

Claims (1)

1、三层结构二代身份证资料管理系统实现方法:其特征是在开发客户端程序时利用对象链接和嵌入用户控件ocx驱动读卡器工作获取二代身份中的身份证资料,对象链接和嵌入用户控件ocx的调用,采用Windows系统提供的函数api调用动态库的方式进行调用,对象链接和嵌入用户控件ocx的名称作为参数配置在配置文件中;图象文件的传输采用客户机/服务器的中间件tuxedo中的CARRAY类型变量,将二进制文件读入内存赋值给tuxedo中的CARRAY类型的变量,并进行传输;中间层服务器端程序获取CARRAY类型变量,并进行后续的业务处理;图象文件的保存采用Oracle数据库提供的oci函数调用,将二进制文件保存到数据库表的BLOB类型的字段中;查询时,再将表BLOB字段中的内容生成文件,进行展示。
CNB2007100261980A 2007-08-17 2007-08-17 三层结构二代身份证资料管理系统实现方法 Active CN100444114C (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100261980A CN100444114C (zh) 2007-08-17 2007-08-17 三层结构二代身份证资料管理系统实现方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100261980A CN100444114C (zh) 2007-08-17 2007-08-17 三层结构二代身份证资料管理系统实现方法

Publications (2)

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

Family

ID=39042109

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100261980A Active CN100444114C (zh) 2007-08-17 2007-08-17 三层结构二代身份证资料管理系统实现方法

Country Status (1)

Country Link
CN (1) CN100444114C (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106530525B (zh) * 2016-11-07 2018-11-27 浪潮金融信息技术有限公司 一种驱动层消息处理方法、交互模块及驱动装置

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004075072A1 (en) * 2003-02-20 2004-09-02 Vr Photo Co.,Ltd The method and equipment of asp service for multi-resolution image on the environment of multi-server.

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004075072A1 (en) * 2003-02-20 2004-09-02 Vr Photo Co.,Ltd The method and equipment of asp service for multi-resolution image on the environment of multi-server.

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
PowerBuilder中串行通信编程技术研究. 朱秀,谢子殿.微计算机信息,第20卷第11期. 2004
PowerBuilder中串行通信编程技术研究. 朱秀,谢子殿.微计算机信息,第20卷第11期. 2004 *
Visual C++多媒体开发方法研究. 张晓军,周家纪,孙淑霞.计算机应用研究,第2期. 1998
Visual C++多媒体开发方法研究. 张晓军,周家纪,孙淑霞.计算机应用研究,第2期. 1998 *

Also Published As

Publication number Publication date
CN101110023A (zh) 2008-01-23

Similar Documents

Publication Publication Date Title
US20050091285A1 (en) Promotion and demotion techniques to facilitate file property management between object systems
RU2427026C2 (ru) Специфическая для устройства индексация содержимого для оптимизированной работы устройства
US7558907B2 (en) Virtual memory card controller
US8185494B2 (en) Data-driven synchronization
KR20080017351A (ko) 데이터 중심형 워크플로의 방법, 시스템 및 컴퓨터판독가능 매체
US20070226238A1 (en) Media file conversion using plug-ins
CN101452465A (zh) 大批量文件数据存放和读取方法
JP2010541043A (ja) スクリプティング環境および他のプログラミング環境からデバイスによってホストされるサービスへのアクセス
US10303420B2 (en) Proactive staged distribution of document activity indicators
US9747303B1 (en) File location application programming interface
JP4726539B2 (ja) コンテキスト交換を用いたエニュメレーションのセッションのためのフレキシブルなコンテキスト管理
TW200830113A (en) System and method for the dynamic loading of protocol adapters
US20090083764A1 (en) Device-hosted services over media transfer protocol
EP2104039A1 (en) Archive stream based install
US7797396B2 (en) Network attached storage (NAS) server having a plurality of automated media portals
CN100444114C (zh) 三层结构二代身份证资料管理系统实现方法
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
CN108616603B (zh) 一种内外网数据同步方法和系统
US20040193940A1 (en) WebDAV unit test framework
CN101753974A (zh) 用于数字电视的基于虚拟通道的统一接口实现方法
US8620856B2 (en) Method and system for providing a data exchange service provider interface
US7752241B1 (en) Message based file system
Liebetraut et al. Management and Orchestration of Distributed Data Sources to Simplify Access to Emulation-as-a-Service.
Zhaolong et al. Design for card reader's data acquisition system based on USBHID and SQLite of WINCE

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.