📄 tbcms016.sqc
字号:
memset( cmstxdet_acctseqno1, 0x00, sizeof( cmstxdet_acctseqno1 ) ) ; cmstxdet_acctseqno1_id = 0 ; memset( cmstxdet_issuebrc1, 0x00, sizeof( cmstxdet_issuebrc1 ) ) ; cmstxdet_issuebrc1_id = 0 ; memset( &cmstxdet_serverlevel1, 0x00, sizeof( cmstxdet_serverlevel1 ) ) ; cmstxdet_serverlevel1_id = 0 ; memset( cmstxdet_cardno2, 0x00, sizeof( cmstxdet_cardno2 ) ) ; cmstxdet_cardno2_id = 0 ; memset( cmstxdet_acctno2, 0x00, sizeof( cmstxdet_acctno2 ) ) ; cmstxdet_acctno2_id = 0 ; memset( cmstxdet_subacct2, 0x00, sizeof( cmstxdet_subacct2 ) ) ; cmstxdet_subacct2_id = 0 ; memset( cmstxdet_acctseqno2, 0x00, sizeof( cmstxdet_acctseqno2 ) ) ; cmstxdet_acctseqno2_id = 0 ; memset( cmstxdet_issuebrc2, 0x00, sizeof( cmstxdet_issuebrc2 ) ) ; cmstxdet_issuebrc2_id = 0 ; memset( &cmstxdet_serverlevel2, 0x00, sizeof( cmstxdet_serverlevel2 ) ) ; cmstxdet_serverlevel2_id = 0 ; memset( &cmstxdet_tranamt, 0x00, sizeof( cmstxdet_tranamt ) ) ; cmstxdet_tranamt_id = 0 ; memset( cmstxdet_ccy, 0x00, sizeof( cmstxdet_ccy ) ) ; cmstxdet_ccy_id = 0 ; memset( &cmstxdet_amt2, 0x00, sizeof( cmstxdet_amt2 ) ) ; cmstxdet_amt2_id = 0 ; memset( cmstxdet_ccy2, 0x00, sizeof( cmstxdet_ccy2 ) ) ; cmstxdet_ccy2_id = 0 ; memset( &cmstxdet_amt3, 0x00, sizeof( cmstxdet_amt3 ) ) ; cmstxdet_amt3_id = 0 ; memset( cmstxdet_ccy3, 0x00, sizeof( cmstxdet_ccy3 ) ) ; cmstxdet_ccy3_id = 0 ; memset( cmstxdet_trandevtype, 0x00, sizeof( cmstxdet_trandevtype ) ) ; cmstxdet_trandevtype_id = 0 ; memset( cmstxdet_trandevtypecomm, 0x00, sizeof( cmstxdet_trandevtypecomm ) ) ; cmstxdet_trandevtypecomm_id = 0 ; memset( cmstxdet_cardtrantype, 0x00, sizeof( cmstxdet_cardtrantype ) ) ; cmstxdet_cardtrantype_id = 0 ; memset( cmstxdet_cardtrantypecomm, 0x00, sizeof( cmstxdet_cardtrantypecomm ) ) ; cmstxdet_cardtrantypecomm_id = 0 ; memset( cmstxdet_trankind, 0x00, sizeof( cmstxdet_trankind ) ) ; cmstxdet_trankind_id = 0 ; memset( cmstxdet_trankindcomm, 0x00, sizeof( cmstxdet_trankindcomm ) ) ; cmstxdet_trankindcomm_id = 0 ; memset( cmstxdet_mid, 0x00, sizeof( cmstxdet_mid ) ) ; cmstxdet_mid_id = 0 ; memset( cmstxdet_mctmcc, 0x00, sizeof( cmstxdet_mctmcc ) ) ; cmstxdet_mctmcc_id = 0 ; memset( cmstxdet_devid, 0x00, sizeof( cmstxdet_devid ) ) ; cmstxdet_devid_id = 0 ; memset( cmstxdet_validf, 0x00, sizeof( cmstxdet_validf ) ) ; cmstxdet_validf_id = 0 ; memset( &cmstxdet_delaychg, 0x00, sizeof( cmstxdet_delaychg ) ) ; cmstxdet_delaychg_id = 0 ; memset( &cmstxdet_bankgetfee, 0x00, sizeof( cmstxdet_bankgetfee ) ) ; cmstxdet_bankgetfee_id = 0 ; memset( &cmstxdet_custsharefee, 0x00, sizeof( cmstxdet_custsharefee ) ) ; cmstxdet_custsharefee_id = 0 ; memset( &cmstxdet_banksharefee, 0x00, sizeof( cmstxdet_banksharefee ) ) ; cmstxdet_banksharefee_id = 0 ; memset( &cmstxdet_bankassfee, 0x00, sizeof( cmstxdet_bankassfee ) ) ; cmstxdet_bankassfee_id = 0 ; memset( &cmstxdet_bankpayfee, 0x00, sizeof( cmstxdet_bankpayfee ) ) ; cmstxdet_bankpayfee_id = 0 ; memset( &cmstxdet_assfee1, 0x00, sizeof( cmstxdet_assfee1 ) ) ; cmstxdet_assfee1_id = 0 ; memset( &cmstxdet_assfee2, 0x00, sizeof( cmstxdet_assfee2 ) ) ; cmstxdet_assfee2_id = 0 ; memset( cmstxdet_devstan, 0x00, sizeof( cmstxdet_devstan ) ) ; cmstxdet_devstan_id = 0 ; memset( cmstxdet_devdatetime, 0x00, sizeof( cmstxdet_devdatetime ) ) ; cmstxdet_devdatetime_id = 0 ; memset( cmstxdet_devacqins, 0x00, sizeof( cmstxdet_devacqins ) ) ; cmstxdet_devacqins_id = 0 ; memset( cmstxdet_devforwins, 0x00, sizeof( cmstxdet_devforwins ) ) ; cmstxdet_devforwins_id = 0 ; memset( cmstxdet_authcode, 0x00, sizeof( cmstxdet_authcode ) ) ; cmstxdet_authcode_id = 0 ; memset( cmstxdet_authenddate, 0x00, sizeof( cmstxdet_authenddate ) ) ; cmstxdet_authenddate_id = 0 ; memset( &cmstxdet_authamt, 0x00, sizeof( cmstxdet_authamt ) ) ; cmstxdet_authamt_id = 0 ; memset( cmstxdet_text, 0x00, sizeof( cmstxdet_text ) ) ; cmstxdet_text_id = 0 ;}void pubStoVCmstxdet( struct cmstxdet * pstCmstxdet ){ pubInitCmstxdet(); if( !strlen( pstCmstxdet->trandate ) ) strcpy( pstCmstxdet->trandate, " " ); strcpy( cmstxdet_trandate, pstCmstxdet->trandate ); cmstxdet_serseqno = pstCmstxdet->serseqno ; if( !strlen( pstCmstxdet->teller ) ) strcpy( pstCmstxdet->teller, " " ); strcpy( cmstxdet_teller, pstCmstxdet->teller ); if( !strlen( pstCmstxdet->brc ) ) strcpy( pstCmstxdet->brc, " " ); strcpy( cmstxdet_brc, pstCmstxdet->brc ); if( !strlen( pstCmstxdet->frnttrandate ) ) strcpy( pstCmstxdet->frnttrandate, " " ); strcpy( cmstxdet_frnttrandate, pstCmstxdet->frnttrandate ); if( !strlen( pstCmstxdet->frnttime ) ) strcpy( pstCmstxdet->frnttime, " " ); strcpy( cmstxdet_frnttime, pstCmstxdet->frnttime ); if( !strlen( pstCmstxdet->frntstan ) ) strcpy( pstCmstxdet->frntstan, " " ); strcpy( cmstxdet_frntstan, pstCmstxdet->frntstan ); if( !strlen( pstCmstxdet->frntno ) ) strcpy( pstCmstxdet->frntno, " " ); strcpy( cmstxdet_frntno, pstCmstxdet->frntno ); if( !strlen( pstCmstxdet->frntdate ) ) strcpy( pstCmstxdet->frntdate, " " ); strcpy( cmstxdet_frntdate, pstCmstxdet->frntdate ); if( !strlen( pstCmstxdet->frnttrancode ) ) strcpy( pstCmstxdet->frnttrancode, " " ); strcpy( cmstxdet_frnttrancode, pstCmstxdet->frnttrancode ); if( !strlen( pstCmstxdet->frnttrancomm ) ) strcpy( pstCmstxdet->frnttrancomm, " " ); strcpy( cmstxdet_frnttrancomm, pstCmstxdet->frnttrancomm ); if( !strlen( pstCmstxdet->settledate ) ) strcpy( pstCmstxdet->settledate, " " ); strcpy( cmstxdet_settledate, pstCmstxdet->settledate ); if( !strlen( pstCmstxdet->origfrntstan ) ) strcpy( pstCmstxdet->origfrntstan, " " ); strcpy( cmstxdet_origfrntstan, pstCmstxdet->origfrntstan ); if( !strlen( pstCmstxdet->seqno ) ) strcpy( pstCmstxdet->seqno, " " ); strcpy( cmstxdet_seqno, pstCmstxdet->seqno ); if( !strlen( pstCmstxdet->subseqno ) ) strcpy( pstCmstxdet->subseqno, " " ); strcpy( cmstxdet_subseqno, pstCmstxdet->subseqno ); if( !strlen( pstCmstxdet->operkind ) ) strcpy( pstCmstxdet->operkind, " " ); strcpy( cmstxdet_operkind, pstCmstxdet->operkind ); if( !strlen( pstCmstxdet->opflag ) ) strcpy( pstCmstxdet->opflag, " " ); strcpy( cmstxdet_opflag, pstCmstxdet->opflag ); if( !strlen( pstCmstxdet->trancode ) ) strcpy( pstCmstxdet->trancode, " " ); strcpy( cmstxdet_trancode, pstCmstxdet->trancode ); if( !strlen( pstCmstxdet->cardno1 ) ) strcpy( pstCmstxdet->cardno1, " " ); strcpy( cmstxdet_cardno1, pstCmstxdet->cardno1 ); if( !strlen( pstCmstxdet->acctno1 ) ) strcpy( pstCmstxdet->acctno1, " " ); strcpy( cmstxdet_acctno1, pstCmstxdet->acctno1 ); if( !strlen( pstCmstxdet->subacct1 ) ) strcpy( pstCmstxdet->subacct1, " " ); strcpy( cmstxdet_subacct1, pstCmstxdet->subacct1 ); if( !strlen( pstCmstxdet->acctseqno1 ) ) strcpy( pstCmstxdet->acctseqno1, " " ); strcpy( cmstxdet_acctseqno1, pstCmstxdet->acctseqno1 ); if( !strlen( pstCmstxdet->issuebrc1 ) ) strcpy( pstCmstxdet->issuebrc1, " " ); strcpy( cmstxdet_issuebrc1, pstCmstxdet->issuebrc1 ); cmstxdet_serverlevel1 = pstCmstxdet->serverlevel1 ; if( !strlen( pstCmstxdet->cardno2 ) ) strcpy( pstCmstxdet->cardno2, " " ); strcpy( cmstxdet_cardno2, pstCmstxdet->cardno2 ); if( !strlen( pstCmstxdet->acctno2 ) ) strcpy( pstCmstxdet->acctno2, " " ); strcpy( cmstxdet_acctno2, pstCmstxdet->acctno2 ); if( !strlen( pstCmstxdet->subacct2 ) ) strcpy( pstCmstxdet->subacct2, " " ); strcpy( cmstxdet_subacct2, pstCmstxdet->subacct2 ); if( !strlen( pstCmstxdet->acctseqno2 ) ) strcpy( pstCmstxdet->acctseqno2, " " ); strcpy( cmstxdet_acctseqno2, pstCmstxdet->acctseqno2 ); if( !strlen( pstCmstxdet->issuebrc2 ) ) strcpy( pstCmstxdet->issuebrc2, " " ); strcpy( cmstxdet_issuebrc2, pstCmstxdet->issuebrc2 ); cmstxdet_serverlevel2 = pstCmstxdet->serverlevel2 ; cmstxdet_tranamt = pstCmstxdet->tranamt ; pubDround( &cmstxdet_tranamt, 2 ); if( !strlen( pstCmstxdet->ccy ) ) strcpy( pstCmstxdet->ccy, " " ); strcpy( cmstxdet_ccy, pstCmstxdet->ccy ); cmstxdet_amt2 = pstCmstxdet->amt2 ; pubDround( &cmstxdet_amt2, 2 ); if( !strlen( pstCmstxdet->ccy2 ) ) strcpy( pstCmstxdet->ccy2, " " ); strcpy( cmstxdet_ccy2, pstCmstxdet->ccy2 ); cmstxdet_amt3 = pstCmstxdet->amt3 ; pubDround( &cmstxdet_amt3, 2 ); if( !strlen( pstCmstxdet->ccy3 ) ) strcpy( pstCmstxdet->ccy3, " " ); strcpy( cmstxdet_ccy3, pstCmstxdet->ccy3 ); if( !strlen( pstCmstxdet->trandevtype ) ) strcpy( pstCmstxdet->trandevtype, " " ); strcpy( cmstxdet_trandevtype, pstCmstxdet->trandevtype ); if( !strlen( pstCmstxdet->trandevtypecomm ) ) strcpy( pstCmstxdet->trandevtypecomm, " " ); strcpy( cmstxdet_trandevtypecomm, pstCmstxdet->trandevtypecomm ); if( !strlen( pstCmstxdet->cardtrantype ) ) strcpy( pstCmstxdet->cardtrantype, " " ); strcpy( cmstxdet_cardtrantype, pstCmstxdet->cardtrantype ); if( !strlen( pstCmstxdet->cardtrantypecomm ) ) strcpy( pstCmstxdet->cardtrantypecomm, " " ); strcpy( cmstxdet_cardtrantypecomm, pstCmstxdet->cardtrantypecomm ); if( !strlen( pstCmstxdet->trankind ) ) strcpy( pstCmstxdet->trankind, " " ); strcpy( cmstxdet_trankind, pstCmstxdet->trankind ); if( !strlen( pstCmstxdet->trankindcomm ) ) strcpy( pstCmstxdet->trankindcomm, " " ); strcpy( cmstxdet_trankindcomm, pstCmstxdet->trankindcomm ); if( !strlen( pstCmstxdet->mid ) ) strcpy( pstCmstxdet->mid, " " ); strcpy( cmstxdet_mid, pstCmstxdet->mid ); if( !strlen( pstCmstxdet->mctmcc ) ) strcpy( pstCmstxdet->mctmcc, " " ); strcpy( cmstxdet_mctmcc, pstCmstxdet->mctmcc ); if( !strlen( pstCmstxdet->devid ) ) strcpy( pstCmstxdet->devid, " " ); strcpy( cmstxdet_devid, pstCmstxdet->devid ); if( !strlen( pstCmstxdet->validf ) ) strcpy( pstCmstxdet->validf, " " ); strcpy( cmstxdet_validf, pstCmstxdet->validf ); cmstxdet_delaychg = pstCmstxdet->delaychg ; pubDround( &cmstxdet_delaychg, 2 ); cmstxdet_bankgetfee = pstCmstxdet->bankgetfee ; pubDround( &cmstxdet_bankgetfee, 2 ); cmstxdet_custsharefee = pstCmstxdet->custsharefee ; pubDround( &cmstxdet_custsharefee, 2 ); cmstxdet_banksharefee = pstCmstxdet->banksharefee ; pubDround( &cmstxdet_banksharefee, 2 ); cmstxdet_bankassfee = pstCmstxdet->bankassfee ; pubDround( &cmstxdet_bankassfee, 2 ); cmstxdet_bankpayfee = pstCmstxdet->bankpayfee ; pubDround( &cmstxdet_bankpayfee, 2 ); cmstxdet_assfee1 = pstCmstxdet->assfee1 ; pubDround( &cmstxdet_assfee1, 2 ); cmstxdet_assfee2 = pstCmstxdet->assfee2 ; pubDround( &cmstxdet_assfee2, 2 ); if( !strlen( pstCmstxdet->devstan ) ) strcpy( pstCmstxdet->devstan, " " ); strcpy( cmstxdet_devstan, pstCmstxdet->devstan ); if( !strlen( pstCmstxdet->devdatetime ) ) strcpy( pstCmstxdet->devdatetime, " " ); strcpy( cmstxdet_devdatetime, pstCmstxdet->devdatetime ); if( !strlen( pstCmstxdet->devacqins ) ) strcpy( pstCmstxdet->devacqins, " " ); strcpy( cmstxdet_devacqins, pstCmstxdet->devacqins ); if( !strlen( pstCmstxdet->devforwins ) ) strcpy( pstCmstxdet->devforwins, " " ); strcpy( cmstxdet_devforwins, pstCmstxdet->devforwins ); if( !strlen( pstCmstxdet->authcode ) ) strcpy( pstCmstxdet->authcode, " " ); strcpy( cmstxdet_authcode, pstCmstxdet->authcode ); if( !strlen( pstCmstxdet->authenddate ) ) strcpy( pstCmstxdet->authenddate, " " ); strcpy( cmstxdet_authenddate, pstCmstxdet->authenddate ); cmstxdet_authamt = pstCmstxdet->authamt ; pubDround( &cmstxdet_authamt, 2 ); if( !strlen( pstCmstxdet->text ) ) strcpy( pstCmstxdet->text, " " ); strcpy( cmstxdet_text, pstCmstxdet->text );}void pubVtoSCmstxdet( struct cmstxdet * pstCmstxdet ){ strcpy( pstCmstxdet->trandate, cmstxdet_trandate ); strpack( pstCmstxdet->trandate ); pstCmstxdet->serseqno = cmstxdet_serseqno ; strcpy( pstCmstxdet->teller, cmstxdet_teller ); strpack( pstCmstxdet->teller ); strcpy( pstCmstxdet->brc, cmstxdet_brc ); strpack( pstCmstxdet->brc ); strcpy( pstCmstxdet->frnttrandate, cmstxdet_frnttrandate ); strpack( pstCmstxdet->frnttrandate ); strcpy( pstCmstxdet->frnttime, cmstxdet_frnttime ); strpack( pstCmstxdet->frnttime ); strcpy( pstCmstxdet->frntstan, cmstxdet_frntstan ); strpack( pstCmstxdet->frntstan ); strcpy( pstCmstxdet->frntno, cmstxdet_frntno ); strpack( pstCmstxdet->frntno ); strcpy( pstCmstxdet->frntdate, cmstxdet_frntdate ); strpack( pstCmstxdet->frntdate ); strcpy( pstCmstxdet->frnttrancode, cmstxdet_frnttrancode ); strpack( pstCmstxdet->frnttrancode ); strcpy( pstCmstxdet->frnttrancomm, cmstxdet_frnttrancomm ); strpack( pstCmstxdet->frnttrancomm ); strcpy( pstCmstxdet->settledate, cmstxdet_settledate ); strpack( pstCmstxdet->settledate ); strcpy( pstCmstxdet->origfrntstan, cmstxdet_origfrntstan ); strpack( pstCmstxdet->origfrntstan ); strcpy( pstCmstxdet->seqno, cmstxdet_seqno ); strpack( pstCmstxdet->seqno ); strcpy( pstCmstxdet->subseqno, cmstxdet_subseqno ); strpack( pstCmstxdet->subseqno ); strcpy( pstCmstxdet->operkind, cmstxdet_operkind ); strpack( pstCmstxdet->operkind ); strcpy( pstCmstxdet->opflag, cmstxdet_opflag ); strpack( pstCmstxdet->opflag ); strcpy( pstCmstxdet->trancode, cmstxdet_trancode ); strpack( pstCmstxdet->trancode ); strcpy( pstCmstxdet->cardno1, cmstxdet_cardno1 ); strpack( pstCmstxdet->cardno1 ); strcpy( pstCmstxdet->acctno1, cmstxdet_acctno1 ); strpack( pstCmstxdet->acctno1 ); strcpy( pstCmstxdet->subacct1, cmstxdet_subacct1 ); strpack( pstCmstxdet->subacct1 ); strcpy( pstCmstxdet->acctseqno1, cmstxdet_acctseqno1 ); strpack( pstCmstxdet->acctseqno1 ); strcpy( pstCmstxdet->issuebrc1, cmstxdet_issuebrc1 ); strpack( pstCmstxdet->issuebrc1 ); pstCmstxdet->serverlevel1 = cmstxdet_serverlevel1 ; strcpy( pstCmstxdet->cardno2, cmstxdet_cardno2 ); strpack( pstCmstxdet->cardno2 ); strcpy( pstCmstxdet->acctno2, cmstxdet_acctno2 ); strpack( pstCmstxdet->acctno2 ); strcpy( pstCmstxdet->subacct2, cmstxdet_subacct2 ); strpack( pstCmstxdet->subacct2 ); strcpy( pstCmstxdet->acctseqno2, cmstxdet_acctseqno2 ); strpack( pstCmstxdet->acctseqno2 ); strcpy( pstCmstxdet->issuebrc2, cmstxdet_issuebrc2 ); strpack( pstCmstxdet->issuebrc2 ); pstCmstxdet->serverlevel2 = cmstxdet_serverlevel2 ; pstCmstxdet->tranamt = cmstxdet_tranamt ; pubDround( &pstCmstxdet->tranamt, 2 ); strcpy( pstCmstxdet->ccy, cmstxdet_ccy ); strpack( pstCmstxdet->ccy ); pstCmstxdet->amt2 = cmstxdet_amt2 ; pubDround( &pstCmstxdet->amt2, 2 ); strcpy( pstCmstxdet->ccy2, cmstxdet_ccy2 ); strpack( pstCmstxdet->ccy2 ); pstCmstxdet->amt3 = cmstxdet_amt3 ; pubDround( &pstCmstxdet->amt3, 2 ); strcpy( pstCmstxdet->ccy3, cmstxdet_ccy3 ); strpack( pstCmstxdet->ccy3 ); strcpy( pstCmstxdet->trandevtype, cmstxdet_trandevtype ); strpack( pstCmstxdet->trandevtype ); strcpy( pstCmstxdet->trandevtypecomm, cmstxdet_trandevtypecomm ); strpack( pstCmstxdet->trandevtypecomm ); strcpy( pstCmstxdet->cardtrantype, cmstxdet_cardtrantype ); strpack( pstCmstxdet->cardtrantype ); strcpy( pstCmstxdet->cardtrantypecomm, cmstxdet_cardtrantypecomm ); strpack( pstCmstxdet->cardtrantypecomm ); strcpy( pstCmstxdet->trankind, cmstxdet_trankind ); strpack( pstCmstxdet->trankind ); strcpy( pstCmstxdet->trankindcomm, cmstxdet_trankindcomm ); strpack( pstCmstxdet->trankindcomm ); strcpy( pstCmstxdet->mid, cmstxdet_mid ); strpack( pstCmstxdet->mid ); strcpy( pstCmstxdet->mctmcc, cmstxdet_mctmcc ); strpack( pstCmstxdet->mctmcc ); strcpy( pstCmstxdet->devid, cmstxdet_devid ); strpack( pstCmstxdet->devid ); strcpy( pstCmstxdet->validf, cmstxdet_validf ); strpack( pstCmstxdet->validf ); pstCmstxdet->delaychg = cmstxdet_delaychg ; pubDround( &pstCmstxdet->delaychg, 2 ); pstCmstxdet->bankgetfee = cmstxdet_bankgetfee ; pubDround( &pstCmstxdet->bankgetfee, 2 ); pstCmstxdet->custsharefee = cmstxdet_custsharefee ; pubDround( &pstCmstxdet->custsharefee, 2 ); pstCmstxdet->banksharefee = cmstxdet_banksharefee ; pubDround( &pstCmstxdet->banksharefee, 2 ); pstCmstxdet->bankassfee = cmstxdet_bankassfee ; pubDround( &pstCmstxdet->bankassfee, 2 ); pstCmstxdet->bankpayfee = cmstxdet_bankpayfee ; pubDround( &pstCmstxdet->bankpayfee, 2 ); pstCmstxdet->assfee1 = cmstxdet_assfee1 ; pubDround( &pstCmstxdet->assfee1, 2 ); pstCmstxdet->assfee2 = cmstxdet_assfee2 ; pubDround( &pstCmstxdet->assfee2, 2 ); strcpy( pstCmstxdet->devstan, cmstxdet_devstan ); strpack( pstCmstxdet->devstan ); strcpy( pstCmstxdet->devdatetime, cmstxdet_devdatetime ); strpack( pstCmstxdet->devdatetime ); strcpy( pstCmstxdet->devacqins, cmstxdet_devacqins ); strpack( pstCmstxdet->devacqins ); strcpy( pstCmstxdet->devforwins, cmstxdet_devforwins ); strpack( pstCmstxdet->devforwins ); strcpy( pstCmstxdet->authcode, cmstxdet_authcode ); strpack( pstCmstxdet->authcode ); strcpy( pstCmstxdet->authenddate, cmstxdet_authenddate ); strpack( pstCmstxdet->authenddate ); pstCmstxdet->authamt = cmstxdet_authamt ; pubDround( &pstCmstxdet->authamt, 2 ); strcpy( pstCmstxdet->text, cmstxdet_text ); strpack( pstCmstxdet->text );}int pubReadCmstxdet( struct cmstxdet * pstCmstxdet ){ pubInitCmstxdet(); pubStoVCmstxdet(pstCmstxdet); EXEC SQL SELECT * INTO RR_CMSTXDET FROM cmstxdet WHERE trandate = :cmstxdet_trandate and serseqno = :cmstxdet_serseqno ; if ( SQLCODE ) { strcpy( g_acRspCode, "999996" ); /* 数据库读错误 */ pubCrtRspInfo( "cmstxdet",SQLCODE ); pubErrLog( __LINE__, __FILE__, g_acRspMsg ); return -1; }; pubVtoSCmstxdet(pstCmstxdet); return 0; } int pubModiCmstxdet( struct cmstxdet * pstCmstxdet ){ pubInitCmstxdet(); pubStoVCmstxdet(pstCmstxdet); EXEC SQL UPDATE cmstxdet SET ( UU_CMSTXDET ) = ( WW_CMSTXDET ) WHERE trandate = :cmstxdet_trandate and serseqno = :cmstxdet_serseqno ; if ( SQLCODE ) { strcpy( g_acRspCode, "999997" ); /* 数据库更新错误 */ pubCrtRspInfo( "cmstxdet",SQLCODE ); pubErrLog( __LINE__, __FILE__, g_acRspMsg ); return -1; }; return 0; } int pubInstCmstxdet( struct cmstxdet * pstCmstxdet ){ pubInitCmstxdet(); pubStoVCmstxdet(pstCmstxdet); EXEC SQL INSERT INTO cmstxdet VALUES ( RR_CMSTXDET ) ; if ( SQLCODE ) { strcpy( g_acRspCode, "999998" ); /* 数据库插入错误 */ pubCrtRspInfo( "cmstxdet",SQLCODE ); pubErrLog( __LINE__, __FILE__, g_acRspMsg ); return -1; }; return 0; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -