📄 cms703.sqc
字号:
/******************************************************************** ** 源码文件名称 : cms703.SQC ** 所属子系统 : CMS ** 当前文件版本 : 4.0.0.0 ** 作者 : Feng ** 版本创建日期 : 2004/12/06 ** 功能描述 : 退货通知子交易 ** 修改记录 : ** 修改人 修改日期 修改日期*********************************************************************/#include "code.h"#include "attrdef.h"#include "sysdef.h"#include "pubcom.h"#include "cmscode.h"#include "cmsejectnote.h"EXEC SQL INCLUDE SQLCA;int cmsEjectNotePro( PUBCOM *pstPubcom ){ /*定义局部变量*/ struct cmsejectnote stCmsEjectNote; /* 退货通知登记簿 */ int iRtn; /* 函数返回值 */ strcpy( g_acTrcMsg, "子交易: 退货通知处理开始.." ); TRCLOG4 /* 初始化 */ memset( &stCmsEjectNote, 0x00, sizeof( struct cmsejectnote ) ); /* 取数据字典值 */ getstring( "CardNo", stCmsEjectNote.cardno ); sprintf( g_acTrcMsg, "CardNo=[%s]", stCmsEjectNote.cardno ); TRCLOG3 getstring( "Ccy", stCmsEjectNote.ccy ); sprintf( g_acTrcMsg, "Ccy=[%s]", stCmsEjectNote.ccy ); TRCLOG3 getdouble( "Amount", &stCmsEjectNote.ejectamt ); sprintf( g_acTrcMsg, "Amount=[%.2lf]", stCmsEjectNote.ejectamt ); TRCLOG3 getstring( "SrvTrc", stCmsEjectNote.srvstan ); sprintf( g_acTrcMsg, "SrvTrc=[%s]", stCmsEjectNote.srvstan ); TRCLOG3 getstring( "TranDateTime", stCmsEjectNote.devtransdatetime ); sprintf( g_acTrcMsg, "TranDateTime=[%s]", stCmsEjectNote.devtransdatetime ); TRCLOG3 getstring( "FwdInsBrc", stCmsEjectNote.forwins ); sprintf( g_acTrcMsg, "FwdInsBrc=[%s]", stCmsEjectNote.forwins ); TRCLOG3 getstring( "AcqInsBrc", stCmsEjectNote.acqins ); sprintf( g_acTrcMsg, "AcqInsBrc=[%s]", stCmsEjectNote.acqins ); TRCLOG3 getstring( "DevID", stCmsEjectNote.devid ); sprintf( g_acTrcMsg, "DevId=[%s]", stCmsEjectNote.devid ); TRCLOG3 getstring( "Mid", stCmsEjectNote.mid ); sprintf( g_acTrcMsg, "Mid=[%s]", stCmsEjectNote.mid ); TRCLOG3 getstring( "ClearDate", stCmsEjectNote.settledate ); sprintf( g_acTrcMsg, "ClearDate=[%s]", stCmsEjectNote.settledate ); TRCLOG3 strcpy( stCmsEjectNote.brc, pstPubcom->acBrc ); strcpy( stCmsEjectNote.trandate, pstPubcom->acTranDate ); stCmsEjectNote.serseqno = pstPubcom->lSerSeqNo; /* 登记退货登记簿 */ iRtn = pubInstCmsejectnote( &stCmsEjectNote ); if ( iRtn ) { ERRLOG return FAILED; } /* 子交易出口 */ strcpy( g_acTrcMsg, "子交易: 退货通知结束.." ); TRCLOG4 strcpy( g_acRspCode, RSP_OK ); return SUCCESS;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -