/// <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 RetrieveAccounting(String tellerNO, String organNO, DateTime tradeDate, String coreTradeSN, ref byte[] codemsg) { AcctRetrieveData retrieveData = new AcctRetrieveData(); retrieveData.RQhdrHandler.SYS_TXID = "203080"; // 会计记账,主机启动原交易码 retrieveData.RQhdrHandler.TX_OUNO = organNO; retrieveData.RQhdrHandler.TEL_ID = tellerNO; retrieveData.RQhdrHandler.TX_MODE = "0"; retrieveData.RQhdrHandler.TX_DTE = tradeDate.ToString("yyyy-MM-dd"); retrieveData.RQhdrHandler.SRV_JNO = CommonDataHelper.SpaceString(12); retrieveData.RQhdrHandler.SRV_REV_JNO = CommonDataHelper.SpaceString(12); retrieveData.RQhdrHandler.HOST_JNO = CommonDataHelper.SpaceString(11); retrieveData.RQDTL.CoreTradeSN = coreTradeSN; return MsgTransfer.CodeMsgToBinary(retrieveData, ref codemsg); }
/// <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 RetrieveAccounting(String tellerNO, String organNO, DateTime tradeDate, String coreTradeSN, ref byte[] codemsg) { AcctRetrieveData retrieveData = new AcctRetrieveData(); retrieveData.RQhdrHandler.SYS_TXID = "203080"; // 会计记账,主机启动原交易码 retrieveData.RQhdrHandler.TX_OUNO = organNO; retrieveData.RQhdrHandler.TEL_ID = tellerNO; retrieveData.RQhdrHandler.TX_MODE = "0"; retrieveData.RQhdrHandler.TX_DTE = tradeDate.ToString("yyyy-MM-dd"); retrieveData.RQhdrHandler.SRV_JNO = CommonDataHelper.SpaceString(12); retrieveData.RQhdrHandler.SRV_REV_JNO = CommonDataHelper.SpaceString(12); retrieveData.RQhdrHandler.HOST_JNO = CommonDataHelper.SpaceString(11); retrieveData.RQDTL.CoreTradeSN = coreTradeSN; try { return PreProcessReqMsg(retrieveData, ref codemsg); } catch (Exception ex) { throw new Exception(MESSAGE_ENCODE_EXCEPTION, ex); } }