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

📄 interface.h

📁 这是一个银行证券转帐系统。可以实现银行和证券公司之间的转帐。
💻 H
字号:
// Interface.h: interface for the CInterface class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_INTERFACE_H__EB7C50C6_1299_4A86_B6B7_CE9233109FC5__INCLUDED_)
#define AFX_INTERFACE_H__EB7C50C6_1299_4A86_B6B7_CE9233109FC5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "BankInter.h"

typedef int (WINAPI *lpCheckInOut)(PARAM *pParam,RESULT *pResult);
typedef int (WINAPI *lpOpenAccount)(PARAM *pParam,RESULT *pResult);
typedef int (WINAPI *lpQueryMoney)(PARAM *pParam,RESULT *pResult);
typedef int (WINAPI *lpDeleteAccount)(PARAM *pParam,RESULT *pResult);
typedef int (WINAPI *lpOpenCancelConfirm)(PARAM *pParam,RESULT *pResult);
typedef int (WINAPI *lpTransfer)(PARAM *pParam,RESULT *pResult);
typedef int (WINAPI *lpSendQSTransSucceed)(PARAM *pParam,RESULT *pREsult);
typedef int (WINAPI *lpQueryBankBalance)(PARAM *pParam,RESULT *pResult);
typedef int (WINAPI *lpQueryGenTrans)(PARAM *pParam,RESULT *pResult);
typedef int (WINAPI *lpChangeTranPswd)(PARAM *pParam,RESULT *pResult);
typedef int (WINAPI *lpQueryTransferDetail)(PARAM *pParam,RESULT *pResult);
typedef int (WINAPI *lpCheckFund)(PARAM *pParam,RESULT *pResult);
typedef int (WINAPI *lpInsertCheck)(PARAM *pParam,RESULT *pResult);
typedef int (WINAPI *lpAjustTransfer)(PARAM *pParam,RESULT *pResult);
typedef int (WINAPI *lpFormatAns)(void *stdAns,void *ansPack,void *RecvPack);
typedef int (WINAPI *lpFormatReq)(void *recvPack,int recvLen,void *stdReq);
typedef char (WINAPI *lpGetParam)(void *recvPack,int recvLen,PARAM *pParam);
typedef int (WINAPI *lpCommFun)(INNERCOMM *pComm);


class CInterface  
{
public:
	CInterface();
	virtual ~CInterface();
public:
	char GetParam(void *recvPack,int recvLen,PARAM *pParam);
	int FormatAns (void *stdAns,void *ansPack,void *recvPack);
	int FormatReq(void *recvPack,int recvLen,void *stdReq);
	int OpenCancelConfirm(PARAM *pParam,RESULT *pResult);
	int QueryBankBalance(PARAM *pParam,RESULT *pResult);
	int SendQSTransSucceed(PARAM *pParam,RESULT *pResult);
	int QueryTransferDetail(PARAM *pParam,RESULT *pResult);
	int QueryGenTrans(PARAM *pParam, RESULT *pResult);
	int DeleteAccount(PARAM *pParam, RESULT *pResult);
	int OpenAccount(PARAM *pParam,RESULT *pResult);
	int CheckFund(PARAM *pParam,RESULT *pResult);
	int AjustTransfer(PARAM *pParam,RESULT *pResult);
	int ChangeTranPswd(PARAM *pParam,RESULT *pResult);
	int QueryMoney(PARAM *pParam, RESULT *pResult);
	int Transfer(PARAM *pParam, RESULT *pResult);
	int CheckInOut(PARAM *pParam,RESULT *pResult);
	BOOL Init(char *FileName);
private:
	lpCheckInOut myCheckInOut;				//签到签退
	lpOpenAccount myOpenAccount;				//开户
	lpDeleteAccount myDeleteAccount;			//销户
	lpOpenCancelConfirm myOpenCancelConfirm;	//开户销户确认
	lpTransfer myTransfer;					//转账
	lpSendQSTransSucceed mySendQSTransSucceed;//转账确认
	lpQueryBankBalance myQueryBankBalance;	//查询银行余额
	lpChangeTranPswd myChangeTranPswd;			//修改银行密码
	lpQueryGenTrans myQueryGenTrans;			//查询新发生的业务
	lpCheckFund myCheckFund;					//对帐(银行总帐)
	lpQueryTransferDetail myQueryTransferDetail;		//对帐(券商对帐)
	lpAjustTransfer myAjustTransfer;			//冲正
	lpInsertCheck myInsertCheck;				//写入总帐
	lpQueryMoney myQueryMoney;
	lpFormatReq myFormatReq;
	lpFormatAns myFormatAns;
	lpGetParam myGetParam;
	lpCommFun CommFun;						//通用功能
private:
	INNERCOMM m_nComm;
	HMODULE m_hDLL;
	BOOL m_bLoad;
};

#endif // !defined(AFX_INTERFACE_H__EB7C50C6_1299_4A86_B6B7_CE9233109FC5__INCLUDED_)

⌨️ 快捷键说明

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