结构如下:
长度定义
#define RYBH_LEN 19
#define JZDM_LEN 2
#define XM_LEN 30
#define DATE_LEN 10
#define SFZH_LEN 18
#define XZQH_LEN 6
#define ADDRESS_LEN 70
#define ZJDM_LEN 2
#define QTZJH_LEN 20
#define SFDM_LEN 3
#define LXDM_LEN 4
#define TXDM_LEN 4
#define KYDM_LEN 6
#define TBBJ_LEN 7
#define TBBWDM_LEN 2
#define TBBJDM_LEN 3
#define TSTZDM_LEN 4
#define AJBH_LEN 19
#define AJLBDM_LEN 6
#define SHDM_LEN 2
#define ZTLXDM_LEN 2
#define JYAQ_LEN 500
#define FLSDDM_LEN 2
#define DBJBDM_LEN 2
#define TJLJBDM_LEN 2
#define TJDW_LEN 6
#define TJND_LEN 4
#define TJSXH_LEN 4
#define DWMC_LEN 40
#define YWXTDM_LEN 3
#define ZBDW_LEN 200
#define ZBR_LEN 40
#define LXFS_LEN 100
#define ZHFSDM_LEN 2
#define JJDXDM_LEN 2
#define ZWBH_LEN 19
#define JZ_LEN 8
#define XB_LEN 10
#define DM_LEN 80
#define XZQHPY_LEN 32
#define ZJ_LEN 40
#define SF_LEN 60
#define LX_LEN 16
#define TX_LEN 8
#define KY_LEN 16
#define TBBJBW_LEN 140
#define TBBJFW_LEN 4
#define TBBJSL_LEN 16
#define TBBJBJ_LEN 80
#define TSTZ_LEN 20
#define AJLB_LEN 140
#define SH_LEN 8
#define ZTLX_LEN 16
#define FLSD_LEN 8
#define DBJB_LEN 8
#define TJLJB_LEN 8
#define TJJB_LEN 16
#define YWXT_LEN 8
#define ZHFS_LEN 20
#define JJDX_LEN 8
#define TJJBDM_LEN 2
#define XMPY_LEN 30
#define ZKBZ_LEN 100
文件头结构
struct FileCtrlHead
{
char version[DATE_LEN+1]; // "ZT4.3 for ztry ,PH4.3 for photo"
int serialNo;
unsigned long recordAmount;
char masterCode[XZQH_LEN+1]; // "000000" for generate
char createDate[DATE_LEN+1];
char modifyDate[DATE_LEN+1];
BOOL readOnly; // TRUE for generate
};
记录结构
struct info_ztryDJ
{
char r_rybh[RYBH_LEN+1] ;//**CHAR(19) UNIQUE NOT NULL, '在逃人员编号';
char r_jz[JZDM_LEN+1] ;//**CHAR(2) REFERENCES jz(r_jzdm) '历年和新机制'
char r_xm[XM_LEN+1] ;// VARCHAR2(30) NOT NULL, ''在逃人员姓名';
char r_bmch[XM_LEN+1] ;// VARCHAR2(30), '在逃人员别号/绰号';
char r_xb ;// CHAR(1) NOT NULL REFERENCES xb(r_xbdm), '在逃人员性别';
char r_csrq[DATE_LEN+1] ;// DATE, '在逃人员出生日期';
char r_csrqsx[DATE_LEN+1] ;// DATE, '在逃人员出生日期上限';
char r_sfzh[SFZH_LEN+1] ;// VARCHAR2(18) UNIQUE NOT NULL, '在逃人员身份证号';
char r_hjdqh[XZQH_LEN+1] ;// CHAR(6) REFERENCES xzqh(r_xzqhdm), '在逃人员户籍地区划';
char r_hjdxz[ADDRESS_LEN+1] ;// VARCHAR2(70), 在逃人员户籍地详址';
char r_xzdqh[XZQH_LEN+1] ;// CHAR(6) REFERENCES xzqh(r_xzqhdm), '在逃人员现住地区划';
char r_xzdxz[ADDRESS_LEN+1] ;// VARCHAR2(70), '在逃人员现住地详址';
char r_qtzj1_m[ZJDM_LEN+1] ;//**CHAR(2) REFERENCES zj(r_zjdm), '在逃人员其他证件名1';
char r_qtzj1_h[QTZJH_LEN+1] ;//**VARCHAR2(20), '在逃人员其他证件号1';
char r_qtzj2_m[ZJDM_LEN+1] ;//**CHAR(2) REFERENCES zj(r_zjdm), '在逃人员其他证件名2';
char r_qtzj2_h[QTZJH_LEN+1] ;//**VARCHAR2(20), '在逃人员其他证件号2';
char r_sf[SFDM_LEN+1] ;//CHAR(3) REFERENCES sf(r_sfdm), '在逃人员身份';
int r_sg ;//NUMBER(3,0), '在逃人员身高'; int(32bit)
char r_lx[LXDM_LEN+1] ;//CHAR(4) REFERENCES lx(r_lxdm), '在逃人员脸型';
char r_tx[TXDM_LEN+1] ;//CHAR(4) REFERENCES tx(r_txdm), '在逃人员体型';
char r_ky[KYDM_LEN+1] ;//CHAR(6) REFERENCES ky(r_kydm), '在逃人员口音';
char r_tbbj1_bw[TBBWDM_LEN+1];// CHAR(2) REFERENCES tbbjbw(r_tbbjbwdm), '在逃人员体表标记部位1';
char r_tbbj1_fw ;// CHAR(1) REFERENCES tbbjfw(r_tbbjfwdm), '在逃人员体表标记方位1';
char r_tbbj1_sl ;// CHAR(1) REFERENCES tbbjsl(r_tbbjsldm), '在逃人员体表标记数量1';
char r_tbbj1_bj[TBBJDM_LEN+1];// CHAR(3) REFERENCES tbbjbj(r_tbbjbjdm), '在逃人员体表标记标记1';
char r_tbbj2_bw[TBBWDM_LEN+1];// CHAR(2) REFERENCES tbbjbw(r_tbbjbwdm), '在逃人员体表标记部位2';
char r_tbbj2_fw ;// CHAR(1) REFERENCES tbbjfw(r_tbbjfwdm), '在逃人员体表标记方位2';
char r_tbbj2_sl ;// CHAR(1) REFERENCES tbbjsl(r_tbbjsldm), '在逃人员体表标记数量2';
char r_tbbj2_bj[TBBJDM_LEN+1];// CHAR(3) REFERENCES tbbjbj(r_tbbjbjdm), '在逃人员体表标记标记2';
char r_tbbj3_bw[TBBWDM_LEN+1];//**CHAR(2) REFERENCES tbbjbw(r_tbbjbwdm), '在逃人员体表标记部位3';
char r_tbbj3_fw ;//**CHAR(1) REFERENCES tbbjfw(r_tbbjfwdm), '在逃人员体表标记方位3';
char r_tbbj3_sl ;//**CHAR(1) REFERENCES tbbjsl(r_tbbjsldm), '在逃人员体表标记数量3';
char r_tbbj3_bj[TBBJDM_LEN+1];//**CHAR(3) REFERENCES tbbjbj(r_tbbjbjdm), '在逃人员体表标记标记3';
char r_tstz1[TSTZDM_LEN+1] ;// CHAR(4) REFERENCES tstz(r_tstzdm), '在逃人员特殊特征1';
char r_tstz2[TSTZDM_LEN+1] ;// CHAR(4) REFERENCES tstz(r_tstzdm), '在逃人员特殊特征2';
char r_tstz3[TSTZDM_LEN+1] ;//**CHAR(4) REFERENCES tstz(r_tstzdm), '在逃人员特殊特征3';
char r_ajbh[AJBH_LEN+1] ;//** CHAR(19) '案件编号'
char r_ajlb[AJLBDM_LEN+1] ;//CHAR(6) NOT NULL REFERENCES ajlb(r_ajlbdm), '在逃人员案件类别';
char r_sh[SHDM_LEN+1] ;//**CHAR(2) REFERENCE sh(r_shdm) '是否涉黑'
char r_ztlx[ZTLXDM_LEN+1] ;//CHAR(2) REFERENCES ztlx(r_ztlxdm), '在逃人员在逃类型';
char r_jyaq[JYAQ_LEN+1] ;//**VCHAR(500) '简要案情'
char r_tprq[DATE_LEN+1] ;//DATE,'在逃人员逃跑日期';
char r_tpfx[XZQH_LEN+1] ;//CHAR(6) REFERENCES xzqh(r_xzqhdm),逃跑方向
char r_flsd[FLSDDM_LEN+1] ;//**CHAR(2) REFERENCE flsd(r_flsddm), '法律手段'
char r_dbjb[DBJBDM_LEN+1] ;//**CHAR(2) REFERENCE dbjb(r_dbjbdm), '督捕级别'
char r_tjljb[TJLJBDM_LEN+1] ;//**CHAR(2) REFERENCE tjljb(r_tjljbdm), '通缉令级别'
int r_jj ;//**NUMBER(11) '奖金'
char r_tjrq[DATE_LEN+1] ;//**DATE, '通缉日期';
char r_tjdwqh[TJDW_LEN+1] ;//**CHAR(6) '通缉单位区划'
char r_tjnd[TJND_LEN+1] ;//**NUMBER(4) '通缉年度'
char r_tjsxh[TJSXH_LEN+1] ;//**VCHAR(4) '通缉顺序号'
char r_tjjb[TJJBDM_LEN+1] ;//**CHAR(2) REFERENCE tjjb(r_tjjbdm), '通缉级别'
char r_ladwqh[XZQH_LEN+1] ;//**CHAR(6) REFERENCE xzqh(r_xzqhdm), '立案单位行政区划'
char r_ladwxc[DWMC_LEN+1] ;//**VCHAR(40) '立案单位详称'
char r_ywxt[YWXTDM_LEN+1] ;//**CHAR(3) REFERENCE ywxt(r_ywxtdm), '业务系统分类' //!!!!!!!!!!!!!!!!!!!!!!!!!!!!
char r_zbdwqh[XZQH_LEN+1] ;//**CHAR(6) REFERENCE xzqh(r_xzqhdm), '主办单位行政区划'
char r_zbdw[ZBDW_LEN+1] ;//**VCHAR(200) '主办单位'
char r_zbr[ZBR_LEN+1] ;//**VCHAR(40) '主办人'
char r_lxfs[LXFS_LEN+1] ;//**VCHAR(100) '联系方式'
char r_djrq[DATE_LEN+1] ;//DATE NOT NULL, '在逃人员登记日期';
char r_djbtbr[XM_LEN+1] ;//VCHAR(30), '在逃人员登记表填表人';
char r_djspr[XM_LEN+1] ;//**VCHAR(30), '登记审批人'
char r_zhrq[DATE_LEN+1] ;//DATE,'在逃人员抓获日期';
char r_zhfs[ZHFSDM_LEN+1] ;//CHAR(2) REFERENCES zhfs(r_zhfsdm), '在逃人员抓获方式';
char r_jjdx[JJDXDM_LEN+1] ;//**CHAR(2) REFERENCES jjdx(r_jjdxdm), '奖金是否兑现'
char r_zhddqh[XZQH_LEN+1] ;//**CHAR(6) REFERENCES xzqh(r_xzqhdm), '在逃人员抓获地点';
char r_zhddxz[ADDRESS_LEN+1] ;//**VCHAR(40) '抓获地点详址'
char r_zhdwqh[XZQH_LEN+1] ;//**CHAR(6) REFERENCES xzqh(r_xzqhdm), '抓获单位'
char r_zhdwxc[ADDRESS_LEN+1] ;//**VCHAR(40) '抓获单位详址'
char r_zwbh[ZWBH_LEN+1] ;//CHAR(19) '指纹编号'
char r_cxbtbr[XM_LEN+1] ;//**CHAR(30),'在逃人员撤消表填表人';
char r_cxrq[DATE_LEN+1] ;//**DATE,'在逃人员撤消日期';
char r_cxspr[XM_LEN+1] ;//**VCHAR(30), '撤销审核人'
char r_xmpy[XMPY_LEN+1] ;//VARCHAR2(30), '在逃人员姓名拼音';
char r_zkbz[ZKBZ_LEN+1] ;//VARCHAR2(100), '转库备注'
int r_cx ;//0: 未撤销 1:撤销
int r_whzt ;//0: 未清理数据 1:已清理数据 2:新增数据
unsigned long photoOffset ;//相片指针
};