Ejemplo n.º 1
0
        /// <summary>
        /// 往帐抹账交易
        /// </summary>
        /// <param name="tellerNO">柜员号</param>
        /// <param name="orgNO">机构号</param>
        /// <param name="flowNO">资金业务流水号</param>
        /// <param name="orignalDate">原委托日期</param>
        /// <param name="hostFlowNO">主机流水号(同业拆借或资金划拨返回的核心交易流水号)</param>
        /// <param name="codemsg"></param>
        /// <returns></returns>
        public static Guid PayEraseAccounting(String tellerNO, String orgNO, String flowNO, DateTime orignalDate, String hostFlowNO, ref byte[] codemsg)
        {
            PayOutcomeAcctEraseData data = new PayOutcomeAcctEraseData();
            data.RQData.PayBank = orgNO;
            data.RQData.Operator = tellerNO;
            data.RQData.OriDelegateDate = orignalDate.ToString("yyyyMMdd");
            data.RQData.TransferFlowNo = flowNO;// CommonDataHelper.PadLeft4BizFlowNO(flowNO, '0', 18);
            data.RQData.HostTranFlowNo = hostFlowNO;

            return MsgTransfer.CodeMsgToBinary(data, ref codemsg);
        }
Ejemplo n.º 2
0
 private String TestForPayAcctErase(StringBuilder result, PayOutcomeAcctEraseData data)
 {
     if (data == null || data.RPData == null)
     {
         return result.ToString();
     }
     result.AppendFormat("交易结果:{0};交易结果描述:{1};", data.RPData.RetCode, data.RPData.RetMsg);
     return result.ToString();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 往帐抹账交易
 /// </summary>
 /// <param name="tellerNO">柜员号</param>
 /// <param name="orgNO">机构号</param>
 /// <param name="flowNO">资金业务流水号</param>
 /// <param name="orignalDate">原委托日期</param>
 /// <param name="hostFlowNO">主机流水号(同业拆借或资金划拨返回的核心交易流水号)</param>
 /// <param name="codemsg"></param>
 /// <returns></returns>
 public static Guid PayEraseAccounting(String tellerNO, String orgNO, String flowNO, DateTime orignalDate, String hostFlowNO, ref byte[] codemsg)
 {
     PayOutcomeAcctEraseData data = new PayOutcomeAcctEraseData();
     data.RQData.PayBank = orgNO;
     data.RQData.Operator = tellerNO;
     data.RQData.OriDelegateDate = orignalDate.ToString("yyyyMMdd");
     data.RQData.TransferFlowNo = flowNO;// CommonDataHelper.PadLeft4BizFlowNO(flowNO, '0', 18);
     data.RQData.HostTranFlowNo = hostFlowNO;
   
     try
     {
         return PreProcessPaymentMsg(data, ref codemsg);
     }
     catch (BizArgumentsException ex)
     {
         throw ex;
     }
     catch (Exception ex)
     {
         throw new Exception(MESSAGE_ENCODE_EXCEPTION, ex);
     }            
 }