/// <summary>
        /// 抹账
        /// </summary>
        /// <param name="tellerNO"></param>
        /// <param name="organNO"></param>
        /// <param name="tradeDate"></param>
        /// <param name="coreTradeSN">需要抹账的核心交易流水号</param>
        /// <param name="codemsg"></param>
        /// <returns></returns>
        public static Guid EraseAccounting(String tellerNO, String organNO, DateTime tradeDate, String coreTradeSN, ref byte[] codemsg)
        {
            AcctEraseData eraseData = new AcctEraseData();

            eraseData.RQhdrHandler.SYS_TXID = "990009"; // 会计记账,主机启动原交易码
            eraseData.RQhdrHandler.TX_OUNO = organNO;
            eraseData.RQhdrHandler.TEL_ID = tellerNO;
            eraseData.RQhdrHandler.TX_MODE = "2";     //2 - 正常抹账交易 (反交易)
            eraseData.RQhdrHandler.TX_DTE = tradeDate.ToString("yyyy-MM-dd");
            eraseData.RQhdrHandler.SRV_JNO = CommonDataHelper.SpaceString(12);
            eraseData.RQhdrHandler.SRV_REV_JNO = CommonDataHelper.SpaceString(12);
            eraseData.RQhdrHandler.HOST_JNO = coreTradeSN;
            return MsgTransfer.CodeMsgToBinary(eraseData, ref codemsg);
        }
示例#2
0
        /// <summary>
        /// 抹账
        /// </summary>
        /// <param name="tellerNO"></param>
        /// <param name="organNO"></param>
        /// <param name="tradeDate"></param>
        /// <param name="coreTradeSN">需要抹账的核心交易流水号</param>
        /// <param name="codemsg"></param>
        /// <returns></returns>
        public static Guid EraseAccounting(String tellerNO, String organNO, DateTime tradeDate, String coreTradeSN, ref byte[] codemsg)
        {
            AcctEraseData eraseData = new AcctEraseData();

            eraseData.RQhdrHandler.SYS_TXID = "990009"; // 会计记账,主机启动原交易码
            eraseData.RQhdrHandler.TX_OUNO = organNO;
            eraseData.RQhdrHandler.TEL_ID = tellerNO;
            eraseData.RQhdrHandler.TX_MODE = "2";     //2 - 正常抹账交易 (反交易)
            eraseData.RQhdrHandler.TX_DTE = tradeDate.ToString("yyyy-MM-dd");
            eraseData.RQhdrHandler.SRV_JNO = CommonDataHelper.SpaceString(12);
            eraseData.RQhdrHandler.SRV_REV_JNO = CommonDataHelper.SpaceString(12);
            eraseData.RQhdrHandler.HOST_JNO = coreTradeSN;
            try
            {
                return PreProcessReqMsg(eraseData, ref codemsg);
            }
            catch (BizArgumentsException ex)
            {
                throw ex;
            }
            catch (Exception ex)
            {
                throw new Exception(MESSAGE_ENCODE_EXCEPTION, ex);
            }
        }