📄 abisemu.h
字号:
/*
* This is a part of the Application Preconsole
* - Service Provide - ABIS.
* Copyright (C) 2000-2000 ABC.SDC.
* All rights reserved.
*
* This source code is only intended as a supplement to the
* Application Preconsole Reference and related
* electronic documentation provided with the library.
* See these sources for detailed information regarding the
* Application Preconsole product.
*
* Update record:
* 2001-11-16 whl - create private declaration file for
* ABIS emulator
*/
#ifndef __ABISEMU_H__
#define __ABISEMU_H__
/*
* Constant macros defined in this file
*/
/*
* Format constant macros
*/
#define FMT_TOA "%c%4s%19.2lf"
#define FMT_TIA "%8s%4ld%19s%19.2lf%6s%12s%1ld"
/*
* Variable constant macros
*/
#define VAR_TOA &toastru.cRespType, toastru.szErrCode, &toastru.dBal
#define VAR_TIA tiastru.szDate, tiastru.nTransCode, \
tiastru.szAccNo, tiastru.dAmt, tiastru.szAccPwd, \
tiastru.szSeqNo, tiastru.sCancelFlag
/*
* Types and structures declared in this file
*/
/*
* Transaction Input Area structure
*/
typedef struct tagTIASTRU
{
char szDate[8 + 1]; /* 日期 */
unsigned int nTransCode; /* 交易码 */
char szAccNo[19 + 1]; /* 帐号 */
double dAmt; /* 金额 */
char szAccPwd[6 + 1]; /* 帐户密码 */
char szSeqNo[12 + 1]; /* 前置流水号 */
short int sCancelFlag; /* 正0/反1 交易标志 */
} TIASTRU;
typedef TIASTRU * PTIASTRU;
typedef const TIASTRU CTIASTRU;
typedef const TIASTRU * PCTIASTRU;
/*
* Transaction Output Area structure
*/
typedef struct tagTOASTRU
{
char cRespType; /* 输出信息类型 */
char szErrCode[4 + 1]; /* 错误码 */
double dBal; /* 实际余额 */
} TOASTRU;
typedef TOASTRU * PTOASTRU;
typedef const TOASTRU CTOASTRU;
typedef const TOASTRU * PCTOASTRU;
#endif /* __ABISEMU_H__ */
/* End of this file */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -