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

📄 trsfunc.h

📁 本人写的在AIX下的用SQLC开发的处理DB2数据库中业务的程序
💻 H
字号:
#ifndef __DBTRSFUNC_H
#define __DBTRSFUNC_H

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <sql.h>
#include <stdarg.h>

#ifdef __cplusplus 
extern "C"         
{                  
#endif

#define BOOL int
#define	FALSE 0
#define TRUE 1

#define NOTFOUND 100
#define COMMITROWS 1000

#ifndef VIEWMSG
#define DEBUGMSG 0
#else
#define DEBUGMSG 1
#endif

/* 去左右空格  */  
void trim(char *s);

/*   PrintMsg:   向CICS标准队列输出调试信息    输出的调试信息不需要加\n, 系统会自动加 */
void PrintMsg(char *fmt, ...);

void PrintErrMsg(char *appMsg, struct sqlca *pSqlca, int line, char *file);

/*密码 新->旧*/
void tran_pwd(char* jzjymm,char* v6mm);

/*客户状态 新->旧*/
void tran_status(char* status,char* khzt);

/* 新老系统的委托方式转换
 lno :  1    新系统到旧系统 的转换
 lno :  0    旧系统到新系统
*/
BOOL GetEntrustMethod(long lno,char *sEntrustMethod,char *oEntrustMethod,char * oEntstMtdName);

/* 取得字典子项说明 */
BOOL GetDictItemComment(char *sBranchCode,long lDictEntry,char *sSubEntry,char *osItemComment,
	char *errcode,char *errmsg);

/* 新旧系统银行代码转换 */
BOOL TransBankCode(long lno,char *sbranch_code,char *scurrency_type,char *sbank_code,
				   char *oscurrency_type,char *osbank_code);

BOOL TransBusinessCode(char * sbusiness_code,char * sscdm,char * szydm,char * szymc,char * sbdlb,char * soldzydm,char * soldzymc);

BOOL getmacdatetime0(char * date0,char * time0);

void TranSymbol(char * SendString);
				   
#ifdef __cplusplus
};
#endif
#endif

⌨️ 快捷键说明

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