📄 apframe.h
字号:
#ifndef __APFRAME_H#define __APFRAME_H#include <limits.h>#ifndef NAMELEN#define NAMELEN 20#endif/* cti comm pack head define */typedef struct{ unsigned char head [ 14] ; /* 13Byte Head */ unsigned char ip_address[ 64] ; /* '|'+From+'|'+To+'|'+Serial */ int iplen ;} CTI_HEAD ;/* bank head define */typedef struct { char date [ 8 + 1] ; char ds [ 1 + 1] ; char flg [ 1 + 1] ; char serial [ 2 + 1] ; char dn [ 2 + 1] ; char side [ 1 + 1] ; char zoneno [ 5 + 1] ; char optcode [ 4 + 1] ; char termno [ 3 + 1] ; char agentid [ 4 + 1] ; char retcode [ 2 + 1] ; char id [ 19 + 1] ; char remark [ 7 + 1] ; char cflg [ 1 + 1] ; unsigned char crc[ 4 + 1] ;} BANK_HEAD ;/* incall server trade pack head define */typedef struct { unsigned char node [ 6 + 1] ; unsigned char callid [ 14 + 1] ; unsigned char phone [ 15 + 1] ; BANK_HEAD bk_h ; unsigned char buf [ 2048] ; /* '|'+data1+'|'+...+datan+'|' */ int buflen ;} TRADE_HEAD ;/* trade_ctl define */typedef struct{ short optcode ; char opt_name [ 30 + 1] ; char bms_module [ 60 + 1] ; char svr_type [ 1 + 1] ; short busin_type ; short trade_type ; char svr_mode [ 1 + 1] ; char form1 [ 400 + 1] ; char form2 [ 400 + 1] ; short comm_mode ; short host_optcode ; char host_ip [ 20 + 1] ; short host_port ; short commtimeout ; char timectrlf [ 1 + 1] ; char servstarttime [ 8 + 1] ; char servendtime [ 8 + 1] ; short status ;} TRADE_CTL ;/** 大结构表 ***/typedef struct { char teller [ 5 + 1] ; /* 01 操作员号 **/ int trade_serial ; /* 02 流水号 */ int otrade_serial ; /* 03 原交易流水 */ char flag [ 1 + 1] ; /* 04 标志 */ short side ; /* 05 发起方 */ short optcode ; /* 06 交易码 */ char serv_type [ 1 + 1] ; /* 07 服务类型 */ short busin_type ; /* 08 业务类型 */ short trade_type ; /* 09 交易类型 */ short result ; /* 10 交易结果 */ char serv_date [ 10 + 1] ; /* 11 服务日期 */ char serv_time [ 8 + 1] ; /* 12 服务时间 */ char auther [ 5 + 1] ; /* 13 授权操作员号 */ char auth_no [ 20 + 1] ; /* 14 授权号 */ int zoneno ; /* 15 地区号 */ short ctype ; /* 16 客户性质 */ char cid [ 11 + 1] ; /* 17 客户号 */ short bid ; /* 18 代表号 */ char debi_aid [ 4 + 1] ; /* 19 借方帐号序号 */ short debi_acct_type ; /* 20 借方帐号种类 */ char debi_bank [ 20 + 1] ; /* 21 借方行号 */ char debi_acct [ 30 + 1] ; /* 22 借方帐号 */ short debi_curr ; /* 23 借方币种 */ char cred_aid [ 4 + 1] ; /* 24 贷方帐号序号 */ short cred_acct_type ; /* 25 贷方帐号种类 */ char cred_bank [ 20 + 1] ; /* 26 贷方行号 */ char cred_acct [ 30 + 1] ; /* 27 贷方帐号 */ short cred_curr ; /* 28 贷方币种 */ double debi_amt ; /* 29 借方发生额 */ double cred_amt ; /* 30 贷方发生额 */ double debi_bala ; /* 31 借方余额 */ double cred_bala ; /* 32 贷方余额 */ short bill_flg ; /* 33 钞汇标志 */ char abstract [ 10 + 1] ; /* 34 摘要 */ short deduct_type ; /* 35 扣款种类 */ short pz_type ; /* 36 凭证(证件)种类 */ char pz_num [ 30 + 1] ; /* 37 凭证(证件)号码 */ short source_typ ; /* 38 来源种类 */ int source_ser ; /* 39 来源序号 */ char sonsign_no [ 20 + 1] ; /* 40 委托号 */ int purchase_num ; /* 41 (申购)数量 */ int detail_num ; /* 42 明细笔数 */ char address [ 80 + 1]; /* 43 地址 */ /* 文件名(含路径) */ char rate [ 10 + 1] ; /* 44 实时汇率/利率 */ char name [ 80 + 1] ; /* 45 客户名 */ char postcode [ 6 + 1] ; /* 46 邮编 */ char tele [ 20 + 1] ; /* 47 电话号码 */ char term_no [ 10 + 1] ; /* 48 终端号 */ char incall_num [ 30 + 1] ; /* 49 来电号码 */ char call_id [ 30 + 1] ; /* 50 呼叫ID */ double money1 ; /* 51 保留余额 */ double money2 ; /* 52 保留余额 */ double money3 ; /* 53 保留余额 */ double money4 ; /* 54 保留余额 */ char notes1 [ 30 + 1] ; /* 55 备注 */ char notes2 [ 30 + 1] ; /* 56 备注 */ char notes3 [ 30 + 1] ; /* 57 备注 */ char notes4 [ 30 + 1] ; /* 58 备注 */ char notes5 [ 30 + 1] ; /* 59 备注 */ char notes6 [ 256 + 1] ; /* 60 备注 */ char notes7 [ 256 + 1] ; /* 61 备注 */ char notes8 [ 256 + 1] ; /* 62 备注 */ char notes9 [ 256 + 1] ; /* 63 备注 */ char notes10 [ 256 + 1] ; /* 64 备注 */ char city_no [ 20 + 1] ; /* 65 城市号 */ char trade_brch [ 20 + 1] ; /* 66 交易所号 */ char date1 [ 10 + 1] ; /* 67 日期 */ char date2 [ 10 + 1] ; /* 68 日期 */ char index [ 10 + 1] ; /* 69 语音索引 */ char errinfo [ 256 + 1] ; /* 70 错误信息 */ char passwd1 [ 16 + 1] ; /* 71 密码 */ char passwd2 [ 16 + 1] ; /* 72 密码 */ char buf [ 1024 + 1] ; /* 73 缓冲区 */} BIG_STRC ;#ifdef __cplusplusextern "{"#endif#ifdef __STDC__typedef int (*APFUNC)( TRADE_HEAD *, BIG_STRC * );#elsetypedef int (*APFUNC)();#endif#ifdef __cplusplus}#endiftypedef struct { char svc_name[ 20 + 1] ; APFUNC ap_func ;} APLIST;typedef struct { int svc_num; APLIST *ap_list;} APSRVINFO;typedef struct { char pathname[_POSIX_PATH_MAX+1]; char svc_name[ 20 + 1] ; char svr_mode[ 1 + 1] ; char up_strc[ 400 + 1] ; char down_strc[ 400 + 1] ;} APBITMAP;#endif /* end of apframe.h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -