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

📄 wap1860.dat.h

📁 一个weblogc连接tuxedo的连接部件的例子程序
💻 H
字号:
/*	fname	fldid            */
/*	-----	-----            */
#define PROVINCECODE	((FLDID32)167777986)         /*number: 1    type: string */	
#define TRADEAGENTCODE	((FLDID32)167774162)       /*number: 2    type: string */	
#define TRADEEPARCHYCODE	((FLDID32)167774163)     /*number: 3    type: string */	
#define TRADECITYCODE	((FLDID32)167774164)         /*number: 4    type: string */	
#define TRADEDEPARTID	((FLDID32)167774165)         /*number: 5    type: string */	
#define TRADESTAFFID	((FLDID32)167774166)         /*number: 6    type: string */	
#define TRADEAGENTPWD	((FLDID32)167777973)         /*number: 7    type: string */	
#define TRANSCODE	((FLDID32)167774161)             /*number: 8    type: string */	
#define RESULTCODE	((FLDID32)33558933)            /*number: 11   type: long	 */
#define RESULTERRCODE	((FLDID32)5821)              /*number: 12   type: long	 */
#define RESULTERRINFO	((FLDID32)167776662)         /*number: 13   type: string */	
#define RESULTRECORDS	((FLDID32)33558935)          /*number: 14   type: long	 */
#define SERIALNUMBER	((FLDID32)167776768)         /*number: 21   type: string */	
#define REMOVETAG	((FLDID32)67115866)              /*number: 22   type: string */	
#define GETMODE	((FLDID32)4893)                    /*number: 23   type: short	 */
#define ACYCDATE	((FLDID32)167777962)             /*number: 24   type: string */	
#define USRNAME	((FLDID32)167776788)               /*number: 25   type: string */	
#define ACYCDATEEXTENT	((FLDID32)167775763)       /*number: 26   type: string */	
#define ACYCDATEALLFEE	((FLDID32)100666904)       /*number: 27   type: float	 */
#define ADVANCEPAY	((FLDID32)100667949)           /*number: 28   type: float	 */
#define BILLITEM	((FLDID32)167777280)             /*number: 29   type: string */	
#define BILLITEMCODE	((FLDID32)167776898)         /*number: 30   type: string */	
#define FEE	((FLDID32)100664405)                   /*number: 31   type: float	 */
#define BALANCE	((FLDID32)100664406)               /*number: 32   type: float	 */
#define LATEFEE	((FLDID32)100664714)               /*number: 33   type: float	 */
#define LATEBALANCE	((FLDID32)100664407)           /*number: 34   type: float	 */
#define ADJUSTBEFORE	((FLDID32)100664813)         /*number: 35   type: float	 */
#define ADJUSTAFTER	((FLDID32)100664701)           /*number: 36   type: float	 */
#define BDISCOUNT	((FLDID32)100664409)             /*number: 37   type: float	 */
#define ADISCOUNT	((FLDID32)100664410)             /*number: 38   type: float	 */
#define LATECALTIME	((FLDID32)167775761)           /*number: 39   type: string */	
#define TR_PAYTAG	((FLDID32)167775762)             /*number: 40   type: string */	
#define WRITEOFFMODE	((FLDID32)67115869)          /*number: 41   type: string */	
#define QUALITYTYPECODE	((FLDID32)167776803)       /*number: 42   type: string */	
#define QUALITYTYPE	((FLDID32)167777204)           /*number: 43   type: string */	
#define RESULTFEE	((FLDID32)100666903)             /*number: 44   type: float	 */
#define ALLROWEFEE	((FLDID32)100664356)           /*number: 45   type: float	 */
#define FEE1	((FLDID32)100669410)                 /*number: 46   type: float	 */
#define FEE2	((FLDID32)100669411)                 /*number: 47   type: float	 */
#define FEE3	((FLDID32)100669412)                 /*number: 48   type: float	 */
#define FEE4	((FLDID32)100669413)                 /*number: 49   type: float	 */
#define FEE5	((FLDID32)100669414)                 /*number: 50   type: float	 */
#define BCYCID	((FLDID32)167777794)               /*number: 60   type: string */	
#define STARTDATE	((FLDID32)167776883)             /*number: 61   type: string */	
#define ENDDATE	((FLDID32)167776838)               /*number: 62   type: string */	
#define SUMDATAUP	((FLDID32)100666924)             /*number: 63   type: float	 */
#define SUMDATADOWN	((FLDID32)100666925)           /*number: 64   type: float	 */
#define CALLNO	((FLDID32)167774267)               /*number: 65   type: string */	
#define APNNI	((FLDID32)167775785)                 /*number: 66   type: string */	
#define STARTTIME	((FLDID32)167777164)             /*number: 67   type: string */	
#define CALLDURATION	((FLDID32)167774269)         /*number: 68   type: string */	
#define CALLPLACE	((FLDID32)167774273)             /*number: 69   type: string */	
#define DATAUP	((FLDID32)100666922)               /*number: 70   type: float	 */
#define DATADOWN	((FLDID32)100666923)             /*number: 71   type: float	 */
#define NOTICE	((FLDID32)167777069)               /*number: 81   type: string */	
#define SCORE	((FLDID32)100668707)                 /*number: 82   type: float	 */
#define YEARSCORE	((FLDID32)100666940)             /*number: 83   type: float	 */
#define USEDSCORE	((FLDID32)100666941)             /*number: 84   type: float	 */
#define SUMFEE	((FLDID32)100665413)               /*number: 85   type: float	 */
#define USERCLUBSCORE	((FLDID32)100669357)         /*number: 86   type: float	 */
#define SCORES	((FLDID32)100668573)               /*number: 87   type: float	 */
#define QUERYDATE	((FLDID32)167777255)             /*number: 88   type: string */	
#define BASICSCORE	((FLDID32)100668714)           /*number: 89   type: float	 */
#define ENDVALUE	((FLDID32)100665807)             /*number: 90   type: float	 */
#define SUMSCORE	((FLDID32)100665503)             /*number: 91   type: float	 */
#define CELLCODE	((FLDID32)33559844)              /*number: 92   type: float	 */
#define INTEGRALTYPECODE	((FLDID32)167772253)     /*number: 93   type: string */	
#define INTEGRALTYPE	((FLDID32)167772254)         /*number: 94   type: string */	

#define FEESET	((FLDID32)167776982)               /*number: 100  type: string */	
#define FEESETCODE	((FLDID32)167776981)           /*number: 101  type: string */	
#define FEESETTAG	((FLDID32)167778769)             /*number: 102  type: string */	
#define OPFUNC	((FLDID32)167776832)               /*number: 111  type: string */	
#define OPFUNCCODE	((FLDID32)167776900)           /*number: 112  type: string */	
#define OPFUNCTAG	((FLDID32)167775757)             /*number: 113  type: string */	
#define OPFUNCVALUE	((FLDID32)167776901)           /*number: 114  type: string */	
#define OPFUNCADD1	((FLDID32)167776902)           /*number: 115  type: string */	
#define OPFUNCADD2	((FLDID32)167776903)           /*number: 116  type: string */	
#define OPFUNCADD3	((FLDID32)167776904)           /*number: 117  type: string */	
#define OPFUNCADD4	((FLDID32)167776905)           /*number: 118  type: string */	
#define OPFUNCADD5	((FLDID32)167776906)           /*number: 119  type: string */	
#define OPFUNCADD6	((FLDID32)167776907)           /*number: 120  type: string */	
#define INMODECODE	((FLDID32)167776844)           /*number: 131  type: string */	
#define MANAGERMODE	((FLDID32)167779174)           /*number: 132  type: string */	
#define USRSERVPASSWD	((FLDID32)167776779)         /*number: 133  type: string */	
#define NEWPASSWD	((FLDID32)167777216)             /*number: 134  type: string */	
#define CALLTRADEID	((FLDID32)167777974)           /*number: 135  type: string */	
#define SITETRADEID	((FLDID32)167777975)           /*number: 136  type: string */	
#define CALLMPHONECODE	((FLDID32)167777976)       /*number: 137  type: string */	
#define CALLEDMPHONECODE	((FLDID32)167777977)     /*number: 138  type: string */	
#define ACCEPTMODE	((FLDID32)167777978)           /*number: 139  type: string */	
#define CALLTIME	((FLDID32)167777979)             /*number: 140  type: string */	
#define REQUESTTIME	((FLDID32)167777980)           /*number: 141  type: string */	
#define FILENAME	((FLDID32)167777985)             /*number: 142  type: string */	
#define TRADEID	((FLDID32)167776762)               /*number: 143  type: string */	
#define SERVTYPECODE	((FLDID32)167776765)         /*number: 151  type: string */	
#define TRADETYPECODE	((FLDID32)167776766)         /*number: 152  type: string */	
#define SUBTRADETYPECODE	((FLDID32)167777362)     /*number: 153  type: string */	
#define OPERFEE	((FLDID32)100667994)               /*number: 154  type: string */	
#define TRANSDATA1	((FLDID32)167777963)           /*number: 155  type: string */	
#define TRANSDATA2	((FLDID32)167777964)           /*number: 156  type: string */	
#define TRANSDATA3	((FLDID32)167777965)           /*number: 157  type: string */	
#define TRANSDATA4	((FLDID32)167777966)           /*number: 158  type: string */	
#define TRANSDATA5	((FLDID32)167777967)           /*number: 159  type: string */	
#define TRANSDATA6	((FLDID32)167777968)           /*number: 160  type: string */	
#define TRANSDATA7	((FLDID32)167777969)           /*number: 161  type: string */	
#define TRANSDATA8	((FLDID32)167777970)           /*number: 162  type: string */	
#define TRANSDATA9	((FLDID32)167777971)           /*number: 163  type: string */	
#define TRANSDATA10	((FLDID32)167777972)           /*number: 164  type: string */	


char * amap[][4]={
    {"167777986","PROVINCECODE","1","string"},
    {"167774162","TRADEAGENTCODE","2","string"},
    {"167774163","TRADEEPARCHYCODE","3","string"},
    {"167774164","TRADECITYCODE","4","string"},
    {"167774165","TRADEDEPARTID","5","string"},
    {"167774166","TRADESTAFFID","6","string"},
    {"167777973","TRADEAGENTPWD","7","string"},
    {"167774161","TRANSCODE","8","string"},
    {"33558933","RESULTCODE","11","long"},
    {"5821","RESULTERRCODE","12","long"},
    {"167776662","RESULTERRINFO","13","string"},
    {"33558935","RESULTRECORDS","14","long"},
    {"167776768","SERIALNUMBER","21","string"},
    {"67115866","REMOVETAG","22","string"},
    {"4893","GETMODE","23","short"},
    {"167777962","ACYCDATE","24","string"},
    {"167776788","USRNAME","25","string"},
    {"167775763","ACYCDATEEXTENT","26","string"},
    {"100666904","ACYCDATEALLFEE","27","float"},
    {"100667949","ADVANCEPAY","28","float"},
    {"167777280","BILLITEM","29","string"},
    {"167776898","BILLITEMCODE","30","string"},
    {"100664405","FEE","31","float"},
    {"100664406","BALANCE","32","float"},
    {"100664714","LATEFEE","33","float"},
    {"100664407","LATEBALANCE","34","float"},
    {"100664813","ADJUSTBEFORE","35","float"},
    {"100664701","ADJUSTAFTER","36","float"},
    {"100664409","BDISCOUNT","37","float"},
    {"100664410","ADISCOUNT","38","float"},
    {"167775761","LATECALTIME","39","string"},
    {"167775762","TR_PAYTAG","40","string"},
    {"67115869","WRITEOFFMODE","41","string"},
    {"167776803","QUALITYTYPECODE","42","string"},
    {"167777204","QUALITYTYPE","43","string"},
    {"100666903","RESULTFEE","44","float"},
    {"100664356","ALLROWEFEE","45","float"},
    {"100669410","FEE1","46","float"},
    {"100669411","FEE2","47","float"},
    {"100669412","FEE3","48","float"},
    {"100669413","FEE4","49","float"},
    {"100669414","FEE5","50","float"},
    {"167777794","BCYCID","60","string"},
    {"167776883","STARTDATE","61","string"},
    {"167776838","ENDDATE","62","string"},
    {"100666924","SUMDATAUP","63","float"},
    {"100666925","SUMDATADOWN","64","float"},
    {"167774267","CALLNO","65","string"},
    {"167775785","APNNI","66","string"},
    {"167777164","STARTTIME","67","string"},
    {"167774269","CALLDURATION","68","string"},
    {"167774273","CALLPLACE","69","string"},
    {"100666922","DATAUP","70","float"},
    {"100666923","DATADOWN","71","float"},
    {"167777069","NOTICE","81","string"},
    {"100668707","SCORE","82","float"},
    {"100666940","YEARSCORE","83","float"},
    {"100666941","USEDSCORE","84","float"},
    {"100665413","SUMFEE","85","float"},
    {"100669357","USERCLUBSCORE","86","float"},
    {"100668573","SCORES","87","float"},
    {"167777255","QUERYDATE","88","string"},
    {"100668714","BASICSCORE","89","float"},
    {"100665807","ENDVALUE","90","float"},
    {"100665503","SUMSCORE","91","float"},
    {"33559844","CELLCODE","92","float"},
    {"167772253","INTEGRALTYPECODE","93","string"},
    {"167772254","INTEGRALTYPE","94","string"},
    {"167776982","FEESET","100","string"},
    {"167776981","FEESETCODE","101","string"},
    {"167778769","FEESETTAG","102","string"},
    {"167776832","OPFUNC","111","string"},
    {"167776900","OPFUNCCODE","112","string"},
    {"167775757","OPFUNCTAG","113","string"},
    {"167776901","OPFUNCVALUE","114","string"},
    {"167776902","OPFUNCADD1","115","string"},
    {"167776903","OPFUNCADD2","116","string"},
    {"167776904","OPFUNCADD3","117","string"},
    {"167776905","OPFUNCADD4","118","string"},
    {"167776906","OPFUNCADD5","119","string"},
    {"167776907","OPFUNCADD6","120","string"},
    {"167776844","INMODECODE","131","string"},
    {"167779174","MANAGERMODE","132","string"},
    {"167776779","USRSERVPASSWD","133","string"},
    {"167777216","NEWPASSWD","134","string"},
    {"167777974","CALLTRADEID","135","string"},
    {"167777975","SITETRADEID","136","string"},
    {"167777976","CALLMPHONECODE","137","string"},
    {"167777977","CALLEDMPHONECODE","138","string"},
    {"167777978","ACCEPTMODE","139","string"},
    {"167777979","CALLTIME","140","string"},
    {"167777980","REQUESTTIME","141","string"},
    {"167777985","FILENAME","142","string"},
    {"167776762","TRADEID","143","string"},
    {"167776765","SERVTYPECODE","151","string"},
    {"167776766","TRADETYPECODE","152","string"},
    {"167777362","SUBTRADETYPECODE","153","string"},
    {"100667994","OPERFEE","154","string"},
    {"167777963","TRANSDATA1","155","string"},
    {"167777964","TRANSDATA2","156","string"},
    {"167777965","TRANSDATA3","157","string"},
    {"167777966","TRANSDATA4","158","string"},
    {"167777967","TRANSDATA5","159","string"},
    {"167777968","TRANSDATA6","160","string"},
    {"167777969","TRANSDATA7","161","string"},
    {"167777970","TRANSDATA8","162","string"},
    {"167777971","TRANSDATA9","163","string"},
    {"167777972","TRANSDATA10","164","string"}
};

// ain & aout: 0:fldid, 1:name  2:no  3:type
char * getInfo(const char * value,int ain,int aout){
	int i;
	int count = sizeof(amap);
	for(i=0;i<count;i++){
		if(strcmp(amap[i][ain],value)==0){
			return amap[i][aout];
		}
	}
	return "";
}

void showFBFR32(FBFR32 * f)
{
	char value[200];
	FLDID32 fieldid;
	FLDOCC32 occurrence;
	FLDLEN32 len;
	char mystring[1024];
	char * myname;
	char  strfld[20];
	char fid[20];
	char strocc[20];


	for(fieldid=FIRSTFLDID,len=sizeof(value);  
		Fnext32(f,&fieldid,&occurrence,value,&len) > 0; 
		len=sizeof(value))
	{ 
			
		itoa((int)fieldid,strfld,10);
		myname=getInfo(strfld,0,1);
		sprintf(mystring, "%s: ",myname);		
//		sprintf(mystring, "%s: ",Fname32(fieldid));		
//		sprintf(fid," fid:%i ",Fldno32(fieldid));
//		strcat(mystring,fid);
		Fgets32(f, fieldid, occurrence, value);
		itoa((int)occurrence,strocc,10);
		sprintf(mystring,"-->%s \t%s \t%s \n",myname,strocc,value);
		/* printf("%s: ", value); */
		fprintf(stdout,mystring);
	}
}

⌨️ 快捷键说明

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