⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msi.h

📁 商业银行前置系统
💻 H
字号:
/*
 * This is a part of the Applictiaon Preconsole
 * - Service Provide - MSI.
 * Copyright (C) 2000-2000 ABC.SDC.
 * All rights reserved.
 *
 * This source code is only intended as a supplement to the
 * Applictiaon Preconsole Reference and related
 * electronic documenttiaon provided with the library.
 * See these sources for detailed informtiaon regarding the
 * Applictiaon Preconsole product. 
 *
 * Update record:
 * 2001-11-16 whl      - create private declartiaon file for
 *                       communictiaon area
 */

#ifndef __MSI_H__
#define __MSI_H__

/*
 * Constant macros defined in this file
 */
/*
 * Types and structures declared in this file
 */

/*
 * Transaction Input Area structure
 */

typedef struct tagTIASTRU
{
    char szMonth[7];                    /* 月份 */
    unsigned int nTransCode;            /* 交易码 */
    double dAmt;                        /* 金额 */
    char szPhoneNo[12];                 /* 电话号码 */
    short int sTranFlag;		        /* 正0/反1 交易标志   */     

} TIASTRU;

typedef TIASTRU *       PTIASTRU;
typedef const TIASTRU   CTIASTRU;
typedef const TIASTRU * PCTIASTRU;

/*
 * Transaction Output Area structure
 */

typedef struct tagTOASTRU
{
    char cRespType;                      /* X(1) 输出信息类型 */
    char szErrCode[5];                   /* 错误码 */
    double dBal;                         /* 实际余额 */

} TOASTRU;

typedef TOASTRU *       PTOASTRU;
typedef const TOASTRU   CTOASTRU;
typedef const TOASTRU * PCTOASTRU;

#define FMT_TOA "%c%4s%19.2lf"
#define FMT_TIA "%6s%4ld%19.2lf%11s%1hd"

#define VAR_TOA &toastru.cRespType, toastru.szErrCode, &toastru.dBal
                
#define VAR_TIA tiastru.szMonth, tiastru.nTransCode, \
                tiastru.dAmt, tiastru.szPhoneNo, tiastru.sTranFlag

#endif /* __MSI_H__ */

/* End of this file */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -