/// <summary>
        /// 资金划拨
        /// </summary>
        /// <param name="tellerNO">柜员号</param>
        /// <param name="orgNO">机构号</param>
        /// <param name="tradeDate">交易日期</param>
        /// <param name="inputData">资金划拨输入数据对象</param>
        /// <param name="codemsg"></param>
        /// <returns></returns>
        public static Guid PayFundTransfer(String tellerNO, String orgNO, DateTime tradeDate, PayFundTransfer inputData, ref byte[] codemsg)
        {
            PayFundTransferData data = new PayFundTransferData();
            data.RQData.Teller = tellerNO;
            data.RQData.TransferFlowNo = inputData.TransferFlowNo;// CommonDataHelper.PadLeft4BizFlowNO(inputData.TransferFlowNo, '0', 18);
            data.RQData.PayBank = orgNO;
            data.RQData.TranDate = tradeDate.ToString("yyyyMMdd");
            data.RQData.PayAccount = inputData.PayAccount;
            data.RQData.PayAccountName = inputData.PayAccountName;
            if (string.IsNullOrEmpty(inputData.RecAccount))
            {
                inputData.RecAccount = "0";
            }
            data.RQData.RecAccount = inputData.RecAccount;
            data.RQData.RecAccountName = inputData.RecAccountName;
            data.RQData.RecAccountBanks = inputData.RecAccountBanks;
            data.RQData.PackageChannelType = inputData.PackageChannelType;
            data.RQData.CurrencyType = inputData.CurrencyType;
            data.RQData.PayAmount = inputData.PayAmount;
            data.RQData.BizType = inputData.BizType;
            data.RQData.Fee = inputData.Fee;
            data.RQData.Remark = inputData.Remark;
            data.RQData.ChannelId = inputData.ChannelId;
            data.RQData.PendingSN = inputData.PendingSN;

            return MsgTransfer.CodeMsgToBinary(data, ref codemsg);
        }
 private String TestForFundTransfer(StringBuilder result,PayFundTransferData respData)
 {
     if (respData == null || respData.RPData == null)
     {
         return result.ToString();
     }
     result.AppendFormat("交易结果:{0};返回码:{1};返回信息:{2};主机交易流水号:{3};支付交易序号:{4}", respData.RPData.RetCode, respData.RPData.HostReturnCode, respData.RPData.HostReturnMessage, respData.RPData.HostTranFlowNo, respData.RPData.TransSeq);
     return result.ToString();
 }
 /// <summary>
 /// 资金划拨
 /// </summary>
 /// <param name="tellerNO">柜员号</param>
 /// <param name="orgNO">机构号</param>
 /// <param name="tradeDate">交易日期</param>
 /// <param name="inputData">资金划拨输入数据对象</param>
 /// <param name="codemsg"></param>
 /// <returns></returns>
 public static Guid PayFundTransfer(String tellerNO, String orgNO, DateTime tradeDate, PayFundTransfer inputData, ref byte[] codemsg)
 {
     PayFundTransferData data = new PayFundTransferData();
     data.RQData.Teller = tellerNO;
     data.RQData.TransferFlowNo = inputData.TransferFlowNo;// CommonDataHelper.PadLeft4BizFlowNO(inputData.TransferFlowNo, '0', 18);
     data.RQData.PayBank = orgNO;
     data.RQData.TranDate = tradeDate.ToString("yyyyMMdd");
     data.RQData.PayAccount = inputData.PayAccount;
     data.RQData.PayAccountName = inputData.PayAccountName;
     if (string.IsNullOrEmpty(inputData.RecAccount))
     {
         inputData.RecAccount = "0";
     }
     data.RQData.RecAccount = inputData.RecAccount;
     data.RQData.RecAccountName = inputData.RecAccountName;
     data.RQData.RecAccountBanks = inputData.RecAccountBanks;
     data.RQData.PackageChannelType = inputData.PackageChannelType;
     data.RQData.CurrencyType = inputData.CurrencyType;
     data.RQData.PayAmount = inputData.PayAmount;
     data.RQData.BizType = inputData.BizType;
     data.RQData.Fee = inputData.Fee;
     data.RQData.Remark = inputData.Remark;            
     data.RQData.ChannelId = inputData.ChannelId;
     data.RQData.PendingSN = inputData.PendingSN;
   
     try
     {
         return PreProcessPaymentMsg(data, ref codemsg);
     }
     catch (BizArgumentsException ex)
     {
         throw ex;
     }
     catch (Exception ex)
     {
         throw new Exception(MESSAGE_ENCODE_EXCEPTION, ex);
     }
 }